DINO-KNN: Training-Free Multiclass In-Context Segmentation via Nearest Neighbors
Not on the map. Why?
Abstract (arXiv)
In-context segmentation (ICS) segments a target image given a few annotated reference images. Recent training-free methods built on frozen foundation models segment one class at a time and gain little from additional references. We study the multiclass, multi-reference setting and ask how far a simple joint decision rule can go. We introduce DINO-KNN, which stores every labeled reference patch of a frozen DINOv3 encoder in a single memory and labels each target patch by a distance-weighted vote of its k nearest neighbors. All classes are predicted in a single pass, with one label per pixel, without training or a mask decoder. We evaluate on eight datasets, four natural and four medical, with R=1 to 15 reference images and three reference seeds. DINO-KNN achieves the best average mIoU at every R; it is the best method on six of the eight datasets from R=3 and on seven of the eight from R=7. Its accuracy continues to grow with the number of references, from 37.8 mIoU at R=1 to 56.2 at R=15, while the strongest baseline, INSID3, rises from 36.1 to 42.9. DINO-KNN is also 2.1x faster than INSID3. The code will be made public.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 27 of its 36 references that are in the map. Submitted 18 Nov 2026, announced 24 Nov 2026.
Builds on
27 of 36 references.
References · 27
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 20,127
- 2014Microsoft COCO: Common Objects in Contextcited by 18,045
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 8,800
- 2023Segment Anythingcited by 8,603
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 7,264
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,526
- 2017Prototypical Networks for Few-shot Learningcited by 3,087
- 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,453
- 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,857
- 2019LVIS: A Dataset for Large Vocabulary Instance Segmentationcited by 1,260
- 2019PANet: Few-Shot Image Semantic Segmentation with Prototype Alignmentcited by 455
- 2017One-Shot Learning for Semantic Segmentationcited by 349
15 more
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 337
- 2023Personalize Segment Anything Model with One Shotcited by 266
- 2019Embracing Imperfect Datasets: A Review of Deep Learning Solutions for Medical Image Segmentationcited by 263
- 2022Visual Prompting via Image Inpaintingcited by 260
- 2019Deep Learning for Segmentation using an Open Large-Scale Dataset in 2D Echocardiographycited by 253
- 2020Space-Time Correspondence as a Contrastive Random Walkcited by 246
- 2023Matcher: Segment Anything with One Shot Using All-Purpose Feature Matchingcited by 160
- 2020Self-Supervision with Superpixels: Training Few-shot Medical Image Segmentation without Annotationcited by 129
- 2020Semantic Segmentation of Underwater Imagery: Dataset and Benchmarkcited by 102
- 2023Towards In-context Scene Understandingcited by 50
- 2024Bridge the Points: Graph-based Few-shot Segment Anything Semanticallycited by 45
- 2024A Simple Image Segmentation Framework via In-Context Examplescited by 27
- 2026INSID3: Training-Free In-Context Segmentation with DINOv3cited by 26
- 2023SEGIC: Unleashing the Emergent Correspondence for In-Context Segmentationcited by 25
- 2016Fully Convolutional Networks for Semantic Segmentationcited by 16
Built on by
Not cited yet.