Vision-Language Transformer and Query Generation for Referring Segmentation

Henghui Ding, Chang Liu, Suchen Wang, Xudong Jiang

Abstract

Referring segmentation aims to generate precise pixel-level masks for objects described by natural language expressions. Traditional methods often struggle with global context and linguistic ambiguity. We present the Vision-Language Transformer (VLT), a framework that treats referring segmentation as a direct attention problem. By generating multiple "comprehension queries" for a single sentence and adaptively balancing them based on visual cues, VLT achieves state-of-the-art performance across major benchmarks while maintaining computational efficiency.

Introduction

Referring segmentation is a challenging task that requires a deep understanding of both visual scenes and natural language. For instance, identifying "the small elephant on the left" requires a model to perceive the entire image to determine which elephant is the smallest and positioned furthest to the left.

Overview of the VLT framework showing multiple query generation for a single input sentence.

Existing approaches, often based on Fully Convolutional Networks (FCNs), face two primary hurdles: a limited receptive field that hinders global context capture, and the difficulty of mapping ambiguous linguistic descriptions to a single fixed vector. VLT addresses these by leveraging the global modeling capabilities of Transformers and a novel query generation strategy that accounts for diverse interpretations of a single expression.

Methodology

The Vision-Language Transformer (VLT) shifts away from convolution-heavy architectures toward an encoder-decoder attention mechanism. The pipeline consists of several key modules designed to handle the complexity of multi-modal interaction.

The end-to-end pipeline of the Vision-Language Transformer, including the Query Generation and Query Balance modules.

Vision-Guided Query Generation Module (QGM)

Instead of compressing a sentence into a single query, the QGM produces a set of $N_q$ (typically 16) query vectors. By using visual features to guide language attention, the model can "comprehend" the sentence from multiple perspectives. For example, one query might focus on spatial attributes like "left," while another focuses on descriptive attributes like "small."

Transformer Encoder-Decoder

Image features are treated as a sequence and processed through a Transformer encoder to capture long-range dependencies across the entire scene. The Transformer decoder then uses the $N_q$ language-derived queries to probe these image features, identifying potential regions of interest for each interpretation.

Query Balance Module (QBM)

To resolve potential noise from multiple queries, the QBM adaptively calculates a confidence score for each query's response. It suppresses irrelevant or "noisy" interpretations and highlights the most accurate ones to produce the final, refined segmentation mask.

Experiments and Results

VLT was evaluated on three standard benchmarks: RefCOCO, RefCOCO+, and G-Ref. The latter is particularly challenging due to its longer and more complex natural language descriptions.

  • State-of-the-Art Performance: VLT set new records across all three datasets. Notably, it achieved a ~5% IoU gain on the RefCOCO+ testB split and a 2%–5% improvement on G-Ref compared to previous leading models.
  • Efficiency: The model is remarkably lightweight. A shallow Transformer version, with parameters comparable to just 7 convolutional layers (~17.5M parameters), outperformed deeper FCN-based models by over 5% in IoU.
  • The Power of Diversity: Ablation studies showed that using multiple queries ($N_q=16$) provides a significant ~5% IoU boost over a single-query baseline, confirming that diversified comprehensions are essential for handling natural language variability.

Conclusion

The Vision-Language Transformer demonstrates that referring segmentation benefits significantly from global attention and multi-perspective linguistic modeling. By moving beyond fixed-vector language representations, VLT handles ambiguity more robustly than traditional methods. Future work may involve transitioning to pure Vision Transformer (ViT) backbones and exploring interactive refinement for cases where language remains inherently ambiguous.

Summary updated

BibTeX
@inproceedings{ding2021vision,
  author = {Henghui Ding and Chang Liu and Suchen Wang and Xudong Jiang},
  title = {{Vision-Language Transformer and Query Generation for Referring Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01601},
}
Figure