Abstract
Class-Incremental Learning (CIL) requires models to learn new classes sequentially without forgetting previous knowledge. While Pre-Trained Models (PTMs) provide a strong foundation, they face a trade-off between stability and plasticity. We present DPTA (Dual-Prototype Network with Task-wise Adaptation), a framework that utilizes a two-stage inference process and a specialized loss function to achieve state-of-the-art performance in CIL without catastrophic forgetting.
Problem Statement
Traditional CIL methods often suffer from catastrophic forgetting when fine-tuning PTMs. Conversely, keeping PTMs frozen limits their ability to capture task-specific nuances. Adapter-based methods attempt to bridge this gap but struggle with task identification at test time—selecting the correct adapter for an unseen sample is often noisy and computationally expensive. DPTA addresses this by leveraging the inherent robustness of frozen PTMs for coarse task localization.
Methods: The DPTA Framework
DPTA introduces two primary innovations: a Dual-Prototype Network (DPN) and a Center-Adapt (CA) Loss.
Dual-Prototype Network (DPN)
The DPN employs a two-step inference strategy to balance efficiency and accuracy:
- Coarse Selection (Step 1): The model uses "Raw Prototypes" derived from the frozen PTM to predict the top-K candidate labels. Even if the top-1 prediction is incorrect, the correct class is highly likely to be within the top-K.
- Fine Refinement (Step 2): The model activates only the adapters corresponding to these top-K candidates. It then uses "Augmented Prototypes" (derived from the task-adapted PTM) to make the final, high-accuracy prediction.
Center-Adapt (CA) Loss
To optimize the feature space for prototype-based classification, DPTA introduces the Center-Adapt loss ($L_{CA} = L_{CE} + \lambda L_{C}$). While standard cross-entropy ($L_{CE}$) creates decision boundaries, the addition of Center Loss ($L_C$) forces representations to cluster tightly around class prototypes. This reduces intra-class variance and maintains large margins between classes, making the feature space ideal for the dual-prototype mechanism.
Key Insights
- The Stability of Top-K: A major finding is that while the top-1 accuracy of a frozen PTM might degrade as more classes are added, the top-5 accuracy remains remarkably stable (near 100%). This makes the frozen PTM a reliable "task locator."
- Natural OOD Filtering: When a sample is processed by an incorrect task adapter, its representation naturally falls far from that task's augmented prototypes. This geometric property allows the model to implicitly filter out mismatched tasks.
- Efficiency over Ensembling: Unlike methods that load all task adapters, DPTA only loads $K$ adapters (typically $K=5$), ensuring computational efficiency and linear storage complexity $O(Cd)$ as the number of tasks grows.
Results
DPTA consistently outperformed recent state-of-the-art methods (such as EASE and MoAL) by 1% to 5% across standard benchmarks including CIFAR-100, Stanford Cars, and ImageNet-A/R. Notably, on the VTAB benchmark, DPTA achieved a final accuracy of 94.09%, a significant improvement over previous methods.
Conclusion
DPTA effectively balances stability and plasticity in CIL by leveraging the task-localization capabilities of frozen PTMs and refining them with task-specific adapters. The dual-prototype approach provides a scalable, memory-efficient, and high-precision solution for incremental learning scenarios.
Summary updated