REF-VLM: Triplet-Based Referring Paradigm for Unified Visual Decoding

Yan Tai, Luhao Zhu, Zhiqiang Chen, Ynan Ding, Yiying Dong, Xiaohong Liu, Guodong GuoarXiv 2025 · DOI

Abstract

Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in text-centric tasks but often struggle with dense visual tasks like segmentation or keypoint detection. We present REF-VLM, a framework that introduces the Triplet-Based Referring Paradigm (TRP) to unify these diverse tasks. By decoupling visual concepts, decoding types, and references, REF-VLM provides a flexible "one-fits-all" decoding architecture. Supported by the massive VT-Instruct dataset containing over 100 million samples, REF-VLM achieves state-of-the-art performance across multiple granularities, from global scene understanding to fine-grained pixel-level predictions.

Introduction

While MLLMs excel at Visual Question Answering (VQA), representing "dense" visual tasks—such as semantic segmentation or keypoint detection—as plain text remains a significant challenge. Current approaches generally fall into two categories: "Agent" models that call external tools, often creating bottlenecks in understanding, or "Latent Embedding" models that use specific routing tokens for tasks. These methods are frequently rigid and struggle with multi-granularity scenarios, such as distinguishing between a broad category and a specific instance within the same pipeline. REF-VLM addresses these limitations by providing a structured, decoupled approach to visual decoding.

The Triplet-Based Referring Paradigm

The core innovation of REF-VLM is the Triplet-Based Referring Paradigm (TRP). Instead of simple pointers, the model generates structured triplets consisting of:

  1. Visual Concepts: Encapsulated in <Phrase> tags (e.g., "the capybara").
  2. Decoding Types: Specified in <Unit> tags (e.g., "box" or "mask").
  3. References: Denoted by <REF> tokens that link the concept to specific instances.
Comparison of visual decoding paradigms, highlighting REF-VLM's flexible triplet-based approach.

To implement this, REF-VLM utilizes several key architectural components:

  • Mask-Guided Aggregation: A parameter-free method using Einstein summation to fuse user-provided visual prompts (points, boxes, or scribbles) with global features, injecting spatial awareness without adding model weight.
  • Latent Embeddings Router: Extracts <REF> tokens and routes them to task-specific decoders like DETR for boxes or MaskFormer for masks.
  • Parallel Grouped Hungarian Matching: A modified training loss that ensures the model correctly matches predicted boxes/masks to ground truth within semantic groups, preventing cross-entity interference.

The model utilizes Vicuna-1.5-7B as its language backbone and a dual-encoder setup (CLIP-ViT and CLIP-ConvNeXt) to capture both global context and multi-scale local features.

The VT-Instruct Dataset

To train REF-VLM, the authors introduced VT-Instruct (Visual-Task Instruction Following Dataset), a gargantuan collection of over 100 million multimodal dialogue samples across 25 task types. This dataset covers standard VQA, image captioning, Referring Expression Comprehension (REC), Segmentation (RES), and Depth Estimation. It supports multimodal inputs (images + points/boxes/scribbles) and generates outputs composed of text and visual units.

Examples of diverse visual tasks supported by REF-VLM and the VT-Instruct dataset.

Experimental Results

REF-VLM consistently outperforms existing MLLMs across various benchmarks:

  • Visual Understanding: Achieved a 96.0 CIDEr score on Flickr30k for image captioning, surpassing GLaMM (95.3).
  • Referring Expression Comprehension (REC): Reached 93.7% accuracy on RefCOCO, beating VisionLLMv2 (93.1%).
  • Hallucination Resistance: Attained the highest F1 score on the POPE benchmark, indicating superior grounding.
  • Interactive Grounding: Demonstrated superior performance in segmenting objects based on diverse user prompts compared to specialized models like SAM.

Conclusion

REF-VLM demonstrates that decoupling visual concepts from decoding mechanisms allows for a highly scalable and flexible MLLM architecture. By treating the model as a router for visual tasks, it achieves superior performance and zero-shot extensibility. Future work will focus on improving multi-turn dialogue performance and investigating data efficiency within the massive VT-Instruct dataset.

Summary updated

BibTeX
@misc{tai2025ref,
  author = {Yan Tai and Luhao Zhu and Zhiqiang Chen and Ynan Ding and Yiying Dong and Xiaohong Liu and Guodong Guo},
  title = {{REF-VLM: Triplet-Based Referring Paradigm for Unified Visual Decoding}},
  year = {2025},
  eprint = {2503.07413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.07413},
}
Figure