Abstract
Fine-tuning pre-trained language models on small datasets often suffers from optimization instability, where minor changes in random seeds lead to significant performance variance. This paper presents Delayed Ensemble and Noisy Interpolation (DENI), a method designed to stabilize fine-tuning by injecting controlled noise. DENI achieves the performance of traditional model ensembles at a fraction of the computational cost (approximately 3.7x vs 10x). Evaluated across multiple architectures and datasets, DENI consistently improves F1 scores and reduces variance, particularly benefiting parameter-efficient fine-tuning (PEFT) methods.
Introduction
When fine-tuning models like BERT or RoBERTa on low-resource datasets (e.g., 1,000 samples), researchers often encounter "optimization instability." Two identical training runs, differing only by a random seed, can yield vastly different results. While ensembling multiple models is a standard solution, it is computationally prohibitive, typically requiring a 10x increase in training time and energy. Existing regularization techniques often improve general performance but fail to address the underlying instability of the optimization path.
Methodology: DENI
The proposed DENI method mitigates instability by "fighting randomness with randomness" through two primary components:
- Noisy Interpolation (NI): During training, the model is periodically perturbed with Gaussian noise to create temporary variants. These variants are briefly trained and then averaged back into the main model, steering the optimization toward more stable regions of the parameter space.
- Delayed Ensemble (DE): To avoid the cost of full ensembling, DENI waits until the end of the training process. It then creates several noisy copies of the final model, trains them for a few additional steps, and aggregates their predictions using hard voting.
Experimental Setup
The effectiveness of DENI was evaluated on seven text classification datasets with 1,000 samples each, including GLUE tasks (SST2, CoLA, MRPC) and multi-class tasks (AG News, TREC, DBPedia, SNIPS). Experiments were conducted using BERT-base, RoBERTa-base, and ALBERT-base architectures.
Key Results and Insights
DENI demonstrates a superior balance of performance and efficiency compared to standard baselines.
- Performance and Stability: DENI consistently outperformed standard ensembles, showing statistically significant F1 score increases of 0.25 to 2.11 percentage points while reducing variance across runs.
- Computational Efficiency: DENI achieved these gains using only 37% of the training steps required for a traditional 10-model ensemble, making it highly practical for resource-constrained environments.
- Synergy with PEFT: A key finding is that Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA and IA3 benefit more from DENI than full fine-tuning. In several instances, stabilized PEFT models outperformed their fully fine-tuned counterparts.
Conclusion
DENI provides a cost-effective and robust solution to the optimization instability inherent in low-resource fine-tuning. By strategically injecting noise and delaying ensemble creation, it captures the benefits of multiple model perspectives without the overhead of full ensemble training. Future work will explore the scalability of DENI to billion-parameter models and its applicability to prompt-based tuning methods.
Summary updated