WeakMCN: Multi-task Collaborative Network for Weakly Supervised Referring Expression Comprehension and Segmentation

Silin Cheng, Yang Liu, Xinwei He, Sébastien Ourselin, Lei Tan, Gen Luo

Abstract

WeakMCN is the first multi-task framework designed to jointly learn Referring Expression Comprehension (REC) and Segmentation (RES) using only weak supervision from image-text pairs. By introducing dynamic feature selection and a collaborative consistency module, the framework enables these two tasks to mutually reinforce each other. Experimental results demonstrate that WeakMCN achieves significant performance improvements—up to 13%—over specialized single-task models on standard benchmarks like RefCOCO.

Introduction

In vision-language research, Referring Expression Comprehension (REC) and Segmentation (RES) are complementary tasks. REC involves identifying a bounding box for an object described in text, while RES requires a precise pixel-level mask. Traditionally, high-performing models for these tasks rely on "full supervision," requiring extensive human-annotated boxes and masks. Weakly supervised versions (WREC and WRES) attempt to learn from image-text pairs alone but often struggle with background noise and ambiguity.

Historically, WREC and WRES have been treated as separate problems. WeakMCN challenges this paradigm by arguing that while detection requires global context and segmentation requires fine-grained detail, they are fundamentally identifying the same targets. The challenge lies in facilitating collaboration without allowing noise from one task to degrade the other.

Methodology

WeakMCN utilizes a dual-branch architecture where one branch handles detection via contrastive learning and the other handles segmentation via pseudo-labeling.

The WeakMCN architecture features a Visual Bank and collaborative modules to synchronize detection and segmentation tasks.

The framework introduces two primary components to manage this multi-task learning:

  1. Dynamic Visual Feature Enhancement (DVFE): Rather than relying on a single backbone, WeakMCN maintains a "Visual Bank" with features from foundation models such as SAM (Segment Anything Model), DINOv2, and DarkNet. A learnable gating mechanism dynamically selects the most relevant features for each task—for example, leveraging DINOv2 for detection and SAM for segmentation.
  2. Collaborative Consistency Module (CCM): This module ensures alignment between the branches. It employs a Spatial Consistency Loss (SCL) to align predicted masks and bounding boxes, and an Inconsistency Suppression Loss (ISL) to act as a quality filter. If a segmentation mask is highly inconsistent with the detection box, the ISL allows the model to ignore the noisy mask during training.

In this collaborative setup, the WREC branch effectively acts as a "teacher," providing bounding box prompts to SAM to generate pseudo-masks that supervise the WRES branch.

Experimental Results

The model was evaluated on three standard benchmarks: RefCOCO, RefCOCO+, and RefCOCOg.

WeakMCN significantly outperforms single-task baselines in both REC accuracy and RES IoU across multiple benchmarks.

WeakMCN established a new state-of-the-art for weakly supervised grounding. Key results include:

  • Segmentation Gains: On the RefCOCO dataset, WeakMCN improved the mean Intersection over Union (mIoU) for the WRES task by 13.11% over previous best methods.
  • Detection Improvements: It also improved WREC accuracy by nearly 4% on the same dataset.
  • Data Efficiency: In semi-supervised tests with only 1% labeled data, WeakMCN outperformed existing models by over 10%, proving the robustness of its collaborative architecture.

Conclusion

WeakMCN demonstrates that multi-task collaboration can significantly enhance performance in weakly supervised vision-language tasks. By allowing detection and segmentation to "teach" each other and dynamically selecting visual features, the model achieves superior grounding and segmentation accuracy. Future research will explore tighter integration where pixel-level boundaries directly refine bounding box coordinates to further optimize the collaborative synergy.

Summary updated

BibTeX
@inproceedings{cheng2025weakmcn,
  author = {Silin Cheng and Yang Liu and Xinwei He and Sébastien Ourselin and Lei Tan and Gen Luo},
  title = {{WeakMCN: Multi-task Collaborative Network for Weakly Supervised Referring Expression Comprehension and Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00857},
}
Figure