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

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

Abstract

Class-Incremental Learning (CIL) requires a learning system to continually learn new classes without forgetting. Existing pre-trained model-based CIL methods often freeze the pre-trained network and adapt to incremental tasks using additional lightweight modules such as adapters. However, incorrect module selection during inference hurts performance, and task-specific modules often overlook shared general knowledge, leading to errors on distinguishing between similar classes across tasks. To address the aforementioned challenges, we propose integrating Task-Specific and Universal Adapters (TUNA) in this paper. Specifically, we train task-specific adapters to capture the most crucial features relevant to their respective tasks and introduce an entropy-based selection mechanism to choose the most suitable adapter. Furthermore, we leverage an adapter fusion strategy to construct a universal adapter, which encodes the most discriminative features shared across tasks. We combine task-specific and universal adapter predictions to harness both specialized and general knowledge during inference. Extensive experiments on various benchmark datasets demonstrate the state-of-the-art performance of our approach.

Introduction

Class-Incremental Learning (CIL) represents a significant milestone toward achieving human-like artificial intelligence: the capacity to learn new tasks sequentially while retaining knowledge from previous ones. The primary obstacle in this field is "catastrophic forgetting," where new information overwrites existing neural representations.

Modern approaches frequently leverage Pre-Trained Models (PTMs), such as Vision Transformers, by adding lightweight "adapters" or "prompts" for each incremental task. While effective, these methods face two critical challenges:

  1. Brittle Selection Mechanisms: At inference time, the model must identify which task-specific module to activate. Traditional "key-query" matching often fails when tasks are semantically similar or when data distributions shift.
  2. Neglect of Shared Knowledge: By focusing exclusively on task-specific features, models often fail to capture general knowledge shared across tasks. This leads to confusion between similar classes learned at different times, such as distinguishing a "husky" in an early task from a "wolf" in a later one.

The TUNA Framework

To overcome these hurdles, we introduce TUNA (Integrating Task-Specific and Universal Adapters), a framework that disentangles specialized task knowledge from general shared knowledge through a three-stage process.

The TUNA framework consists of three stages: Training Stage for orthogonal adapters, Fusing Stage for the universal adapter, and Inference Stage for dual-stream prediction.

1. Training Stage: Orthogonal Task-Specific Adapters

For each new task, a dedicated lightweight adapter is trained. To ensure these adapters capture unique information and avoid redundancy, we employ an orthogonality loss. This mathematical constraint forces new adapters to learn features that are "perpendicular" to those learned by previous adapters, effectively minimizing interference between tasks.

2. Fusing Stage: Universal Adapter Construction

A key innovation of TUNA is the creation of a "Universal Adapter" that aggregates knowledge across all tasks. This is achieved through a weight fusion strategy:

  • Flattening: The weights of all task-specific adapters are flattened into vectors.
  • Sign-Voting: The universal adapter's weights are determined by a majority vote on the sign (positive or negative) of the task-specific weights.
  • Magnitude Preservation: The magnitude of each universal weight is set to the maximum absolute value found among the task-specific adapters, preserving the strongest signals.

3. Inference Stage: Dual-Stream Ensemble

During inference, TUNA utilizes a dual-stream approach. First, an entropy-based selection mechanism identifies the most appropriate task-specific adapter. The input is passed through all adapters, and the one yielding the lowest entropy (highest confidence) is selected. Second, the input is passed through the universal adapter. The final prediction is an ensemble of these two streams, balancing specialized expertise with general consensus.

Experimental Evaluation

TUNA was evaluated on four rigorous benchmarks: CIFAR100, ImageNet-R, ImageNet-A, and ObjectNet. Notably, the experiments were conducted in an exemplar-free setting, meaning the model stores no raw data from previous tasks, ensuring high memory efficiency.

Key Results

TUNA consistently achieved state-of-the-art performance across all benchmarks:

  • ImageNet-A: TUNA reached a last-stage accuracy of 64.78%, a 2.5% improvement over previous leaders.
  • ObjectNet: The model showed a 3.53% gain over the runner-up, demonstrating superior robustness to unusual backgrounds and rotations.
  • Efficiency: The framework maintains high performance without the storage overhead required by exemplar-based methods.

Discussion and Insights

The success of TUNA stems from two primary insights. First, the strong correlation between low prediction entropy and high accuracy makes entropy a more robust routing mechanism than external key-matching.

Correlation between prediction entropy and accuracy on the ImageNet-R dataset, justifying the use of entropy for adapter selection.

Second, the universal adapter acts as a "consensus" representation. By fusing weights, the model navigates semantic overlaps between tasks, helping it understand fundamental class characteristics that transcend specific task boundaries.

Conclusion

TUNA provides a robust solution for CIL by integrating specialized and universal knowledge. While the current entropy-based selection increases inference time as the number of tasks grows, it offers unparalleled accuracy in exemplar-free scenarios. Future research will focus on optimizing the selection process to improve computational efficiency for real-time applications.

Code is available at: https://github.com/LAMDA-CL/ICCV2025-TUNA

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