Toward Robust In-Context Segmentation via Concept Guidance
About
In-context segmentation (ICS) requires a model to segment target regions in a query image using only a few reference images and their corresponding masks, without updating any parameters. Despite recent progress, prior ICS studies have largely overlooked a critical aspect: system robustness, ie, whether the model can produce stable segmentation results for the same query under different references. In this work, we revisit ICS from the robustness perspective and introduce a novel paradigm, Concept-Guided In-Context Segmentation (CG-ICS), which performs segmentation by extracting high-level semantic concepts from references rather than relying solely on low-level visual matching. Specifically, CG-ICS introduces a concept reasoning module that uses an MLLM to propose candidates and a SAM3-driven scoring function with tree-search refinement to select reliable textual concepts, together with a parallel visual exemplar route that provides query-side spatial grounding via a simple context construction. Both the textual concept and the visual exemplar are then used to activate the segmentation capability of a frozen SAM3 backbone. Extensive experiments on standard ICS benchmarks demonstrate that CG-ICS not only achieves state-of-the-art accuracy but also substantially improves robustness, yielding a more reliable ICS system with significantly reduced variance across diverse reference choices. Code is available at https://github.com/Kakarot1103/CG-ICS.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Few-shot Segmentation | FSS-1000 (test) | mIoU90.2 | 64 | |
| Example-based Segmentation | PASCAL 5i (val) | mIoU89.6 | 25 | |
| In-Context Segmentation | LVIS 92i | mIoU56.2 | 16 | |
| In-Context Segmentation | COCO-20i (val) | mIoU72.6 | 16 | |
| Semantic segmentation | COCO-20i | Clean Score74.6 | 7 | |
| Segmentation | PASCAL-5i | mIoU88.4 | 6 | |
| Segmentation | LVIS 92i | mIoU57.1 | 6 | |
| Segmentation | COCO-20i | mIoU72.1 | 6 |