Manuscript Offprint

arXiv:2608.22885

DRAgent: Discriminative Reasoning Agent for Referring Expression Segmentation

Yujie Qi, Luyan Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yujie Qi 1^{1} and Luyan Zhang 2,∗^{2,*}

Abstract—Referring Expression Segmentation (RES) aims to generate a pixel-level mask for the object specified by a language expression. Recent methods based on multimodal large language models (MLLMs) often rely on one-pass coordinate prediction for visual localization, which serializes continuous spatial locations as discrete text tokens and may lead to localization bias and alignment errors. To address these issues, we propose DRAgent, an MLLM-driven discriminative reasoning (DR) framework for RES. Instead of requiring the MLLM to generate localization coordinates, DRAgent first constructs a detector-generated candidate space and then uses the MLLM as a visual-semantic target discriminator. Specifically, the MLLM performs reliable target selection among potential distractors through a two-stage DR mechanism, which first screens high-recall candidates and then performs instance-wise verification. The selected target box is subsequently used as a spatial prompt for a foundation segmentation model to produce the final pixel-level mask. Furthermore, we construct a self-consistency-filtered reasoning-chain data pipeline for LoRA-based fine-tuning, providing more reliable supervision for enhancing the MLLM's discriminative reasoning capability. Experiments demonstrate that DRAgent achieves competitive performance on RefCOCO, RefCOCO+, and RefCOCOg.

I. INTRODUCTION

Referring Expression Segmentation (RES) aims to generate a pixel-level mask for the object specified by a natural language expression [1], [2]. In autonomous systems such as industrial or assistive robotics, it serves as a critical bridge between perception and control, where precise identification is the prerequisite for subsequent task execution.

Recent methods increasingly combine multimodal large language models (MLLMs) [3], [4], [5] with foundation segmentation models such as SAM [6]. In these methods, MLLMs generate visual localization as spatial prompts for mask generation, exploiting the high-level reasoning and semantic understanding capabilities of MLLMs.

However, these methods still face two major limitations. First, when MLLMs generate spatial prompts [3], [4], [5] for the referred target in an autoregressive manner, coordinates are serialized into discrete text tokens. Such a representation fails to preserve the continuity of coordinates and their underlying spatial relationships, instead treating them as independent symbols, thereby increasing the risk of coarse or biased localization. Moreover, in complex scenes with densely distributed objects or highly similar appearances, one-pass methods that rely on MLLMs to localize the

Figure

Fig. 1. Generative visual localization by MLLMs is prone to localization errors and may propagate erroneous prompts to the downstream segmentation module. In contrast, discriminative reasoning mitigates this issue by selecting among detector-generated candidates.

referent directly are prone to confusion with distractors. Such localization bias and alignment errors directly propagate incorrect spatial prompts to the downstream segmentation task, thereby degrading segmentation performance.

Second, some methods introduce reasoning chains, such as Chain-of-Thought (CoT) [7] and multi-step iterative trajectories [4], and use them to supervise the training of MLLMs, aiming to enhance their interpretability and reasoning capability in visual localization. However, these methods rely on high-quality reasoning-chain data, while valid reasoning paths for visual-semantic alignment are not unique [8]. Existing approaches often lack an effective mechanism for constructing and validating reasoning chains used for model training. Current methods typically obtain reasoning chains either through manual annotation or generation by powerful external MLLMs. The former is costly and difficult to scale, whereas the latter tends to produce logically inconsistent reasoning, which may cause the model to learn unstable or erroneous reasoning patterns.

Regarding these issues, we argue that a key limitation of many recent MLLM-based RES methods lies in treating visual localization as a generative coordinate prediction problem. RES can be better addressed by introducing a discriminative target selector, where the MLLM selects the referred object from a candidate space through screening and instance-wise verification, rather than generating localization coordinates in a one-pass manner. Moreover, reasoning-chain data used for training should not be accepted solely based on its surface plausibility. Instead, closed-loop consistency should be introduced as a reliability signal.

From this perspective, we propose DRAgent, an MLLM-driven discriminative target selection framework for RES. Rather than asking the MLLM to generate localization

1^{1}School of Computer Science and Technology, Hangzhou Dianzi University, Hangzhou, 310018, China.

2^{2}Khoury College of Computer Sciences, Northeastern University, Vancouver, BC V6B 1Z3, Canada.

*Corresponding author: zhang.luya@northeastern.edu coordinates directly, DRAgent uses it as a visual-semantic discriminator over a detector-generated candidate space. An open-vocabulary detector [9] first constructs a high-recall candidate set, which serves as the decision space for the MLLM. The MLLM then performs two-stage discriminative reasoning (DR), consisting of candidate screening and instance-wise visual verification, to identify the candidate that best matches the referring expression. The selected bounding box is finally fed into SAM [6] as a spatial prompt to generate the pixel-level mask. To further strengthen the MLLM's DR capability, we construct a self-consistency-filtered reasoning-chain data pipeline and use the resulting data for LoRA-based [10] supervised fine-tuning (SFT).

In summary, our contributions are three-fold.

• We propose DRAgent, a RES framework that reformulates visual localization from coordinate generation into candidate-space DR, where the MLLM serves as a target discriminator over detector-generated candidates.

• We introduce a two-stage DR mechanism and a self-consistency-filtered reasoning-chain data pipeline, improving MLLM-driven target discrimination from the inference and training perspectives, respectively.

• Extensive experiments demonstrate that DRAgent achieves competitive performance on the RefCOCO, RefCOCO+, and RefCOCOg benchmarks.

References (28)

  • LAVT: Language-aware vision transformer for referring image segmentation
  • GRES: Generalized referring expression segmentation
  • SAM4MLLM: Enhance multi-modal large language model for referring expression segmentation
  • SegAgent: Exploring pixel understanding capabilities in MLLMs by imitating human annotator trajectories
  • SAM-Veteran: An MLLM-based human-like SAM agent for reasoning segmentation
  • Segment anything
  • Visual CoT: Advancing Multi-Modal Language Models with a Comprehensive Dataset and Benchmark for Chain-of-Thought Reasoning
  • Self-consistency improves chain of thought reasoning in language models
  • Grounding DINO: Marrying DINO with grounded pre-training for open-set object detection
  • LoRA: Low-rank adaptation of large language models
  • PolyFormer: Referring image segmentation as sequential polygon generation
  • LISA: Reasoning segmentation via large language model
  • GSVA: Generalized segmentation via multimodal large language models
  • OpenWorldSAM: Extending SAM2 for universal image segmentation with language prompts
  • GLaMM: Pixel grounding large multimodal model
  • PixelLM: Pixel reasoning with large multimodal model
  • Discriminative perception via anchored description for reasoning segmentation (opens arXiv in a new tab)
  • Set-of-mark prompting unleashes extraordinary visual grounding in GPT-4V (opens arXiv in a new tab)
  • Large language models are better reasoners with self-verification
  • Qwen3-VL Technical Report
  • Generation and comprehension of unambiguous object descriptions
  • Modeling context in referring expressions
  • PSALM: Pixelwise segmentation with large multi-modal model
  • Segment everything everywhere all at once
  • CoHD: A counting-aware hierarchical decoding framework for generalized referring expression segmentation
  • POPEN: Preference-based optimization and ensemble for LVLM-based reasoning segmentation
  • Dr.Seg: Revisiting GRPO training for visual large language models through perception-oriented design (opens arXiv in a new tab)
  • SAM-R1: Leveraging SAM for reward feedback in multimodal segmentation via reinforcement learning