Abstract
Transfer learning has fundamentally changed the landscape of natural language processing (NLP) research. Many existing state-of-the-art models are first pre-trained on a large text corpus and then fine-tuned on downstream tasks. However, due to limited data resources from downstream tasks and the extremely large capacity of pre-trained models, aggressive fine-tuning often causes the adapted model to overfit the data of downstream tasks and forget the knowledge of the pre-trained model. To address the above issue in a more principled manner, we propose a new computational framework for robust and efficient fine-tuning for pre-trained language models. Specifically, our proposed framework contains two important ingredients:
- Smoothness-inducing regularization, which effectively manages the capacity of the model;
- Bregman proximal point optimization, which is a class of trust-region methods and can prevent knowledge forgetting. Our experiments demonstrate that our proposed method achieves the state-of-the-art performance on multiple NLP benchmarks.
Introduction
The prevailing paradigm in modern Natural Language Processing (NLP) involves a two-stage process: pre-training a massive language model on a large-scale corpus followed by fine-tuning on specific downstream tasks. While highly effective, this approach faces a significant challenge: the mismatch between the enormous parameter count of models like BERT or RoBERTa and the relatively small size of many task-specific datasets. This discrepancy often leads to overfitting and "catastrophic forgetting," where the model loses the general linguistic knowledge acquired during pre-training while attempting to memorize the nuances of a small training set.
The SMART Framework
To mitigate these issues, we introduce SMART (Smoothness-inducing Manifold Adversarial Regularization and Bregman Proximal Point Trust-region optimization). SMART is designed to ensure that fine-tuning is both robust to noise and efficient in its updates by incorporating two core components.
1. Smoothness-inducing Adversarial Regularization
A key goal of SMART is to enforce local smoothness in the model's output. Standard fine-tuning often results in complex, jagged decision boundaries that are sensitive to small input variations. SMART addresses this by adding a regularization term that encourages the model's output distribution to remain stable even when small, adversarial perturbations are injected into the input embeddings. This effectively enforces local Lipschitz continuity, ensuring that the model does not change its predictions drastically for similar inputs.
2. Bregman Proximal Point Optimization
To prevent the model from deviating too aggressively from its initial pre-trained state, SMART utilizes a trust-region optimization method. By employing Bregman divergence as a penalty, the framework ensures that each update step keeps the model within a "trust region" of its previous state. This prevents the "forgetting" of pre-trained knowledge. We further enhance this with a momentum-based variant (MBPP) that uses an exponential moving average of model weights to stabilize the training trajectory.
Experimental Evaluation
We evaluated the SMART framework across several rigorous NLU benchmarks, including GLUE, SNLI, SciTail, and the human-collected Adversarial NLI (ANLI).
Key Results and Efficiency
The experimental results demonstrate that SMART significantly outperforms standard fine-tuning baselines. Notably, a RoBERTa-Large model (356M parameters) fine-tuned with SMART achieved a GLUE score of 89.4, surpassing the 11-billion parameter T5 model (89.2). This result highlights that principled regularization can be more effective than simply increasing model scale.
The benefits of SMART are particularly evident in low-data regimes. For instance, on the RTE task, which contains only 2.5k training samples, SMART improved the BERT baseline accuracy from 63.5% to 71.2%. Furthermore, SMART showed superior performance on "ambiguous" samples in the MNLI dataset and demonstrated increased resilience against adversarial attacks on the ANLI benchmark.
Conclusion
SMART provides a principled framework for fine-tuning large-scale pre-trained models. By combining smoothness-inducing regularization with trust-region optimization, it effectively manages model capacity and prevents knowledge forgetting. While SMART requires more computational resources during training (approximately 3x more time and 2x more GPU memory), its ability to achieve state-of-the-art performance with significantly fewer parameters makes it a highly efficient solution for robust transfer learning in NLP.
Summary updated