Dynamic Integration of Task-Specific Adapters for Class Incremental Learning

Jiashuo Li, Shaokun Wang, Bo Qian, Yuhang He, Xing Wei, Qiang Wang, Yihong Gong

TL;DR

The paper introduces Dynamic Integration of task-specific Adapters (DIA), a novel framework for learning new visual classes sequentially without storing past data or forgetting old ones. By routing patch tokens through task-specific adapters and aligning features at the patch level, DIA achieves state-of-the-art accuracy while slashing computational costs by up to 90% compared to existing methods.

What Problem Does This Paper Address?

Class Incremental Learning (CIL) allows AI models to continuously learn new categories over time. However, standard approaches rely on saving a subset of old data (exemplars) to prevent "catastrophic forgetting." In many real-world scenarios, strict privacy regulations and storage limits make saving past data impossible, leading to a sub-field called Non-Exemplar Class Incremental Learning (NECIL).

Without access to old data, current models suffer from two primary issues:

  1. Compositionality Deficiency: Tuning a single shared parameter space mixes task knowledge, causing severe task interference. While Parameter-Efficient Tuning (PET) methods try to isolate tasks using prompts, they often require multiple expensive forward passes or ignore rich, localized image details.
  2. Model Alignment Deficiency: As a model learns new tasks, its internal feature representations drift, distorting the decision boundaries for old classes. Standard fixes that generate fake features via simple Gaussian distributions fail to capture the true, complex distribution of the data.

Methods

The authors propose DIA (Dynamic Integration of task-specific Adapters), which tackles these issues using two core components:

  1. Task-Specific Adapter Integration (TSAI): Instead of a single shared prompt or model, TSAI introduces a lightweight adapter and a task signature vector for each new task, running in parallel with the Vision Transformer's (ViT) MLP layer. Image tokens are dynamically routed to relevant adapters based on these signature vectors, allowing the model to aggregate task-specific knowledge flexibly in a single forward pass.
  2. Patch-Level Model Alignment:
  3. Patch-Level Distillation Loss (PDL): This evaluates how much each patch token contributes to learning the new task. It penalizes feature drift only in non-contributory tokens, preserving old knowledge while leaving room for new learning.
  4. Patch-Level Feature Reconstruction (PFR): Instead of sampling from a generic Gaussian distribution, PFR dynamically reconstructs old class features by combining stored old class prototypes with relevant patch tokens from the current task's images. This creates highly accurate pseudo-features to recalibrate the classifier's decision boundaries.
Overview of the DIA framework showing Task-Specific Adapter Integration and Patch-Level Alignment.

Datasets

The framework was evaluated on four diverse and challenging image classification benchmarks:

  • CIFAR-100: A standard image classification benchmark with 100 classes.
  • CUB-200: A fine-grained dataset consisting of 200 bird species.
  • ImageNet-R: A dataset containing 200 classes of ImageNet categories with various artistic renditions (introducing a significant domain gap).
  • ImageNet-A: A dataset of 200 classes containing naturally occurring hard/adversarial examples.

For evaluation, classes were split equally into 10 or 20 incremental learning steps.

Key Insights and Ideas

  • The Power of Patch-Level Granularity: Most prior PET methods focus on the global class ([CLS]) token for prompt selection. DIA demonstrates that looking inside the image at individual patch tokens provides the granular control needed to balance stability (remembering the old) and plasticity (learning the new).
  • Smart Feature Reconstruction over Naive Sampling: Traditional exemplar-free methods assume old features follow a simple Gaussian distribution. DIA proves this assumption causes severe decision boundary distortion. By borrowing real patch tokens from new images that share semantic relevance with old prototypes, DIA creates much more realistic pseudo-features for alignment.
Comparison of feature reconstruction methods showing how PFR aligns closer to actual distributions than Gaussian sampling.
  • Efficiency is Not a Luxury: By avoiding multiple forward passes (unlike competing methods like EASE), DIA demonstrates that parameter isolation doesn't have to come with a massive computational penalty.

Key Results

  • State-of-the-Art Accuracy: DIA consistently outperformed existing prompt- and adapter-based methods. On the challenging ImageNet-R dataset (10 tasks), DIA achieved an average accuracy of 85.61%, outperforming the prompt-based CPrompt by 2.69% and adapter-based EASE by 3.88%.
  • Massive Efficiency Gains: DIA requires only 0.17M trainable parameters per task and takes 17.91B FLOPS for inference. This represents a 90% reduction in computational complexity compared to EASE (177.11B FLOPS) while delivering superior accuracy.
  • Long-Sequence Robustness: In a longer 20-task setup, DIA maintained its edge, achieving SOTA average accuracy on ImageNet-R (83.51%).

Limitations and Future Work

The authors note that while DIA significantly reduces feature drift, it still relies on storing class prototypes (mean feature vectors) from previous tasks. Although prototypes consume negligible memory compared to raw images, a completely prototype-free approach would be even more privacy-preserving. Additionally, future work could explore extending this patch-level dynamic routing mechanism to other modalities, such as large language models or multimodal vision-language tasks.

Summary updated

BibTeX
@inproceedings{li2025dynamic,
  author = {Jiashuo Li and Shaokun Wang and Bo Qian and Yuhang He and Xing Wei and Qiang Wang and Yihong Gong},
  title = {{Dynamic Integration of Task-Specific Adapters for Class Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02844},
}
Figure