[Paper Review] Towards Efficient NLP: A Standard Evaluation and A Strong Baseline
This paper introduces ELUE, a standardized benchmark and public leaderboard for evaluating efficient NLP models across performance, FLOPs, and parameter count. It proposes ElasticBERT, a strong baseline that enables dynamic early exiting by allowing BERT to produce predictions at any layer via gradient equilibrium and grouped training, outperforming or matching SOTA compressed and early exiting models on GLUE tasks while reducing training time by 43%.
Supersized pre-trained language models have pushed the accuracy of various natural language processing (NLP) tasks to a new state-of-the-art (SOTA). Rather than pursuing the reachless SOTA accuracy, more and more researchers start paying attention on model efficiency and usability. Different from accuracy, the metric for efficiency varies across different studies, making them hard to be fairly compared. To that end, this work presents ELUE (Efficient Language Understanding Evaluation), a standard evaluation, and a public leaderboard for efficient NLP models. ELUE is dedicated to depict the Pareto Frontier for various language understanding tasks, such that it can tell whether and how much a method achieves Pareto improvement. Along with the benchmark, we also release a strong baseline, ElasticBERT, which allows BERT to exit at any layer in both static and dynamic ways. We demonstrate the ElasticBERT, despite its simplicity, outperforms or performs on par with SOTA compressed and early exiting models. With ElasticBERT, the proposed ELUE has a strong Pareto Frontier and makes a better evaluation for efficient NLP models.
Motivation & Objective
- To address the lack of standardized, comprehensive evaluation for efficient NLP models due to inconsistent metrics and inaccessible results across studies.
- To establish a Pareto frontier for language understanding models by enabling fair, multi-dimensional comparison across accuracy, FLOPs, and model size.
- To provide a strong, robust baseline for both static and dynamic efficiency methods, particularly addressing the weakness of existing baselines in compressed and early exiting models.
- To enable reproducible and transparent evaluation through an open-source platform with public results and online leaderboard.
- To reduce training time and maintain performance in dynamic models via grouped training and gradient equilibrium during pre-training.
Proposed method
- Proposes ELUE, a standardized evaluation platform that supports online evaluation of model performance, FLOPs, and parameter count, with public access to results and an online leaderboard.
- Introduces ElasticBERT, a dynamic model that allows predictions at any layer of BERT, supporting both static and dynamic inference strategies.
- Employs gradient equilibrium (GE) to balance losses across multiple exits, mitigating performance degradation from conflicting objectives at different layers.
- Applies grouped training during pre-training, where exits are divided into groups to reduce computation and training time by up to 43% without significant performance loss.
- Uses a multi-task training objective where each exit head is trained with a weighted loss based on layer depth, ensuring balanced optimization.
- Implements a hierarchical training strategy where the top classifier is preserved and internal classifiers are trained with shared backbone parameters to maintain representation quality.
Experimental results
Research questions
- RQ1Can a standardized benchmark be established to fairly evaluate efficient NLP models across multiple efficiency dimensions such as FLOPs, parameters, and inference speed?
- RQ2To what extent can a strong baseline like ElasticBERT outperform existing compressed and early exiting models on standard NLP benchmarks?
- RQ3How effective is gradient equilibrium in balancing multi-exit training losses and improving performance across all exit layers?
- RQ4Does grouped training during pre-training significantly reduce training time while preserving performance on internal and final exits?
- RQ5Can dynamic models like ElasticBERT achieve Pareto improvement over static models by offering better trade-offs between accuracy and efficiency?
Key findings
- ElasticBERT with gradient equilibrium and grouped training achieves a 43% reduction in training time compared to non-grouped training, without significant performance degradation.
- On the GLUE benchmark, ElasticBERT BASE with 12 layers achieves an average score of 88.4, outperforming or matching SOTA models on all tasks including MNLI, MRPC, QNLI, and QQP.
- The 6-layer version of ElasticBERT BASE achieves 87.0 average score on GLUE, demonstrating strong robustness to depth reduction and strong efficiency-accuracy trade-offs.
- ElasticBERT with GE and grouped training maintains high performance across all exit layers, with the top exit achieving 85.4/85.7 on MNLI and 89.2 on MRPC.
- The ELUE benchmark successfully establishes a Pareto frontier, enabling clear identification of models that achieve Pareto improvement across multiple efficiency and accuracy dimensions.
- The ablation study confirms that gradient equilibrium significantly improves performance on SST-2 and MRPC compared to two-stage and weighted training strategies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.