Abstract
Class Incremental Learning (CIL) based on pre-trained models offers a promising direction for open-world continual learning. Existing methods typically rely on correlation-based strategies, where an image's classification feature is used as a query to retrieve the most related key prompts and select the corresponding value prompts for training. However, these approaches face an inherent limitation: fitting the entire feature space of all tasks with only a few trainable prompts is fundamentally challenging. We propose Predictive Prompting (PrePrompt), a novel CIL framework that circumvents correlation-based limitations by leveraging pre-trained models' natural classification ability to predict task-specific prompts. Specifically, PrePrompt decomposes CIL into a two-stage prediction framework: task-specific prompt prediction followed by label prediction. While theoretically appealing, this framework risks bias toward recent classes due to missing historical data for older classifier calibration. PrePrompt then mitigates this by incorporating feature translation, dynamically balancing stability and plasticity. Experiments across multiple benchmarks demonstrate PrePrompt's superiority over state-of-the-art prompt-based CIL methods.
Introduction
In Class Incremental Learning (CIL), an AI must learn new categories of data sequentially without forgetting what it learned previously—a challenge known as catastrophic forgetting.
Recent state-of-the-art methods use "prompts" (small, learnable parameter sets) appended to frozen, large-scale pre-trained models like Vision Transformers (ViT). Most of these methods rely on a key-value retrieval mechanism: they use an image's features as a "query" to find the most similar "key" in a pool, which then selects the corresponding "value" prompt for training or inference.
The authors identify a major bottleneck here: as the number of tasks grows, the feature space becomes crowded. These "keys" inevitably start to overlap and cluster together, leading to inter-task interference. When the model cannot clearly distinguish which task a sample belongs to, its performance on older classes plummets.
Methodology
The proposed framework, PrePrompt (Predictive Prompting), replaces the complex retrieval system with a streamlined two-stage prediction framework that leverages the pre-trained model's inherent classification ability.
Two-Stage Prediction Framework
- Prompt Prediction Stage: Instead of a lookup table, PrePrompt uses a lightweight classifier to predict the task-specific prompt directly from the image features. It essentially asks the model: "Based on what you already know, which task does this image look like?"
- Label Prediction Stage: Once the prompt is selected, it is used to guide the ViT backbone to predict the final class label.
Feature Translation
To solve the "stability-plasticity" dilemma without storing old data (for privacy or storage reasons), PrePrompt introduces Feature Translation. The model calculates "prototypes" (mean features) for new classes and identifies the nearest new prototype for each old class. It then "translates" new features into synthetic "old" features by shifting them based on the distance between prototypes. This allows the model to re-calibrate its classifiers for old tasks using only current data.
Experimental Results
The researchers evaluated PrePrompt on four diverse benchmarks: CIFAR-100, ImageNet-R, CUB-200, and a composite 5-Datasets benchmark. PrePrompt consistently outperformed existing state-of-the-art (SOTA) methods across all metrics.
Performance and Efficiency
- Accuracy: On CIFAR-100, it achieved 93.74% average accuracy, surpassing the previous best (HiDe-Prompt) by over 1%.
- Forgetting: It reduced the "forgetting measure" on CIFAR-100 by 60% (1.27 vs 3.16 for HiDe-Prompt).
- Efficiency: PrePrompt is remarkably parameter-efficient, requiring only 384k additional parameters and 1.523 MB of memory overhead.
Spatial Separation
T-SNE visualizations demonstrate that while older methods like L2P and CODA-Prompt have overlapping prompt embeddings, PrePrompt’s embeddings remain well-separated in distinct regions of the feature space, explaining its superior resistance to forgetting.
Conclusion
PrePrompt demonstrates that leveraging the natural classification ability of pre-trained models is a more effective strategy for prompt selection than traditional correlation-based retrieval. By decoupling prompt selection from label prediction and utilizing feature translation, the framework achieves a superior balance of stability and plasticity. Future work may involve adapting the framework for boundary-free incremental learning or exploring ways to safely unfreeze parts of the backbone for deeper knowledge refinement.
Summary updated