Semantics-Aware Dynamic Localization and Refinement for Referring Image Segmentation

Zhao Yang, Jiaqi Wang, Yansong Tang, Kai Chen, Hengshuang Zhao, Philip H. S. Torr

Abstract

Referring Image Segmentation (RIS) requires a model to identify and segment an object based on a natural language description. Current approaches often struggle with precise boundary refinement and efficient multi-modal integration. This paper presents Semantics-Aware Dynamic Localization and Refinement (SADLR), an iterative framework that utilizes dynamic queries to bridge the gap between linguistic understanding and pixel-level segmentation. By evolving a query from a text-based representation to an object-centric one, SADLR progressively refines masks, achieving state-of-the-art performance across major benchmarks including RefCOCO, RefCOCO+, and G-Ref.

Introduction

Referring Image Segmentation (RIS) is a challenging task at the intersection of computer vision and natural language processing. Unlike standard semantic segmentation, which operates on a fixed set of categories, RIS requires the model to interpret free-form, often ambiguous, linguistic expressions to locate and segment a specific target.

While recent advancements have leveraged Transformer-based architectures to improve feature fusion, existing refinement strategies—such as those based on Recurrent Neural Networks (RNNs) or stacked attention layers—often face limitations. RNNs can be computationally expensive and architecture-dependent, while attention-based refinement often yields diminishing returns when applied to already powerful backbones. Furthermore, many models lack a dedicated mechanism to focus on local regions, often processing the entire image context even during the final refinement stages.

Methodology

The SADLR framework introduces a "plug-and-play" module designed to enhance existing RIS models through Semantics-Aware Dynamic Convolution. The core innovation lies in the iterative evolution of a dynamic query.

Semantics-Aware Dynamic Convolution

Instead of employing static filters, SADLR generates convolutional kernels dynamically based on a query vector. This allows the model to adapt its filtering mechanism to the specific nuances of the input text (e.g., "the second bottle from the left"). These dynamic kernels are convolved with multi-modal feature maps to highlight relevant regions while suppressing background noise.

Iterative Localization and Refinement

The process unfolds in four primary stages:

  1. Initialization: The initial query ($Q_1$) is derived from linguistic features. This stage focuses on global localization—identifying the general vicinity of the target object.
  2. Dynamic Convolution: The query is transformed into weights for a convolutional layer, which is then applied to the fused vision-language features.
  3. Query Update: Once an initial mask is predicted, the model performs feature pooling within the predicted area. This updates the query with visual information specific to the detected object.
  4. Refinement: In subsequent iterations, the query becomes increasingly "object-centric." The model shifts its focus from "where" the object is to "what" pixels it precisely occupies, allowing for the recovery of missing parts and the removal of false positives.

Experimental Results

The authors evaluated SADLR by integrating it into several high-performing backbones, including LTS, VLT, and LAVT. Testing was conducted on three benchmark datasets: RefCOCO, RefCOCO+, and G-Ref.

Quantitative Performance

SADLR consistently improved the performance of all base models. When paired with the LAVT backbone, it established new state-of-the-art results:

  • RefCOCO: 74.24% overall IoU (+1.51% absolute improvement).
  • RefCOCO+: 64.28% overall IoU (+2.01% absolute improvement).
  • G-Ref: 63.60% overall IoU (+2.36% absolute improvement).

The significant gains on G-Ref are particularly noteworthy, as this dataset contains longer and more complex descriptions, suggesting that SADLR's iterative refinement is highly effective at resolving linguistic ambiguity.

Qualitative Observations

Qualitative analysis demonstrates the model's ability to "grow" or "shrink" masks over successive iterations. This iterative behavior effectively handles cases where initial linguistic cues might be insufficient to capture the full extent of an object or where nearby similar objects cause initial confusion.

Discussion and Limitations

Despite its success, SADLR is sensitive to the quality of the initial localization. If the first iteration fails to identify the target object or includes excessive noise, the error can propagate through the query update mechanism. Additionally, the model faces challenges in scenarios involving extreme boundary ambiguity or high-contrast background noise that mimics object edges.

Conclusion

SADLR provides a simple yet effective mechanism for improving Referring Image Segmentation. By leveraging dynamic convolutions and an evolving query, the model transitions naturally from coarse localization to fine-grained refinement. Its architecture-agnostic design makes it a versatile tool for enhancing future multi-modal segmentation frameworks.

Summary updated

BibTeX
@inproceedings{yang2023semantics,
  author = {Zhao Yang and Jiaqi Wang and Yansong Tang and Kai Chen and Hengshuang Zhao and Philip H. S. Torr},
  title = {{Semantics-Aware Dynamic Localization and Refinement for Referring Image Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i3.25428},
}
Figure