ReferFlow: Beyond Final-Target Localization for Complex Referring Expressions

Tianyi Gao, Han Fang, Xin Wei, Yaoyao Zhong, Zhaoyan Pan, Weijie Zhu, Hongbo Sun, Zhiyu Lin, Kaicheng Yang, Jinglin Xu, Ye Yuan, Hao Li, Hao Sun, Jingmin XinarXiv 2026

TL;DR

ReferFlow introduces trajectory-level Referring Expression Comprehension (REC), a new paradigm that requires models to localize every intermediate object mentioned in a complex query, not just the final target. The authors propose the ReferFlow model, which uses stateful region latents and parallel coordinate decoding to maintain consistent grounding across multi-step reasoning, significantly outperforming existing Multimodal Large Language Models (MLLMs) on both complex and standard benchmarks.

What Problem Does This Paper Address?

Traditional Referring Expression Comprehension (REC) tasks are "all-or-nothing": a model is given a query like "Find the white cup in front of the person seated across from the woman raising her hand" and is only evaluated on whether it finds the cup.

However, complex reasoning is a trajectory. To find that cup, a model must first identify the woman, then the person across from her, and finally the cup. Existing benchmarks ignore these intermediate steps, making it impossible to diagnose where a model’s reasoning chain breaks. Furthermore, most current MLLMs struggle with "spatial memory"—they often forget or mis-localize earlier objects in a sequence, leading to a "cascading error" effect where one wrong intermediate box ruins the final prediction.

ReferFlow-Bench exposes intermediate localization failures that final-only evaluation hides.

Methods

The authors introduce ReferFlow, an architecture designed to handle structured region transitions through three core innovations:

  1. Stateful Region Latent Reasoning (SRLR): Instead of representing objects as discrete text coordinates (which can be imprecise), ReferFlow represents each target region as an "object-indexed state" using continuous latents. These latents are supervised by both visual features and spatial boxes, allowing the model to "remember" the fine-grained visual context of an object for use in subsequent steps.
  2. Trajectory-Aware Parallel Decoding (TAPD): Most models generate bounding boxes one token at a time (autoregressively), which is slow and prone to error accumulation. TAPD decodes all boxes in the trajectory in parallel across four refinement rounds. It uses a "trajectory-aware mask" to ensure each box is conditioned on its specific reasoning prefix while remaining independent of other boxes' coordinate errors.
  3. Grounding-Aware GRPO: The model is refined using Group Relative Policy Optimization (GRPO). This reinforcement learning strategy rewards the model for maintaining consistency across the entire grounding trajectory, helping it learn when to build on prior regions versus when to "reset" and look for something entirely new.
Overview of the ReferFlow architecture, featuring SRLR and TAPD.

Datasets

The paper introduces ReferFlow-Bench, a benchmark consisting of 10,000 trajectories categorized into four types of region transitions:

  • Refinement: Narrowing down a target (e.g., "the balls" $\rightarrow$ "the red ones").
  • Shift: Moving from one object to a related one (e.g., "the man" $\rightarrow$ "his hat").
  • Reset: Switching to an entirely independent object.
  • Mixture: A combination of the above.

For training and general evaluation, the authors also use standard REC datasets including RefCOCO/+/g, Ref-L4, Ref-Adv, GroundingME, HumanRef, and PR-Bench.

Examples of the four trajectory types in ReferFlow-Bench.

Key Insights and Ideas

  • The "Spatial Memory" Gap: Evaluating over 20 MLLMs (including GPT-4 variants and Qwen) revealed that even models that find the final target often fail to correctly localize the intermediate references.
  • Order Matters: Shuffling the steps in a "Shift" trajectory causes model performance to drop to nearly zero, proving that these models rely heavily on the logical flow of the query.
  • Latents > Tokens: Using continuous latents to represent regions (SRLR) provides a significant boost over text-only reasoning, especially on longer trajectories where visual details must be preserved across 5+ steps.
  • Parallelism Prevents Drift: By decoupling box decoding from the text generation and making it parallel, ReferFlow avoids the "coordinate drift" that plagues autoregressive models.

Key Results

ReferFlow (based on a modest 2B parameter backbone) achieved state-of-the-art results across the board:

  • ReferFlow-Bench: It achieved 28.4% Trajectory Accuracy (T-Acc), more than double the performance of much larger models like Qwen3.8-27B (11.4%) and GPT-5.6 Sol (12.7%).
  • General REC: It set new records on RefCOCO (94.6%), Ref-L4 (94.3%), and PR-Bench (66.1%), outperforming specialized grounding models like Rex-Omni and LocateAnything.
  • Efficiency: Despite the complex reasoning, ReferFlow’s parallel decoding makes it faster than many competitors. On RefCOCOg, it achieved a wall-clock time of 0.8s compared to 1.5s for the Qwen3-VL baseline.
Comparison of Trajectory Accuracy (T-Acc) between ordered and shuffled steps.

Limitations and Future Work

  • Trajectory Length: While ReferFlow handles longer trajectories better than baselines, performance still declines as the number of steps increases beyond 5-6, suggesting there is still a limit to "spatial memory" depth.
  • Complexity of Mixture Trajectories: The "Mixture" category remains the most challenging, particularly when the model must frequently switch between "Shift" and "Reset" behaviors.
  • Future Directions: The authors suggest extending this framework to video grounding, where trajectories naturally occur over time, and applying the parallel decoding logic to broader dense object detection tasks.

Summary updated

BibTeX
@misc{gao2026referflow,
  author = {Tianyi Gao and Han Fang and Xin Wei and Yaoyao Zhong and Zhaoyan Pan and Weijie Zhu and Hongbo Sun and Zhiyu Lin and Kaicheng Yang and Jinglin Xu and Ye Yuan and Hao Li and Hao Sun and Jingmin Xin},
  title = {{ReferFlow: Beyond Final-Target Localization for Complex Referring Expressions}},
  year = {2026},
  eprint = {2610.20352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.20352},
}
Figure