Lune

NeurIPS2023顶会

What Makes Good Examples for Visual In-Context Learning?

Yuanhan Zhang, Kaiyang Zhou, Ziwei Liu

摘要

Large-scale models trained on broad data have recently become the mainstream architecture in computer vision due to their strong generalization performance. In this paper, the main focus is on an emergent ability in large vision models, known as in-context learning, which allows inference on unseen tasks by conditioning on in-context examples (a.k.a. prompt) without updating the model parameters. This concept has been well-known in natural language processing but has only been studied very recently for large vision models. We for the first time provide a comprehensive investigation on the impact of in-context examples in computer vision, and find that the performance is highly sensitive to the choice of in-context examples. To overcome the problem, we propose a prompt retrieval framework to automate the selection of in-context examples. Specifically, we present (1) an unsupervised prompt retrieval method based on nearest example search using an off-the-shelf model, and (2) a supervised prompt retrieval method, which trains a neural network to choose examples that directly maximize in-context learning performance. The results demonstrate that our methods can bring non-trivial improvements to visual in-context learning in comparison to the commonly-used random selection. The code and models are available at https: //github.com/ZhangYuanhan-AI/ visual_prompt_retrieval.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 63 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Towards In-context Scene Understanding 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Towards In-context Scene Understanding 引用了 Language Models are Few-Shot Learners
  • Towards In-context Scene Understanding 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • Towards In-context Scene Understanding 引用了 Flamingo: a Visual Language Model for Few-Shot Learning
  • ImageBrush: Learning Visual In-Context Instructions for Exemplar-Based Image Manipulation 引用了 Language Models are Few-Shot Learners
  • ImageBrush: Learning Visual In-Context Instructions for Exemplar-Based Image Manipulation 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • ImageBrush: Learning Visual In-Context Instructions for Exemplar-Based Image Manipulation 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • In-Context Learning Unlocked for Diffusion Models 引用了 Language Models are Few-Shot Learners
  • In-Context Learning Unlocked for Diffusion Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • In-Context Learning Unlocked for Diffusion Models 引用了 Flamingo: a Visual Language Model for Few-Shot Learning
  • In-Context Learning Unlocked for Diffusion Models 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • OmniSVG: A Unified Scalable Vector Graphics Generation Model 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • Visual Instruction Inversion: Image Editing via Image Prompting 引用了 Language Models are Few-Shot Learners
  • Visual Instruction Inversion: Image Editing via Image Prompting 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • Visual Instruction Inversion: Image Editing via Image Prompting 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
  • Learning Transferable Visual Models From Natural Language Supervision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Learning Transferable Visual Models From Natural Language Supervision 引用了 Language Models are Few-Shot Learners
  • Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Language Models are Few-Shot Learners
  • Flamingo: a Visual Language Model for Few-Shot Learning 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 Language Models are Few-Shot Learners
  • Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 Learning Transferable Visual Models From Natural Language Supervision
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper63

  1. In-Context Learning Unlocked for Diffusion ModelsZhendong Wang, Yifan Jiang, Yadong Lu, Yelong Shen 等NeurIPS 2023 · 128 次引用
  2. OmniSVG: A Unified Scalable Vector Graphics Generation ModelYiying Yang, Wei Cheng, Sijin Chen, Xianfang Zeng 等NeurIPS 2025 · 90 次引用
  3. ImageBrush: Learning Visual In-Context Instructions for Exemplar-Based Image ManipulationYasheng Sun, Yifan Yang, Houwen Peng, Yifei Shen 等NeurIPS 2023 · 71 次引用
  4. Towards In-context Scene UnderstandingIvana Balazevic, David Steiner, Nikhil Parthasarathy, Relja Arandjelovic 等NeurIPS 2023 · 62 次引用
  5. Visual Instruction Inversion: Image Editing via Image PromptingThao Nguyen, Yuheng Li, Utkarsh Ojha, Yong Jae LeeNeurIPS 2023 · 53 次引用

它引用的 Paper11

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  4. Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li 等NeurIPS 2022 · 8,965 次引用
  5. Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech 等NeurIPS 2022 · 6,707 次引用

相关 Paper

  1. Cropper: Vision-Language Model for Image Cropping through In-Context LearningSeung Hyun Lee, Jijun Jiang, Yiran Xu, Zhuofang Li 等CVPR 2025
  2. Fairness-guided Few-shot Prompting for Large Language ModelsHuan Ma, Changqing Zhang, Yatao Bian, Lemao Liu 等NeurIPS 2023 · 87 次引用
  3. How Does the Textual Information Affect the Retrieval of Multimodal In-Context Learning?Yang Luo, Zangwei Zheng, Zirui Zhu, Yang YouEMNLP 2024 · 2 次引用
  4. Visual in-Context PromptingFeng Li, Qing Jiang, Hao Zhang, Tianhe Ren 等CVPR 2024
  5. Stable Diffusion Models Are Secretly Good at Visual In-Context LearningTrevine Oorloff, Vishwanath Sindagi, Wele Gedara Chaminda Bandara, Ali Shafahi 等ICCV 2025 · 11 次引用
黄昏的海面,两侧是细线勾勒的悬崖