mlsanityData to 7 Oct 2026

In-context Prompt Learning for Test-time Vision Recognition with Frozen Vision-language Model

arXiv 2403.06126 ↗First posted 10 Mar 2024cs.CVcited by 4

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

  1. 2023Diverse Data Augmentation with Diffusions for Effective Test-time Prompt Tuning11 Aug
  2. 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models15 Sep
  3. 2022Conditional Prompt Learning for Vision-Language Models10 Mar
  4. 2021Learning to Prompt for Vision-Language Models2 Sep

Other references · 35

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  5. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  6. 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
  7. 2013Describing Textures in the Wildcited by 2,110
  8. 2020FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidencecited by 2,080
  9. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  10. 2013Fine-Grained Visual Classification of Aircraftcited by 1,701
  11. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
  12. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
23 more
  1. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  2. 2019Natural Adversarial Examplescited by 1,401
  3. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
  4. 2021Florence: A New Foundation Model for Computer Visioncited by 802
  5. 2022MaPLe: Multi-modal Prompt Learningcited by 685
  6. 2021FILIP: Fine-grained Interactive Language-Image Pre-Trainingcited by 626
  7. 2021LiT: Zero-Shot Transfer with Locked-image text Tuningcited by 572
  8. 2021MetaICL: Learning to Learn In Contextcited by 450
  9. 2019Semi-supervised Domain Adaptation via Minimax Entropycited by 333
  10. 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 317
  11. 2023Self-regulating Prompts: Foundational Model Adaptation without Forgettingcited by 272
  12. 2022Exploring Visual Prompts for Adapting Large-Scale Modelscited by 271
  13. 2022Transformer Memory as a Differentiable Search Indexcited by 242
  14. 2015Simultaneous Deep Transfer Across Domains and Taskscited by 205
  15. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  16. 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
  17. 2023In-Context Learning Unlocked for Diffusion Modelscited by 103
  18. 2022Test-Time Adaptation via Conjugate Pseudo-labelscited by 98
  19. 2023CLIPood: Generalizing CLIP to Out-of-Distributionscited by 96
  20. 2020Language Models are Open Knowledge Graphscited by 95
  21. 2022MM-TTA: Multi-Modal Test-Time Adaptation for 3D Semantic Segmentationcited by 76
  22. 2022X-DETR: A Versatile Architecture for Instance-wise Vision-Language Taskscited by 41
  23. 2021Unified Multimodal Pre-training and Prompt-based Tuning for Vision-Language Understanding and Generationcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 2.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Prompting without Panic: Attribute-aware, Zero-shot, Test-Time Calibration
  2. 2024Adapting Vision-Language Models to Open Classes via Test-Time Prompt Tuning
  3. 2025MINT: Memory-Infused Prompt Tuning at Test-time for CLIP
  4. 2025MetaTPT: Meta Test-time Prompt Tuning for Vision-Language Models
  5. 2025InPK: Infusing Prior Knowledge into Prompt for Vision-Language Models
  6. 2024A Lost Opportunity for Vision-Language Models: A Comparative Study of Online Test-Time Adaptation for Vision-Language Models
  7. 2023Context-Aware Prompt Tuning for Vision-Language Model with Dual-Alignment
  8. 2025A Closer Look at Conditional Prompt Tuning for Vision-Language Models