Multi-task Visual Grounding with Coarse-to-Fine Consistency Constraints

Ming Dai, Jian Li, Jiedong Zhuang, Xian Zhang, Wankou Yang

Abstract

Visual grounding requires a model to accurately localize objects within an image based on natural language descriptions. This task is typically divided into Referring Expression Comprehension (REC), which outputs a bounding box, and Referring Image Segmentation (RIS), which generates a pixel-level mask. Despite their shared objective, existing multi-task models often suffer from spatial inconsistencies between these two outputs. This paper presents C3VG (Coarse-to-fine Consistency Constraints Visual Grounding), a framework that utilizes a two-stage refinement process and a novel bidirectional consistency loss to ensure alignment between boxes and masks. C3VG achieves state-of-the-art performance across major benchmarks while significantly reducing training time compared to previous methods.

1. Introduction

Visual grounding serves as a bridge between computer vision and natural language processing. While REC and RIS are fundamentally related, many current architectures treat them as independent tasks or fail to effectively coordinate their spatial predictions. This often results in an "identity crisis" where a model's predicted bounding box and segmentation mask disagree on the target's location or extent. Furthermore, complex scenes with multiple similar objects often lead to insufficient multimodal understanding when models fail to deeply fuse visual and textual features.

To address these challenges, the C3VG framework introduces a coarse-to-fine architecture designed to harmonize REC and RIS through explicit and implicit consistency constraints.

2. The C3VG Framework

The C3VG architecture is divided into two primary stages: Rough Semantic Perception (RSP) and Refined Consistency Interaction (RCI).

2.1 Rough Semantic Perception (RSP) Stage

The process begins with a Multi-Modality Encoder (MME) based on the BEiT-3 architecture. Unlike traditional models that encode text and images in separate branches before late-stage fusion, BEiT-3 facilitates early fusion of multimodal data. This allows the model to develop a more robust initial understanding of the relationship between specific words and image regions. In the RSP stage, the model generates a preliminary bounding box and a coarse segmentation mask to serve as the foundation for refinement.

2.2 Refined Consistency Interaction (RCI) Stage

The second stage focuses on aligning the initial predictions through two key components:

  • Mask-guided Interaction Module (MIM): This module provides implicit guidance by using the coarse mask from the RSP stage to filter image features. It suppresses background noise and enhances foreground features, forcing the model to concentrate its attention on the most relevant pixels for the final prediction.
  • Bidirectional Consistency Constraint Loss ($L_{bcc}$): To provide explicit mathematical alignment, the authors introduce a novel loss function. This "handshake" consists of two parts: $L_{m2b}$, which ensures the segmentation mask remains within the predicted bounding box, and $L_{b2m}$, which ensures the bounding box tightly encapsulates the mask.

3. Experimental Evaluation

The C3VG model was evaluated on the three standard benchmarks for visual grounding:

  • RefCOCO: A large-scale dataset featuring short, direct queries.
  • RefCOCO+: A dataset that excludes location-based language (e.g., "left," "top"), requiring models to rely solely on object appearance and attributes.
  • RefCOCOg: A dataset containing longer, more complex, and naturally phrased descriptions.

4. Results and Discussion

C3VG demonstrates superior performance and efficiency compared to existing state-of-the-art (SOTA) models.

4.1 Performance Gains

In REC tasks, C3VG achieved an accuracy improvement of +5.78% to +17.98% over Dynamic MDETR on RefCOCO. In RIS tasks, it outperformed the CRIS model by an absolute margin of 9.75% to 18.72%. Notably, C3VG (at approximately 186M parameters) remains competitive with, and in some cases outperforms, much larger "Generalist" Large Language Models like LISA or Ferret on specific grounding metrics.

4.2 Training and Inference Efficiency

One of the most significant advantages of C3VG is its training efficiency. While most SOTA models require between 60 and 180 training epochs, C3VG reaches peak performance in just 30 epochs. This reduction in compute requirements makes the framework more accessible for research and development. Additionally, the model maintains a low latency of 51ms, supporting its potential for near-real-time applications.

4.3 Limitations

Despite its strengths, the model faces challenges with ambiguity. In instances where a text prompt applies to multiple objects, the model may occasionally predict a location centered between the targets rather than selecting one. Furthermore, the current implementation uses a 320x320 input resolution to prioritize speed, which can result in coarser outputs compared to high-resolution alternatives.

5. Conclusion

The C3VG framework effectively addresses the problem of multi-task inconsistency in visual grounding. By combining early multimodal fusion with a coarse-to-fine refinement strategy and bidirectional consistency losses, the model achieves high accuracy and remarkable training efficiency. Future work may explore scaling input resolutions or developing strategies to better handle linguistic ambiguity in complex scenes.

Summary updated

BibTeX
@inproceedings{dai2025multi,
  author = {Ming Dai and Jian Li and Jiedong Zhuang and Xian Zhang and Wankou Yang},
  title = {{Multi-task Visual Grounding with Coarse-to-Fine Consistency Constraints}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i3.32265},
}
Figure