arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.03276cs.LGcs.CL
收藏

PALBERT:教ALBERT思考

PALBERT: Teaching ALBERT to Ponder

Tinkoff(Tinkoff公司)

Nikita Balagansky, Daniil Gavrilov

AI总结:

本文提出改进PonderNet的确定性Q-exit标准和重构架构,适配ALBERT和RoBERTa实现提前退出,在GLUE任务上优于PABEE。

摘要:

目前,预训练模型可被视为各种NLP任务的默认选择。尽管取得了SoTA结果,但有实际证据表明,这些模型对于不同的输入序列可能需要不同数量的计算层,因为评估所有层会导致对错误预测的过度自信(即过度思考)。这个问题可以通过实现自适应计算时间方法来解决,该方法最初旨在提高推理速度。最近提出的PonderNet可能是一种通过将退出层的索引视为潜在变量来执行提前退出的有前途的解决方案。然而,最初提出的退出标准依赖于从训练好的退出第$i$层概率的后验分布中进行采样,这在退出层索引中引入了主要方差,显著降低了最终模型的性能。在本文中,我们提出用一种新颖的确定性Q-exit标准和重新审视的模型架构来改进PonderNet。我们将所提出的机制适配到ALBERT和RoBERTa,并将其与最近执行提前退出的方法进行了比较。我们观察到,所提出的更改可被视为对原始PonderNet架构的重大改进,并在广泛的GLUE任务上优于PABEE。此外,我们还对所提出的架构进行了深入的消融研究,以进一步理解Lambda层及其性能。

英文摘要:

Currently, pre-trained models can be considered the default choice for a wide range of NLP tasks. Despite their SoTA results, there is practical evidence that these models may require a different number of computing layers for different input sequences, since evaluating all layers leads to overconfidence in wrong predictions (namely overthinking). This problem can potentially be solved by implementing adaptive computation time approaches, which were first designed to improve inference speed. Recently proposed PonderNet may be a promising solution for performing an early exit by treating the exit layer's index as a latent variable. However, the originally proposed exit criterion, relying on sampling from trained posterior distribution on the probability of exiting from the $i$-th layer, introduces major variance in exit layer indices, significantly reducing the resulting model's performance. In this paper, we propose improving PonderNet with a novel deterministic Q-exit criterion and a revisited model architecture. We adapted the proposed mechanism to ALBERT and RoBERTa and compared it with recent methods for performing an early exit. We observed that the proposed changes can be considered significant improvements on the original PonderNet architecture and outperform PABEE on a wide range of GLUE tasks. In addition, we also performed an in-depth ablation study of the proposed architecture to further understand Lambda layers and their performance.

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

↑