Integrating Task-Specific and Universal Adapters for Pre-Trained Model-based Class-Incremental Learning

Yan Wang, Da-Wei Zhou, Han-Jia Ye

TL;DR

This paper introduces TUNA, a novel approach for Class-Incremental Learning (CIL) that leverages pre-trained models. TUNA combines task-specific adapters, which learn specialized features for each new class, with a universal adapter that captures shared knowledge across tasks. This dual-adapter strategy, coupled with an entropy-based selection mechanism, significantly improves performance on CIL benchmarks by mitigating catastrophic forgetting and better handling visually similar classes.

What Problem Does This Paper Address?

Class-Incremental Learning (CIL) aims to build AI systems that can continuously learn new classes over time without forgetting previously acquired knowledge. This is a critical challenge for real-world applications where data arrives sequentially. A major hurdle is "catastrophic forgetting," where learning new information overwrites old knowledge. Recent advancements in pre-trained models (PTMs) offer a promising direction, as they possess strong generalization capabilities. However, existing PTM-based CIL methods often struggle with two key issues: 1) selecting the correct adapter for a given task during inference can be error-prone, especially with ambiguous inputs, and 2) they tend to focus too much on task-specific features, leading to confusion between visually similar classes from different tasks. This paper addresses these limitations by proposing a method that effectively integrates both specialized and generalized knowledge.

Methods

TUNA introduces two main innovations:

  • Task-Specific Adapters with Orthogonal Loss: The core idea is to use lightweight "adapters" (small neural network modules) that are inserted into the layers of a frozen pre-trained model. For each new task, a task-specific adapter is trained. To prevent interference between adapters and encourage learning unique features, an "orthogonal loss" is applied. This loss ensures that the new adapter's learned representations are distinct from those of previous adapters.
  • Universal Adapter via Fusion: To capture knowledge shared across tasks, TUNA fuses the learned task-specific adapters into a single "universal adapter." This fusion process involves combining the "sign" and "magnitude" of adapter weights to create a robust representation of common features.
  • Entropy-Based Adapter Selection: During inference, when presented with an input, TUNA doesn't blindly pick an adapter. Instead, it uses an "entropy-based selection" mechanism. This method leverages the idea that a model's prediction uncertainty (measured by entropy) can indicate how well an adapter matches the input. Lower entropy (higher confidence) suggests a better match, allowing TUNA to select the most appropriate task-specific adapter.
  • Dual-Adapter Inference: Finally, TUNA combines the predictions from the selected task-specific adapter and the universal adapter. This ensemble approach allows the model to benefit from both specialized (task-specific) and generalized (universal) knowledge, leading to more accurate and robust predictions, especially for visually similar classes.

Datasets

The paper evaluates TUNA on four benchmark datasets:

  • CIFAR100: A standard dataset for image classification.
  • ImageNet-R (Renditions): A dataset designed to test robustness to variations in image style and rendition.
  • ImageNet-A (Adversarial): A dataset containing images that are challenging for standard models, often due to adversarial perturbations or domain shifts.
  • ObjectNet: A dataset that presents objects in unusual contexts and orientations, testing generalization beyond typical training distributions.

The paper uses a "B-m Inc-n" notation for class splits, where 'm' is the number of initial classes and 'n' is the number of classes added in each incremental step. They also conduct experiments on a "large-base" setting to further assess robustness.

Key Insights and Ideas

  • The power of disentanglement: Separating task-specific knowledge (via task-specific adapters) from general knowledge (via a universal adapter) is a powerful strategy for CIL. This decomposition helps address both forgetting and confusion between similar classes.
  • Entropy as a reliable adapter selector: The paper empirically demonstrates that prediction entropy is a strong indicator of adapter-task alignment. This provides a principled and effective way to dynamically select the best adapter for an input without relying on brittle key-query matching.
  • Fusion for robustness: Combining task-specific and universal adapters at inference time creates a synergistic effect. The universal adapter acts as a "stabilizer," providing a baseline of general knowledge that complements the fine-grained, specialized features of the task-specific adapter.
  • Orthogonality is key for distinct adapters: The orthogonal loss is crucial for ensuring that each task-specific adapter learns truly unique features, minimizing interference and maximizing the distinctiveness of each "expert."

Key Results

TUNA achieves state-of-the-art performance across all four benchmark datasets (CIFAR100, ImageNet-R, ImageNet-A, and ObjectNet). For instance, on CIFAR100 B0 Inc5, TUNA achieves an accuracy of 94.44% (A), significantly outperforming other methods. The paper also shows consistent improvements over the second-best method in performance curves across various incremental stages. Notably, TUNA is exemplar-free, meaning it doesn't store any past data, which is a significant advantage in memory-constrained scenarios, yet it still outperforms many exemplar-based methods.

Limitations and Future Work

The authors acknowledge that the inference process of TUNA, which involves multiple forward passes (one for each task-specific adapter and one for the universal adapter), can increase computational time. They suggest that future work should focus on designing methods to speed up this algorithm.

Summary updated

BibTeX
@inproceedings{wang2025integrating,
  author = {Yan Wang and Da-Wei Zhou and Han-Jia Ye},
  title = {{Integrating Task-Specific and Universal Adapters for Pre-Trained Model-based Class-Incremental Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure