AdapLeR: Speeding up Inference by Adaptive Length Reduction
Open accessAbstract
Pre-trained language models have shown stellar performance in various downstream tasks.But, this usually comes at the cost of high latency and computation, hindering their usage in resource-limited settings.In this work, we propose a novel approach for reducing the computational cost of BERT with minimal loss in downstream performance.Our method dynamically eliminates less contributing tokens through layers, resulting in shorter lengths and consequently lower computational cost.To determine the importance of each token representation, we train a Contribution Predictor for each layer using a gradient-based saliency method.Our experiments on several diverse classification tasks show speedups up to 22x during inference time without much sacrifice in performance.We also validate the quality of the selected tokens in our method using human annotations in the ERASER benchmark.In comparison to other widely used strategies for selecting important tokens, such as saliency and attention, our proposed method has a significantly lower false positive rate in generating rationales.Our code is freely available at https://github.com/amodaresi/ AdapLeR.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
Token pruning and token merging methods need model fine-tuning or intermediate results during inference and have been used with BERT-scale models.
“(1) Token pruning (Goyal et al., 2020; Kim and Cho, 2021; Modarressi et al., 2022) and token merging (Bolya et al., 2023), which need model fine-tuning or intermediate results during inference and have been used with BERT-scale models.”
From LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression (2024) · cites this paper as Modarressi et al., 2022
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
The publisher hasn’t deposited this paper’s reference list.
Research works printed but not linked: 33
- Marco Ancona, Enea Ceolini, Cengiz Öztireli, and Markus Gross. 2018. Towards better understanding of gradient-based attribution methods for deep neural networks. In International Conference on Learning Representations.
- William B. Dolan and Chris Brockett. 2005. Automati- cally constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005).
- Cristóbal Eyzaguirre, Felipe del Río, Vladimir Araujo, and Álvaro Soto. 2021. DACT-BERT: Differentiable adaptive computation time for an efficient bert infer- ence. arXiv preprint arXiv:2109.11745. · arXiv
- Yunchao Gong, L. Liu, Ming Yang, and Lubomir D. Bourdev. 2014. Compressing deep convolu- tional networks using vector quantization. ArXiv, abs/1412.6115. · arXiv
- Saurabh Goyal, Anamitra Roy Choudhury, Saurabh Raje, Venkatesan Chakaravarthy, Yogish Sabharwal, and Ashish Verma. 2020. Power-bert: Accelerating bert inference via progressive word-vector elimina- tion. In International Conference on Machine Learn- ing, pages 3690-3699. PMLR.
- Song Han, Huizi Mao, and William J. Dally. 2016. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. In 4th International Conference on Learning Represen- tations, ICLR 2016, San Juan, Puerto Rico, May 2-4, 2016, Conference Track Proceedings.
- Yihui He, Xiangyu Zhang, and Jian Sun. 2017. Channel pruning for accelerating very deep neural networks. 2017 IEEE International Conference on Computer Vision (ICCV), pages 1398-1406.
- Geoffrey E. Hinton, Oriol Vinyals, and Jeffrey Dean. 2015. Distilling the knowledge in a neural network. ArXiv, abs/1503.02531. · arXiv
- Ahmed Hussein, Mohamed Medhat Gaber, Eyad Elyan, and Chrisina Jayne. 2017. Imitation learning: A sur- vey of learning methods. ACM Computing Surveys (CSUR), 50(2):1-35.
- Sarthak Jain, Sarah Wiegreffe, Yuval Pinter, and By- ron C. Wallace. 2020. Learning to faithfully rational- ize by construction. In ACL.
- Jens Lehmann, Robert Isele, Max Jakob, Anja Jentzsch, Dimitris Kontokostas, Pablo N Mendes, Sebastian Hellmann, Mohamed Morsey, Patrick Van Kleef, Sören Auer, et al. 2015. Dbpedia-a large-scale, mul- tilingual knowledge base extracted from wikipedia. Semantic web, 6(2):167-195.
- Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. 2011. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 142-150, Portland, Oregon, USA. Association for Computational Lin- guistics.
- Andrew L. Maas, Awni Y. Hannun, and Andrew Y. Ng. 2013. Rectifier nonlinearities improve neural net- work acoustic models. In in ICML Workshop on Deep Learning for Audio, Speech and Language Pro- cessing.
- Binny Mathew, Punyajoy Saha, Seid Muhie Yimam, Chris Biemann, Pawan Goyal, and Animesh Mukher- jee. 2021. Hatexplain: A benchmark dataset for ex- plainable hate speech detection. In AAAI.
- Paul Michel, Omer Levy, and Graham Neubig. 2019. Are sixteen heads really better than one? In NeurIPS.
- Hosein Mohebbi, Ali Modarressi, and Moham- mad Taher Pilehvar. 2021. Exploring the role of BERT token representations to explain sentence prob- ing results. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 792-806, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
- Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. 2019. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108. · arXiv
- Victor Sanh, Thomas Wolf, and Alexander Rush. 2020. Movement pruning: Adaptive sparsity by fine-tuning. Advances in Neural Information Processing Systems, 33:20378-20389.
- Roy Schwartz, Jesse Dodge, Noah Smith, and Oren Etzioni. 2020a. Green ai. Communications of the ACM, 63:54 -63.
- Sheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma, Zhewei Yao, Amir Gholami, Michael W. Mahoney, and Kurt Keutzer. 2020. Q-bert: Hessian based ultra low pre- cision quantization of bert. In AAAI.
- Karen Simonyan, Andrea Vedaldi, and Andrew Zis- serman. 2013. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034. · arXiv
- D Smilkov, N Thorat, B Kim, F Viégas, and M Watten- berg. 2017. Smoothgrad: removing noise by adding noise. arxiv. arXiv preprint arxiv:1706.03825. · arXiv
- Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empiri- cal Methods in Natural Language Processing, pages 1631-1642, Seattle, Washington, USA. Association for Computational Linguistics.
- Tianxiang Sun, Yunhua Zhou, Xiangyang Liu, Xinyu Zhang, Hao Jiang, Zhao Cao, Xuanjing Huang, and Xipeng Qiu. 2021. Early exiting with ensemble inter- nal classifiers. arXiv preprint arXiv:2105.13792. · arXiv
- Mukund Sundararajan, Ankur Taly, and Qiqi Yan. 2017. Axiomatic attribution for deep networks. In Proceed- ings of the 34th International Conference on Machine Learning-Volume 70, pages 3319-3328.
- Thierry Tambe, Coleman Hooper, Lillian Pentecost, Tianyu Jia, En-Yu Yang, Marco Donato, Victor Sanh, Paul N. Whatmough, Alexander M. Rush, David Brooks, and Gu-Yeon Wei. 2021. Edge- bert: Sentence-level energy optimizations for latency- aware multi-task nlp inference. MICRO-54: 54th Annual IEEE/ACM International Symposium on Mi- croarchitecture.
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural Information Pro- cessing Systems, volume 30.
- Hanrui Wang, Zhekai Zhang, and Song Han. 2021. Spat- ten: Efficient sparse attention architecture with cas- cade token and head pruning. 2021 IEEE Interna- tional Symposium on High-Performance Computer Architecture (HPCA), pages 97-110.
- Hao Yuan, Yongjun Chen, Xia Hu, and Shuiwang Ji. 2019. Interpreting deep models for text analysis via optimization and regularization methods. In Proceed- ings of the AAAI Conference on Artificial Intelligence, volume 33, pages 5717-5724.
- Omar Zaidan and Jason Eisner. 2008. Modeling an- notators: A generative approach to learning from annotator rationales. In Proceedings of the 2008 Conference on Empirical Methods in Natural Lan- guage Processing, pages 31-40, Honolulu, Hawaii. Association for Computational Linguistics.
- Xiang Zhang, Junbo Jake Zhao, and Yann LeCun. 2015. Character-level convolutional networks for text clas- sification. In NIPS.
- Chen Zhao, Chenyan Xiong, Corby Rosset, Xia Song, Paul Bennett, and Saurabh Tiwary. 2020. Transformer-xh: Multi-evidence reasoning with ex- tra hop attention. In International Conference on Learning Representations.
- Wangchunshu Zhou, Canwen Xu, Tao Ge, Julian McAuley, Ke Xu, and Furu Wei. 2020. Bert loses patience: Fast and robust inference with early exit. In Advances in Neural Information Processing Systems, volume 33, pages 18330-18341.
Cited by
Sorted by citations
LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
Jiang, H., Wu, Q., Lin, C.-Y., Yang, Y., & Qiu, L. (2023) · Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2023.emnlp-main.825 · Cited by 168 · see citing works
Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems
Miao, X., Oliaro, G., Zhang, Z., Cheng, X., Jin, H., Chen, T., & Jia, Z. (2025) · ACM Computing Surveys · doi:10.1145/3754448 · Cited by 107 · see citing works
LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression
Jiang, H., Wu, Q., Luo, X., Li, D., Lin, C.-Y., Yang, Y., & Qiu, L. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.91 · Cited by 96 · see citing works
Ke, W., Zheng, Y., Li, Y., Xu, H., Nie, D., Wang, P., & He, Y. (2025) · ACM Transactions on Information Systems · doi:10.1145/3768156 · Cited by 30 · see citing works
C3oT: Generating Shorter Chain-of-Thought Without Compromising Effectiveness
Kang, Y., Sun, X., Chen, L., & Zou, W. (2025) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v39i23.34608 · Cited by 24 · see citing works
Model Cascading: Towards Jointly Improving Efficiency and Accuracy of NLP Systems
Varshney, N., & Baral, C. R. (2022) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2022.emnlp-main.756 · Cited by 19 · see citing works
Rethinking Multimodal Content Moderation from an Asymmetric Angle with Mixed-modality
Yuan, J., Yu, Y., Mittal, G. K., Hall, M., Sajeev, S., & Chen, M. (2024) · IEEE Winter Conference on Applications of Computer Vision · doi:10.1109/wacv57701.2024.00834 · Cited by 16 · see citing works
AD-KD: Attribution-Driven Knowledge Distillation for Language Model Compression
Wu, S., Chen, H., Quan, X., Wang, Q., & Wang, R. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.471 · Cited by 15 · see citing works
TextFusion: Privacy-Preserving Pre-trained Model Inference via Token Fusion
Zhou, X., Lu, J., Gui, T., Ma, R., Fei, Z., Wang, Y., Ding, Y., Cheung, Y., Zhang, Q., & Huang, X. (2022) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2022.emnlp-main.572 · Cited by 14 · see citing works
Yin, W., Yi, R., Xu, D., Huang, G., Xu, M., & Liu, X. (2025) · ACM Annual International Conference on Mobile Computing and Networking (MobiCom) · doi:10.1145/3680207.3765259 · Cited by 9 · see citing works
Rethinking Token Reduction for State Space Models
Zhan, Z., Wu, Y., Kong, Z., Yang, C., Gong, Y., Shen, X. J., Lin, X., Zhao, P., & Wang, Y. (2024) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2024.emnlp-main.100 · Cited by 8 · see citing works
Less Is More: DocString Compression in Code Generation
Yang, G., Zhou, Y., Cheng, W., Zhang, X., Chen, X., Zhuo, T. Y., Liu, K., Zhou, X., Lo, D., & Chen, T. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3735636 · Cited by 6 · see citing works
FINCH: Prompt-guided Key-Value Cache Compression for Large Language Models
Corallo, G., & Papotti, P. (2024) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00716 · Cited by 5 · see citing works
Language Model Guided Interpretable Video Action Reasoning
Wang, N., Zhu, G., Li, H., Zhang, L., Shah, S. A. A., & Bennamoun, M. (2024) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52733.2024.01786 · Cited by 5 · see citing works
SentireCache: Accelerate Sentiment Classification With Saliency-Based Caching
Zhu, Y., Jia, J., Dong, M., & Qi, J. (2025) · IEEE Transactions on Affective Computing · doi:10.1109/taffc.2025.3578574 · Cited by 2 · see citing works
Sample-Adaptive Classification Inference Network
Yang, J., Zhou, G., Wang, R., & Xue, L. (2024) · Neural Processing Letters · doi:10.1007/s11063-024-11629-6 · Cited by 1 · see citing works
Leap-of-Thought: Accelerating Transformers via Dynamic Token Routing
Kim, Y., Kim, J., Park, J.-H., Lee, M., & Lee, S. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.976 · Cited by 1 · see citing works
Length-Adaptive Distillation: Customizing Small Language Model for Dynamic Token Pruning
Liu, C., Tao, C., Liang, J., Feng, J., Shen, T., Huang, Q., & Zhao, D. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.294
Text Classification Network Based on Token Dynamic Decay
Zhou, G., Yang, J., Wang, R., & Xue, L. (2024) · International Conference on Cyber Security, Artificial Intelligence and Digital Economy (CSAIDE) · doi:10.1145/3672919.3672949
SkipPLUS: Skip the First Few Layers to Better Explain Vision Transformers
Mehri, F., Fayyaz, M., Baghshah, M. S., & Pilehvar, M. T. (2024) · IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · doi:10.1109/cvprw63382.2024.00025
Self-citationCompression Strategies for Massive Natural Language Generation Models
Dayal, A., Angara, J., Gupta, S., & Saripalle, R. S. (2025) · Lecture notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering · doi:10.1007/978-3-031-77081-4_7
Read Between the Tokens: Differentiable Text Pruning via Perturbed Top-k Selection
Italiani, P., Ragazzi, L., & Moro, G. (2025) · IEEE Transactions on Audio Speech and Language Processing · doi:10.1109/taslpro.2025.3629289
Zhang, X., Pan, C., Xing, X., Wang, Y., Liang, R., & Li, J. (2025) · Asian Conference on Artificial Intelligence Technology (ACAIT) · doi:10.1109/acait67930.2025.11522017
- Authors
- Modarressi, A., Mohebbi, H., & Pilehvar, M. T.
- Affiliations
- Iran University of Science and Technology (IR)
- Khatam University (IR)
- Tilburg University (NL)
- Venue
- Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
- Published
- 2022
- Pages
- 1-15
- ISSN
- 0736-587X (ISSN-L)
- OpenAlex
- W4221138792
- Cited by
- 18
- References
- 0
- Citations by year
- 2025: 6 · 2024: 6 · 2023: 4 · 2022: 2
- FWCI
- 2.49
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- Locations
- Proceedings of the conference - Association for Computational Linguistics. Meeting (publishedVersion, cc-by)
- Research portal (Tilburg University) (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- Data Archiving and Networked Services (DANS) (submittedVersion, cc-by)
- arXiv (Cornell University)
- Funders
- Nederlandse Organisatie voor Wetenschappelijk Onderzoek (NWA.1292.19.399)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Explainable Artificial Intelligence (XAI)
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
- Keywords
- BERT, inference acceleration, token importance, resource-limited settings, text classification, rationales
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review