Introduction
Interactive Segmentation (IS) enables users to extract objects from images through simple inputs like clicks. However, a persistent challenge is interactive ambiguity: the uncertainty regarding whether a user intends to segment a specific part (e.g., a turtle's shell), a whole object (the entire turtle), or a group of objects (a dolphin and its ball). While existing methods often default to whole-object segmentation or require manual granularity adjustments for every image, RefCut introduces a reference-based approach to provide intuitive guidance.
Methods
RefCut extends the ViT-based SimpleClick framework by introducing a dual-branch architecture that incorporates a reference image and mask to resolve ambiguity. By "prompting" the model with the reference's semantics and granularity, RefCut aligns its output to the user's intent before they even start clicking on the target image.
Dual-Branch Architecture
- Reference Branch: This branch processes a user-provided reference image and mask. The Reference Prompt Generator (RPG) extracts features using a shared backbone and pools them into a compact 1D representation. This generates both positive prompts (target features) and negative prompts (features to suppress, based on an optional negative reference mask).
- Target Branch: This standard IS pipeline processes the target image and user clicks. The reference prompts are injected into the target branch's feature map, aligning the model's output with the desired granularity from the outset.
Datasets and Evaluation
The framework was evaluated on several benchmarks, including PartImageNet, PASCAL-Part, and a newly introduced Target Disassembly (TDA) dataset. The TDA dataset specifically tests ambiguity through two subsets: TDA-PD (Part Disassembly), focusing on parts of single objects, and TDA-OD (Object Disassembly), focusing on object combinations.
Key Results
RefCut achieves state-of-the-art performance, particularly in reducing the Number of Clicks (NoC) required to reach a target IoU.
- Efficiency: On PartImageNet, RefCut required only 5.42 clicks to reach 90% IoU, significantly lower than the 6.21 clicks for the SimpleClick baseline.
- Ambiguity Resolution: On the TDA benchmark, RefCut reached 90% IoU in just 3.33 clicks, outperforming general models like SAM, which required 7.01 clicks.
- First-Click Accuracy: Providing a reference improved first-click IoU by nearly 14% in some scenarios, demonstrating the power of "intuitive guidance."
- Robustness: Ablation studies showed the model is robust to "messy" or rough reference masks, as it uses average features from the masked area.
Conclusion
RefCut is particularly effective for large-scale batch annotation tasks where consistent granularity is required across many images. By leveraging a single visual example, it minimizes user effort and resolves the inherent ambiguities of interactive segmentation. While less suited for one-off tasks due to the overhead of selecting a reference, its ability to generalize across classes and handle varied reference masks makes it a robust tool for professional labeling workflows.
Summary updated