Manuscript Offprint

arXiv:2609.08867

SeGDeP: Semantic- and Geometric-Aware Decoupled Prompts for Reasoning Segmentation

Linnan Zhao, Xu Liu, Lingling Li, Licheng Jiao, Fang Liu, Wenping Ma

Abstract

Reasoning segmentation converts an implicit linguistic conclusion into a precise mask, requiring both semantic identification and spatial grounding. Existing MLLM-segmenter interfaces either use a special trigger or compress both signals into one context, although they receive different supervision and fail differently. This coupling obscures whether a failure arises from target interpretation or from localization. We present SeGDeP, an explicit what-where interface. A semantic prompt branch and an independent geometric projection path transform resolved MLLM states into semantic features and a DETR-predicted box, which jointly condition a SAM 3 mask decoder. Training first aligns this executable interface, then uses group reward-decoupled policy optimization (GDPO) to balance format, box-IoU, and mask-IoU feedback. SeGDeP-4B reaches 82.7 average cIoU over eight RefCOCO-family splits and 66.0/59.6 gIoU on ReasonSeg val/test while adapting only 0.38% of Qwen3-VL parameters through LoRA. Controlled stage-wise ablations, gradient diagnostics, and prompt interventions further show that the two paths develop complementary semantic and geometric specialization rather than duplicating the same evidence.

Introduction

Reasoning segmentation resolves an object described indirectly by function, relation, or likely action, then grounds it as a pixel mask (Shen et al. 2026). It couples what satisfies the instruction with where it lies: the former requires categorical, attribute, and relational evidence, whereas the latter requires localization and boundary recovery. MLLMs favor semantic inference (Liu et al. 2023; Dai et al. 2023; Gemini Team et al. 2023; Wang et al. 2024; Bai et al. 2025a,b), and promptable segmenters geometric execution (Kirillov et al. 2023; Ravi et al. 2025; Carion et al. 2026); their interface is therefore central. A useful interface must expose both signals in forms that the downstream segmenter can execute and supervise. This distinction becomes critical when visually similar instances satisfy only part of an indirect description. A single opaque context also obscures whether an error arose from interpreting the referent or locating it.

Figure 1 contrasts implicit-trigger and coupled-context interfaces with our explicit decoupled design for segmentation. LISA-like systems use a special <SEG> token as an implicit trigger (Lai et al. 2024; Yang et al. 2023); LENS pools the reasoning trace into a richer context (Zhu et al. 2026). Both

Figure

Figure 1: Reasoning-to-segmentation interfaces. Trigger and coupled-context designs provide no explicit separation; SeGDeP emits complementary semantic and box prompts.

require one latent stream to preserve identity and regress coordinates. Their heterogeneous supervision creates asymmetric errors: the correct role but wrong instance, or a plausible region obtained by misreading the target relation. In a controlled shared-context model, 37–46% of samples yield opposing semantic and geometric gradients, exposing data-induced demands that often compete at one bottleneck.

We introduce SeGDeP, which makes both decisions explicit and executable. A semantic context extractor produces role-typed prompt features, while an independent geometric projection preserves context tokens for localization. They jointly condition DETR, frozen image features refine its coarse box, and the mask decoder combines the resulting semantic and box prompts. Thus, prompt construction is separated before downstream integration and supervised in each execution space.

Training first aligns the interface, then optimizes reasoning with format, box-IoU, and mask-IoU feedback normalized by GDPO (Liu et al. 2026). Matched coupled baselines, stage-wise checkpoints, gradient measurements, and prompt interventions test the mechanism. SeGDeP reaches 82.7 average cIoU across eight RefCOCO-family splits and 66.0/59.6 gIoU on ReasonSeg val/test.

Our main contributions are:

  • An executable semantic–geometric interface converts re-

solved MLLM states into specialized text and box prompts through semantic prompt refinement and geometric context projection.

  • Comprehensive ablations verify the design, while gradient diagnostics and prompt interventions expose complementary semantic and geometric roles.

  • Interface alignment and GDPO deliver strong RefCOCO and ReasonSeg results while adapting only 0.38% of Qwen3-VL parameters through LoRA.

