arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.13792cs.CLcs.LG
收藏

使用Enclave内部分类器提前退出

Early Exiting with Ensemble Internal Classifiers

Fudan University(复旦大学);Huawei Poisson Lab(华为泊松实验室)

Tianxiang Sun, Yunhua Zhou, Xiangyang Liu, Xinyu Zhang, Hao Jiang, Zhao Cao, Xuanjing Huang, Xipeng Qiu

摘要:

作为一种加速大规模预训练模型推理的简单技术,提前退出在NLP社区中受到了广泛关注。它允许样本在内部分类器中提前退出,而无需通过整个模型。现有的大多数工作通常独立训练内部分类器,并采用退出策略来决定是否退出的基础上的信心,当前内部分类器。然而,这些作品都没有充分利用这样一个事实:内部分类器经过训练来解决相同的任务,因此可以用于构建集成。本文从集成学习和信息论的角度出发,提出了一种新的集成内分类器训练目标函数。所提出的训练目标包括两个方面:一个是准确性,另一个是内部分类器的多样性。相比之下,先前工作中使用的目标正是我们训练目标的准确度项,因此只优化了准确度,而不是多样性。此外,我们提出了一个简单的基于投票的策略,考虑所有过去的内部分类器的预测,推断正确的标签,并决定是否退出。不同NLP任务的实验结果表明,我们提出的目标函数和基于投票的策略可以实现更好的准确性和速度的权衡。

英文摘要:

As a simple technique to accelerate inference of large-scale pre-trained models, early exiting has gained much attention in the NLP community. It allows samples to exit early at internal classifiers without passing through the entire model. Most existing work usually trains the internal classifiers independently and employs an exiting strategy to decide whether or not to exit based on the confidence of the current internal classifier. However, none of these works takes full advantage of the fact that the internal classifiers are trained to solve the same task therefore can be used to construct an ensemble. In this paper, we show that a novel objective function for the training of the ensemble internal classifiers can be naturally induced from the perspective of ensemble learning and information theory. The proposed training objective consists of two terms: one for accuracy and the other for the diversity of the internal classifiers. In contrast, the objective used in prior work is exactly the accuracy term of our training objective therefore only optimizes the accuracy but not diversity. Further, we propose a simple voting-based strategy that considers predictions of all the past internal classifiers to infer the correct label and decide whether to exit. Experimental results on various NLP tasks show that our proposed objective function and voting-based strategy can achieve better accuracy-speed trade-offs.

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

↑