DViN: Dynamic Visual Routing Network for Weakly Supervised Referring Expression Comprehension

Xiaofu Chen, Yaxin Luo, Gen Luo, Jiayi Ji, Henghui Ding, Yiyi Zhou

Abstract

Weakly supervised Referring Expression Comprehension (REC) models often suffer from "visual blindness" due to their reliance on a single visual backbone pre-trained on limited categories. We present the Dynamic Visual Routing Network (DViN), which addresses this bottleneck by dynamically selecting the most suitable visual encoders (e.g., CLIP, DINOv2, or SAM) for a given input. By employing a sparse routing mechanism and a novel feature alignment objective, DViN achieves state-of-the-art performance across major benchmarks, significantly improving accuracy on attribute-heavy descriptions while maintaining real-time inference speeds of approximately 30 FPS.

Introduction

Referring Expression Comprehension (REC) involves identifying a specific object in an image based on a natural language description. In the weakly supervised setting, models are trained only on image-text pairs without expensive bounding box annotations. A significant challenge in current one-stage models is their limited visual capability; they often rely on a single backbone like DarkNet, which may not capture fine-grained attributes or complex spatial relations effectively. As descriptions move from simple categories to detailed attributes, performance typically degrades sharply.

Methods: Dynamic Visual Routing

DViN treats visual feature extraction as a dynamic "routing" problem, leveraging a pool of "expert" encoders with complementary strengths.

Comparison of visual features and architecture: (a) DViN outperforms individual backbones on spatial and attribute benchmarks. (b) Architectural comparison showing DViN's dynamic routing vs. traditional single-encoder setups.

1. Dynamic Visual Routing (DVR)

The core of DViN is the DVR module, which incorporates multiple advanced visual encoders. To ensure efficiency, it uses a sparse routing mechanism:

  • Vision-conditioned Router: A lightweight module that analyzes base image features to select the most relevant "expert" encoders. Interestingly, the authors found that routing based on vision alone is more stable than vision-text fusion in early training stages.
  • Top-k Selection: Only the most relevant encoders (typically top-1 or top-2) are activated per forward pass, preserving inference speed.
  • Stable Anchor: A base encoder (DarkNet) remains active to provide a consistent feature space during training.

2. Routing-based Feature Alignment (RFA)

To effectively integrate these diverse features, DViN uses two primary loss functions: Text-guided Alignment, which aligns combined visual features with textual embeddings, and Vision-guided Alignment, which encourages individual experts to capture rich semantics from the combined "super-feature."

Key Results and Discussion

DViN was evaluated on standard benchmarks including RefCOCO, RefCOCO+, RefCOCOg, and ReferItGame. It consistently outperformed existing weakly supervised methods.

Performance comparison ([email protected]) between RefCLIP and DViN across different expression complexities. DViN shows superior robustness as expressions become more complex.

On the attribute-heavy RefCOCO+ dataset, DViN achieved a +16.53% accuracy improvement over the previous baseline, RefCLIP. As shown in the figure above, DViN maintains significantly higher IoU scores as expressions transition from "Simple" to "Attribute" and "Attribute+Long," where traditional models see a massive performance drop.

Efficiency and Generalization

Despite the multi-expert architecture, DViN runs at 29.8 FPS on an NVIDIA 3090, making it suitable for real-time applications. Furthermore, it demonstrates strong generalization to Referring Expression Segmentation (RES), outperforming the previous state-of-the-art by nearly 6% mIoU on RefCOCO.

Conclusion

DViN addresses the visual limitations of weakly supervised REC by dynamically routing inputs to specialized visual experts. This approach allows the model to leverage the semantic richness of CLIP or the boundary precision of SAM as needed. While challenges remain in complex spatial reasoning and fine-grained relative size estimation, DViN sets a new standard for performance and efficiency in weakly supervised visual grounding.

Summary updated

BibTeX
@inproceedings{chen2025dvin,
  author = {Xiaofu Chen and Yaxin Luo and Gen Luo and Jiayi Ji and Henghui Ding and Yiyi Zhou},
  title = {{DViN: Dynamic Visual Routing Network for Weakly Supervised Referring Expression Comprehension}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01338},
}
Figure