Latent Expression Generation for Referring Image Segmentation and Grounding

Seonghoon Yu, Junbeom Hong, Joonseok Lee, Jeany Son · OpenReview

Abstract

Visual grounding tasks, such as referring image segmentation (RIS) and referring expression comprehension (REC), aim to localize a target object based on a given textual description. The target object in an image can be described in multiple ways, reflecting diverse attributes such as color, position, and more. However, most existing methods rely on a single textual input, which captures only a fraction of the rich information available in the visual domain. This mismatch between rich visual details and sparse textual cues can lead to the misidentification of similar objects. To address this, we propose a novel visual grounding framework, Latent-VG, that leverages multiple latent expressions generated from a single textual input by incorporating complementary visual details absent from the original description. Specifically, we introduce subject distributor and visual concept injector modules to embed both shared-subject and distinct-attributes concepts into the latent representations, thereby capturing unique and target-specific visual cues. We also propose a positive-margin contrastive learning strategy to align all latent expressions with the original text while preserving subtle variations. Experimental results show that our method not only outperforms state-of-the-art RIS and REC approaches on multiple benchmarks but also achieves outstanding performance on the generalized referring expression segmentation (GRES) benchmark.

Introduction: The Semantic Gap in Visual Grounding

Visual grounding tasks require a model to find a specific object in an image based on a text description. However, human descriptions are often brief (e.g., "the man in denim"), while the visual scene is incredibly rich. This creates a "semantic gap": a single short phrase might not contain enough information to distinguish the target from similar-looking objects in the background.

Most existing models rely strictly on the provided text, making them fragile if the user's description is slightly ambiguous. The authors argue that a model should be able to "imagine" alternative ways to describe the target—incorporating details like position, secondary attributes, or context—to better anchor its predictions.

Overview of Latent-VG. (a) Standard single-input models often fail due to the semantic gap. (b) Latent-VG generates multiple latent expressions to capture diverse visual cues, leading to correct predictions.

Methodology

The Latent-VG framework expands a single input into $N$ latent expressions within the model's embedding space. The architecture is built on the BEiT-3 multi-modal transformer and features three core innovations:

  1. Latent Expression Initialization: The model takes the original text and creates multiple variations by randomly dropping tokens and varying the expression length. This forces the model to explore different semantic nuances.
  2. Shared-Subject and Distinct-Attributes: To ensure these new expressions don't "drift" away from the actual target, the framework utilizes two specialized modules:
  3. Subject Distributor: Identifies the main subject (e.g., "man") and ensures it is consistently referenced across all latent expressions.
  4. Visual Concept Injector: This module extracts visual features (like color or texture) from the image that were absent in the original text, injecting them into the latent expressions to make them more descriptive.
  5. Positive-Margin Contrastive Loss ($L_{pos-cont}$): Standard contrastive learning tries to make related representations identical. Latent-VG uses a "positive-margin" approach, which allows the latent expressions to remain slightly different from the original text. This preserves the unique visual "extra details" each expression has captured while still keeping them aligned with the user's intent.

Experimental Evaluation

Datasets

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

  • RefCOCO / RefCOCO+ / RefCOCOg: The primary benchmarks for RIS and REC, ranging from simple phrases to complex descriptions.
  • gRefCOCO: A benchmark for Generalized Referring Expression Segmentation (GRES), which includes challenging scenarios with multiple targets or no targets at all.

Key Results

Latent-VG set new state-of-the-art (SoTA) records across almost all tested categories:

  • RIS: On the RefCOCO "testA" split, it achieved an mIoU of 82.26, outperforming previous methods by a significant margin.
  • REC: It achieved 86.41% accuracy on RefCOCO+, beating models trained on significantly more data.
  • GRES: Despite not being specifically designed for "no-target" scenarios, the model outperformed specialized GRES models, demonstrating superior generalization.

Discussion and Insights

  • Visual Cues as Text Augmentation: Instead of just augmenting text with a dictionary, Latent-VG uses the image itself to augment the text. It finds visual concepts in the scene and "translates" them into the latent space to help the model understand the target better.
  • The Power of Diversity: By generating multiple latent expressions, the model creates multiple "attention maps." One might focus on the subject's clothing, another on their position. Averaging these maps leads to a much more robust final segmentation.
  • Efficiency over Scale: Latent-VG outperforms several much larger Large Language Model (LLM)-based grounding methods (like Ferret-7B or LION-12B). This suggests that specialized latent-space manipulation can be more effective than raw parameter scaling for these specific tasks.

Limitations and Future Work

Despite its success, the authors note a few hurdles. The latent expressions are still initialized from the input text; if the input is extremely limited or misleading, the model can still struggle to find the right "anchor" subject. Additionally, performance drops when the target object is very small (less than 5% of the image). Finally, the current "Subject Distributor" picks a single token as the subject, which can lead to errors for multi-word subjects like "mobile phone." Future work will focus on more sophisticated multi-word subject extraction and improving sensitivity to small objects.

Summary updated

BibTeX
@inproceedings{yu2025latent,
  author = {Seonghoon Yu and Junbeom Hong and Joonseok Lee and Jeany Son},
  title = {{Latent Expression Generation for Referring Image Segmentation and Grounding}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure