TL;DR
This paper introduces Global Alignment, a novel approach to continual learning that prevents "catastrophic forgetting" by grounding task-specific data representations in stable, pre-trained token semantics. By learning to "wire" (interpolate) these pre-trained features rather than distorting them through full fine-tuning, the authors achieve state-of-the-art performance across multiple benchmarks without relying on a memory-heavy experience replay buffer.
What Problem Does This Paper Address?
The "holy grail" of continual learning (CL) is a model that can learn a sequence of tasks without forgetting what it learned previously—a phenomenon known as catastrophic forgetting.
A primary cause of this forgetting is gradient interference. When a model learns a new task, the updates (gradients) required for that task might point in the opposite direction of the gradients needed for previous tasks. This effectively "overwrites" old knowledge. The authors identify two main culprits behind this interference:
- Correlations between hidden data representations: If representations for different tasks overlap or drift too much, updates for one task disrupt the others.
- Correlations between classifier class vectors: If the weights mapping representations to classes are poorly initialized, they cannot effectively distinguish between tasks.
Methods
The authors propose a "Global Alignment" strategy to ensure that data representations across all tasks remain compatible. Instead of traditional fine-tuning, which can warp the representation space, they propose three transformer-based architectures that learn task-specific compositions of frozen, pre-trained token representations:
- Wire-Fixed: This model learns task-specific attention weights to interpolate pre-trained tokens into a final representation (using the
[CLS]token). It essentially "wires" existing semantic knowledge to fit the new task. - Wire-Neigh (Wiring with Neighbor Attention): To increase capacity, this version allows the model to look at "neighboring" tokens in the embedding space (e.g., finding "sad" when the input is "crying"), providing a richer search space for task-relevant information.
- C-LoRA (Controlled LoRA): A variation of Low-Rank Adaptation (LoRA) that uses a small scaling factor to keep the adapted representations close to the original pre-trained ones, maintaining global alignment.
Additionally, they employ a Probing-then-Fine-tuning (PF) strategy. When starting a new task, they first freeze the encoder and train only the classifier (probing). This ensures the class vectors are well-positioned before the entire model is tuned, further reducing interference.
Datasets
The models were evaluated on four sequences of NLP tasks:
- Yahoo: 5 tasks for news question-answer categorization.
- DB: 5 tasks for DBPedia article classification.
- News Series: A challenging sequence of diverse tasks including news classification (AG_news), paraphrase detection (MRPC), text entailment (RTE), and sentiment analysis (SST).
- All: A long sequence combining all the above datasets to test long-term stability.
Key Insights and Ideas
- Pre-training as an Anchor: The core insight is that pre-trained language models already contain a "global" semantic space. By forcing task representations to be interpolations of these stable points, the model naturally avoids the destructive drift seen in standard fine-tuning.
- Visualizing Alignment: T-SNE plots reveal that without global alignment, representations for unseen tasks overlap and become indistinguishable. With global alignment, tasks remain separated and clear throughout the entire learning process.
- Interpretability: Because the representations are tied to pre-trained tokens, the authors could "decode" what the model was thinking. For a science-related task, the model's internal representation actually mapped back to tokens like "blog," "web," and "site," showing that it learns semantically meaningful alignments.
Key Results
- SOTA without Replay: The proposed models outperformed existing CL methods (like EWC or A-GEM) and even some replay-based methods, despite not storing any previous data.
- Superior Stability: On the "All" task sequence, the
Wire-Neigh + PFmodel achieved an average accuracy of 90.18%, significantly higher than standard fine-tuning (60.92%) and traditional LoRA (77.37%). - Class-Incremental Performance: Even when trained in a task-incremental way (knowing which task is which), the models performed exceptionally well in class-incremental evaluation (where the model must pick the right class from all tasks combined).
Limitations and Future Work
- Attention Drift: While representations are aligned, the model might still "shift" its attention away from previous task-related tokens over time.
- Domain Dependence: The method relies heavily on the quality of the pre-trained semantic space. It might struggle in niche domains (e.g., highly technical medical or legal text) where pre-trained tokens don't capture the necessary nuances.
- Computational Overhead: The
Wire-Neighmodel requires searching for neighbors in the token vocabulary, which adds some computational complexity, though the authors suggest ways to optimize this.
Summary updated