NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Segment, Select, Correct: A Framework for Weakly-Supervised Referring Segmentation

Francisco Eiras, Kemal Oksuz, Adel Bibi, Philip H. S. Torr, Puneet K. Dokania

TL;DR

This paper introduces Segment, Select, Correct (S+S+C), a novel three-stage framework for weakly-supervised Referring Image Segmentation (RIS) that completely eliminates the need for expensive pixel-dense mask annotations. By combining open-vocabulary segmentation, zero-shot selection via visual prompting, and a self-correcting training loop using constrained greedy matching, the framework drastically shrinks the performance gap between weakly-supervised and fully-supervised RIS methods.

What Problem Does This Paper Address?

Referring Image Segmentation (RIS) is the task of identifying and segmenting a specific object in an image based on a natural language description (e.g., "the striped mug next to the laptop").

State-of-the-art RIS models are typically trained using full supervision, requiring massive datasets filled with triplets of images, text expressions, and precise, pixel-level segmentation masks. However, drawing dense masks is notoriously time-consuming and expensive. While weakly-supervised (text-only supervision) and zero-shot methods exist, their performance has historically lagged far behind fully supervised models—often by more than 30%.

The authors tackle this bottleneck, aiming to build a high-performing RIS model without using a single ground-truth mask during training.

Methods

The authors break down the RIS problem into a three-stage pipeline: Segment, Select, and Correct.

Overview of the S+S+C three-stage framework

1. Segment (Open-Vocabulary Mask Generation)

First, the framework extracts all potential candidate masks for the object mentioned in the text. It uses a text dependency parser to isolate the subject noun (e.g., "bottle"), projects it to dataset-specific classes using CLIP, and feeds it into an open-set object detector (Grounding DINO) paired with a class-agnostic segmenter (SAM). This generates a pool of high-quality candidate masks for that object category in the image.

Stage 1: Open-Vocabulary Segmentation from Referring Expressions

2. Select (Zero-Shot Instance Choice)

Next, the framework must choose which candidate mask actually matches the full referring expression. To do this, it leverages visual prompting via reverse blurring: it creates versions of the image where everything except the candidate mask is blurred out. It then uses CLIP to compute the similarity between these visually prompted images and the text expression, selecting the highest-scoring mask.

Stage 2: Zero-Shot Choice using Visual Prompting

3. Correct (Constrained Greedy Matching)

CLIP-based zero-shot selection is imperfect and frequently makes mistakes. To fix these errors, the authors introduce a clever weakly-supervised training strategy. They first pre-train a model on the noisy zero-shot masks from Stage 2 to establish basic vision-language grounding. They then fine-tune the model using a Constrained Greedy Matching loss against all candidate masks from Stage 1. This loss enforces logical dataset constraints: multiple expressions referring to the same object must map to the same mask, while expressions referring to different objects must map to different masks.

Stage 3: Grounding and Constrained Greedy Matching Training

Datasets

The framework was evaluated on three standard benchmark RIS datasets:

  • RefCOCO
  • RefCOCO+
  • RefCOCOg (both UMD and Google splits)

These datasets contain implicitly structured data (e.g., multiple user-generated sentences pointing to the same underlying object instance), which the "Correct" stage exploits to resolve ambiguities.

Key Insights and Ideas

  • Exploiting Implicit Dataset Structure: The core "aha!" moment is realizing that text-only datasets contain structural constraints that can act as a supervisor. By forcing the network to map identical object references to the same mask and distinct object references to different masks, the model naturally learns to correct the noisy labels generated by the zero-shot step.
  • Context-Aware Visual Prompting: Instead of cropping out objects (which destroys spatial context like "on the left"), reverse blurring keeps the entire image intact but forces CLIP to focus its attention on the unblurred target region.
  • Bootstrapping Beats Pure Zero-Shot: A model trained on its own noisy zero-shot predictions—when regularized by greedy matching constraints—can generalize well enough to correct its initial training errors.

Key Results

  • Zero-Shot Breakthrough: Even without the final correction stage, the zero-shot pipeline (Segment + Select) outperformed existing zero-shot baselines (like GL CLIP) by up to 16.5% in overall Intersection over Union (oIoU).
  • New Weakly-Supervised State-of-the-Art: The full S+S+C framework shattered previous weakly-supervised records, outperforming prior methods (TRIS, Shatter&Gather) by up to 26% oIoU and 34% mIoU.
  • Closing the Supervised Gap: On the RefCOCO+ dataset, S+S+C narrowed the performance gap to the fully-supervised state-of-the-art (LAVT) to less than 7% (down from a massive 33% gap left by previous methods).
  • Inference Speedup: Because the final trained model doesn't need to run the heavy open-vocabulary or visual prompting pipelines at test time, it achieves a 2.4× to 14× speedup during inference compared to zero-shot methods.

Limitations and Future Work

  • A Priori Class Knowledge: The "Segment" stage relies on a class projection step, meaning the framework needs to know the general categories of objects in the dataset ahead of time.
  • Upstream Failures: If the open-vocabulary segmentation tools (Grounding DINO + SAM) fail to propose a mask for an object in Stage 1, the Correction stage cannot recover it.
  • Future Directions: The authors suggest replacing the class projection step with a pre-trained Visual Question Answering (VQA) model to automatically deduce object references, making the pipeline fully open-vocabulary from start to finish.

Summary updated

BibTeX
@inproceedings{eiras2024segment,
  author = {Francisco Eiras and Kemal Oksuz and Adel Bibi and Philip H. S. Torr and Puneet K. Dokania},
  title = {{Segment, Select, Correct: A Framework for Weakly-Supervised Referring Segmentation}},
  booktitle = {Workshops @ ECCV},
  year = {2024},
  doi = {10.1007/978-3-031-91856-8\_19},
}
Figure