PANICL: Mitigating Over-Reliance on Single Prompt in Visual In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Visual In-Context Learning (VICL) uses input-output image pairs, referred to as in-context pairs (or examples), as prompts alongside query images to guide models in performing diverse vision tasks. However, VICL often suffers from over-reliance on a single in-context pair, which can lead to biased and unstable predictions. We introduce PAtch-based k-Nearest neighbor visual In-Context Learning (PANICL), a general training-free framework that mitigates this issue by leveraging multiple in-context pairs. PANICL smooths assignment scores across pairs, reducing bias without requiring additional training. Extensive experiments on a variety of tasks, including foreground segmentation, single object detection, colorization, multi-object segmentation, and keypoint detection, demonstrate consistent improvements over strong baselines. Moreover, PANICL exhibits strong robustness to domain shifts, including dataset-level shift (e.g., from COCO to Pascal) and label-space shift (e.g., FSS-1000), and generalizes well to other VICL models such as SegGPT, Painter, and LVM, highlighting its versatility and broad applicability.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 40 of its 48 references that are in the map. First posted on arXiv 26 Sep 2025.
Builds on
40 of 48 references.
References · 40
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,386
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,253
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
28 more
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,075
- 2021Domain Generalization: A Surveycited by 764
- 2023Neural Codec Language Models are Zero-Shot Text to Speech Synthesizerscited by 752
- 2023Otter: A Multi-Modal Model with In-Context Instruction Tuningcited by 550
- 2023Language Is Not All You Need: Aligning Perception with Language Modelscited by 543
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2017One-Shot Learning for Semantic Segmentationcited by 337
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 318
- 2022Visual Prompting via Image Inpaintingcited by 250
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 216
- 2023Sequential Modeling Enables Scalable Learning for Large Vision Modelscited by 212
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 161
- 2019FSS-1000: A 1000-Class Dataset for Few-Shot Segmentationcited by 160
- 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
- 2023Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineeringcited by 94
- 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
- 2023How Do In-Context Examples Affect Compositional Generalization?cited by 51
- 2023kNN Prompting: Beyond-Context Learning with Calibration-Free Nearest Neighbor Inferencecited by 47
- 2023Exploring Effective Factors for Improving Visual In-Context Learningcited by 43
- 2023Instruct Me More! Random Prompting for Visual In-Context Learningcited by 30
- 2022On the Compositional Generalization Gap of In-Context Learningcited by 24
- 2024Finding Visual Task Vectorscited by 24
- 2024Towards Global Optimal Visual In-Context Learning Prompt Selectioncited by 15
- 2024VASCAR: Content-Aware Layout Generation via Visual-Aware Self-Correctioncited by 15
- 2024Visual Prompt Selection for In-Context Learning Segmentationcited by 13
- 2024Cropper: Vision-Language Model for Image Cropping through In-Context Learningcited by 11
Built on by
Citing papers per year: 2026: 1.
1 paper.