Exploring Effective Factors for Improving Visual In-Context Learning
Not on the map. Why?
Abstract (arXiv)
The In-Context Learning (ICL) is to understand a new task via a few demonstrations (aka. prompt) and predict new inputs without tuning the models. While it has been widely studied in NLP, it is still a relatively new area of research in computer vision. To reveal the factors influencing the performance of visual in-context learning, this paper shows that prompt selection and prompt fusion are two major factors that have a direct impact on the inference performance of visual context learning. Prompt selection is the process of identifying the most appropriate prompt or example to help the model understand new tasks. This is important because providing the model with relevant prompts can help it learn more effectively and efficiently. Prompt fusion involves combining knowledge from different positions within the large-scale visual model. By doing this, the model can leverage the diverse knowledge stored in different parts of the model to improve its performance on new tasks. Based these findings, we propose a simple framework prompt-SelF for visual in-context learning. Specifically, we first use the pixel-level retrieval method to select a suitable prompt, and then use different prompt fusion methods to activate all the knowledge stored in the large-scale model, and finally ensemble the prediction results obtained from different prompt fusion methods to obtain the final prediction results. And we conduct extensive experiments on single-object segmentation and detection tasks to demonstrate the effectiveness of prompt-SelF. Remarkably, the prompt-SelF has outperformed OSLSM based meta-learning in 1-shot segmentation for the first time. This indicated the great potential of visual in-context learning. The source code and models will be available at https://github.com/syp2ysy/prompt-SelF.
Key facts. Cited by 43 papers in the map (data through 7 Oct 2026). Builds on 61 of its 86 references that are in the map. First posted on arXiv 10 Apr 2023.
Builds on
61 of 86 references.
References · 61
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
38 more
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
- 2018Deep contextualized word representationscited by 2,285
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2021MetaICL: Learning to Learn In Contextcited by 450
- 2019PANet: Few-Shot Image Semantic Segmentation with Prototype Alignmentcited by 449
- 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 420
- 2021Pix2seq: A Language Modeling Framework for Object Detectioncited by 345
- 2017One-Shot Learning for Semantic Segmentationcited by 337
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 317
- 2022Context Autoencoder for Self-Supervised Representation Learningcited by 297
- 2020Prior Guided Feature Enrichment Network for Few-Shot Segmentationcited by 271
- 2019QASC: A Dataset for Question Answering via Sentence Compositioncited by 248
- 2022Visual Prompting via Image Inpaintingcited by 248
- 2021Adaptive Prototype Learning and Allocation for Few-Shot Segmentationcited by 207
- 2022Active Example Selection for In-Context Learningcited by 195
- 2021Hypercorrelation Squeeze for Few-Shot Segmentationcited by 193
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2021Meta-learning via Language Model In-context Tuningcited by 163
- 2019FSS-1000: A 1000-Class Dataset for Few-Shot Segmentationcited by 160
- 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
- 2021Few-Shot Segmentation via Cycle-Consistent Transformercited by 133
- 2022Learning What Not to Segment: A New Perspective on Few-Shot Segmentationcited by 120
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2022Cost Aggregation with 4D Convolutional Swin Transformer for Few-Shot Segmentationcited by 114
- 2022Self-Support Few-Shot Semantic Segmentationcited by 96
- 2023Hierarchical Dense Correlation Distillation for Few-Shot Segmentationcited by 84
- 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 78
50 most cited of 61 All 61 (JSON)
Built on by
Citing papers per year: 2023: 5; 2024: 16; 2025: 14; 2026: 8.
43 papers.
Sort:
By area:
- 2024Visual In-Context Learning for Large Vision-Language Modelscited by 124
- 2024VidProM: A Million-scale Real Prompt-Gallery Dataset for Text-to-Video Diffusion Modelscited by 124
- 2024VRP-SAM: SAM with Visual Reference Promptcited by 75
- 2025VisualCloze: A Universal Image Generation Framework via Visual In-Context Learningcited by 39
- 2024Image Segmentation in Foundation Model Era: A Surveycited by 35
- 2024Self-Calibrated CLIP for Training-Free Open-Vocabulary Segmentationcited by 34
- 2023Instruct Me More! Random Prompting for Visual In-Context Learningcited by 30
- 2024SketchAgent: Language-Driven Sequential Sketch Generationcited by 30
- 2023Unifying Image Processing as Visual Prompting Question Answeringcited by 29
- 2023Retrieval-augmented Multi-modal Chain-of-Thoughts Reasoning for Large Language Modelscited by 18
- 2025Visual Position Prompt for MLLM based Visual Groundingcited by 16
- 2024Towards Global Optimal Visual In-Context Learning Prompt Selectioncited by 15
31 more
- 2024Low-Resource Vision Challenges for Foundation Modelscited by 13
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?cited by 13
- 2024Visual Prompt Selection for In-Context Learning Segmentationcited by 12
- 2023Towards More Unified In-context Visual Understandingcited by 10
- 2023From Channel Bias to Feature Redundancy: Uncovering the "Less is More" Principle in Few-Shot Learningcited by 9
- 2024There is no SAMantics! Exploring SAM as a Backbone for Visual Understanding Taskscited by 7
- 2025Embracing Collaboration Over Competition: Condensing Multiple Prompts for Visual In-Context Learningcited by 7
- 2024AnyPattern: Towards In-context Image Copy Detectioncited by 5
- 2024Efficient In-Context Medical Segmentation with Meta-driven Visual Prompt Selectioncited by 4
- 2025U-ViLAR: Uncertainty-Aware Visual Localization for Autonomous Driving via Differentiable Association and Registrationcited by 4
- 2025ConText: Driving In-context Learning for Text Removal and Segmentationcited by 3
- 2025Is Visual in-Context Learning for Compositional Medical Tasks within Reach?cited by 3
- 2025Human-in-Context: Unified Cross-Domain 3D Human Motion Modeling via In-Context Learningcited by 3
- 2024AICL: Action In-Context Learning for Video Diffusion Modelcited by 2
- 2025Towards Reliable and Holistic Visual In-Context Learning Prompt Selectioncited by 2
- 2026SSP-SAM: SAM with Semantic-Spatial Prompt for Referring Expression Segmentationcited by 2
- 2026PromptHub: Enhancing Multi-Prompt Visual In-Context Learning with Locality-Aware Fusion, Concentration and Alignmentcited by 2
- 2025E-InMeMo: Enhanced Prompting for Visual In-Context Learningcited by 1
- 2025MITS: A Large-Scale Multimodal Benchmark Dataset for Intelligent Traffic Surveillancecited by 1
- 2025PANICL: Mitigating Over-Reliance on Single Prompt in Visual In-Context Learningcited by 1
- 2026Enhancing Visual In-Context Learning by Multi-Faceted Fusioncited by 1
- 2024A Simple Framework Uniting Visual In-context Learning with Masked Image Modeling to Improve Ultrasound Segmentationcited by 0
- 2024Segment Any Class (SAC): Multi-Class Few-Shot Semantic Segmentation via Class Region Proposalscited by 0
- 2025Time-Contrastive Pretraining for In-Context Image and Video Segmentationcited by 0
- 2025Cycle Context Verification for In-Context Medical Image Segmentationcited by 0
- 2025FlexICL: A Flexible Visual In-context Learning Framework for Elbow and Wrist Ultrasound Segmentationcited by 0
- 2026Beyond Single Prompts: Synergistic Fusion and Arrangement for VICLcited by 0
- 2026Love Me, Love My Label: Rethinking the Role of Labels in Prompt Retrieval for Visual In-Context Learningcited by 0
- 2026Explaining is Harder Than Predicting Alone: Evaluating Concept-based Explanations of MLLMs as ICL Visual Classifierscited by 0
- 2026Hyper-ICL: Attention Calibration with Hyperbolic Anchor Distillation for Multimodal In-Context Learningcited by 0
- 2026PromptPath: Prompt-Adaptive Computational Pathways for In-Context Learningcited by 0
- 2026PromptPath: Prompt-Adaptive Computational Pathways for In-Context Learning3 Aug 2026
- 2026Hyper-ICL: Attention Calibration with Hyperbolic Anchor Distillation for Multimodal In-Context Learning3 Jun 2026
- 2026Explaining is Harder Than Predicting Alone: Evaluating Concept-based Explanations of MLLMs as ICL Visual Classifiers27 May 2026
- 2026Love Me, Love My Label: Rethinking the Role of Labels in Prompt Retrieval for Visual In-Context Learning4 Apr 2026
- 2026PromptHub: Enhancing Multi-Prompt Visual In-Context Learning with Locality-Aware Fusion, Concentration and Alignment19 Mar 2026
- 2026SSP-SAM: SAM with Semantic-Spatial Prompt for Referring Expression Segmentation18 Mar 2026
- 2026Beyond Single Prompts: Synergistic Fusion and Arrangement for VICL15 Jan 2026
- 2026Enhancing Visual In-Context Learning by Multi-Faceted Fusion15 Jan 2026
- 2025FlexICL: A Flexible Visual In-context Learning Framework for Elbow and Wrist Ultrasound Segmentation30 Oct 2025
- 2025Towards Reliable and Holistic Visual In-Context Learning Prompt Selection30 Sep 2025
- 2025PANICL: Mitigating Over-Reliance on Single Prompt in Visual In-Context Learning26 Sep 2025
- 2025MITS: A Large-Scale Multimodal Benchmark Dataset for Intelligent Traffic Surveillance10 Sep 2025
31 more
- 2025Human-in-Context: Unified Cross-Domain 3D Human Motion Modeling via In-Context Learning14 Aug 2025
- 2025Cycle Context Verification for In-Context Medical Image Segmentation11 Jul 2025
- 2025U-ViLAR: Uncertainty-Aware Visual Localization for Autonomous Driving via Differentiable Association and Registration6 Jul 2025
- 2025Is Visual in-Context Learning for Compositional Medical Tasks within Reach?1 Jul 2025
- 2025Time-Contrastive Pretraining for In-Context Image and Video Segmentation21 Jun 2025
- 2025ConText: Driving In-context Learning for Text Removal and Segmentation4 Jun 2025
- 2025Embracing Collaboration Over Competition: Condensing Multiple Prompts for Visual In-Context Learning30 Apr 2025
- 2025E-InMeMo: Enhanced Prompting for Visual In-Context Learning25 Apr 2025
- 2025VisualCloze: A Universal Image Generation Framework via Visual In-Context Learning10 Apr 2025
- 2025Visual Position Prompt for MLLM based Visual Grounding19 Mar 2025
- 2024SketchAgent: Language-Driven Sequential Sketch Generation26 Nov 2024
- 2024Self-Calibrated CLIP for Training-Free Open-Vocabulary Segmentation24 Nov 2024
- 2024There is no SAMantics! Exploring SAM as a Backbone for Visual Understanding Tasks22 Nov 2024
- 2024Segment Any Class (SAC): Multi-Class Few-Shot Semantic Segmentation via Class Region Proposals21 Nov 2024
- 2024Image Segmentation in Foundation Model Era: A Survey23 Aug 2024
- 2024Efficient In-Context Medical Segmentation with Meta-driven Visual Prompt Selection15 Jul 2024
- 2024Visual Prompt Selection for In-Context Learning Segmentation14 Jul 2024
- 2024Towards Global Optimal Visual In-Context Learning Prompt Selection24 May 2024
- 2024AnyPattern: Towards In-context Image Copy Detection21 Apr 2024
- 2024AICL: Action In-Context Learning for Video Diffusion Model18 Mar 2024
- 2024VidProM: A Million-scale Real Prompt-Gallery Dataset for Text-to-Video Diffusion Models10 Mar 2024
- 2024VRP-SAM: SAM with Visual Reference Prompt27 Feb 2024
- 2024A Simple Framework Uniting Visual In-context Learning with Masked Image Modeling to Improve Ultrasound Segmentation22 Feb 2024
- 2024Visual In-Context Learning for Large Vision-Language Models18 Feb 2024
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?2 Feb 2024
- 2024Low-Resource Vision Challenges for Foundation Models9 Jan 2024
- 2023Towards More Unified In-context Visual Understanding5 Dec 2023
- 2023Retrieval-augmented Multi-modal Chain-of-Thoughts Reasoning for Large Language Models4 Dec 2023
- 2023Instruct Me More! Random Prompting for Visual In-Context Learning7 Nov 2023
- 2023Unifying Image Processing as Visual Prompting Question Answering16 Oct 2023
- 2023From Channel Bias to Feature Redundancy: Uncovering the "Less is More" Principle in Few-Shot Learning5 Oct 2023
- 2024Visual In-Context Learning for Large Vision-Language Modelscited by 124
- 2024Self-Calibrated CLIP for Training-Free Open-Vocabulary Segmentationcited by 34
- 2025Visual Position Prompt for MLLM based Visual Groundingcited by 16
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?cited by 13
- 2025MITS: A Large-Scale Multimodal Benchmark Dataset for Intelligent Traffic Surveillancecited by 1
- 2026Explaining is Harder Than Predicting Alone: Evaluating Concept-based Explanations of MLLMs as ICL Visual Classifierscited by 0
- 2026Hyper-ICL: Attention Calibration with Hyperbolic Anchor Distillation for Multimodal In-Context Learningcited by 0
- 2026Hyper-ICL: Attention Calibration with Hyperbolic Anchor Distillation for Multimodal In-Context Learning3 Jun 2026
- 2026Explaining is Harder Than Predicting Alone: Evaluating Concept-based Explanations of MLLMs as ICL Visual Classifiers27 May 2026
- 2025MITS: A Large-Scale Multimodal Benchmark Dataset for Intelligent Traffic Surveillance10 Sep 2025
- 2025Visual Position Prompt for MLLM based Visual Grounding19 Mar 2025
- 2024Self-Calibrated CLIP for Training-Free Open-Vocabulary Segmentation24 Nov 2024
- 2024Visual In-Context Learning for Large Vision-Language Models18 Feb 2024
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?2 Feb 2024
- 2024VidProM: A Million-scale Real Prompt-Gallery Dataset for Text-to-Video Diffusion Modelscited by 124
- 2025VisualCloze: A Universal Image Generation Framework via Visual In-Context Learningcited by 39
- 2024Image Segmentation in Foundation Model Era: A Surveycited by 35
- 2024AICL: Action In-Context Learning for Video Diffusion Modelcited by 2
- 2025VisualCloze: A Universal Image Generation Framework via Visual In-Context Learning10 Apr 2025
- 2024Image Segmentation in Foundation Model Era: A Survey23 Aug 2024
- 2024AICL: Action In-Context Learning for Video Diffusion Model18 Mar 2024
- 2024VidProM: A Million-scale Real Prompt-Gallery Dataset for Text-to-Video Diffusion Models10 Mar 2024
- 2024VRP-SAM: SAM with Visual Reference Promptcited by 75
- 2023Instruct Me More! Random Prompting for Visual In-Context Learningcited by 30
- 2024SketchAgent: Language-Driven Sequential Sketch Generationcited by 30
- 2023Unifying Image Processing as Visual Prompting Question Answeringcited by 29
- 2024Towards Global Optimal Visual In-Context Learning Prompt Selectioncited by 15
- 2024Low-Resource Vision Challenges for Foundation Modelscited by 13
- 2024Visual Prompt Selection for In-Context Learning Segmentationcited by 12
- 2023Towards More Unified In-context Visual Understandingcited by 10
- 2023From Channel Bias to Feature Redundancy: Uncovering the "Less is More" Principle in Few-Shot Learningcited by 9
- 2024There is no SAMantics! Exploring SAM as a Backbone for Visual Understanding Taskscited by 7
- 2025Embracing Collaboration Over Competition: Condensing Multiple Prompts for Visual In-Context Learningcited by 7
- 2024AnyPattern: Towards In-context Image Copy Detectioncited by 5
12 most cited of 31 All 31 (JSON)
- 2026PromptPath: Prompt-Adaptive Computational Pathways for In-Context Learning3 Aug 2026
- 2026Love Me, Love My Label: Rethinking the Role of Labels in Prompt Retrieval for Visual In-Context Learning4 Apr 2026
- 2026PromptHub: Enhancing Multi-Prompt Visual In-Context Learning with Locality-Aware Fusion, Concentration and Alignment19 Mar 2026
- 2026SSP-SAM: SAM with Semantic-Spatial Prompt for Referring Expression Segmentation18 Mar 2026
- 2026Beyond Single Prompts: Synergistic Fusion and Arrangement for VICL15 Jan 2026
- 2026Enhancing Visual In-Context Learning by Multi-Faceted Fusion15 Jan 2026
- 2025FlexICL: A Flexible Visual In-context Learning Framework for Elbow and Wrist Ultrasound Segmentation30 Oct 2025
- 2025Towards Reliable and Holistic Visual In-Context Learning Prompt Selection30 Sep 2025
- 2025PANICL: Mitigating Over-Reliance on Single Prompt in Visual In-Context Learning26 Sep 2025
- 2025Human-in-Context: Unified Cross-Domain 3D Human Motion Modeling via In-Context Learning14 Aug 2025
- 2025Cycle Context Verification for In-Context Medical Image Segmentation11 Jul 2025
- 2025U-ViLAR: Uncertainty-Aware Visual Localization for Autonomous Driving via Differentiable Association and Registration6 Jul 2025
12 newest of 31 All 31 (JSON)