Proceedings

Improving Prediction Certainty Estimation for Reliable Early Exiting via Null Space Projection

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 8077-8085.

https://doi.org/10.24963/ijcai.2025/898

Abstract

Early exiting has demonstrated great potential in accelerating the inference of pre-trained language models (PLMs) by enabling easy samples to exit at shallow layers, eliminating the need for executing deeper layers. However, existing early exiting methods primarily rely on class-relevant logits to formulate their exiting signals for estimating prediction certainty, neglecting the detrimental influence of class-irrelevant information in the features on prediction certainty. This leads to an overestimation of prediction certainty, causing premature exiting of samples with incorrect early predictions. To remedy this, we define an NSP score to estimate prediction certainty by considering the proportion of class-irrelevant information in the features. On this basis, we propose a novel early exiting method based on the Certainty-Aware Probability (CAP) score, which integrates insights from both logits and the NSP score to enhance prediction certainty estimation, thus enabling more reliable exiting decisions. The experimental results on the GLUE benchmark show that our method can achieve an average speed-up ratio of 2.19× across all tasks with negligible performance degradation, surpassing the state-of-the-art (SOTA) ConsistentEE by 28%, yielding a better trade-off between task performance and inference efficiency. The code is available at https://github.com/He-Jianing/NSP.git.

  1. [Akbari et al., 2022] Mohammad Akbari, Amin Banitalebi- Dehkordi, and Yong Zhang. E-lang: Energy-based joint inferencing of super and swift language models. arXiv preprint arXiv:2203.00748, 2022.
  2. [Balagansky and Gavrilov, 2022] Nikita Balagansky and Daniil Gavrilov. Palbert: Teaching albert to ponder. Advances in Neural Information Processing Systems, 35:14002-14012, 2022.
  3. [Devlin et al., 2019] Jacob Devlin, Ming-Wei Chang, Ken- ton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understand- ing. In NAACL-HLT (1), pages 4171-4186. Association for Computational Linguistics, 2019.
  4. [Gao et al., 2023] Xiangxiang Gao, Wei Zhu, Jiasheng Gao, and Congrui Yin. F-pabee: flexible-patience-based early exiting for single-label and multi-label text classifica- tion tasks. In ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5. IEEE, 2023.
  5. [He et al., 2024] Jianing He, Qi Zhang, Weiping Ding, Duo- qian Miao, Jun Zhao, Liang Hu, and Longbing Cao. De 3 - bert: Distance-enhanced early exiting for BERT based on prototypical networks. CoRR, abs/2402.05948, 2024.
  6. [He et al., 2025a] Jianing He, Qi Zhang, Hongyun Zhang, Xuanjing Huang, Usman Naseem, and Duoqian Miao. COSEE: consistency-oriented signal-based early exiting via calibrated sample weighting mechanism. In AAAI-25, pages 24023-24031. AAAI Press, 2025.
  7. [He et al., 2025b] Jianing He, Qi Zhang, Hongyun Zhang, and Duoqian Miao. Two-stage early exiting from global- ity towards reliability. CAAI Transactions on Intelligence Technology, 2025.
  8. [Ji et al., 2023] Yixin Ji, Jikai Wang, Juntao Li, Qiang Chen, Wenliang Chen, and Min Zhang. Early exit with disen- tangled representation and equiangular tight frame. In Findings of the Association for Computational Linguistics: ACL 2023, pages 14128-14142, 2023.
  9. [Lan et al., 2020] Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Sori- cut. ALBERT: A lite BERT for self-supervised learning of language representations. In ICLR. OpenReview.net, 2020.
  10. [Li et al., 2021] Lei Li, Yankai Lin, Deli Chen, Shuhuai Ren, Peng Li, Jie Zhou, and Xu Sun. Cascadebert: Acceler- ating inference of pre-trained language models via cali- brated complete models cascade. In EMNLP (Findings), pages 475-486. Association for Computational Linguis- tics, 2021.
  11. [Liao et al., 2021] Kaiyuan Liao, Yi Zhang, Xuancheng Ren, Qi Su, Xu Sun, and Bin He. A global past-future early exit method for accelerating inference of pre-trained language models. In NAACL-HLT, pages 2013-2023. Association for Computational Linguistics, 2021.
  12. [Liu et al., 2020] Weijie Liu, Peng Zhou, Zhiruo Wang, Zhe Zhao, Haotang Deng, and Qi Ju. Fastbert: a self-distilling BERT with adaptive inference time. In ACL, pages 6035- 6044. Association for Computational Linguistics, 2020.
  13. [Loshchilov and Hutter, 2019] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In ICLR (Poster). OpenReview.net, 2019.
  14. [Mangrulkar et al., 2022] Sourab Mangrulkar, Ankith MS, and Vivek Sembium. Be3r: Bert based early-exit using expert routing. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 3504-3512, 2022.
  15. [Schwartz et al., 2020] Roy Schwartz, Gabriel Stanovsky, Swabha Swayamdipta, Jesse Dodge, and Noah A. Smith. The right tool for the job: Matching model and instance complexities. In ACL, pages 6640-6651. Association for Computational Linguistics, 2020.
  16. [Sun et al., 2022] Tianxiang Sun, Xiangyang Liu, Wei Zhu, Zhichao Geng, Lingling Wu, Yilong He, Yuan Ni, Guo- tong Xie, Xuanjing Huang, and Xipeng Qiu. A sim- ple hash-based early exiting approach for language under- standing and generation. In ACL (Findings), pages 2409- 2421. Association for Computational Linguistics, 2022.
  17. [Wang et al., 2019] Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In ICLR (Poster). Open- Review.net, 2019.
  18. [Wolf et al., 2020] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Fun- towicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. Transformers: State-of- the-art natural language processing. In EMNLP (Demos), pages 38-45. Association for Computational Linguistics, 2020.
  19. [Xin et al., 2020] Ji Xin, Raphael Tang, Jaejun Lee, Yaoliang Yu, and Jimmy Lin. Deebert: Dynamic early exiting for accelerating BERT inference. In ACL, pages 2246-2251. Association for Computational Linguistics, 2020.
  20. [Xin et al., 2021] Ji Xin, Raphael Tang, Yaoliang Yu, and Jimmy Lin. Berxit: Early exiting for BERT with better fine-tuning and extension to regression. In EACL, pages 91-104. Association for Computational Linguistics, 2021.
  21. [Zeng et al., 2024] Ziqian Zeng, Yihuai Hong, Hongliang Dai, Huiping Zhuang, and Cen Chen. Consistentee: A consistent and hardness-guided early exiting method for accelerating language models inference. In Thirty-Eighth AAAI Conference on Artificial Intelligence, pages 19506- 19514. AAAI Press, 2024.
  22. [Zhang et al., 2022] Zhen Zhang, Wei Zhu, Jinfan Zhang, Peng Wang, Rize Jin, and Tae-Sun Chung. PCEE-BERT: accelerating BERT inference via patient and confident early exiting. In NAACL-HLT (Findings), pages 327-338. Association for Computational Linguistics, 2022.
  23. [Zhang et al., 2023] Jingfan Zhang, Ming Tan, Pengyu Dai, and Wei Zhu. Leco: Improving early exiting via learned exits and comparison-based exiting mechanism. In Pro- ceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop), pages 298-309, 2023.
  24. [Zhou et al., 2020] Wangchunshu Zhou, Canwen Xu, Tao Ge, Julian J. McAuley, Ke Xu, and Furu Wei. BERT loses patience: Fast and robust inference with early exit. In NeurIPS, 2020.
  25. [Zhu et al., 2021] Wei Zhu, Xiaoling Wang, Yuan Ni, and Guotong Xie. Gaml-bert: improving bert early exiting by gradient aligned mutual learning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Lan- guage Processing, pages 3033-3044, 2021.
  26. [Zhu et al., 2023] Wei Zhu, Peng Wang, Yuan Ni, Guotong Xie, and Xiaoling Wang. Badge: speeding up bert in- ference after deployment via block-wise bypasses and divergence-based early exiting. In Proceedings of the 61st Annual Meeting of the Association for Computational Lin- guistics (Volume 5: Industry Track), pages 500-509, 2023.
  27. [Zhu, 2021] Wei Zhu. Leebert: Learned early exit for bert with cross-level optimization. In Proceedings of the 59th Annual Meeting of the Association for Computational Lin- guistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 2968-2980, 2021.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards