Abstract
We present TEAMS (Training ELECTRA Augmented with Multi-word Selection), a pre-training framework designed to improve the semantic depth and training efficiency of discriminative language models. While the ELECTRA framework introduced efficient Replaced Token Detection (RTD), its binary classification task often fails to capture nuanced semantic relationships. TEAMS addresses this by introducing a Multi-word Selection (MWS) task, where the discriminator must identify the original token from a set of plausible candidates. Our experiments show that TEAMS consistently outperforms BERT and ELECTRA on GLUE and SQuAD benchmarks, achieving superior performance with significantly reduced computational cost.
Introduction
Pre-training large-scale language models typically relies on Masked Language Modeling (MLM), as seen in BERT. However, MLM is computationally expensive because the model only learns from the small fraction (typically 15%) of tokens that are masked. ELECTRA addressed this by replacing the generative MLM task with a discriminative Replaced Token Detection (RTD) task, where a discriminator predicts whether each token in a corrupted sequence is original or replaced.
Despite its efficiency, recent analysis suggests that the binary RTD task may be too simple, preventing the model from learning the deep semantic nuances required for complex downstream tasks. TEAMS (Training ELECTRA Augmented with Multi-word Selection) aims to re-introduce semantic "hardness" into the discriminative framework without sacrificing the efficiency gains of ELECTRA.
The TEAMS Framework
The core innovation of TEAMS is a multi-task learning objective for the discriminator, combining standard detection with a more challenging selection task.
Multi-word Selection (MWS)
For every masked position in the input, a generator model produces a set of $K$ plausible alternative tokens. The discriminator is then tasked with performing a $(K+1)$-way classification to select the original token from this candidate set. This "multiple-choice" objective forces the model to differentiate between semantically similar words, leading to more robust representations. This task serves as a "Goldilocks" middle ground: it is more informative than binary classification but computationally cheaper than predicting across the entire vocabulary.
Architecture and Efficiency
TEAMS incorporates several architectural refinements to maximize performance:
- Task-specific Attention Heads: Unlike standard models that use simple linear layers, TEAMS employs transformer-based attention heads for its classification tasks. This allows the model to leverage global context when deciding if a token fits its position.
- Partial Layer Sharing: To improve regularization and training speed, the generator and discriminator share their embedding layers and the initial transformer blocks. This allows the discriminator to benefit from the linguistic features learned by the generator early in training.
Experimental Evaluation
We evaluated TEAMS against BERT and ELECTRA baselines using the WikiBooks and WikiBooks++ datasets for pre-training. Performance was measured on the GLUE benchmark and the SQuAD (v1.1 and v2.0) question-answering datasets.
Performance and Learning Efficiency
TEAMS consistently outperformed both BERT and ELECTRA across various model sizes. On SQuAD 2.0, TEAMS-Base achieved an F1 score of 84.51, a significant improvement over BERT-Base (76.17) and ELECTRA-Base (81.52). Similar gains were observed on the GLUE benchmark, where TEAMS-Base reached a score of 85.57, beating ELECTRA-Base (84.63) and BERT-Base (83.46).
Crucially, TEAMS demonstrates superior learning efficiency. As shown in the learning curves, TEAMS achieves higher accuracy "per hour" of pre-training compared to ELECTRA. This is particularly evident in tasks requiring deep semantic understanding, such as question answering, where the MWS task provides a more informative training signal. TEAMS-Base was able to outperform "ELECTRA-Base++" (a version trained for much longer) while using only a fraction of the total computation.
Discussion and Conclusion
TEAMS successfully bridges the gap between the semantic richness of MLM and the efficiency of discriminative pre-training. By introducing the Multi-word Selection task, the model is forced to learn more nuanced linguistic features.
Future work may explore the impact of candidate quality, as the difficulty of the MWS task is directly tied to the generator's ability to propose challenging negatives. Additionally, the framework could be extended to incorporate other auxiliary self-supervised tasks or alternative transformer architectures to further push the boundaries of efficient NLU pre-training.
Summary updated