INSID3: Training-Free In-Context Segmentation with DINOv3
Organizations: Politecnico di Torino · TU Darmstadt · TU Munich · ELIZA · MCML
Abstract
In-context segmentation (ICS) aims to segment arbitrary concepts, e.g., objects, parts, or personalized instances, given one annotated visual examples. Existing work relies on (i) fine-tuning vision foundation models (VFMs), which improves in-domain results but harms generalization, or (ii) combines multiple frozen VFMs, which preserves generalization but yields architectural complexity and fixed segmentation granularities. We revisit ICS from a minimalist perspective and ask: Can a single self-supervised backbone support both semantic matching and segmentation, without any supervision or auxiliary models? We show that scaled-up dense self-supervised features from DINOv3 exhibit strong spatial structure and semantic correspondence. We introduce INSID3, a training-free approach that segments concepts at varying granularities only from frozen DINOv3 features, given an in-context example. INSID3 achieves state-of-the-art results across one-shot semantic, part, and personalized segmentation, outperforming previous work by +7.5 % mIoU, while using 3x fewer parameters and without any mask or category-level supervision. Code is available at https://github.com/visinf/INSID3 .
Figures & tables
| Small | Base | Large | |||||
| original | debias | original | debias | original | debias | ||
| 0.05 | 27.9 | 32.3 | 33.6 | ||||
| 0.10 | 45.7 | 50.0 | 52.0 | ||||
| 0.15 | 55.6 | 59.9 | 62.1 | ||||
| 0.20 | 62.6 | 66.4 | 68.6 | ||||
| Variant | COCO | PASCAL-Part |
| No clustering | ||
| Thresholding sim. map @ 0.55 (Eq. 2 ) | 44.2 | 35.4 |
| Clustering w/o aggregation | ||
| Coarse clustering ( \tau=\text{0.5} ) | 50.6 | 31.1 |
| Fine clustering ( \tau=\text{0.6} ) | 42.8 | 36.2 |
| Ours : Clustering w/ aggregation ( \tau=\text{0.6} ) | ||
| Backbone | Features | [email protected] | [email protected] | [email protected] |
| DINOv2 | original | 34.4 | 50.5 | 66.8 |
| debias | 34.7 (+0.3) | 50.8 (+0.3) | 67.1 (+0.3) | |
| DINOv3 | original | 29.2 | 45.0 | 59.8 |
| debias | 32.3 (+3.1) | 50.0 (+5.0) | 66.4 (+6.6) |
| Method | mIoU |
| No debiasing | 54.5 |
| Augmentations, 4 views | 55.7 |
| Augmentations, 12 views | 56.5 |
| Ours (SVD from 1 noise image) | 57.6 |
| SVD from 5 noise images | 57.7 |
| SVD from 10 noise images | 57.7 |
| Hyperparameter | Value | |
| (clustering sensitivity) | 0.6 | |
| (aggregation threshold) | 0.2 | |
| (debias rank) | 500 | |
| DINOv3 | DINOv2 | Franca | Perception Enc. | Stable Diff. |
| Method | mIoU |
| Training free : Mask-supervised pre-training | |
| Segment Anything 3 (video-style propagation) | 26.7 |
| Segment Anything 3 (image concatenation) | 52.9 |
| Training free : Unsupervised pre-training | |
| INSID3 (ours) | 57.6 |
| Method | Correct empty predictions (in %) |
| Task-specific fine-tuning : Semantic + mask supervision | |
| SegGPT [ 64 ] | 79 |
| SegIC [ 41 ] | 36 |
| Training free : Mask-supervised pre-training | |
| PerSAM [ 72 ] | n.a. |
| Matcher [ 39 ] | n.a. |
| Method | Backbone | Resolution | Runtime |
| Task-specific fine-tuning : Semantic + mask supervision | |||
| SegGPT [ 64 ] | ViT | 640 2 | |
| SegIC [ 41 ] | DINOv2 | 896 2 | |
| Training free : Mask-supervised pre-training | |||
| PerSAM [ 72 ] | SAM | 1024 2 | |
| Matcher [ 39 ] | DINOv2 + SAM | 1024 2 | |
| Component | Runtime |
| Encoder forward debiasing | |
| Compute similarity cluster scoring | |
| Clustering | 166 ms |
| CRF refinement | 55 ms |
| Total inference time |
| Low resolution Runtime of INSID3 High resolution | ||||||