Abstract
Modern foundation models like CLIP excel at zero-shot classification but struggle with real-time updates and incremental learning. Standard fine-tuning often leads to catastrophic forgetting of general knowledge, while simple nearest-neighbor methods lack accuracy. This paper introduces a framework inspired by Complementary Learning Systems (CLS) that combines a frozen foundation model with a fast-training "Tree Probe" and an adaptive weighting mechanism. This approach achieves the accuracy of batch-trained models with the speed of nearest-neighbor searches, enabling models to learn from new data instantly without degrading zero-shot performance.
Introduction
Vision-language models (VLMs) have revolutionized computer vision by enabling open-vocabulary classification. However, adapting these models to specific user needs or correcting errors remains a challenge. Traditional fine-tuning is computationally expensive and risks erasing the model's broad zero-shot capabilities. Conversely, k-Nearest Neighbor (KNN) approaches are efficient for updates but often underperform in complex classification tasks.
The authors propose a system designed to meet three critical requirements: flexible inference across arbitrary label sets, continual improvement from new data, and efficient incremental learning in near real-time.
Methodology: Complementary Memory Systems
The proposed architecture draws inspiration from the biological Complementary Learning Systems (CLS) theory, which describes how the brain uses the hippocampus for rapid acquisition of specific experiences and the neocortex for long-term consolidation of general knowledge.
The Consolidated and Exemplar Systems
The framework consists of two primary components:
- Consolidated System: A frozen CLIP model that maintains general, open-vocabulary capabilities.
- Exemplar-based System: A dynamic memory that stores specific image-label pairs.
The Tree Probe
To optimize the exemplar system, the researchers developed the Tree Probe. Unlike global linear models that require retraining on the entire dataset, the Tree Probe uses hierarchical clustering to organize examples. It identifies relevant clusters (leaves) in a tree structure and trains local linear models within those clusters. This reduces the computational complexity of updates from $O(n)$ to $O(\log n)$, allowing for near-instantaneous learning.
Adaptive Instance Marginalization (AIM)
To integrate the two systems, the authors introduced Adaptive Instance Marginalization (AIM). This weighting mechanism uses the CLIP model to estimate the likelihood that a query image belongs to a previously learned class. If the image aligns with known exemplars, the system prioritizes the Tree Probe's output; otherwise, it relies on CLIP’s zero-shot intuition.
Experimental Evaluation
The method was tested on a diverse set of benchmarks, including ImageNet, CIFAR100, and various fine-grained datasets (e.g., OxfordIIITPets, StanfordCars). A new Flexible Inference benchmark was also introduced to simulate real-world scenarios where query label sets are unpredictable.
Key Results
- Efficiency: The Tree Probe is approximately 25x faster to update than global linear probes while maintaining comparable accuracy.
- Performance: On the Multi-Task Incremental Learning (MTIL) benchmark, the system achieved 85.5% average accuracy, outperforming the state-of-the-art ZSCL (83.6%) and significantly improving upon the base CLIP model (65.3%).
- Zero-Shot Stability: The method demonstrated virtually no degradation in zero-shot performance on unseen tasks, a common pitfall of traditional fine-tuning.
Discussion and Conclusion
The "Tree Probe" demonstrates that local modeling can be superior to global retraining for efficient continual learning. By using probability as a gatekeeper through AIM, the system effectively mitigates catastrophic forgetting. This research is particularly relevant for interactive applications, such as mobile identification apps, where real-time learning from user corrections is essential.
Future work may address the memory overhead of storing all exemplar embeddings and explore methods to eventually consolidate exemplar knowledge into the primary model weights. Additionally, extending this hierarchical approach to object detection and other complex visual tasks remains a promising direction.
Summary updated