Abstract
Large Language Models (LLMs) face significant challenges in continual learning, primarily catastrophic forgetting and loss of plasticity. We present DATA (Decomposed Attention-based Task Adaptation), a rehearsal-free framework that decouples knowledge into high-rank (task-specific) and low-rank (task-shared) adapters. By employing an attention-based weighting mechanism and orthogonality constraints, DATA achieves state-of-the-art performance across multiple benchmarks while maintaining model plasticity without the need for historical data storage.
Introduction
In the era of Large Language Models, real-world demands are dynamic, requiring models to undergo Continual Learning (CL) to adapt to new domains over time. However, CL is plagued by two primary issues: Catastrophic Forgetting (CF), where new tasks overwrite essential weights for old ones, and Loss of Plasticity, where regularization efforts to prevent forgetting render the model unable to learn new information effectively.
Traditional solutions often rely on rehearsal—storing and replaying past data—which is computationally expensive and raises privacy concerns. DATA addresses these challenges in a rehearsal-free manner, balancing stability and plasticity through an innovative architectural approach.
Methodology
The core of the DATA framework is a multi-branch architecture that treats rank as a knowledge filter. The methodology consists of several key components:
- Dual-Rank Adapters: DATA implements a low-rank branch to capture stable, shared knowledge across tasks and a high-rank branch to aggregate unique, task-specific features. Empirical findings suggest that low-rank embeddings effectively mitigate distribution shifts, while high-rank embeddings capture task-specific "spiky" distributions.
- Decomposed Component Weighting: Instead of static addition, DATA uses a learnable, attention-based weighting strategy. By utilizing "keys" and "queries," the model dynamically adjusts the influence of different adapters based on the input, allowing for nuanced knowledge fusion.
- Expansion and Orthogonality: As new tasks arrive, the model expands its learnable components while freezing previous ones. An orthogonality constraint is applied to ensure that the mathematical representations of different tasks do not interfere with one another.
- Stochastic Restoration: To combat the loss of plasticity, the framework periodically restores a small portion of the weights toward the original pre-trained state, preventing the model from drifting into an unadaptable state.
Experiments and Results
DATA was evaluated across three major benchmarks (Standard CL, Long Sequence, and TRACE) using diverse architectures including T5-Large, Llama2-7B, and Llama3.1-8B.
Key results include:
- Superior Accuracy: On the Llama2-7B Long Sequence benchmark, DATA achieved a Final Performance (FP) of 76.9%, significantly outperforming baselines like SeqLoRA (73.7%) and O-LoRA (67.9%).
- Minimal Forgetting: DATA maintained near-zero or even negative forgetting scores, indicating that learning new tasks occasionally improved performance on historical ones.
- Efficiency: Despite its multi-branch structure, DATA remains highly efficient. For Llama2-7B, it required fewer FLOPs ($4.6 \times 10^{16}$) and achieved faster prediction times (141ms) compared to competitive methods like O-LoRA ($8.8 \times 10^{16}$ FLOPs, 196ms).
Discussion and Conclusion
DATA provides a sophisticated blueprint for "living" models that can grow and adapt in real-time without losing foundational knowledge. While the decomposed weighting strategy adds some architectural complexity, it proves that rehearsal-free continual learning is a viable and efficient path for LLMs. Future work will focus on managing parameter expansion for extremely long task sequences to prevent potential parameter explosion. In summary, DATA successfully navigates the stability-plasticity dilemma, ensuring LLMs remain both sharp and smart over time.
Summary updated