TR-BERT: Dynamic Token Reduction for Accelerating BERT Inference
On the map: Efficient LLM inference and serving → Early exit and edge inference
Abstract (arXiv)
Existing pre-trained language models (PLMs) are often computationally expensive in inference, making them impractical in various resource-limited real-world applications. To address this issue, we propose a dynamic token reduction approach to accelerate PLMs' inference, named TR-BERT, which could flexibly adapt the layer number of each token in inference to avoid redundant calculation. Specially, TR-BERT formulates the token reduction process as a multi-step token selection problem and automatically learns the selection strategy via reinforcement learning. The experimental results on several downstream NLP tasks show that TR-BERT is able to speed up BERT by 2-5 times to satisfy various performance demands. Moreover, TR-BERT can also achieve better performance with less computation in a suite of long-text tasks since its token-level layer number adaption greatly accelerates the self-attention operation in PLMs. The source code and experiment details of this paper can be obtained from https://github.com/thunlp/TR-BERT.
Key facts. Cited by 40 papers in the map (data through 14 Oct 2026). Placed in Early exit and edge inference, one of 12 directions in Efficient LLM inference and serving. Builds on 43 of its 59 references that are in the map. First posted on arXiv 25 May 2021.
Builds on
43 of 59 references.
References · 43
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,955
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
31 more
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
- 2018Universal Transformerscited by 647
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 508
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 482
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 332
- 2016NewsQA: A Machine Comprehension Datasetcited by 331
- 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 251
- 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 226
- 2017Constructing Datasets for Multi-hop Reading Comprehension Across Documentscited by 190
- 2019MRQA 2019 Shared Task: Evaluating Generalization in Reading Comprehensioncited by 184
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 162
- 2020TernaryBERT: Distillation-aware Ultra-low Bit BERTcited by 148
- 2019Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentencecited by 122
- 2017Simple and Effective Multi-Paragraph Reading Comprehensioncited by 120
- 2019Open Sesame: Getting Inside BERT's Linguistic Knowledgecited by 120
- 2019Semantics-aware BERT for Language Understandingcited by 112
- 2020Length-Adaptive Transformer: Train Once with Length Drop, Use Anytime with Searchcited by 76
- 2019MultiQA: An Empirical Investigation of Generalization and Transfer in Reading Comprehensioncited by 60
- 2019Revealing the Importance of Semantic Retrieval for Machine Reading at Scalecited by 50
- 2020DeFormer: Decomposing Pre-trained Transformers for Faster Question Answeringcited by 29
- 2020PoWER-BERT: Accelerating BERT Inference via Progressive Word-vector Eliminationcited by 10
Built on by
Citing papers per year: 2021: 3; 2022: 9; 2023: 12; 2024: 8; 2025: 4; 2026: 4.
40 papers.
Sort:
By area:
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
- 2021MoEfication: Transformer Feed-forward Layers are Mixtures of Expertscited by 152
- 2021Learned Token Pruning for Transformerscited by 139
- 2024Fit and Prune: Fast and Training-free Visual Token Pruning for Multi-modal Large Language Modelscited by 126
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 102
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 64
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformerscited by 62
- 2025Token Reduction Should Go Beyond Efficiency in Generative Models -- From Vision, Language to Multimodalitycited by 50
- 2021Packed Levitated Marker for Entity and Relation Extractioncited by 49
- 2022A Survey on Model Compression and Acceleration for Pretrained Language Modelscited by 45
- 2024AIM: Adaptive Inference of Multi-Modal LLMs via Token Merging and Pruningcited by 43
- 2025When Large Vision-Language Model Meets Large Remote Sensing Imagery: Coarse-to-Fine Text-Guided Token Pruningcited by 35
28 more
- 2022A Survey on Dynamic Neural Networks for Natural Language Processingcited by 24
- 2022Transkimmer: Transformer Learns to Layer-wise Skimcited by 24
- 2022Efficiently Controlling Multiple Risks with Pareto Testingcited by 22
- 2022AdapLeR: Speeding up Inference by Adaptive Length Reductioncited by 19
- 2024Bridging Local Details and Global Context in Text-Attributed Graphscited by 15
- 2022Pyramid-BERT: Reducing Complexity via Successive Core-set based Token Selectioncited by 13
- 2023ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models Inferencecited by 13
- 2022Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputationcited by 12
- 2025Rethinking Chain-of-Thought Reasoning for Videoscited by 9
- 2022Accelerating Attention through Gradient-Based Learned Runtime Pruningcited by 8
- 2024Language Model Guided Interpretable Video Action Reasoningcited by 8
- 2023SmartTrim: Adaptive Tokens and Attention Pruning for Efficient Vision-Language Modelscited by 7
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inferencecited by 6
- 2024CItruS: Chunked Instruction-aware State Eviction for Long Sequence Modelingcited by 4
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systemscited by 3
- 2025SemToken: Semantic-Aware Tokenization for Efficient Long-Context Language Modelingcited by 3
- 2026SinkPruner: Sink-Free Visual Token Pruning for Multimodal Large Language Modelscited by 3
- 2023Infor-Coef: Information Bottleneck-based Dynamic Token Downsampling for Compact and Efficient language modelcited by 2
- 2023You Only Forward Once: Prediction and Rationalization in A Single Forward Passcited by 2
- 2026Control Reinforcement Learning: Interpretable Token-Level Steering of LLMs via Sparse Autoencoder Featurescited by 2
- 2023Variator: Accelerating Pre-trained Models with Plug-and-Play Compression Modulescited by 1
- 2023No-Skim: Towards Efficiency Robustness Evaluation on Skimming-based Language Modelscited by 1
- 2024Practical token pruning for foundation models in few-shot conversational virtual assistant systemscited by 1
- 2024Self-Satisfied: An end-to-end framework for SAT generation and predictioncited by 1
- 2022An Efficient End-to-End Transformer with Progressive Tri-modal Attention for Multi-modal Emotion Recognitioncited by 0
- 2023Harnessing Attention Mechanisms: Efficient Sequence Reduction using Attention-based Autoencoderscited by 0
- 2026Sparse Token Routing in Efficient Transformerscited by 0
- 2026Dependency-Aware Chain-of-Thought Compression for Financial Reasoningcited by 0
- 2026SinkPruner: Sink-Free Visual Token Pruning for Multimodal Large Language Models1 Sep 2026
- 2026Sparse Token Routing in Efficient Transformers21 Aug 2026
- 2026Dependency-Aware Chain-of-Thought Compression for Financial Reasoning10 Jul 2026
- 2026Control Reinforcement Learning: Interpretable Token-Level Steering of LLMs via Sparse Autoencoder Features11 Feb 2026
- 2025Rethinking Chain-of-Thought Reasoning for Videos10 Dec 2025
- 2025SemToken: Semantic-Aware Tokenization for Efficient Long-Context Language Modeling21 Aug 2025
- 2025Token Reduction Should Go Beyond Efficiency in Generative Models -- From Vision, Language to Multimodality23 May 2025
- 2025When Large Vision-Language Model Meets Large Remote Sensing Imagery: Coarse-to-Fine Text-Guided Token Pruning10 Mar 2025
- 2024AIM: Adaptive Inference of Multi-Modal LLMs via Token Merging and Pruning4 Dec 2024
- 2024Self-Satisfied: An end-to-end framework for SAT generation and prediction18 Oct 2024
- 2024Fit and Prune: Fast and Training-free Visual Token Pruning for Multi-modal Large Language Models16 Sep 2024
- 2024Practical token pruning for foundation models in few-shot conversational virtual assistant systems21 Aug 2024
28 more
- 2024Bridging Local Details and Global Context in Text-Attributed Graphs18 Jun 2024
- 2024CItruS: Chunked Instruction-aware State Eviction for Long Sequence Modeling17 Jun 2024
- 2024Language Model Guided Interpretable Video Action Reasoning2 Apr 2024
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey15 Feb 2024
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec 2023
- 2023ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models Inference19 Dec 2023
- 2023No-Skim: Towards Efficiency Robustness Evaluation on Skimming-based Language Models15 Dec 2023
- 2023You Only Forward Once: Prediction and Rationalization in A Single Forward Pass4 Nov 2023
- 2023Variator: Accelerating Pre-trained Models with Plug-and-Play Compression Modules24 Oct 2023
- 2023Harnessing Attention Mechanisms: Efficient Sequence Reduction using Attention-based Autoencoders23 Oct 2023
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inference26 Jun 2023
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformers27 May 2023
- 2023SmartTrim: Adaptive Tokens and Attention Pruning for Efficient Vision-Language Models24 May 2023
- 2023Infor-Coef: Information Bottleneck-based Dynamic Token Downsampling for Compact and Efficient language model21 May 2023
- 2023LLM-Pruner: On the Structural Pruning of Large Language Models19 May 2023
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems23 Jan 2023
- 2022Efficiently Controlling Multiple Risks with Pareto Testing14 Oct 2022
- 2022An Efficient End-to-End Transformer with Progressive Tri-modal Attention for Multi-modal Emotion Recognition20 Sep 2022
- 2022Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputation1 Sep 2022
- 2022Transkimmer: Transformer Learns to Layer-wise Skim15 May 2022
- 2022Accelerating Attention through Gradient-Based Learned Runtime Pruning7 Apr 2022
- 2022Pyramid-BERT: Reducing Complexity via Successive Core-set based Token Selection27 Mar 2022
- 2022AdapLeR: Speeding up Inference by Adaptive Length Reduction16 Mar 2022
- 2022A Survey on Model Compression and Acceleration for Pretrained Language Models15 Feb 2022
- 2022A Survey on Dynamic Neural Networks for Natural Language Processing15 Feb 2022
- 2021MoEfication: Transformer Feed-forward Layers are Mixtures of Experts5 Oct 2021
- 2021Packed Levitated Marker for Entity and Relation Extraction13 Sep 2021
- 2021Learned Token Pruning for Transformers2 Jul 2021
- 2021Learned Token Pruning for Transformerscited by 139
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 102
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformerscited by 62
- 2025Token Reduction Should Go Beyond Efficiency in Generative Models -- From Vision, Language to Multimodalitycited by 50
- 2023ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models Inferencecited by 13
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inferencecited by 6
- 2024Practical token pruning for foundation models in few-shot conversational virtual assistant systemscited by 1
- 2026Sparse Token Routing in Efficient Transformerscited by 0
- 2026Sparse Token Routing in Efficient Transformers21 Aug 2026
- 2025Token Reduction Should Go Beyond Efficiency in Generative Models -- From Vision, Language to Multimodality23 May 2025
- 2024Practical token pruning for foundation models in few-shot conversational virtual assistant systems21 Aug 2024
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec 2023
- 2023ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models Inference19 Dec 2023
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inference26 Jun 2023
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformers27 May 2023
- 2021Learned Token Pruning for Transformers2 Jul 2021
- 2024Fit and Prune: Fast and Training-free Visual Token Pruning for Multi-modal Large Language Modelscited by 126
- 2024AIM: Adaptive Inference of Multi-Modal LLMs via Token Merging and Pruningcited by 43
- 2025When Large Vision-Language Model Meets Large Remote Sensing Imagery: Coarse-to-Fine Text-Guided Token Pruningcited by 35
- 2023SmartTrim: Adaptive Tokens and Attention Pruning for Efficient Vision-Language Modelscited by 7
- 2026SinkPruner: Sink-Free Visual Token Pruning for Multimodal Large Language Modelscited by 3
- 2026SinkPruner: Sink-Free Visual Token Pruning for Multimodal Large Language Models1 Sep 2026
- 2025When Large Vision-Language Model Meets Large Remote Sensing Imagery: Coarse-to-Fine Text-Guided Token Pruning10 Mar 2025
- 2024AIM: Adaptive Inference of Multi-Modal LLMs via Token Merging and Pruning4 Dec 2024
- 2024Fit and Prune: Fast and Training-free Visual Token Pruning for Multi-modal Large Language Models16 Sep 2024
- 2023SmartTrim: Adaptive Tokens and Attention Pruning for Efficient Vision-Language Models24 May 2023
- 2026Dependency-Aware Chain-of-Thought Compression for Financial Reasoning10 Jul 2026
- 2025Rethinking Chain-of-Thought Reasoning for Videos10 Dec 2025
- 2024Language Model Guided Interpretable Video Action Reasoning2 Apr 2024
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 64
- 2021Packed Levitated Marker for Entity and Relation Extractioncited by 49
- 2022A Survey on Model Compression and Acceleration for Pretrained Language Modelscited by 45
- 2022A Survey on Dynamic Neural Networks for Natural Language Processingcited by 24
- 2022Transkimmer: Transformer Learns to Layer-wise Skimcited by 24
- 2022Efficiently Controlling Multiple Risks with Pareto Testingcited by 22
- 2022AdapLeR: Speeding up Inference by Adaptive Length Reductioncited by 19
- 2024Bridging Local Details and Global Context in Text-Attributed Graphscited by 15
- 2022Pyramid-BERT: Reducing Complexity via Successive Core-set based Token Selectioncited by 13
- 2022Sparse Attention Acceleration with Synergistic In-Memory Pruning and On-Chip Recomputationcited by 12
- 2022Accelerating Attention through Gradient-Based Learned Runtime Pruningcited by 8
12 most cited of 22 All 22 (JSON)
- 2025SemToken: Semantic-Aware Tokenization for Efficient Long-Context Language Modeling21 Aug 2025
- 2024Self-Satisfied: An end-to-end framework for SAT generation and prediction18 Oct 2024
- 2024Bridging Local Details and Global Context in Text-Attributed Graphs18 Jun 2024
- 2024CItruS: Chunked Instruction-aware State Eviction for Long Sequence Modeling17 Jun 2024
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey15 Feb 2024
- 2023No-Skim: Towards Efficiency Robustness Evaluation on Skimming-based Language Models15 Dec 2023
- 2023You Only Forward Once: Prediction and Rationalization in A Single Forward Pass4 Nov 2023
- 2023Variator: Accelerating Pre-trained Models with Plug-and-Play Compression Modules24 Oct 2023
- 2023Harnessing Attention Mechanisms: Efficient Sequence Reduction using Attention-based Autoencoders23 Oct 2023
- 2023Infor-Coef: Information Bottleneck-based Dynamic Token Downsampling for Compact and Efficient language model21 May 2023
- 2023LLM-Pruner: On the Structural Pruning of Large Language Models19 May 2023
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems23 Jan 2023
12 newest of 22 All 22 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2022Token Dropping for Efficient BERT Pretraining
- 2023Revisiting Token Dropping Strategy in Efficient BERT Pretraining
- 2023SmartBERT: A Promotion of Dynamic Early Exiting Mechanism for Accelerating BERT Inference
- 2021Accelerating BERT Inference for Sequence Labeling via Early-Exit
- 2021Elbert: Fast Albert with Confidence-Window Based Early Exit
- 2021RefBERT: Compressing BERT by Referencing to Pre-computed Representations
- 2024CEEBERT: Cross-Domain Inference in Early Exit BERT
- 2022MKQ-BERT: Quantized BERT with 4-bits Weights and Activations