References (77)

  • Qwen2.5-VL Technical Report
  • Qwen3-VL Technical Report
  • SAM 3: Segment Anything with Concepts
  • F.; and Chen, C.-S
  • InstructBLIP: Towards General-Purpose Vision-Language Models with Instruction Tuning
  • Gemini: A Family of Highly Capable Multimodal Models
  • J.; Shen, Y.; Wallis, P.; et al
  • GroundingSuite: Measuring Complex Multi-Granular Pixel Grounding
  • Kao, S.-h.; Tai, Y.-W.; and Tang, C.-K. 2025. Think Before You Segment: High-Quality Reasoning Segmentation with GPT Chain of Thoughts. arXiv preprint arXiv:2503.07503. (opens arXiv in a new tab)
  • ReferItGame: Referring to Objects in Photographs of Natural Scenes
  • Segment Anything
  • Large Language Models are Zero-Shot Reasoners
  • LISA: Reasoning Segmentation via Large Language Model
  • H.; Zhang, P.; Zhang, H.; et al
  • GRES: Generalized Referring Expression Segmentation
  • Visual Instruction Tuning
  • Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection
  • F.; Cheng, K.-T.; Choi, Y.; Kautz, J.; and Molchanov, P. 2026 (opens arXiv in a new tab)
  • UniPixel: Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning
  • Seg-Zero: Reasoning-Chain Guided Segmentation via Cognitive Reinforcement (opens arXiv in a new tab)
  • Decoupled Weight Decay Regularization
  • Generation and Comprehension of Unambiguous Object Descriptions
  • PerceptionGPT: Effectively Fusing Visual Perception into LLM. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 27124–27133
  • Measuring and Narrowing the Compositionality Gap in Language Models
  • GLaMM: Pixel Grounding Large Multimodal Model
  • SAM 2: Segment Anything in Images and Videos
  • PixelLM: Pixel Reasoning with Large Multimodal Model
  • Generalized Intersection over Union: A Metric and a Loss for Bounding Box Regression
  • 2023. Visual Chain of Thought: Bridging Logical Gaps with Multimodal Infillings. arXiv preprint arXiv:2305.02317. (opens arXiv in a new tab)
  • Approximating KL Divergence
  • DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
  • Reasoning Segmentation for Images and Videos: A Survey
  • Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
  • HyperSeg: Hybrid Segmentation Assistant with Fine-grained Visual Perceiver
  • InstructSeg: Unifying Instructed Visual Segmentation with Multi-modal Large Language Models
  • Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • VISA: Reasoning Video Object Segmentation via Large Language Models
  • LISA++: An Improved Baseline for Reasoning Segmentation with Large Language Model (opens arXiv in a new tab)
  • LAVT: Language-Aware Vision Transformer for Referring Image Segmentation
  • Modeling Context in Referring Expressions
  • OMG-LLaVA: Bridging Image-Level, Object-Level, Pixel-Level Reasoning and Understanding
  • Multimodal Chain-of-Thought Reasoning in Language Models
  • LENS: Learning to Segment Anything with Unified Reinforced Reasoning
  • This isolates executable prompt alignment before policy adaptation
  • Stage 1 uses $\lambda_s = 0.5$ and $\lambda_b = 1.0$, with equal $\ell_1$ and GIoU terms; no segmentation loss is applied
  • Each sampled completion ends with a JSON answer containing bbox_2d and label; the prompt and completion are then concatenated for a second MLLM forward pass that supplies the hidden states used by the prompt interface
  • Table A2 gives the optimization settings
  • Supervised box and mask losses remain active during RL to preserve the executable interface learned in Stage 1
  • Table A3 shows that increasing the slot budget from 16 to 64 improves RefCOCO val cloU from 72.2 to 76.6, whereas 128 slots yield no further gain
  • Its context extractor is called once, and the downstream semantic and geometric paths receive the same upstream context $C(x)$
  • GSEval has no benchmark overlap with the training mixture but exhibits the same pattern
  • The final-answer point checks parseability rather than target correctness; box and mask rewards supply the outcome signal
  • We set $\epsilon = 10^{-8}$ to avoid division by zero when all completions receive the same component reward
  • This numerical disparity motivates normalizing the three components before aggregation
  • We use the non-negative $k_{3}$ estimator cited above
  • It therefore supplies a stable local constraint
  • Averaging within each completion before averaging over the group assigns equal mass to sampled trajectories, rather than rewarding a trace merely because it contains more tokens
  • The reported rate of formally valid but low-IoU traces also falls from 26.2% to 21.5%
  • Low-IoU denotes the reported rate of well-formed completions with mask IoU below 30%
  • >Component</td><td colspan=
  • LENS also spends 2.8 ms on these two interface components
  • The geometric head depends on spatial detail preserved by the frozen SAM 3 backbone; higher-resolution features and stronger ROI refinement may improve localization and boundary fidelity, but increase memory and latency
  • Figures E1 and E4 require instance selection under strong distractor pressure: semantic resolution identifies the functional role, but the target occupies a compact region and therefore still requires a precise box
  • The red device is a fire alarm notification appliance (strobe/horn)
  • alert others
  • The semantic prompt carries the resolved appliance or causal-
  • Conversely, a box can restrict the support yet cannot by itself explain which overlapping object within that support satisfies the instruction
  • The goalkeeper occupies few pixels in a crowded line-up, so the answer must combine the role prior with the contrasting jersey rather than select the most central player
  • Please aid me in identifying what object within the picture could be utilized to generate warmth in such a circumstance
  • The bright flames visible through its glass doors confirm it is currently in use to provide warmth
  • should put down
  • the soccer goalkeeper
  • They may also wear gloves
  • He also appears to be wearing gloves
  • I need to find the pigs that display signs of life
  • Pigs that are sitting upright or maintaining a posture require muscle control and consciousness, making them the most likely candidates for being alive
  • However, the pigs in the center (specifically the second and third from the left) are sitting upright on their haunches