Abstract
Continual Learning (CL) aims to enable artificial intelligence models to acquire new knowledge sequentially without suffering from catastrophic forgetting. In the context of Rehearsal-Free Continual Learning (RFCL), where privacy and storage constraints prevent the use of old data, recent research has focused on prompt-learning with large pre-trained models. However, these methods often struggle with domain gaps and computational inefficiencies. This paper discusses Continual Adapter (C-ADA), a framework that utilizes parameter-expandable adapter layers and a Scale and Shift (S&S) module to achieve state-of-the-art performance with significantly lower computational overhead than prompt-based alternatives.
Introduction
The primary challenge in Continual Learning is maintaining a balance between plasticity—the ability to learn new tasks—and stability—the ability to retain previously acquired knowledge. While rehearsal-based methods use stored data to refresh memory, Rehearsal-Free Continual Learning (RFCL) is often preferred for its efficiency and data privacy.
Recently, the field has trended toward using Vision Transformers (ViT) combined with prompt learning. These methods typically use a "key-query" matching mechanism to select task-specific prompts from a pool. However, this approach faces two critical hurdles: first, the domain gap between pre-training data and downstream tasks often leads to incorrect prompt selection; second, the requirement for multiple forward passes to identify and then apply prompts creates a significant efficiency bottleneck.
The C-ADA Framework
To address these limitations, the Continual Adapter (C-ADA) framework moves away from prompt-based selection in favor of a more direct architectural expansion. C-ADA introduces three core components designed to maximize efficiency and accuracy in RFCL settings.
1. Continual Adapter Layer (CAL)
Instead of relying on a matching system to pick prompts, C-ADA utilizes expandable adapter layers. For every new task, a small set of new weights is added to the CAL while the weights from previous tasks remain frozen. This architecture ensures that the model has dedicated "room" to learn new features without the risk of overwriting existing knowledge, effectively bypassing the instability of key-query matching.
2. Scale and Shift (S&S) Module
To mitigate the domain gap between the pre-trained backbone and the target data, C-ADA employs a lightweight Scale and Shift module. This module performs feature-space alignment, revising the pre-trained model's output to better suit the specific characteristics of the downstream task before the learning process begins. This alignment is crucial for tasks that differ significantly from the original pre-training distribution.
3. Orthogonal Loss and Constraints
To ensure that new knowledge does not interfere with old tasks, C-ADA applies a mathematical constraint using the Gram-Schmidt process and an orthogonal loss function. By forcing the weights of new tasks to be perpendicular (orthogonal) to those of previous tasks, the model creates isolated subspaces for different skills, preventing gradient interference.
Experimental Results
The researchers evaluated C-ADA across several rigorous benchmarks, including Class-Incremental Learning (CIL) and Domain-Incremental Learning (DIL).
Accuracy and Performance
C-ADA consistently outperformed the previous state-of-the-art (SOTA), CODA-Prompt, across multiple datasets:
- ImageNet-R (10-task): C-ADA achieved an accuracy of 76.66%, a 2.7% improvement over CODA-Prompt.
- Split CIFAR-100: The model reached 87.18% accuracy, surpassing previous SOTA by 2.59%.
- CORe50: In domain-incremental settings, C-ADA outperformed specialized methods like S-Prompts by over 6%.
Computational Efficiency
One of the most significant advantages of C-ADA is its efficiency. Because it eliminates the need for a separate forward pass to select prompts, it requires only 17.6 GFLOPs, compared to the 35.2 GFLOPs required by prompt-based competitors. This effectively doubles the training and inference speed while maintaining a negligible parameter growth (less than 1% of the total model size).
Conclusion and Future Work
C-ADA demonstrates that adapters can be more effective than prompts for rehearsal-free continual learning. By focusing on architectural plasticity and feature alignment rather than prompt matching, C-ADA achieves superior accuracy with half the computational cost.
While the parameter growth is minimal, future research may focus on pruning or compressing these adapters for scenarios involving hundreds of tasks. Additionally, exploring "blurry" task boundaries—where the model must identify task shifts without explicit signals—remains a promising avenue for making C-ADA even more robust in real-world applications.
Summary updated