Towards In-context Scene Understanding

Ivana Balazevic, David Steiner, Nikhil Parthasarathy, Relja Arandjelovi'c, Olivier J. Hénaff
2/12/2026

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

In-context learning$\unicode{x2013}$the ability to configure a model's behavior with different prompts$\unicode{x2013}$has 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 protocol$\unicode{x2013}$leveraging attention within and across images$\unicode{x2013}$which 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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{balazevic2026towards,
  title  = {Towards In-context Scene Understanding},
  author = {Ivana Balazevic and David Steiner and Nikhil Parthasarathy and Relja Arandjelovi'c and Olivier J. Hénaff},
  year   = {2026},
  eprint = {2306.01667},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.01667},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.01667.svg)](https://codeofpaper.com/paper/2306.01667)

Discussion