TL;DR
This paper tackles catastrophic forgetting in continual learning by introducing a novel method that leverages hierarchical taxonomies of class labels. By organizing classes into a tree-like structure, the model can better identify and learn from easily confused groups, significantly improving performance and reducing forgetting compared to existing prompt-based continual learning approaches.
What Problem Does This Paper Address?
Continual Learning (CL) aims to build AI systems that can learn sequentially without forgetting previously acquired knowledge. A major hurdle is "catastrophic forgetting," where learning new information erases old knowledge. Prompt-based CL methods, which use small, learnable prompts to adapt large pre-trained models, have shown promise but still suffer from forgetting. This paper argues that a key, overlooked cause of forgetting in these models is the uncontrolled overlap of class representations in the latent space as new classes emerge. Existing methods often treat all classes equally, missing opportunities to enhance the distinguishability between similar, easily confused classes.
Methods
The core of the proposed method, "Leveraging Hierarchical Taxonomies in Prompt-based Continual Learning" (TCL), involves two main components:
- Hierarchical Taxonomy Construction: Inspired by human cognitive strategies, the authors propose organizing emerging class labels into a hierarchical tree structure. This taxonomy is built incrementally as new tasks arrive. Classes within the same "leaf group" of this taxonomy are identified as semantically and visually similar, thus prone to confusion. This structure acts as a guide to focus on these challenging relationships. Large Language Models (LLMs) like ChatGPT are used to assist in generating these taxonomies.
- Regularization Loss and Optimal Transport: A novel regularization loss function is introduced. This loss encourages models to:
- Distinguish between all classes seen so far (using
L_all). - Specifically enhance the separability of classes within the same leaf group of the taxonomy (using
L_g). To further refine this, an optimal transport (OT)-based approach is employed. This technique leverages the prior knowledge embedded in pre-trained models to quantify the distance between class distributions within each leaf group. This allows for a more nuanced weighting of the regularization, pushing easily confused class pairs further apart.
Datasets
The authors evaluate their method on four standard Class Incremental Learning (CIL) benchmarks:
- Split CIFAR-100: 100 classes, 10 sequential tasks.
- Split ImageNet-R: 200 classes, 10 sequential tasks, featuring challenging examples.
- 5-Datasets: A composite dataset including CIFAR-10, MNIST, Fashion-MNIST, SVHN, and notMNIST, treated as separate incremental tasks.
- Split CUB-200: Fine-grained dataset of 200 bird species, divided into 10 incremental tasks.
Key Insights and Ideas
- Latent Space Overlap as a Key Forgetting Driver: The paper highlights that as new classes are added, the latent space becomes denser, leading to increased overlap between class representations, which directly contributes to forgetting.
- Human Cognition as a Blueprint: The authors draw a strong parallel between human learning (organizing information, identifying relationships) and the proposed CL strategy, suggesting that mimicking these cognitive processes can lead to more effective AI learning.
- Hierarchical Taxonomies as a "Cheat Sheet": The hierarchical structure of class labels provides a crucial organizational tool, allowing the model to identify and focus on groups of classes that are inherently difficult to distinguish.
- LLMs as Taxonomy Builders: The successful integration of LLMs for generating these hierarchical taxonomies demonstrates their utility beyond text generation, extending to structuring knowledge for machine learning tasks.
- Optimal Transport for Fine-Grained Separation: Using OT to measure class distribution distances within leaf groups allows for a more sophisticated regularization that targets the most problematic class pairs.
Key Results
The proposed method, TCL, demonstrated significant superiority over state-of-the-art prompt-based continual learning methods across all tested benchmarks.
- Final Average Accuracy (FAA): TCL consistently achieved the highest FAA, often outperforming the runner-up by around 1.5%. For example, on Split-CIFAR-100, TCL achieved 93.94% FAA, compared to 92.61% for the baseline HiDE-Prompt.
- Final Forgetting Measure (FFM): TCL also excelled at mitigating forgetting, showing improvements of up to 17% on the 5-Datasets benchmark.
- Ablation Studies: Removing either the taxonomy strategy or the OT-based technique led to performance degradations, highlighting the synergistic contribution of both components. For instance, removing the taxonomy strategy resulted in a performance drop of up to 5.65%.
- LLM Performance: Various LLMs were tested for taxonomy generation, with Llama-3-70B-Groq and GPT-40-Mini yielding the best results, though the differences between advanced LLMs were not substantial, suggesting their general capability in organizing knowledge.
Limitations and Future Work
- Taxonomy Quality Dependency: The performance of the proposed method is inherently tied to the quality of the generated hierarchical taxonomy. While LLMs are used to mitigate this, an inappropriate organization can still negatively impact performance.
- Generalizability to Other CV Tasks: The current work focuses on image classification. The authors suggest that this approach could be extended to more complex Computer Vision tasks like Object Detection and Action Recognition, and could also inform knowledge transfer strategies.
- Further Exploration of OT: The paper mentions exploring the correlation between taxonomy and visual space further and discusses the limitations of the OT technique's temperature parameter.
Summary updated