In-context Prompt Learning for Test-time Vision Recognition with Frozen Vision-language Model
On the map: Multimodal LLMs / vision-language models → Prompt learning and adaptation of CLIP
Abstract (arXiv)
Current pre-trained vision-language models, such as CLIP, have demonstrated remarkable zero-shot generalization capabilities across various downstream tasks. However, their performance significantly degrades when test inputs exhibit different distributions. In this paper, we explore the concept of test-time prompt tuning (TTPT), which facilitates the adaptation of the CLIP model to novel downstream tasks through a one-step unsupervised optimization that involves only test samples. Inspired by in-context learning in natural language processing (NLP), we propose In-Context Prompt Learning (InCPL) for test-time visual recognition tasks, which empowers a pre-trained vision-language model with labeled examples as context information on downstream task. Specifically, InCPL associates a new test sample with very few labeled examples (sometimes just one) as context information, enabling reliable label estimation for the test sample and facilitating model adaptation. To achieve this, InCPL employs an efficient language-to-vision translator to explore the textual prior information for visual prompt learning. Further, we introduce a context-aware unsupervised loss to optimize visual prompts tailored to test samples. Finally, we design a cyclic learning strategy for visual and textual prompts to ensure mutual synergy across different modalities. This enables a pre-trained, frozen CLIP model to adapt to any task using its learned adaptive prompt. Our method demonstrates superior performance and achieves state-of-the-art results across various downstream datasets.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Prompt learning and adaptation of CLIP, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 39 of its 53 references that are in the map. First posted on arXiv 10 Mar 2024.
Builds on
39 of 53 references.
Closest ancestors · 4
Same direction, newest first
- 2023Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning11 Aug
- 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models15 Sep
- 2022Conditional Prompt Learning for Vision-Language Models10 Mar
- 2021Learning to Prompt for Vision-Language Models2 Sep
Other references · 35
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
- 2013Describing Textures in the Wildcited by 2,110
- 2020FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidencecited by 2,080
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
23 more
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2019Natural Adversarial Examplescited by 1,401
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2021Florence: A New Foundation Model for Computer Visioncited by 802
- 2022MaPLe: Multi-modal Prompt Learningcited by 685
- 2021FILIP: Fine-grained Interactive Language-Image Pre-Trainingcited by 626
- 2021LiT: Zero-Shot Transfer with Locked-image text Tuningcited by 572
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2019Semi-supervised Domain Adaptation via Minimax Entropycited by 333
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 317
- 2023Self-regulating Prompts: Foundational Model Adaptation without Forgettingcited by 272
- 2022Exploring Visual Prompts for Adapting Large-Scale Modelscited by 271
- 2022Transformer Memory as a Differentiable Search Indexcited by 242
- 2015Simultaneous Deep Transfer Across Domains and Taskscited by 205
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
- 2023In-Context Learning Unlocked for Diffusion Modelscited by 103
- 2022Test-Time Adaptation via Conjugate Pseudo-labelscited by 98
- 2023CLIPood: Generalizing CLIP to Out-of-Distributionscited by 96
- 2020Language Models are Open Knowledge Graphscited by 95
- 2022MM-TTA: Multi-Modal Test-Time Adaptation for 3D Semantic Segmentationcited by 76
- 2022X-DETR: A Versatile Architecture for Instance-wise Vision-Language Taskscited by 41
- 2021Unified Multimodal Pre-training and Prompt-based Tuning for Vision-Language Understanding and Generationcited by 7
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 2.
4 papers.
- 2024Language-Driven Visual Consensus for Zero-Shot Semantic Segmentationcited by 6
- 2025Adapting Vision-Language Models Without Labels: A Comprehensive Surveycited by 6
- 2026Taming Visual Neglect: A Variational Information Bottleneck Framework for Adaptive Attention in Multimodal In-Context Learningcited by 0
- 2026ProCAP: Probabilistic Cross-Attentive Prompt Learning for Vision-Language Modelscited by 0
- 2026ProCAP: Probabilistic Cross-Attentive Prompt Learning for Vision-Language Models24 Sep 2026
- 2026Taming Visual Neglect: A Variational Information Bottleneck Framework for Adaptive Attention in Multimodal In-Context Learning14 Jun 2026
- 2025Adapting Vision-Language Models Without Labels: A Comprehensive Survey7 Aug 2025
- 2024Language-Driven Visual Consensus for Zero-Shot Semantic Segmentation13 Mar 2024
Similar, not cited
Close in wording, no citation either way
- 2025Prompting without Panic: Attribute-aware, Zero-shot, Test-Time Calibration
- 2024Adapting Vision-Language Models to Open Classes via Test-Time Prompt Tuning
- 2025MINT: Memory-Infused Prompt Tuning at Test-time for CLIP
- 2025MetaTPT: Meta Test-time Prompt Tuning for Vision-Language Models
- 2025InPK: Infusing Prior Knowledge into Prompt for Vision-Language Models
- 2024A Lost Opportunity for Vision-Language Models: A Comparative Study of Online Test-Time Adaptation for Vision-Language Models
- 2023Context-Aware Prompt Tuning for Vision-Language Model with Dual-Alignment
- 2025A Closer Look at Conditional Prompt Tuning for Vision-Language Models