Abstract
Hierarchical Prompts (H-Prompts) is a novel rehearsal-free framework for continual learning that eliminates the need for storing historical data samples. By organizing learnable prompts into a hierarchy—class-specific, task-specific, and general—and employing Bayesian modeling to preserve class distributions, H-Prompts achieves state-of-the-art accuracy on major benchmarks. This approach significantly reduces catastrophic forgetting while maintaining high efficiency and data privacy.
Introduction
Continual Learning (CL) aims to enable AI models to learn a sequence of tasks without forgetting previously acquired knowledge. A significant challenge in CL is achieving this without "rehearsal"—storing a memory buffer of old images—due to privacy concerns and memory constraints. Recent prompt-based methods using frozen backbones, such as Vision Transformers (ViT), have emerged as a promising direction. However, these methods often suffer from "discriminatory myopia," where prompts become overly specialized to the current task, losing the ability to distinguish between classes across different tasks.
Methodology: The H-Prompts Framework
H-Prompts addresses the limitations of existing methods by structuring knowledge into three hierarchical layers:
1. Class Prompts and Bayesian Distribution Alignment (BDA)
Instead of storing raw images, H-Prompts models each class as a multivariate Gaussian distribution in the embedding space. Through Bayesian Distribution Alignment (BDA), the model can "replay" virtual features of historical classes during the training of new tasks. This allows the model to maintain a global perspective of the class space without requiring original data.
2. Task Prompts and Cross-task Knowledge Excavation (CKE)
Task-specific prompts are trained using Cross-task Knowledge Excavation (CKE). This mechanism ensures that the current task's prompts remain compatible with the virtual features of past classes, facilitating inter-task discrimination.
3. General Prompts and Generalized Knowledge Exploration (GKE)
To prevent over-specialization, Generalized Knowledge Exploration (GKE) utilizes self-supervised learning (specifically supervised contrastive loss). This layer learns broad, transferable features that are beneficial across all tasks in the sequence.
Experimental Evaluation
The authors evaluated H-Prompts on several standard class-incremental learning benchmarks:
- Split CIFAR-100: 100 classes split into 10 tasks.
- Split ImageNet-R: 200 classes with diverse styles split into 10 tasks.
- CDDB-Hard: Used for testing Domain Incremental Learning.
Key Results and Insights
H-Prompts establishes a new state-of-the-art for rehearsal-free continual learning:
- Superior Accuracy: On Split CIFAR-100, it achieved 87.8% average accuracy, surpassing DualPrompt by 1.3% and even exceeding rehearsal-based methods like DER++ (which stores 5,000 images) by nearly 4%. On Split ImageNet-R, it reached 70.6% accuracy.
- Minimal Forgetting: The forgetting rate was remarkably low, at approximately 4.0-4.1% across major benchmarks.
- Efficiency: The method is highly efficient, as it only updates a small fraction of parameters (the prompts) and requires no image storage.
The results suggest that virtual rehearsal—storing class statistics rather than raw images—is a more efficient and privacy-preserving strategy for prompt tuning. Furthermore, the hierarchical structure effectively balances plasticity (learning new tasks) and stability (retaining old knowledge).
Conclusion and Future Work
H-Prompts demonstrates that hierarchical prompt organization combined with Bayesian distribution modeling can effectively mitigate catastrophic forgetting in a rehearsal-free setting. While highly effective, the framework's performance remains dependent on the quality of the pre-trained backbone and the accuracy of the task-identity inference mechanism. Future research may explore extending this hierarchical prompting strategy to more complex tasks such as object detection and semantic segmentation.
Summary updated