Towards In-context Scene Understanding
Ivana Balazevic, David Steiner, Nikhil Parthasarathy, Relja Arandjelovic, Olivier J. Hénaff
Abstract
In-context learningthe ability to configure a model's behavior with different promptshas revolutionized the field of natural language processing, alleviating the need for task-specific models and paving the way for generalist models capable of assisting with any query. Computer vision, in contrast, has largely stayed in the former regime: specialized decoders and finetuning protocols are generally required to perform dense tasks such as semantic segmentation and depth estimation. In this work we explore a simple mechanism for in-context learning of such scene understanding tasks: nearest neighbor retrieval from a prompt of annotated features. We propose a new pretraining protocolleveraging attention within and across imageswhich yields representations particularly useful in this regime. The resulting Hummingbird model, suitably prompted, performs various scene understanding tasks without modification while approaching the performance of specialists that have been finetuned for each task. Moreover, Hummingbird can be configured to perform new tasks much more efficiently than finetuned models, raising the possibility of scene understanding in the interactive assistant regime.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
29 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Locality-Attending Vision Transformer cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Locality-Attending Vision Transformer cites Learning Transferable Visual Models From Natural Language Supervision
- Context-Aware Meta-Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Context-Aware Meta-Learning cites Language Models are Few-Shot Learners
- Context-Aware Meta-Learning cites Learning Transferable Visual Models From Natural Language Supervision
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
- Franca: Nested Matryoshka Clustering for Scalable Visual Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Franca: Nested Matryoshka Clustering for Scalable Visual Representation Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Franca: Nested Matryoshka Clustering for Scalable Visual Representation Learning cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
- Franca: Nested Matryoshka Clustering for Scalable Visual Representation Learning cites Learning Transferable Visual Models From Natural Language Supervision
- Explore In-Context Learning for 3D Point Cloud Understanding cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Explore In-Context Learning for 3D Point Cloud Understanding cites Language Models are Few-Shot Learners
- Explore In-Context Learning for 3D Point Cloud Understanding cites Learning Transferable Visual Models From Natural Language Supervision
- Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Time Does Tell: Self-Supervised Time-Tuning of Dense Image Representations cites A Simple Framework for Contrastive Learning of Visual Representations
- Time Does Tell: Self-Supervised Time-Tuning of Dense Image Representations cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
- Learning Transferable Visual Models From Natural Language Supervision cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
Cited by top-tier papers29
- Locality-Attending Vision TransformerSina Hajimiri, Farzad Beizaee, Fereshteh Shakeri, Christian Desrosiers et al.ICLR 2026 · 427 citations
- Explore In-Context Learning for 3D Point Cloud UnderstandingZhongbin Fang, Xiangtai Li, Xia Li, Joachim M. Buhmann et al.NeurIPS 2023 · 47 citations
- Time Does Tell: Self-Supervised Time-Tuning of Dense Image RepresentationsMohammadreza Salehi, Efstratios Gavves, Cees G. M. Snoek, Yuki M. AsanoICCV 2023 · 34 citations
- Context-Aware Meta-LearningChristopher Fifty, Dennis Duan, Ronald G. Junkins, Ehsan Amid et al.ICLR 2024 · 28 citations
- Franca: Nested Matryoshka Clustering for Scalable Visual Representation LearningShashanka Venkataramanan, Valentinos Pariza, Mohammadreza Salehi, Lukas Knobel et al.CVPR 2026 · 26 citations
Builds on34
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec et al.NeurIPS 2020 · 9,171 citations
Related papers
- What Makes Good Examples for Visual In-Context Learning?Yuanhan Zhang, Kaiyang Zhou, Ziwei LiuNeurIPS 2023 · 219 citations
- Skeleton-in-Context: Unified Skeleton Sequence Modeling with In-Context LearningXinshun Wang, Zhongbin Fang, Xia Li, Xiangtai Li et al.CVPR 2024 · 12 citations
- Towards More Unified In-Context Visual UnderstandingDianmo Sheng, Dongdong Chen, Zhentao Tan, Qiankun Liu et al.CVPR 2024 · 9 citations
- Stable Diffusion Models Are Secretly Good at Visual In-Context LearningTrevine Oorloff, Vishwanath Sindagi, Wele Gedara Chaminda Bandara, Ali Shafahi et al.ICCV 2025 · 11 citations
- Show and Segment: Universal Medical Image Segmentation via In-Context LearningYunhe Gao, Di Liu, Zhuowei Li, Yunsheng Li et al.CVPR 2025
