Research map / Architectures and efficiency / Attention and transformers
TR-BERT: Dynamic Token Reduction for Accelerating BERT Inference
Deming Ye, Yankai Lin, Yufei Huang, Maosong Sun
Tsinghua University · Tencent · Beijing Academy of Artificial Intelligence
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- IMDB leaderboard accuracy 93.6 · rank 36 of 174 papers
- SQuAD 2.0 leaderboard F1 75.66 · rank 14 of 18 papers
- RACE leaderboard accuracy 65 · rank 23 of 36 papers
- NewsQA leaderboard F1 67.18 · rank 10 of 18 papers
- 20 Newsgroups leaderboard accuracy 87.44 · rank 3 of 15 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use residual-based token selection instead of attention-based selection (keeping 10% tokens, after layer 4) (ablation) | BERT · SQuAD 2.0 pilot | F1: +31.8% F1 | Improved |
| use residual-based token selection instead of attention-based selection (10% tokens) (ablation) | BERT · IMDB pilot | accuracy: +9.5% accuracy | Improved |
| add RL-learned dynamic token reduction (TR-BERT_12) | BERT · SQuAD 2.0 | F1: 77.12 -> 75.66 F1, 1.00x -> 2.08x FLOPs | Mixed |
| use TR-BERT_12 instead of DynaBERT | DynaBERT · SQuAD 2.0 | F1: 74.83 -> 75.66 | Improved |
| use TR-BERT_12 instead of DynaBERT | DynaBERT · NaturalQA | F1: 78.14 -> 79.03 | Improved |
| use TR-BERT_6 instead of PoWER-BERT | PoWER-BERT · IMDB | accuracy: 92.02 (3.05x) -> 92.64 (4.13x) | Improved |
| use TR-BERT_6 (distilled 6-layer base) instead of TR-BERT_12 | TR-BERT · RACE | accuracy: 65.00 -> 53.40 | Hurt |
| use TR-BERT_6 instead of TR-BERT_12 at high speedup | TR-BERT · tasks at high speedup ratio | quality vs speed | Improved |
| use 1024-token input with token reduction instead of BERT | BERT · HotpotQA | F1: 57.33 -> 65.57, 1.56x | Improved |
| use 1024-token input with token reduction instead of BERT | BERT · WikiHop | accuracy: 67.67 -> 67.78, 4.65x | No clear effect |
| use TR-BERT-1024 instead of BERT-1024 | BERT-1024 · Hyperpartisan | accuracy: 76.83 -> 74.39, 0.92x -> 1.96x | Hurt |
| number of token reduction modules T=2 or 3 instead of T=1 (ablation) | TR-BERT · tuning | quality-speed trade-off | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- PoWER-BERT — PoWER-BERT: Accelerating BERT Inference via Progressive Word-vector Elimination (ICML 2020) · better on 3 of 3 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- AdapLeR: Speeding up Inference by Adaptive Length Reduction (ACL 2022 · similarity 0.89)
- PoWER-BERT: Accelerating BERT Inference via Progressive Word-vector Elimination (ICML 2020 · similarity 0.88)
- DeeBERT: Dynamic Early Exiting for Accelerating BERT Inference (ACL 2020 · similarity 0.88)
- Revisiting Token Dropping Strategy in Efficient BERT Pretraining (ACL 2023 · similarity 0.88)
- Token Dropping for Efficient BERT Pretraining (ACL 2022 · similarity 0.88)
- TaCL: Improving BERT Pre-training with Token-aware Contrastive Learning (NAACL 2022 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.