Introduction
Large-scale pre-trained models like BERT have revolutionized Natural Language Processing (NLP). However, when fine-tuned on smaller datasets, these high-capacity models often suffer from a "distraction" problem. They tend to overfit by focusing on irrelevant or misleading tokens rather than the core semantic drivers of a task. For instance, in a sentiment analysis task, a model might fixate on a single negative word in an otherwise positive sentence, leading to an incorrect classification.
Self-Supervised Attention (SSA)
To address this, we introduce Self-Supervised Attention (SSA). SSA is a novel technique designed to regularize BERT by teaching it to distinguish between task-relevant keywords and background noise. Unlike traditional methods that might rely on external knowledge bases or manual annotation, SSA generates "importance labels" through a self-supervised probing mechanism.
Methodology
The SSA framework operates through an iterative two-step process:
1. SSA Label Generation
The model identifies important tokens by observing its own sensitivity to perturbations. Given a sentence $S$, the model creates a masked version $S'$ by hiding a specific token $t_i$. If masking $t_i$ causes the model's prediction to "flip" (e.g., from negative to positive), $t_i$ is assigned an importance label of 1. If the prediction remains stable, the label is 0.
As shown in the figures above, the presence of the word "foul" initially leads the model to a negative prediction (confidence 0.713). Masking the word reveals that the remaining context actually supports a positive sentiment (confidence 0.698), thereby identifying "foul" as a critical token for the model's decision-making process.
2. Model Integration
These importance labels are integrated into the training process via two primary architectures:
- Co-training: The model optimizes a joint loss function, simultaneously learning the primary task and the auxiliary task of predicting SSA importance labels.
- SSA-Hybrid (SSA-H): A more sophisticated approach where a dedicated SSA layer calculates importance scores for all tokens. These scores weight the token embeddings, effectively amplifying signals from important words while muting noise before final classification.
Experimental Evaluation
The researchers evaluated SSA on the GLUE benchmark and Aspect-Based Sentiment Analysis (ABSA) datasets (SentiHood and SemEval-2014).
Key Results
- Performance Gains: The SSA-Hybrid model improved the average GLUE score for BERT-base from 78.3 to 79.3. The most significant improvements occurred on smaller datasets, such as RTE (66.4% to 70.3%) and CoLA (52.1 to 54.1).
- Robustness: SSA-Hybrid consistently outperformed standard data augmentation techniques like BERT-EDA, suggesting that learning token importance is a more effective regularizer than synthetic noise.
- Scalability: When applied to RoBERTa-large, SSA achieved an absolute increase of 0.5 on the average GLUE score, demonstrating its utility even for highly optimized state-of-the-art models.
Discussion and Limitations
SSA provides a dual benefit: it improves performance on low-resource tasks and enhances model interpretability, as the generated importance scores often align with human intuition. However, the method faces challenges when sentiment is implied through complex logic rather than explicit keywords. Furthermore, the current random masking strategy may struggle with multi-word phrases where meaning is distributed across consecutive tokens.
Future research will explore more sophisticated sampling strategies for the probing phase, potentially utilizing interpretability tools like LIME or GradCAM to improve efficiency and capture complex linguistic dependencies.
Summary updated