arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.17249cs.LGcs.AI
收藏

通过零空间投影改进预测确定性估计以实现可靠的早期退出

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

Tongji University(同济大学);North China Institute of Computing Technology(华北计算技术研究所);Taiyuan University of Technology(太原理工大学)

Jianing He, Qi Zhang, Duoqian Miao, Yi Kun, Shufeng Hao, Hongyun Zhang, Zhihua Wei

AI总结:

针对早期退出中预测确定性高估导致过早退出问题,提出基于零空间投影的NSP分数与CAP分数,整合logits与NSP信息,在GLUE上实现2.19倍加速且性能损失极小,超越ConsistentEE 28%。

摘要:

早期退出通过使简单样本在浅层退出,无需执行更深层,展现了加速预训练语言模型(PLMs)推理的巨大潜力。然而,现有的早期退出方法主要依赖类别相关的logits来制定退出信号以估计预测确定性,忽略了特征中类别无关信息对预测确定性的不利影响。这导致预测确定性的高估,使得预测错误的样本过早退出。为解决此问题,我们定义了一个NSP分数,通过考虑特征中类别无关信息的比例来估计预测确定性。在此基础上,我们提出了一种基于确定性感知概率(CAP)分数的新型早期退出方法,该方法整合了logits和NSP分数的见解,以增强预测确定性估计,从而实现更可靠的退出决策。在GLUE基准上的实验结果表明,我们的方法在所有任务上平均加速比达到2.19倍,性能下降可忽略不计,超越了最先进的ConsistentEE方法28%,在任务性能和推理效率之间取得了更好的权衡。代码可在https://github.com/He-Jianing/NSP.git获取。

英文摘要:

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.19x 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