Improving Prediction Certainty Estimation for Reliable Early Exiting via Null Space Projection
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.
Cite
Text
He et al. "Improving Prediction Certainty Estimation for Reliable Early Exiting via Null Space Projection." International Joint Conference on Artificial Intelligence, 2025. doi:10.24963/IJCAI.2025/898Markdown
[He et al. "Improving Prediction Certainty Estimation for Reliable Early Exiting via Null Space Projection." International Joint Conference on Artificial Intelligence, 2025.](https://mlanthology.org/ijcai/2025/he2025ijcai-improving/) doi:10.24963/IJCAI.2025/898BibTeX
@inproceedings{he2025ijcai-improving,
title = {{Improving Prediction Certainty Estimation for Reliable Early Exiting via Null Space Projection}},
author = {He, Jianing and Zhang, Qi and Miao, Duoqian and Yi, Kun and Hao, Shufeng and Zhang, Hongyun and Wei, Zhihua},
booktitle = {International Joint Conference on Artificial Intelligence},
year = {2025},
pages = {8077-8085},
doi = {10.24963/IJCAI.2025/898},
url = {https://mlanthology.org/ijcai/2025/he2025ijcai-improving/}
}