Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

PALBERT: Teaching ALBERT to Ponder

About

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.

Nikita Balagansky, Daniil Gavrilov• 2022

Related benchmarks

TaskDatasetResultRank
Sentiment AnalysisIMDB (test)
Accuracy-2.5
248
Sentiment AnalysisYelp source: SST (test)
Accuracy-2.4
12
Paraphrase DetectionQQP source: RTE (test)
Accuracy-0.1
12
Natural Language InferenceSciTail source: MRPC (test)
Accuracy-0.7
12
Natural Language InferenceSNLI source: MNLI (test)
Accuracy-1.4
12
Sentiment ClassificationSST-IMDb
Accuracy-0.027
12
Sentiment ClassificationSST-Yelp
Accuracy-2.6
12
Showing 7 of 7 rows

Other info

Follow for update