GFR-SAM: Training-Free Referring Camouflaged Object Segmentation via Cross-Image Prompting

Yilong Yang, Jianxin Tian, Shengchuan Zhang, Liujuan Cao
7/13/2026
cs.CV

No official code found. Best implementation: ynulonger/GFR-SAM (1 star, last commit 2026-07-26).

Abstract

Referring Camouflaged Object Detection (Ref-COD) requires segmenting hidden targets guided by reference cues. While supervised methods are annotation-heavy and training-free approaches via sparse point-prompting are sensitive to localization errors, we propose GFR-SAM, a robust three-stage training-free framework. GFR-SAM shifts the paradigm from fragile point-matching to a "Generate-Filter-Refine" pipeline. First, we introduce In-Context Exemplar-guided Segmentation, empowering SAM3 with cross-image inference to generate candidate masks via holistic visual exemplars, bypassing its native intra-image constraints. Second, a Region-Global Contrastive Filtering module ranks candidates through DINOv3-based prototypical alignment, effectively suppressing background distractors. Finally, a Geometric-Semantic Refinement module synergizes bounding box and text prompts to recover fine-grained boundaries and enhance instance recall. Evaluated on the R2C7K benchmark, GFR-SAM outperforms existing training-free methods by 8.7\% in weighted F-measure ($F_β^w$) and competes with supervised state-of-the-art counterparts. Ultimately, this work underscores the potential of unlocking SAM3's latent capability for cross-image In-Context prompting, establishing a robust, training-free paradigm that effectively bridges the gap between general-purpose foundation models and specialized, label-intensive perception tasks without the need for task-specific fine-tuning.

View on arXivView PDF

Code Implementations(1)

ynulonger/GFR-SAMCommunity25%

Python implementation of ACM MM 2026 paper "GFR-SAM: Training-Free Referring Camouflaged Object Segmentation via Cross-Image Prompting".

10Jupyter NotebookJul 26, 20262 months ago
computer-visionin-context-segmentationsegment-anything

Similar Papers

Cite this paper

@article{yang2026gfrsam,
  title  = {GFR-SAM: Training-Free Referring Camouflaged Object Segmentation via Cross-Image Prompting},
  author = {Yilong Yang and Jianxin Tian and Shengchuan Zhang and Liujuan Cao},
  year   = {2026},
  eprint = {2607.11732},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.11732v1}
}

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/2607.11732.svg)](https://codeofpaper.com/paper/2607.11732)

Discussion