Introduction
In the current landscape of machine learning, the "pre-train then adapt" paradigm has become standard. Large-scale models, such as Vision Transformers (ViT), are fine-tuned on specific downstream tasks to achieve high performance. However, when these models are required to learn a sequence of tasks—a field known as Continual Learning (CL)—they encounter the challenge of catastrophic forgetting. As the model adapts to a new task, it often overwrites the weights necessary for previous ones, leading to a sharp decline in performance on earlier data.
To address this, researchers have turned to Parameter-Efficient Tuning (PET). PET methods, such as LoRA, Adapters, or Prefix-Tuning, keep the backbone model frozen and only train a small set of additional parameters. While promising, existing PET-based CL methods often suffer from architecture rigidity (being tied to specific Transformer prompts) and the "selection trap," where the model fails to correctly identify which task-specific parameters to use during inference. This paper introduces the Learning-Accumulation-Ensemble (LAE) framework, a unified approach that makes PET modules architecture-agnostic and more robust for continual learning.
Overcoming the Limitations of Current Methods
Existing state-of-the-art methods, such as DualPrompt, rely on a "prompt pool" and a query mechanism to select the appropriate parameters at test time. This approach has two primary flaws:
- Architecture Rigidity: These methods are often designed specifically for Transformer architectures, making them incompatible with convolutional neural networks (ConvNets) or other PET methods like LoRA.
- The Selection Trap: As the number of tasks increases, the query mechanism becomes noisy. Inaccurate selection of the task-specific prompt leads to a significant drop in accuracy, especially in long-term learning scenarios.
The LAE Framework
LAE treats PET as a general, plug-and-play component for CL through three innovative designs:
1. Learning with Calibrated Speed
Different PET modules possess varying learning dynamics. For instance, the authors demonstrate that "Prefix-Tuning" typically adapts much slower than "Adapters." To create a truly unified framework, LAE introduces a calibration strategy involving gradient compensation and learnable scaling. This aligns the adaptation speeds of different PET modules, ensuring an optimal balance between plasticity (the ability to learn new tasks) and stability (the ability to retain old knowledge).
2. Accumulation of Multi-task Knowledge
Inspired by the human brain’s Complementary Learning Systems, LAE maintains two distinct PET modules:
- Online PET: This module rapidly adapts to the current task, functioning similarly to the hippocampus.
- Offline PET: This module slowly accumulates knowledge from the online module over time using an Exponential Moving Average (EMA), mimicking the neocortex's role in long-term memory consolidation.
3. Ensemble of Two Experts
Rather than relying on a noisy selection mechanism, LAE utilizes both the Online and Offline experts during inference. The framework employs an energy-based indicator—derived from the confidence of softmax outputs—to ensemble the predictions. This bypasses the selection trap, providing a more robust prediction regardless of the number of tasks learned.
Experimental Evaluation
The LAE framework was evaluated across several rigorous benchmarks, including CIFAR100, ImageNet-R (200 classes in diverse styles), and DomainNet for cross-domain performance. While the primary experiments utilized ViT-B/16, the authors also validated the framework on Swin Transformer and ConvNeXt, confirming its architecture-agnostic nature.
Key Results
- State-of-the-Art Performance: LAE with Adapters outperformed previous leaders like DualPrompt and ESN by 1.3% on CIFAR100 and 3.6% on ImageNet-R in last-incremental accuracy.
- Efficiency: LAE is remarkably parameter-efficient. For example, the LAE (A10) configuration uses only 0.15M new parameters, compared to the 1.03M required by DualPrompt, while delivering superior results.
- Long-term Robustness: In 20-task scenarios, the performance gap between LAE and its competitors widened, suggesting that the accumulation and ensemble strategy is significantly more effective at mitigating long-term forgetting than prompt-pool approaches.
Conclusion and Future Work
The LAE framework demonstrates that Continual Learning does not require architecture-specific tricks. By treating PET as a general engine and focusing on calibrated adaptation and knowledge accumulation, LAE achieves high accuracy without the need for a memory buffer to store old data.
While highly effective, the framework currently requires two forward passes during inference due to the dual-expert ensemble, which doubles the computational cost at test time. Future research may focus on more sophisticated knowledge compression techniques to distill the multi-task knowledge into a single module, as well as scaling the framework to even larger, non-overlapping datasets to further test its real-world generalizability.
Summary updated