Abstract
SAS (Self-Augmentation Strategy) simplifies language model pre-training by replacing the dual-network architecture of models like ELECTRA with a single, self-evolving network. By using its own predictions from previous epochs to generate contextualized training data, SAS achieves state-of-the-art performance on the GLUE benchmark while significantly reducing computational overhead and eliminating the complex balancing act required by generator-discriminator systems.
Introduction
In Natural Language Processing (NLP), pre-training is fundamental. Models like BERT revolutionized the field using Masked Language Modeling (MLM), while ELECTRA improved efficiency by introducing a separate "Generator" to replace words and a "Discriminator" to detect them (Replaced Token Detection, or RTD). However, ELECTRA requires training two separate networks and carefully balancing their capacities to prevent the generator from overpowering the discriminator.
SAS addresses these drawbacks by providing the benefits of contextualized data augmentation without the baggage of a two-network system. It consolidates the learning process into a single transformer encoder that serves as its own teacher.
Methods: The Self-Augmentation Strategy
The core innovation of SAS is Self-Augmentation. Instead of a separate generator, SAS uses a single transformer encoder equipped with two specialized heads: an MLM head and an RTD head. The training process follows a temporal loop where the model's state from a previous epoch informs the training data for the current one.
- Epoch 1 (Cold Start): The model uses a simple frequency-based unigram distribution to replace tokens.
- Epoch $t+1$: The model utilizes the MLM predictions it made in the previous epoch ($t$) to generate contextually plausible replacements for the current epoch.
- Dual-Task Learning: In every forward pass, the model performs both MLM (predicting the original word) and RTD (detecting if a word was replaced).
This creates a natural curriculum. Early in training, poor MLM predictions make the RTD task easy. As the model improves, its self-generated replacements become more contextually plausible, naturally increasing the difficulty of the RTD task and removing the need for manual capacity tuning.
Key Results
SAS was evaluated on the GLUE benchmark after pre-training on the English Wikipedia and BooksCorpus. It consistently outperformed predecessors across various model sizes while maintaining higher computational efficiency.
- Small Models: SAS-Small achieved a GLUE score of 81.61, outperforming ELECTRA-Small (80.78) and BERT-Small (79.10).
- Base Models: SAS-DA-Base (incorporating disentangled attention) achieved a GLUE score of 85.60, edging out ELECTRA-Base while utilizing fewer training FLOPs.
- Efficiency: On a single V100 GPU, SAS-Small required approximately 24 hours for pre-training, a 31% reduction in wall-clock time compared to the 35 hours required for ELECTRA-Small.
Conclusion
SAS demonstrates that a single model can effectively serve as its own data augmentor. By sharing parameters between the MLM and RTD tasks and using a temporal feedback loop, SAS achieves superior performance with less computational effort than dual-network architectures. While current implementations rely on epoch-based dependencies, the strategy offers a promising path toward more efficient and self-scaling language model pre-training.
Summary updated