TL;DR
This paper introduces DPTA, a novel approach for Class-Incremental Learning (CIL) that leverages pre-trained models (PTMs) to learn new classes without forgetting old ones. DPTA uses a dual-prototype system and task-specific adapters, achieving state-of-the-art performance by improving class separability and enabling robust test-time adapter selection.
What Problem Does This Paper Address?
Deep learning models excel when trained on large, static datasets. However, in real-world scenarios, data often arrives sequentially, with new classes being introduced over time. This is known as Class-Incremental Learning (CIL). A major challenge in CIL is "catastrophic forgetting," where learning new information leads to the erasure of previously acquired knowledge. While pre-trained models (PTMs) offer a strong starting point, directly fine-tuning them on sequential tasks can still lead to forgetting. Existing methods for adapting PTMs in CIL often struggle with identifying the correct task at test time, leading to performance degradation. This paper aims to address these limitations by proposing a more robust and efficient method for PTM-based CIL.
Methods
The core of DPTA lies in its Dual-Prototype Network (DPN) and Task-wise Adaptation strategy.
- Task-wise Adaptation with Center-Adapt Loss: For each new task, a lightweight "adapter" module is fine-tuned on the PTM. Instead of standard cross-entropy loss, DPTA uses a novel Center-Adapt (CA) loss. This loss combines the attractive forces of Center Loss (pulling samples towards their class prototype) with the repulsive forces of Cross-Entropy (pushing different classes apart). This encourages more compact and discriminative representations.
- Dual Prototype Network (DPN): DPTA maintains two sets of prototypes for each class:
- Raw Prototypes: These are computed using the original (or first-task adapted) PTM. They are surprisingly stable and provide reliable "top-K" predictions, helping to identify potential task identities.
- Augmented Prototypes: These are computed using the PTM fine-tuned with the task-specific adapter and the CA loss. They represent more class-separable features and are used for the final classification.
- Test-time Adapter Selection: At inference, the raw prototypes are used to predict the top-K most likely class labels. This information is then used to infer the corresponding task IDs. Only the adapters associated with these top-K tasks are loaded, significantly reducing computational overhead compared to loading all adapters. Finally, the augmented prototypes of the selected tasks are used to determine the final prediction.
Datasets
The paper evaluates DPTA on several benchmark datasets known for domain gaps, including:
- CIFAR-100
- Stanford Cars
- ImageNet-A
- ImageNet-R
- VTAB
These datasets are split according to the "B/Base-m, Inc-n" protocol, common in CIL research.
Key Insights and Ideas
- Raw Prototypes as Robust Task Identifiers: A surprising finding is that even when top-1 accuracy drops significantly in CIL, the top-K predictions derived from raw PTM features remain highly accurate. This stability makes them invaluable for inferring task identities at test time.
- Center-Adapt Loss for Better Separability: The proposed Center-Adapt loss is crucial for improving prototype-based classification. It effectively balances intra-class compactness and inter-class separability, leading to clearer decision boundaries.
- Dual Prototypes for Efficient and Accurate Inference: The two-stage prediction process (raw prototypes for task identification, augmented prototypes for final classification) is key to DPTA's efficiency and accuracy. It avoids the need to evaluate all possible adapters at test time.
- PTM Agnosticism: DPTA's components (center-adapt loss and dual prototypes) are shown to be flexible and can be combined with various parameter-efficient tuning modules (like VPT and SSF) and different PTM backbones, highlighting its generalizability.
Key Results
- DPTA consistently outperforms state-of-the-art methods by 1-5% across multiple benchmarks.
- On the challenging VTAB dataset, DPTA achieves approximately a 3% improvement over existing methods.
- DPTA demonstrates a favorable accuracy-parameter trade-off, achieving high accuracy with a parameter scale similar to other exemplar-free methods.
- The proposed Center-Adapt loss significantly improves prototype classification accuracy compared to using only cross-entropy loss.
- DPTA exhibits lower storage and inference complexity compared to methods like EASE, scaling linearly with the number of classes rather than tasks.
Limitations and Future Work
- Low-Resolution Dataset Performance: DPTA's performance slightly lags behind some methods on low-resolution datasets like CIFAR-100. This is attributed to weak inter-task feature disparities, which the dual-prototype mechanism relies on.
- Inference Latency: While more efficient than some methods, DPTA's inference latency is higher than single-adapter methods due to the need to load multiple adapters for top-K tasks.
- Future Directions: The authors suggest exploring additional training objectives to explicitly enlarge feature-space separation between tasks, which could further improve performance on challenging datasets. Investigating ways to further reduce inference latency is also a promising avenue.
Summary updated