COSEE:基于一致性信号并通过校准样本加权机制实现的提前退出
COSEE: Consistency-Oriented Signal-Based Early Exiting via Calibrated Sample Weighting Mechanism
AI总结:
本文提出COSEE框架,通过校准样本加权机制使分类器关注不同加速场景下可能退出的样本,解决了预训练语言模型提前退出中训练与测试不一致及加速比无法灵活调整的问题,在GLUE上取得更优的效率与性能权衡。
摘要:
提前退出是一种有效的范式,通过动态调整每个样本执行的层数来提高预训练语言模型(PLMs)的推理效率。然而,在大多数现有工作中,简单和困难样本在训练期间被每个分类器同等对待,这忽略了测试时的提前退出行为,导致训练和测试之间的不一致。尽管一些方法在固定加速比下解决了这个问题,但在保持训练和测试之间一致性的同时灵活调整加速比的挑战仍未得到充分探索。为了弥合这一差距,我们提出了一种新颖的面向一致性的基于信号的提前退出(COSEE)框架,该框架利用校准的样本加权机制,使每个分类器能够强调在各种加速场景下更可能在该分类器处退出的样本。在 GLUE 基准上的大量实验证明了我们的 COSEE 在多种退出信号和骨干网络上的有效性,在性能和效率之间取得了更好的权衡。
英文摘要:
Early exiting is an effective paradigm for improving the inference efficiency of pre-trained language models (PLMs) by dynamically adjusting the number of executed layers for each sample. However, in most existing works, easy and hard samples are treated equally by each classifier during training, which neglects the test-time early exiting behavior, leading to inconsistency between training and testing. Although some methods have tackled this issue under a fixed speed-up ratio, the challenge of flexibly adjusting the speed-up ratio while maintaining consistency between training and testing is still under-explored. To bridge the gap, we propose a novel Consistency-Oriented Signal-based Early Exiting (COSEE) framework, which leverages a calibrated sample weighting mechanism to enable each classifier to emphasize the samples that are more likely to exit at that classifier under various acceleration scenarios. Extensive experiments on the GLUE benchmark demonstrate the effectiveness of our COSEE across multiple exiting signals and backbones, yielding a better trade-off between performance and efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。