Fine-tuning large pre-trained language models (PrLMs) like BERT and RoBERTa has become the standard for NLP tasks. However, these models are often over-parameterized, leading to overfitting on small datasets. Instead of learning robust features, models frequently memorize "shortcuts"—spurious correlations in the training data that do not generalize.
While standard dropout randomly zeroes out neurons to prevent co-adaptation, it lacks the specificity to target these shortcuts. Researchers from Sun Yat-sen University and Meta AI propose AD-DROP (Attribution-Driven Dropout), a targeted regularization technique that identifies and masks the most influential self-attention positions to force the model to learn more generalizable features.
The "Shortcut" Trap and Attribution
The core motivation for AD-DROP stems from a "prior attribution experiment" investigating how different attention positions affect regularization. The researchers found that dropping positions with low attribution (features the model deems unimportant) actually accelerates training but leads to severe overfitting. Conversely, dropping high-attribution positions—the features the model relies on most—acts as a powerful regularizer.
As shown in the loss curves, dropping low-attribution positions (blue line) leads to the lowest training loss but the highest validation loss, indicating the model is merely perfecting its reliance on shortcuts. AD-DROP targets these high-attribution features to break this cycle.
Methodology: The AD-DROP Framework
AD-DROP operates through a four-step process integrated into the fine-tuning loop:
- Pseudo-Labeling: A standard forward pass generates a "pseudo-label" based on the model's current state.
- Attribution Calculation: Using the pseudo-label, the model calculates attribution scores for all self-attention positions via Gradient Attribution (GA). This identifies which attention weights most strongly influence the prediction.
- Strategic Masking: Regions with the highest attribution scores are identified, and a mask is generated to randomly drop a portion of these critical positions.
- Second Forward Pass: A second pass is performed with the masks applied. The model is forced to make a prediction without its most "trusted" features, and the resulting loss is used for backpropagation.
To maintain training stability, the authors employ a Cross-Tuning strategy, alternating between standard fine-tuning and AD-DROP across epochs. This prevents the model from entirely discarding essential linguistic information by excessively neglecting high-attribution positions.
Experimental Results
AD-DROP was evaluated across the GLUE benchmark, token-level tasks (NER, MT), and out-of-distribution (OOD) datasets like HANS and PAWS-X.
Performance Gains
On the GLUE benchmark, BERT with AD-DROP achieved an average improvement of 1.98 points on development sets and 0.87 points on test sets. RoBERTa showed similar gains (+1.29 dev / +0.62 test). Notably, the method proved highly effective in low-data regimes; on QNLI, a model using AD-DROP with only 60% of the training data matched the performance of a standard model using 100%.
Robustness and Generalization
The most significant impact was observed on OOD datasets. AD-DROP boosted performance on PAWS-X by 3.35 points. This suggests that by hiding easy shortcuts during training, AD-DROP forces the model to capture deeper linguistic structures that remain valid even when dataset-specific biases are removed.
Conclusion
AD-DROP shifts the paradigm of dropout from random noise to strategic intervention. By identifying and hiding high-attribution features, it prevents PrLMs from falling into the "shortcut trap." While it introduces some computational overhead due to the attribution step, the resulting gains in robustness and data efficiency make it a powerful tool for fine-tuning large-scale language models on diverse downstream tasks.
Summary updated