Adapt before Continual Learning

Aojun Lu, Tao Feng, Hangjie Yuan, Chunhui Ding, Yanan Sun · OpenReview

Abstract

Continual Learning (CL) seeks to enable neural networks to incrementally acquire new knowledge (plasticity) while retaining existing knowledge (stability). Although pre-trained models (PTMs) have provided a strong foundation for CL, existing approaches face a fundamental challenge in balancing these two competing objectives. Current methods typically address stability by freezing the PTM backbone, which severely limits the model's plasticity, particularly when incoming data distribution diverges largely from the pre-training data. Alternatively, sequentially fine-tuning the entire PTM can adapt to new knowledge but often leads to catastrophic forgetting, highlighting the critical stability-plasticity trade-off in PTM-based CL. To address this limitation, we propose Adapting PTMs before the core CL process (ACL), a novel framework that introduces a plug-and-play adaptation phase prior to learning each new task. During this phase, ACL refines the PTM backbone by aligning embeddings with their original class prototypes while distancing them from irrelevant classes. This mechanism theoretically and empirically demonstrates desirable balance between stability and plasticity, significantly improving CL performance across benchmarks and integrated methods.

Introduction

In the field of Continual Learning (CL), artificial intelligence models must navigate the "Stability-Plasticity Dilemma." A model must be plastic enough to integrate new information while remaining stable enough to prevent the erasure of previously acquired knowledge, a phenomenon known as catastrophic forgetting.

With the advent of large-scale Pre-Trained Models (PTMs) such as ViT or CLIP, the prevailing strategy has been to freeze the model backbone and train only minimal auxiliary components, such as prompts or adapters. While this approach ensures high stability, it often results in a "plasticity-starved" model. When new data exhibits a significant domain gap from the pre-training distribution, a frozen backbone becomes a performance bottleneck. Conversely, full-model fine-tuning typically leads to rapid forgetting. The ACL framework addresses this by realigning the PTM’s feature space for new tasks without compromising the foundational knowledge inherent in the PTM.

The ACL Framework

The core of the proposed solution is a two-phase approach executed for every new task in the sequence:

  1. Adaptation Phase (ACL Phase): Before the primary learning begins, the model undergoes a rapid adaptation. Both the backbone and any lightweight modules are updated using a specialized ACL Loss. This loss encourages the model to pull an image's embedding closer to its correct "class prototype" (mean embedding) while pushing it away from incorrect ones. This phase effectively "prepares the soil," ensuring the feature space is optimized for the incoming task.
  2. Core Learning Phase: Once the adaptation is complete, the backbone is frozen, and a standard CL algorithm (e.g., L2P, DualPrompt, or MOS) is employed to finalize task-specific training.
The ACL framework introduces an adaptation phase to refine PTM embeddings before the core learning phase begins.

ACL is designed as a plug-and-play framework. It does not replace existing CL algorithms but enhances them by providing a more receptive feature representation for the core learning process.

Experimental Setup

To rigorously test the framework's ability to handle domain gaps, the researchers utilized datasets where plasticity is critical:

  • ImageNet-R (Rendition): Art, cartoons, and sketches of ImageNet classes.
  • ImageNet-A (Adversarial): Challenging real-world images that frequently cause misclassification.
  • ObjectNet: Objects shown in unusual orientations and backgrounds.

Evaluation followed incremental learning setups, such as 20 tasks consisting of 10 classes each, to simulate a continuous stream of incoming data.

Key Results and Insights

The integration of ACL across six state-of-the-art CL methods (L2P, DualPrompt, FeCAM, RanPAC, SSIAT, and MOS) yielded consistently superior results.

  • Performance Gains: ACL improved "Last Accuracy" (final performance after all tasks) by up to 7.87% on the most challenging benchmarks.
  • Solving the Dilemma: While existing methods maintained decent stability, their plasticity was often the limiting factor. ACL significantly boosted plasticity—the ability to learn the current task effectively—while keeping forgetting rates stable at approximately 10%.
  • The Backbone Bottleneck: A critical insight from the study is that freezing the backbone is the primary cause of poor performance in PTM-based CL. Even a single epoch of full-backbone adaptation provides a performance boost that cannot be achieved by simply extending the training time of adapters.
Comparative performance showing that ACL significantly improves plasticity and overall accuracy across multiple CL methods while maintaining stability.

Conclusion

Adapt before Continual Learning (ACL) provides a robust mechanism for balancing stability and plasticity in PTM-based systems. By anchoring new learning to the model's existing internal logic through class prototypes, it prevents weight drift and focuses the model's attention on relevant features rather than background noise.

While highly effective, the framework does introduce some computational overhead, requiring approximately 7GB of additional GPU memory to calculate gradients for the entire backbone during the adaptation phase. Future research may explore more efficient adaptation schedules or extend this "adapt-then-learn" philosophy to complex tasks beyond image classification, such as object detection and generative modeling.

Summary updated

BibTeX
@inproceedings{lu2026adapt,
  author = {Aojun Lu and Tao Feng and Hangjie Yuan and Chunhui Ding and Yanan Sun},
  title = {{Adapt before Continual Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i29.39584},
}
Figure