Abstract
Fine-tuning massive language models like BERT typically involves updating all parameters, leading to significant storage costs for multi-task deployments. This work demonstrates that fine-tuning requires only minimal changes to pre-trained weights. By employing $L_0$-close fine-tuning or learning task-specific binary "supermasks," models can maintain state-of-the-art performance while drastically reducing the number of trainable parameters and storage requirements.
Introduction
As natural language processing (NLP) models scale from millions to billions of parameters, standard fine-tuning practices—which involve updating all weights for every new task—become increasingly impractical. For a suite of 50 tasks, an organization would need to store 50 distinct, multi-gigabyte versions of a model like BERT or GPT. This research investigates the fundamental necessity of these extensive updates, asking: How much do we actually need to change a model to learn a new task?
Observations suggest that despite their size, these models are often fine-tuned for relatively few steps, implying that the "distance" traveled in parameter space is minimal. This paper explores methods to capture task-specific differences more efficiently by identifying sparse sub-networks within the pre-trained model.
Methods
The study utilizes BERT-base (109M parameters) to evaluate two primary constrained fine-tuning techniques:
- $L_0$-close Fine-tuning: This method identifies and updates only the "most sensitive" layers. By freezing components like word embeddings or specific attention projection matrices (e.g., "Key" projections), the researchers determine how many parameters can remain at their pre-trained values without compromising accuracy.
- Supermask Fine-tuning: A more radical approach where pre-trained weights remain entirely frozen. Instead of modifying weight values, the model learns a task-specific binary mask (0 or 1). Using a "straight-through estimator" to maintain differentiability, the model learns which specific pre-trained connections to deactivate to solve a given task.
These methods were evaluated across the GLUE benchmark, covering tasks such as linguistic acceptability (CoLA), sentiment analysis (SST-2), and natural language inference (MNLI, QNLI, RTE).
Key Insights and Results
The authors confirmed that fine-tuned models remain remarkably close to their pre-trained origins in both $L_1$ and angular distance. However, sensitivity varies significantly across the transformer stack. Deeper layers generally undergo more change than shallower ones, and "Value" and "Dense" projection matrices are more dynamic than "Query" and "Key" matrices.
Sparsity and Performance
A critical finding is the effectiveness of "turning off" weights. For simpler tasks like RTE, masking just 1% of pre-trained weights is sufficient for baseline performance. More complex tasks like MNLI require approximately 13%.
As shown in the figure above, performance remains stable even as global sparsity reaches 40-50%. Significant degradation typically only occurs once global sparsity exceeds the 50-70% threshold. This suggests that high-quality task-specific sub-networks are inherently "hidden" within the pre-trained structure, and pre-training provides a unique foundation that random initialization cannot replicate.
Efficiency Gains
By freezing less sensitive layers, the authors reduced trainable parameters by 40% (from 109M to 66M) with negligible impact on performance (e.g., an F1 score of 88.7 vs. 89.4 on MRPC). Furthermore, supermasks offer substantial storage benefits, replacing 32-bit floats with 1-bit masks per task, allowing for massive storage savings in multi-task deployments.
Discussion and Limitations
While these techniques drastically reduce storage overhead, they do not automatically translate to faster inference on standard hardware without specialized sparse kernels. Additionally, the study found that masks for different tasks show minimal overlap, suggesting each task utilizes a unique "pathway" through the model.
Future work should investigate whether these findings, particularly the 40-50% sparsity threshold, scale to even larger architectures like GPT-3. In conclusion, fine-tuning is indeed "fine," and focusing on small, critical parameter differences is a viable path toward more efficient, parameter-efficient AI systems.
Summary updated