Abstract
Adapting large Vision-Language Models (VLMs) like CLIP to downstream tasks often results in "overfitting to the known," where models excel on training classes but fail on novel ones. This paper introduces Learning to Learn (LoL), a meta-learning framework that treats prompt tuning as a series of small, diverse tasks. By teaching the model how to adapt rather than just what to memorize, LoL significantly boosts generalization to unseen categories without sacrificing performance on base classes.
Introduction
Vision-Language Models (VLMs) are typically adapted using Prompt Tuning, such as CoOp (Context Optimization), which learns a small set of "prompt vectors" (virtual words) to describe tasks. However, these vectors often become "hyper-specialized" to the specific classes seen during training (base classes), causing performance to plummet on "novel" classes. While existing solutions like CoCoOp or KgCoOp attempt to mitigate this via image-conditioning or regularization, they still face significant accuracy drops. LoL addresses this by changing the optimization strategy itself rather than just the architecture.
Methodology: The LoL Framework
The authors propose a two-stage strategy to improve the transferability of learned prompts:
- Prompt-Tuning Stage: The model starts with a standard CoOp-style initialization, learning a set of context vectors by minimizing classification loss on the base classes.
- Meta-Learning Stage: This is the core innovation. Instead of treating the training set as a single block, the authors use Episodic Training. They divide base classes into many "N-way K-shot" tasks. In each episode, the model uses a Support Set to calculate a temporary gradient update and then tests itself on a Query Set. The final "meta-update" is calculated based on how well the model performed on the Query Set after the temporary update.
By repeatedly simulating this quick adaptation process, the prompt vectors learn to capture abstract, transferable textual knowledge rather than memorizing class-specific features.
Experimental Setup
LoL was evaluated across 7 diverse image classification benchmarks, including generic objects (ImageNet, Caltech101), fine-grained categories (Oxford Flowers102, FGVC Aircraft), scenes (SUN397), actions (UCF101), and textures (DTD). The experiments focused on the base-to-new generalization setting, where the model is trained on one half of the classes and tested on the other half.
Key Results
LoL demonstrates dramatic improvements in generalization across various backbones and shot settings. As shown in the comparative results, LoL consistently achieves the highest performance on new classes and the best balance (Harmonic Mean) between base and novel categories.
- New Class Accuracy: On the ViT-B/16 backbone, LoL achieved an average accuracy of 91.59% on new classes, a 20.69% improvement over the original CoOp (70.90%).
- Harmonic Mean (H): LoL achieved an H-score of 83.82, significantly outperforming KgCoOp (75.72) and CoCoOp (72.75).
- Consistency: The method showed superior performance across almost every K-shot setting (from 1-shot to 16-shot), proving the robustness of the meta-learning approach.
Discussion and Insights
- Capacity Constraints: The authors argue that the limited capacity of prompt vectors relative to the massive VLM is the primary cause of overfitting. Meta-learning forces the model to use this limited capacity more efficiently to store generalizable knowledge.
- Optimization Strategy: Unlike previous methods that add complex MLP layers or extra loss terms, LoL changes the optimization strategy itself. This makes it highly compatible; it can be "wrapped" around other prompt-tuning methods to improve their performance.
- Limitations: Generalization performance can be sensitive to the size of the "query set" in episodic training. Additionally, meta-learning involves bi-level optimization (gradients of gradients), which is more computationally and memory-intensive than standard fine-tuning.
Conclusion
LoL shifts the paradigm of VLM adaptation from simple memorization to meta-adaptation. By learning to learn, the model maintains high performance on known tasks while becoming significantly more robust to novel categories. Future work may extend this philosophy to more complex vision tasks like object detection and segmentation.
Summary updated