Manuscript Offprint
arXiv:2610.12107ContourVLA: A Closed-Loop Perception-Action Contour Policy for Generalized Referring Expression Segmentation
ABSTRACT
Generalized referring expression segmentation (GRES) requires dynamically balancing high-level semantics for identifying a variable number of language-specified referents with fine-grained visual evidence for precise boundary delineation. This requirement challenges existing cascaded vision-language architectures, which typically rely on static feature interfaces and single-pass mask prediction, limiting adaptive perception and geometric correction. We introduce ContourVLA, a vision-language-action policy that recasts GRES as a closed-loop visuomotor process, in which editable contours serve as explicit policy states that condition multimodal perception and are updated by geometric action chunks. Evolution-Aware Semantic Scheduling (EASS) couples contour-guided bidirectional boundary sampling with state-conditioned routing of multilevel multimodal features, adapting perception to each contour state. Following supervised initialization, Dustbin-Augmented Entropic Credit Transport GRPO (DECT-GRPO) jointly optimizes discrete grounding and continuous contour actions with instance-level credits. Its rollout rewards and credits are derived from soft prediction-target correspondences that account for false positives and missed targets. ContourVLA improves gIoU over the strongest evaluated baselines by 8.7, 2.8, and 2.7 points on gRefCOCO val, testA, and testB, respectively, and achieves the highest mIoU across all eight RefCOCO, RefCOCO+, and RefCOCOg splits.
1 INTRODUCTION
Generalized referring expression segmentation (GRES) delineates a variable number of objects specified by free-form expressions involving attribute, relational, spatial, and numerical constraints (Liu et al., 2023a; Kim et al., 2026). Recent GRES methods typically adopt a cascaded architecture that connects preselected layers of pretrained vision-language models (VLMs) to segmentation heads.
Equal contribution. Corresponding author.
(a) VLM-to-mask cascades

Static feature readouts
Single-pass mask prediction
(b) Prior contour-based methods
(c) ContourVLA (ours)
Contour-guided adaptive sampling and semantic selection
Closed-loop refinement via actions and re-observation
Figure 1: Paradigm-level comparison of ContourVLA with prior methods.
through static feature interfaces (Lai et al., 2024; Xia et al., 2024; Yan et al., 2025; Xu et al., 2024). Beyond the demands of conventional fixed-category segmentation, the GRES segmentation head needs to dynamically balance high-level semantics for identifying language-specified referents and fine-grained visual evidence for recovering precise boundaries. However, static cascaded interfaces limit such adaptive feature acquisition (Luo et al., 2025). Moreover, single-pass mask prediction lacks an updatable intermediate geometric state and an explicit feedback path for revisiting local evidence, hindering the refinement of fine structures and the separation of adjacent instances (Peng et al., 2020).
These limitations motivate a shift from static feedforward prediction toward an active vision paradigm, in which the current state guides evidence acquisition and action-induced state updates condition subsequent observations (Bajcsy, 1988). Inspired by this view, we formulate GRES as a text-conditioned visuomotor decision process, where an editable contour serves as an explicit geometric state that regulates multimodal perception and evolves through pointwise geometric actions. Figure 1 contrasts this formulation with VLM-to-mask cascades and prior contour-based methods.
We introduce ContourVLA, a vision-language-action (VLA) policy (Kim et al., 2024) that formulates GRES as a closed-loop perception-action process, where multimodal observations are iteratively transformed into geometric actions for contour evolution. ContourVLA consists of a V-L Interaction Module (VLIM) and a Geometric Action Decoder (GAD). VLIM acts as a perceptual expert that grounds text-specified referents and provides multimodal observations for state-conditioned perception, while GAD serves as an action expert that predicts geometric action chunks from these observations (Zhao et al., 2023b). Executing each chunk updates the contour state and triggers the next perception-action cycle, progressively refining the contour from coarse localization to precise boundaries. ContourVLA adopts a two-stage training strategy: SFT establishes grounding and contour-trajectory priors, followed by joint GRPO post-training with self-rollout feedback (Shao et al., 2024). This formulation raises two key challenges: adaptive multimodal perception under evolving contour states and effective optimization of the joint policy.
Geometric refinement requires adaptive integration of spatial and semantic evidence throughout contour evolution, a dynamic demand that static feature interfaces cannot accommodate. We therefore introduce Evolution-Aware Semantic Scheduling (EASS), which adapts dual-axis multimodal perception through the evolving contour state. On the spatial axis, Spatial Visual Sampling uses contour geometry as a prior to sample bidirectional boundary cues over an adaptive receptive field. On the semantic axis, Multimodal Semantic Routing encodes instance geometry, evolution progress, contour motion, and decoding depth as queries to select the most relevant VLIM representations.
Effective joint-policy optimization in GRES requires multi-instance credit attribution under uneven prediction quality, false positives, and missed targets. Standard GRPO instead broadcasts a single rollout-level advantage across all instances, conflating their contributions and preventing targeted optimization (Shao et al., 2024). We therefore propose Dustbin-Augmented Entropic Credit Transport GRPO (DECT-GRPO), which assigns credit via soft correspondences established by entropic transport, while dustbin entries absorb false-positive predictions and missed targets (Cuturi, 2013; Sarlin et al., 2020). DECT-GRPO preserves module-specific likelihoods for discrete grounding and continuous contour actions, while converting transport-weighted segmentation quality into branch-wise centered credit maps assigned to corresponding grounding tokens and contour actions.
Our main contributions are as follows:
• We introduce ContourVLA, the first to recast GRES as an active perception-action contour policy in which geometric states bridge multimodal perception and contour actions.
• We propose EASS, a state-conditioned perceptual scheduler that replaces static readouts with spatial visual sampling for adaptive boundary-cue acquisition and multimodal semantic routing for evolution-aware selection of multilevel multimodal features.
• We propose DECT-GRPO, which couples module-specific likelihood optimization with dustbin-augmented entropic transport to derive instance-level credits for grounding tokens and contour actions while accounting for false-positive predictions and missed targets.
Contour Evolution and Vision-Language-Action Policies. Contour-based methods represent boundaries as ordered vertices and refine them through geometric updates. DeepSnake and its variants (Peng et al., 2020; Zhang et al., 2025b;c; 2026c; 2025a; Zhao et al., 2023a; Tang et al., 2024) iteratively sample local visual features for contour refinement, while PolyFormer (Liu et al., 2023b) autoregressively predicts language-conditioned contour vertices. These methods do not adapt multimodal evidence to evolving contour states in GRES. Inspired by vision-language-action models (Kim et al., 2024), ContourVLA instead recasts contour evolution as a 2D geometric action prediction problem conditioned on vision and language, and solves it through a closed-loop perception-action process.
Reinforcement Learning for Vision-Language Reasoning and Grounding. Reinforcement Learning (RL) has emerged as a potent methodology for enhancing performance on complex visual tasks Zhang et al. (2026b; 2025d; 2026a); Luo et al. (2026); Guo et al. (2026). Seg-Zero (Liu et al., 2025a) and SAM-R1 (Huang et al., 2025) apply GRPO (Shao et al., 2024) with localization or mask-quality rewards to multimodal segmentation and grounding. Standard GRPO, however, shares a rollout-level advantage across all outputs without explicitly distinguishing instance quality in the advantage assigned to each prediction. MCR-GRPO (Han et al., 2026) estimates instance importance through marginal contribution analysis. DECT-GRPO instead derives instance-level credit assignments via dustbin-augmented entropy-regularized transport, with dustbin assignments absorbing unmatched predictions and targets.
3 METHOD
As shown in Figure 2, ContourVLA formulates GRES as a text-conditioned visuomotor decision process, where editable contours serve as geometric policy states that condition perception and action. Executing action chunks iteratively updates the contour state and closes the perception-action loop (Section 3.1). Within this closed loop, EASS constructs state-conditioned multimodal observations by sampling around the contour and scheduling semantic features (Section 3.2). GAD uses these observations to predict geometric action chunks that update the contour state (Section 3.3). Training follows a two-stage strategy: supervised initialization establishes a geometric prior, followed by DECT-GRPO post-training with instance-level credit assignment (Section 3.4).

Figure 2: Overview of the ContourVLA framework. VLIM predicts grounding boxes for contour initialization and provides visual and multilevel multimodal features. EASS performs adaptive bidirectional boundary sampling and routes semantic representations according to the evolving state. GAD combines contour point tokens with instance context and routed semantics to predict pointwise geometric action chunks. Executing these actions updates the contours and conditions subsequent observations, forming a closed perception-action loop. The dashed inset illustrates a GAD block.
3.1 STATE-CONDITIONED PERCEPTION-ACTION LOOP
Multimodal perception and contour initialization. Given an image-expression pair , VLIM autoregressively generates a structured grounding sequence , which contains reasoning tokens followed by either box records or a no-target response:
The coordinate tokens in each box record are decoded into a bounding box , which initializes an inscribed elliptical contour . The point budget is determined by the box perimeter to adapt contour resolution to object scale. Meanwhile, VLIM caches a visual feature grid and multilevel multimodal representations for subsequent state-conditioned perception. Region features pooled from are further contextualized with box geometry to obtain the instance representation .
Perception-action loop. At evolution iteration , EASS constructs state-conditioned observations along spatial and semantic axes. The spatial branch extracts contour-conditioned boundary evidence from the visual grid, while the semantic branch selects block-specific multimodal features from . Together with the instance representation , these readouts constitute the multimodal observation for geometric action chunk prediction in GAD:
Here denotes the geometric state transition function. The updated contour initializes the next perception step. Thus, the contour serves as an explicit policy state connecting iterative observation, geometric refinement, and state evolution.
3.2 EVOLUTION-AWARE SEMANTIC SCHEDULING
The spatial evidence and semantic abstractions required for geometric refinement vary across evolution stages and contour states. We therefore introduce Evolution-Aware Semantic Scheduling (EASS), a dual-axis scheduler that adapts visual evidence acquisition and multimodal feature selection throughout evolution.
3.2.1 SPATIAL VISUAL SAMPLING
At each evolution iteration, the current contour provides a geometric prior for acquiring local visual evidence. Beyond vertex-level feature sampling (Peng et al., 2020), EASS dynamically expands the receptive field along each vertex normal by sampling bidirectional interior and exterior features from visual grid . Let denote the size of box , and let be the unit normal computed after mapping the contour into box-normalized coordinates. Using nonnegative offsets
, the contour-aligned feature profile is
Bidirectional sampling captures complementary interior and exterior boundary cues, while box-relative scaling adapts the receptive field to object scale. Details are provided in Appendix A.5.
3.2.2 MULTIMODAL SEMANTIC ROUTING
Semantic abstractions as keys. The multilevel multimodal features of VLIM constitute a candidate semantic space. For each layer , let denote its multimodal token representations. EASS compresses into a key that characterizes the semantic abstraction provided by each layer:
where and is a learned layer identity.
Evolving states as queries. Instance characteristics , contour states , evolution stages , and decoder depths jointly determine the semantic requirements of each refinement step. EASS encodes these factors into queries to select the VLIM layer that provides the most relevant semantic cues. For object at evolution iteration and GAD block , the query is constructed as
Here denotes the instance characteristics, where is the normalized grounding box and is the object-adaptive contour point budget.
Evolution-aware key-query routing. EASS computes the compatibility between each evolution-conditioned query and VLIM semantic keys, yielding a probability distribution over candidate layers:
Here denotes the layer-selection probability for VLIM layer of object i at evolution iteration k and GAD block d. To stabilize early routing, the prior B initializes an ordered correspondence between evolution-depth slots and VLIM layers, while its weight gradually decays to allow contour-conditioned query-key compatibility to dominate. To retain discrete layer selection in the forward pass while enabling differentiable router optimization, EASS applies hard routing with a straight-through estimator:
where sg denotes stop-gradient and is the routed multimodal feature delivered to the d-th GAD block. Proj projects the selected VLIM representation into the corresponding GAD feature space. Recomputing the query after each contour update adapts the routed semantic abstraction throughout multistep contour evolution. Further details are provided in Appendix A.4.
3.3 GEOMETRIC ACTION CHUNKING
GAD decodes EASS observations into continuous pointwise displacement actions. Each contour vertex is represented as a geometric token based on the contour-conditioned visual evidence from Spatial Visual Sampling and contour geometry:
where encodes box-relative vertex coordinates, and preserves the cyclic positions of vertices along the closed contour. Stacking the point tokens yields the contour representation , which is further refined with instance-level context . At each GAD block, contour tokens interact with the semantic representation :
The action decoder then predicts two-dimensional displacement means for each vertex in parallel (Zhao et al., 2023b), which updates the contour state and triggers the next iteration.

Figure 3: Overview of DECT-GRPO. Dustbin-augmented entropic transport establishes soft prediction–target correspondences and assigns instance-level credits to grounding tokens and contour actions for joint policy optimization.
3.4 POLICY OPTIMIZATION WITH DECT-GRPO
We initialize VLIM with teacher-forced grounding and GAD with positional supervision along reference contour trajectories, regularized by auxiliary geometric and routing objectives (Appendix A.6). Building on this initialization, DECT-GRPO (Fig. 3) leverages dustbin-augmented entropic transport to derive instance-level credit attribution and transport-based rewards for jointly optimizing grounding and geometric actions.
Grouped joint-policy rollouts. For each input , VLIM samples G grounding outputs that define the initial contours, after which GAD generates continuous geometric action chunks. The grounding branch follows an autoregressive categorical policy, while the action branch follows a bounded continuous policy based on a tanh-transformed Gaussian. Their likelihood definitions and rollout-replay details are provided in Appendix A.7.
Dustbin-augmented entropic transport. Instances within a GRES rollout may differ substantially in segmentation quality, yet standard GRPO assigns all outputs the same rollout-level advantage without explicitly distinguishing instance quality in the assigned advantage (Shao et al., 2024). DECT-GRPO therefore uses dustbin-augmented entropic transport to establish soft prediction-target correspondences for reward construction and instance-level credit attribution, with virtual null targets and predictions absorbing false positives and missed targets.
For rollout among the samples of an input, let and denote the predicted and target instance counts, respectively. With denoting the mask IoU between prediction and target , the pairwise coverage matrix is augmented as
where is the null-match score. The last column absorbs unmatched predictions, while the last row accounts for missed targets. Let denote the soft transport plan, where is the matching mass assigned between prediction and target , including dustbin matches. DECT-GRPO obtains the globally consistent soft assignment through entropy-regularized optimal transport:
Here is the set of nonnegative transport plans satisfying the prescribed prediction and target marginals. The entropy term prevents ambiguous overlaps from collapsing prematurely to hard correspondences, preserving uncertainty among plausible matches and yielding smoother instance-level credit. The marginal constraints enforce global consistency across predictions and targets, so represents a globally normalized soft correspondence rather than an independent pairwise score. Mass assigned to the null target denotes unmatched predictions and lowers instance credit, whereas mass from the null prediction denotes missed targets and reduces target coverage. Its Sinkhorn solution is derived in Appendix A.8.
Transport-based reward. A reliable rollout reward should jointly capture contour accuracy, target coverage, and prediction-target correspondence. DECT-GRPO therefore evaluates segmentation quality from complementary prediction and target perspectives under the soft transport plan :
Here, and denote transport-aware precision and recall under . We set when ; empty-set cases are handled separately in Appendix A.9. Soft transport stabilizes the reward under ambiguous correspondences by avoiding discontinuities from hard matching. Dustbin mass remains in the normalization but receives no overlap credit; therefore, unmatched predictions reduce , while missed targets reduce . The resulting harmonic mean jointly captures contour quality, correspondence uncertainty, and target coverage.
Instance-level advantage modulation. Predictions within a rollout may differ in segmentation quality, whereas a shared rollout advantage applies the same scalar feedback to all outputs. DECT-GRPO uses transport-derived instance credits to modulate this shared advantage at the corresponding grounding-token spans and contour-action positions, introducing instance-dependent feedback while retaining the rollout-level signal.
For each predicted instance i, DECT-GRPO computes transport-weighted credit and broadcasts its normalized value to the corresponding grounding-token span and contour-action indices . Branch-wise centering and scaling produce the credit maps:
The normalization is performed over branch outputs, yielding zero-centered credit maps that preserve the branch-wise mean advantage. The resulting output-specific advantages are
Answer tokens outside instance spans retain the shared rollout advantage . The output-count-weighted normalization preserves the branch-wise mean advantage. Since and we use , the instance-modulated advantages retain the sign of . Higher-credit instances receive larger positive advantages when and smaller-magnitude negative advantages when . Thus, DECT-GRPO provides bounded, mean-preserving modulation of shared rollout feedback rather than independent instance-level reward or penalty decisions.
Joint policy optimization. Let and denote the current-to-behavior likelihood ratios for grounding tokens and contour actions, respectively. The joint objective is
Here balances the two branches, and regularizes the grounding policy toward the reference model. Likelihood ratios, the clipped surrogate, and replay details are given in Appendix A.9.
4 EXPERIMENTS
4.1 EXPERIMENTAL SETUP
Datasets and metrics. We evaluate GRES on gRefCOCO (Liu et al., 2023a) and conventional referring expression segmentation (RES) on RefCOCO, RefCOCO+ (Yu et al., 2016), and RefCOCOg (Mao et al., 2016). We report gIoU and cIoU for GRES, and mIoU and cIoU for RES.
Training setup. ContourVLA initializes its visual and language backbones from MoonViT and Qwen2.5-3B-Instruct, respectively. Grounding training on LocateAnything-Data (Wang et al., 2026) is followed by SFT and DECT-GRPO jointly on the training sets of gRefCOCO, RefCOCO, RefCOCO+, and RefCOCOg. A single resulting checkpoint is evaluated across all benchmark splits. Training and evaluation details are provided in Appendix A.1.
ContourVLA 4.2 COMPARISON WITH EXISTING METHODS Table 1 compares ContourVLA with existing methods on GRES and conventional RES benchmarks under their respective model and training configurations. All results are obtained from our own evaluation runs, while component-level contributions are examined through the ablations in Section 4.3. GRES results. On gRefCOCO, ContourVLA achieves 83.5, 80.3, and 74.4 gIoU on val, testA, and testB, respectively, exceeding the strongest evaluated baseline on each split by 8.7, 2.8, and 2.7 points. It also achieves the highest cIoU on val and testA, while its testB cIoU of 71.8 is just 0.1 point below HiMTok. These results combine consistent gains in expression-averaged quality with competitive cumulative pixel overlap, rather than showing an advantage under only one aggregation criterion. Since gIoU also accounts for no-target expressions, Section 4.3 further examines no-target accuracy and instance F1 to characterize rejection and instance-level segmentation more directly. RES results. On conventional RES benchmarks, the same jointly trained checkpoint achieves the highest mIoU on all eight evaluated splits. Improvements over the strongest baselines range from 1.3 to 1.8 points on RefCOCO and from 2.8 to 3.2 points on RefCOCO+, with additional gains of 0.7 and 0.3 points on RefCOCOg val and test, respectively. These results extend the evidence beyond the generalized setting: the shared contour policy also performs well on conventional referring segmentation. Importantly, all benchmarks use the same checkpoint without further benchmarkspecific fine-tuning, supporting the applicability of one policy to both task formulations under the joint-training protocol. Table 1: Comparison with methods across GRES and RES benchmarks (%). Red, orange, gold, and yellow shading denote the first- through fourth-best scores in each column, respectively. Method gRefCOCO RefCOCO RefCOCO+ RefCOCOg val testA testB val testA testB val testA testB val test gIoU cIoU gIoU cIoU gIoU cIoU mIoU cIoU mIoU cIoU mIoU cIoU mIoU cIoU mIoU cIoU mIoU cIoU mIoU cIoU mIoU cIoU Grounded-SAM (Ren et al., 2024) 46.0 44.1 50.8 48.7 43.5 41.3 46.2 44.4 48.6 47.0 42.9 40.9 38.2 36.5 42.4 40.5 33.0 30.8 44.1 42.0 44.5 43.0 LISA-7B (Lai et al., 2024) 61.4 61.7 66.0 68.5 58.8 60.6 68.1 74.6 70.6 79.3 64.5 72.3 54.8 65.1 60.3 70.8 48.4 58.1 63.1 67.9 66.2 70.6 LISA-13B (Lai et al., 2024) 63.4 62.9 68.1 69.6 61.8 62.2 75.3 76.0 77.8 78.9 71.7 72.9 64.9 65.0 70.1 70.1 58.9 58.1 65.0 69.6 66.0 70.4 PerceptionGPT-7B (Pi et al., 2024) 61.5 59.9 66.1 64.3 58.9 56.8 70.7 74.7 73.9 78.7 66.8 71.7 64.0 68.1 69.4 73.8 56.8 61.0 65.5 70.2 67.2 71.5 PerceptionGPT-13B (Pi et al., 2024) 62.2 60.4 66.9 64.6 59.0 57.4 70.8 75.7 74.5 79.4 67.9 72.0 64.4 69.2 69.8 74.0 57.6 62.0 66.4 71.1 67.4 72.0 LaSagnA-7B (Wei et al., 2024) 32.4 38.1 47.3 50.4 38.9 42.1 72.8 76.8 74.2 78.8 70.7 73.8 61.4 66.4 65.3 70.6 57.3 60.1 66.1 70.5 67.3 72.0 OMG-LLaVA-7B (Zhang et al., 2024a) 36.1 39.3 50.1 52.4 42.2 43.7 73.5 77.8 75.7 80.3 69.3 74.1 64.6 69.3 68.6 73.0 58.8 63.0 68.1 73.0 68.2 73.2 GroundHog-7B (Zhang et al., 2024b) 66.7 64.8 71.4 71.4 64.0 62.7 74.0 78.3 75.4 80.1 71.6 75.7 66.2 70.2 70.6 75.0 60.6 64.8 69.6 74.2 69.8 74.6 GLaMM-7B (Rasheed et al., 2024) 68.7 66.9 73.5 71.6 66.2 64.1 75.0 79.4 78.8 83.5 72.7 76.9 67.8 72.7 74.1 78.7 60.2 64.5 69.8 74.6 70.6 74.7 UniRES-7B (Wang et al., 2024) 74.4 69.9 76.0 74.5 69.8 66.6 75.8 80.1 77.2 82.0 71.7 75.8 66.9 71.8 71.8 76.0 60.0 64.4 69.0 73.7 69.5 74.1 GSVA-7B (Xia et al., 2024) 66.5 63.3 71.1 69.9 61.9 60.5 72.1 76.7 74.3 79.6 68.0 73.0 64.0 68.2 69.1 73.1 58.5 62.3 61.9 66.6 62.4 67.5 GSVA-13B (Xia et al., 2024) 67.6 64.0 71.8 70.5 63.8 61.3 73.5 77.9 75.7 80.6 69.9 74.6 65.7 69.9 70.9 74.9 59.7 63.6 63.2 68.2 63.5 69.0 SAM4MLLM-7B (Chen et al., 2024) 68.9 67.0 73.6 71.8 66.3 64.2 75.4 79.7 78.1 82.8 71.8 75.9 69.1 73.3 73.4 77.8 61.1 66.0 70.0 74.8 71.1 75.7 SegLLM-7B (Wang et al., 2025b) 69.8 67.9 74.6 72.5 67.4 65.2 75.7 80.0 77.0 81.6 71.0 75.1 66.1 70.1 68.5 72.9 57.9 62.6 68.0 72.8 69.3 73.5 UniPixel-7B (Liu et al., 2026) 70.6 68.8 75.3 73.4 68.0 65.9 76.3 80.7 78.5 83.1 73.0 77.3 70.7 75.5 75.6 78.4 65.5 69.7 72.1 76.2 72.4 77.1 UFO-8B (Tang et al., 2026) 71.0 69.1 75.6 73.8 68.4 66.3 76.5 81.1 77.9 82.6 73.7 78.6 72.8 77.1 75.9 80.3 67.9 72.7 72.6 76.7 73.1 77.3 LIRA-8B (Li et al., 2025b) 36.7 40.9 50.4 52.4 42.4 44.9 77.3 81.4 78.9 82.4 73.5 77.9 71.8 76.1 76.6 80.8 66.0 70.6 73.8 78.5 73.5 78.3 HiMTok-8B (Wang et al., 2025a) 72.1 70.4 73.4 74.9 71.7 71.9 80.0 85.9 80.7 81.7 78.6 83.9 74.1 80.5 76.8 83.7 70.0 72.4 75.9 80.1 75.9 78.9 RAS-13B (Cao et al., 2025) 74.6 70.5 77.5 77.0 69.4 67.8 76.5 81.1 79.1 83.8 74.5 78.8 70.4 75.4 75.5 79.7 65.7 70.5 71.1 76.0 73.2 77.6 Seg-R1-7B (You & Wu, 2025) 60.6 58.5 65.3 63.1 57.7 55.8 69.9 74.3 74.2 78.8 63.3 67.5 58.1 63.0 66.3 71.0 53.1 57.9 66.9 71.2 67.1 71.2 Seg-Zero-7B (Liu et al., 2025a) 16.5 26.3 44.7 45.7 40.2 41.3 78.7 76.4 80.7 80.3 75.6 72.5 73.1 69.4 77.2 76.2 67.1 62.7 75.1 72.9 75.5 72.6 VisionReasoner-7B (Liu et al., 2025b) 27.0 39.2 58.3 65.1 48.6 51.8 76.7 73.4 78.9 77.6 72.3 67.6 69.6 63.8 74.9 70.9 61.9 55.5 71.6 67.7 71.3 68.4 SAM-R1-7B (Huang et al., 2025) 68.5 66.4 73.1 71.2 65.6 63.8 72.4 76.3 74.8 79.5 68.7 72.9 65.0 69.8 70.2 74.8 59.3 63.4 75.1 72.2 75.4 73.3 Text4Seg-7B (Lan et al., 2025) 73.6 67.9 74.1 72.8 66.0 64.8 74.5 79.1 77.3 82.2 71.9 76.0 67.6 72.3 73.1 77.3 61.7 66.1 67.3 72.1 69.4 73.7 Text4Seg-13B (Lan et al., 2025) 74.8 69.8 75.1 74.3 68.0 67.1 75.7 80.1 78.0 82.7 72.9 77.1 69.5 73.5 73.8 78.6 63.3 67.6 69.5 74.1 70.7 74.8 RESAnything-12B (Wang & Zhang, 2026) 54.8 52.6 48.3 46.2 48.3 46.4 64.0 68.3 67.5 72.2 65.9 70.0 55.9 60.7 61.3 65.7 47.6 52.2 55.6 59.8 56.1 61.0 SAM3 (top-1 / union) (Carion et al., 2026) 68.1 24.0 39.9 23.1 49.2 36.4 61.0 54.8 62.5 59.1 59.8 51.9 48.5 42.9 53.8 50.0 43.6 36.5 62.5 55.5 61.7 54.4 RefAM-SD (Kukleva et al., 2026) 27.0 24.8 31.6 29.7 24.4 22.0 50.1 41.9 52.5 44.8 46.3 38.4 40.4 33.5 46.1 38.0 35.0 28.9 45.1 37.3 46.1 39.3 RefAM-Flux-12B (Kukleva et al., 2026) 27.6 25.5 32.4 30.2 24.8 22.9 52.2 42.7 55.6 46.2 49.6 40.8 43.1 34.4 48.6 38.7 37.6 30.5 48.1 39.6 48.6 41.1 LGD-7B (Li et al., 2025a) 24.0 21.9 28.7 26.8 21.4 19.2 45.4 34.5 48.8 37.8 39.3 30.8 47.2 36.7 54.6 44.4 38.1 30.1 47.3 36.6 48.1 37.7 LGD+DINO-7B (Li et al., 2025a) 28.5 26.6 33.2 31.0 25.8 23.7 49.5 42.7 54.7 48.2 41.0 36.3 49.6 47.3 58.4 50.9 38.7 34.4 50.3 45.5 51.1 47.7 RefChess (Tong et al., 2026) 29.3 27.4 33.9 32.1 26.7 24.6 55.2 48.5 57.9 52.5 50.0 43.6 48.6 41.2 54.6 48.3 39.6 32.7 50.6 42.9 51.3 44.2 Early Semantic Grounding-9B (He et al., 2026) 30.1 28.0 34.5 32.8 27.2 25.3 54.0 50.2 56.1 53.0 50.2 46.1 44.1 40.2 46.7 43.3 40.3 36.1 50.6 46.9 50.5 46.5 Early Semantic Grounding-12B (He et al., 2026) 31.5 29.3 36.2 34.3 29.0 26.9 57.6 53.9 60.3 58.1 53.8 49.6 48.5 44.4 52.4 49.3 44.4 40.1 54.5 51.2 54.3 50.9 TALENT (Jin et al., 2026) 59.1 57.0 63.7 61.8 56.6 54.4 77.8 75.9 79.4 78.3 74.8 72.8 70.1 66.9 74.9 72.3 63.4 58.8 69.7 65.9 69.2 66.8 DeRIS-B (Dai et al., 2025) 73.9 68.0 72.5 71.6 65.2 63.1 81.1 78.4 81.9 79.8 79.5 77.6 74.3 70.1 77.9 75.4 71.2 67.5 75.3 72.1 76.4 75.9 ContourVLA-3B 83.5 72.3 80.3 78.1 74.4 71.8 82.4 81.3 83.7 82.9 81.1 79.2 77.5 76.4 80.7 80.7 74.2 69.3 76.6 76.9 76.7 77.3 Qualitative results. Figure 4 complements the quantitative evaluation with multi-referent, partlevel, and no-target examples. In the person-and-umbrella example, ContourVLA segments both requested referents; in the truck example, it delineates the specified front portion rather than extending the mask over the entire vehicle. It also correctly returns an empty prediction for the absenttarget expression. Compared with the displayed baselines, these examples illustrate fewer omitted referents and less over-segmentation while preserving fine boundaries. Together, they highlight two complementary requirements of GRES: identifying the complete language-specified referent set and accurately delineating the corresponding regions. 8

Figure 4: Qualitative comparison on challenging GRES examples. ContourVLA recovers multiple and part-level referents, preserves fine boundaries, and correctly rejects the no-target case.
4.3 ABLATION STUDIES AND ANALYSIS
Closed-loop perception and EASS. Table 2 evaluates spatial sampling, semantic routing, and re-observation on gRefCOCO val. All variants are trained separately under the same SFT protocol, with identical grounding predictions, initial contours, GAD configuration, and evolution budget. The baseline (A) uses vertex sampling with a predefined VLIM layer schedule. Adding SVS (B) or MSR (C) improves both metrics, while their combination (D) raises gIoU from 71.1 to 77.6 and cIoU from 60.8 to 67.4. Freezing the initial EASS readouts across later iterations (E), while contour states and actions continue to evolve, reduces performance to 72.0 gIoU and 61.3 cIoU, supporting the benefit of state-conditioned re-observation.
Effectiveness of DECT-GRPO. Table 3 evaluates RL post-training and transport-derived instance-level advantage modulation on gRefCOCO val. All RL variants start from the same SFT checkpoint and share training data, rollout settings, transport-based reward, and optimization budget. Shared-advantage GRPO sets , while hard-assignment credit replaces soft transport only in credit computation. Shared-advantage GRPO improves over SFT, while full DECT-GRPO gains a further 3.0 gIoU and 5.1 instance F1@0.5 points, supporting instance-level modulation beyond shared rollout feedback. Its gains over hard-assignment credit (1.3 gIoU, 2.0 F1@0.5) further support soft correspondences. Removing dustbins lowers all four metrics, particularly no-target accuracy and instance F1@0.5, supporting dustbin-aware credit assignment for unmatched predictions and targets.
Table 2: Ablation of EASS and re-observation on gRefCOCO val (%). Refresh denotes EASS readout recomputation after contour updates.
| Variant | SVS | MSR | Refresh | gIoU ↑ | cIoU ↑ |
|---|---|---|---|---|---|
| A: Baseline | × | × | ✓ | 71.1 | 60.8 |
| B: + Spatial sampling | ✓ | × | ✓ | 74.2 | 63.5 |
| C: + Semantic routing | × | ✓ | ✓ | 74.7 | 63.1 |
| D: Full EASS | ✓ | ✓ | ✓ | 77.6 | 67.4 |
| E: Frozen observations | ✓ | ✓ | × | 72.0 | 61.3 |
Table 3: Ablation of DECT-GRPO on gRef-COCO val (%). N-acc is no-target accuracy; instance F1@0.5 uses one-to-one mask matching.
| Variant | gIoU ↑ | cIoU ↑ | N-acc ↑ | F1@0.5 ↑ |
|---|---|---|---|---|
| SFT only | 77.6 | 67.4 | 74.6 | 73.8 |
| GRPO (shared advantage) | 80.5 | 70.1 | 78.0 | 77.3 |
| Hard-assignment credit | 82.2 | 71.6 | 80.9 | 80.4 |
| Dustbin-free credit | 82.4 | 71.8 | 78.7 | 78.6 |
| Full DECT-GRPO | 83.5 | 72.3 | 83.2 | 82.4 |
Contour evolution and computational cost. Figure 5(a) compares Full EASS (D) and frozen observations (E) under identical grounding predictions and initial contours, reporting cumulative contour latency at action steps 2, 4, and 8. At the matched eight-step action budget, Full EASS improves Boundary IoU by 6.07 points over frozen observations, from to . Cumulative contour latency increases from 226.96 to 233.63 ms, corresponding to an additional 6.67 ms . This comparison supports the benefit of state-conditioned re-observation at matched action budgets with a modest increase in contour-branch latency. Figure 5(b) visualizes the corresponding Full EASS evolution from initial contours to final masks. Detailed evaluation and timing protocols are provided in Appendix A.1.

(a) Quality and latency
"a guy wearing an orange tshirt with word staff on its back standing near us and a yellow frisbee in the air"

"the guy sitting down wearing a green cap and a guy in purple hoodie"
(b) Contour trajectories
Figure 5: Contour evolution and latency on a subset of gRefCOCO val. (a) Boundary IoU (lines) and cumulative contour latency at steps 2, 4, and 8 (bars) for Full EASS and frozen observations. (b) Full EASS evolution from initial contours to final masks, with consistent instance colors.
5 CONCLUSION
We presented ContourVLA, which recasts GRES as a closed-loop perception–action process in which editable contours guide multimodal perception and evolve through geometric actions. EASS couples contour-guided boundary sampling with multilevel semantic routing, while DECT-GRPO jointly optimizes grounding and contour actions through transport-based rewards and instance-level credit assignment. Among the compared methods, ContourVLA achieves the highest gIoU on all three gRefCOCO splits (by 2.7–8.7 points) and mIoU on all eight RES splits. Ablations further support the benefits of re-observation and instance-level credit, highlighting the value of coupling adaptive perception with explicit geometric refinement.
REFERENCES
Ruzena Bajcsy. Active perception. Proceedings of the IEEE, 76:966–1005, 1988.
Shengcao Cao, Zijun Wei, Jason Kuen, Kangning Liu, Lingzhi Zhang, Jiuxiang Gu, HyunJoon Jung, Liang-Yan Gui, and Yu-Xiong Wang. Refer to any segmentation mask group with vision-language prompts. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 21853–21863, 2025.
Nicolas Carion, Laura Gustafson, Yuan-Ting Hu, Shoubhik Debnath, Ronghang Hu, Didac Suris Coll-Vinent, Chaitanya Ryali, Kalyan Vasudev Alwala, Haitham Khedr, Andrew Huang, et al. SAM 3: Segment anything with concepts. In International Conference on Learning Representations, volume 2026, pp. 138846–138923, 2026.
Yi-Chia Chen, Wei-Hua Li, Cheng Sun, Yu-Chiang Frank Wang, and Chu-Song Chen. SAM4MLLM: Enhance multi-modal large language model for referring expression segmentation. In European Conference on Computer Vision, pp. 323–340, 2024.
Bowen Cheng, Ross Girshick, Piotr Dollár, Alexander C. Berg, and Alexander Kirillov. Boundary IoU: Improving object-centric image segmentation evaluation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15329–15337, 2021.
Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. In Advances in Neural Information Processing Systems, volume 26, 2013.
Ming Dai, Wenxuan Cheng, Jiang-jiang Liu, Sen Yang, Wenxiao Cai, Yanpeng Sun, and Wankou Yang. DeRIS: Decoupling perception and cognition for enhanced referring image segmentation through loopback synergy. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 19936–19946, October 2025.
Haowei Guo, Baolong Bi, Ruicheng Zhang, Bingqian Sun, and Wentao Zhang. When should the teacher move? temporal coupling and stability in self on-policy distillation. arXiv preprint arXiv:2606.03532, 2026.
Xinheng Han, Jianfei Wang, Yu Chen, Xiang Wang, Shuai Li, Weixing Li, and Feng Pan. Credit the right box: Marginal contribution assignment for structured visual perception. arXiv preprint arXiv:2608.01055, 2026.
Jingxuan He, Xiyu Wang, Yunke Wang, Mengyu Zheng, and Chang Xu. Early semantic grounding in image editing models for zero-shot referring image segmentation. arXiv preprint arXiv:2605.13122, 2026.
Jiaqi Huang, Zunnan Xu, Jun Zhou, Ting Liu, Yicheng Xiao, Mingwen Ou, Bowen Ji, Xiu Li, and Kehong Yuan. SAM-R1: Leveraging SAM for reward feedback in multimodal segmentation via reinforcement learning. In Advances in Neural Information Processing Systems, volume 38, pp. 138362–138383, 2025.
Shuo Jin, Siyue Yu, Bingfeng Zhang, Chao Yao, Meiqin Liu, and Jimin Xiao. TALENT: Target-aware efficient tuning for referring image segmentation. arXiv preprint arXiv:2604.00609, 2026.
Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti, Ted Xiao, Ashwin Balakrishna, Suraj Nair, Rafael Rafailov, Ethan Foster, Grace Lam, Pannag Sanketi, et al. OpenVLA: An open-source vision-language-action model. arXiv preprint arXiv:2406.09246, 2024.
Namyup Kim, Jinsung Lee, and Suha Kwak. Improving target presence and plurality recognition for generalized referring image segmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 5700–5708, 2026.
Anna Kukleva, Enis Simsar, Alessio Tonioni, Muhammad Ferjad Naeem, Federico Tombari, Jan Eric Lenssen, and Bernt Schiele. RefAM: Attention magnets for zero-shot referral segmentation. Transactions on Machine Learning Research, 2026.
Xin Lai, Zhuotao Tian, Yukang Chen, Yanwei Li, Yuhui Yuan, Shu Liu, and Jiaya Jia. LISA: Reasoning segmentation via large language model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9579–9589, 2024.
Mengcheng Lan, Chaofeng Chen, Yue Zhou, Jiaxing Xu, Yiping Ke, Xinjiang Wang, Litong Feng, and Wei Zhang. Text4Seg: Reimagining image segmentation as text generation. In International Conference on Learning Representations, volume 2025, pp. 1634–1661, 2025.
Jiachen Li, Qing Xie, Renshu Gu, Jinyu Xu, Yongjian Liu, and Xiaohan Yu. LGD: Leveraging generative descriptions for zero-shot referring image segmentation. Pattern Recognition, 172: 112549, 2025a.
Zhang Li, Biao Yang, Qiang Liu, Shuo Zhang, Zhiyin Ma, Liang Yin, Linger Deng, Yabo Sun, Yuliang Liu, and Xiang Bai. LIRA: Inferring segmentation in large multi-modal models with local interleaved region assistance. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 24056–24067, 2025b.
Chang Liu, Henghui Ding, and Xudong Jiang. GRES: Generalized referring expression segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 23592–23601, 2023a.
Jiang Liu, Hui Ding, Zhaowei Cai, Yuting Zhang, Ravi Kumar Satzoda, Vijay Mahadevan, and R. Manmatha. PolyFormer: Referring image segmentation as sequential polygon generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18653–18663, 2023b.
Ye Liu, Zongyang Ma, Junfu Pu, Zhongang Qi, Yang Wu, Ying Shan, and Chang Chen. UniPixel: Unified object referring and segmentation for pixel-level visual reasoning. Advances in Neural Information Processing Systems, 38:126078–126108, 2026.
Yuqi Liu, Bohao Peng, Zhisheng Zhong, Zihao Yue, Fanbin Lu, Bei Yu, and Jiaya Jia. Seg-Zero: Reasoning-chain guided segmentation via cognitive reinforcement. arXiv preprint arXiv:2503.06520, 2025a.
Yuqi Liu, Tianyuan Qu, Zhisheng Zhong, Bohao Peng, Shu Liu, Bei Yu, and Jiaya Jia. VisionReasoner: Unified visual perception and reasoning via reinforcement learning. arXiv preprint arXiv:2505.12081, 2025b.
Zhenyu Lu, Liupeng Li, Jinpeng Wang, Haoqian Kang, Yan Feng, Ke Chen, and Yaowei Wang. SegCompass: Exploring interpretable alignment with sparse autoencoders for enhanced reasoning segmentation. arXiv preprint arXiv:2605.22658, 2026.
Haocheng Luo, Jiahui Liu, Ruicheng Zhang, Zhizhou Zhong, Jiaqi Huang, Zunnan Xu, Quan Shi, Jun Zhou, Shuiyang Mao, Wei Liu, et al. Learning visual spatial planning from symbolic state via modality-gap-aware self-distillation. arXiv preprint arXiv:2606.06076, 2026.
Zhuoyan Luo, Yinghao Wu, Tianheng Cheng, Yong Liu, Yicheng Xiao, Hongfa Wang, Xiao-Ping Zhang, and Yujiu Yang. CoHD: A counting-aware hierarchical decoding framework for generalized referring expression segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 22685–22694, 2025.
Junhua Mao, Jonathan Huang, Alexander Toshev, Oana Camburu, Alan L. Yuille, and Kevin Murphy. Generation and comprehension of unambiguous object descriptions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 11–20, 2016.
Sida Peng, Wen Jiang, Huaijin Pi, Xiuli Li, Hujun Bao, and Xiaowei Zhou. Deep snake for real-time instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8530–8539, 2020.
Renjie Pi, Lewei Yao, Jiahui Gao, Jipeng Zhang, and Tong Zhang. PerceptionGPT: Effectively fusing visual perception into LLM. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 27114–27123, 2024.
Hanoona Rasheed, Muhammad Maaz, Sahal Shaji, Abdelrahman Shaker, Salman Khan, Hisham Cholakkal, Rao M. Anwer, Eric Xing, Ming-Hsuan Yang, and Fahad S. Khan. GLaMM: Pixel grounding large multimodal model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13009–13018, 2024.
Tianhe Ren, Shilong Liu, Ailing Zeng, Jing Lin, Kunchang Li, He Cao, Jiayu Chen, Xinyu Huang, Yukang Chen, Feng Yan, et al. Grounded SAM: Assembling open-world models for diverse visual tasks. arXiv preprint arXiv:2401.14159, 2024.
Paul-Edouard Sarlin, Daniel DeTone, Tomasz Malisiewicz, and Andrew Rabinovich. SuperGlue: Learning feature matching with graph neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4937–4946, 2020.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
Hao Tang, Chenwei Xie, Haiyang Wang, Xiaoyi Bao, Tingyu Weng, Pandeng Li, Yun Zheng, and Liwei Wang. UFO: A unified approach to fine-grained visual perception via open-ended language interface. Advances in Neural Information Processing Systems, 38:83761–83791, 2026.
Zixuan Tang, Bin Chen, An Zeng, Mengyuan Liu, and Shen Zhao. Progressive deep snake for instance boundary extraction in medical images. Expert Systems with Applications, 249:123590, 2024.
Shiyan Tong, Jinxia Zhang, Zhiyuan Wang, Hao Tian, Yingying Wang, Kanjian Zhang, and Haikun Wei. RefChess: Training-free contextual search for zero-shot referring image segmentation. In Proceedings of the International Conference on Machine Learning, 2026.
Ruiqi Wang and Hao Zhang. Resanything: Attribute prompting for arbitrary referring segmentation. Advances in Neural Information Processing Systems, 38:66893–66944, 2026.
Shihao Wang, Shilong Liu, Yuanguo Kuang, Xinyu Wei, Yangzhou Liu, Zhiqi Li, Yunze Man, Guo Chen, Andrew Tao, Guilin Liu, Jan Kautz, Lei Zhang, and Zhiding Yu. LocateAnything: Fast and high-quality vision-language grounding with parallel box decoding. In European Conference on Computer Vision, pp. 336–357, 2026.
Tao Wang, Changxu Cheng, Lingfeng Wang, Senda Chen, and Wuyue Zhao. HiMTok: Learning hierarchical mask tokens for image segmentation with large multimodal model. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 23267–23278, 2025a.
Wenxuan Wang, Tongtian Yue, Yisi Zhang, Longteng Guo, Xingjian He, Xinlong Wang, and Jing Liu. Unveiling parts beyond objects: Towards finer-granularity referring expression segmentation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12998–13008, 2024.
Xudong Wang, Shaolun Zhang, Shufan Li, Konstantinos Kallidromitis, Kehan Li, Yusuke Kato, Kazuki Kozuka, and Trevor Darrell. SegLLM: Multi-round reasoning segmentation with large language models. In International Conference on Learning Representations, volume 2025, pp. 56526–56547, 2025b.
Cong Wei, Haoxian Tan, Yujie Zhong, Yujiu Yang, and Lin Ma. LaSagnA: Language-based segmentation assistant for complex queries. arXiv preprint arXiv:2404.08506, 2024.
Zhuofan Xia, Dongchen Han, Yizeng Han, Xuran Pan, Shiji Song, and Gao Huang. GSVA: Generalized segmentation via multimodal large language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3858–3869, 2024.
Zunnan Xu, Jiaqi Huang, Ting Liu, Yong Liu, Haonan Han, Kehong Yuan, and Xiu Li. Enhancing fine-grained multi-modal alignment via adapters: a parameter-efficient training framework for referring image segmentation. In 2nd Workshop on Advancing Neural Network Training: Computational Efficiency, Scalability, and Resource Optimization (WANT@ ICML 2024), 2024.
Mingliang Yan, Yanhua Yu, Ruochi Zhang, Zhiyuan Liu, Ruicheng Zhang, Yimeng Ren, Kangkang Lu, Zhiyong Huang, Feng Luo, and Zhen Cai. Deepmoltex: Deep alignment of molecular graphs with large language models via mixture of modality experts. In Proceedings of the 33rd ACM International Conference on Multimedia, pp. 2323–2332, 2025.
Zhao Yang, Jiaqi Wang, Yansong Tang, Kai Chen, Hengshuang Zhao, and Philip H. S. Torr. LAVT: Language-aware vision transformer for referring image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18134–18144, 2022.
Zuyao You and Zuxuan Wu. Seg-R1: Segmentation can be surprisingly simple with reinforcement learning. arXiv preprint arXiv:2506.22624, 2025.
Licheng Yu, Patrick Poirson, Shan Yang, Alexander C. Berg, and Tamara L. Berg. Modeling context in referring expressions. In European Conference on Computer Vision, pp. 69–85, 2016.
Ruicheng Zhang, Haowei Guo, Kanghui Tian, Jun Zhou, Mingliang Yan, Zeyu Zhang, and Shen Zhao. Unified medical image segmentation with state space modeling snake. In Proceedings of the 33rd ACM International Conference on Multimedia, MM '25, pp. 7825–7834, New York, NY, USA, 2025a. Association for Computing Machinery. ISBN 9798400720352. doi:10.1145/3746027.3755148. URL https://doi.org/10.1145/3746027.3755148.
Ruicheng Zhang, Haowei Guo, Zeyu Zhang, Puxin Yan, and Shen Zhao. GAMED-Snake: Gradient-aware adaptive momentum evolution deep snake model for multi-organ segmentation. In 2025 IEEE International Conference on Multimedia and Expo, pp. 1–6, 2025b. doi:10.1109/ICME59968.2025.11209898.
Ruicheng Zhang, Yu Sun, Zeyu Zhang, Jinai Li, Xiaofan Liu, Hoi Fan Au, Haowei Guo, and Puxin Yan. MARL-MambaContour: Unleashing multi-agent deep reinforcement learning for active contour optimization in medical image segmentation. In Proceedings of the 33rd ACM International Conference on Multimedia, MM '25, pp. 7815–7824, New York, NY, USA, 2025c. Association for Computing Machinery. ISBN 9798400720352. doi: 10.1145/3746027.3755147. URL https://doi.org/10.1145/3746027.3755147.
Ruicheng Zhang, Mingyang Zhang, Jun Zhou, Xiaofan Liu, Zunnan Xu, Zhizhou Zhong, Puxin Yan, Haocheng Luo, and Xiu Li. Mind-v: Hierarchical world model for long-horizon robotic manipulation with rl-based physical alignment. arXiv preprint arXiv:2512.06628, 2025d.
Ruicheng Zhang, Guangyu Chen, Zunnan Xu, Zihao Liu, Zhizhou Zhong, Mingyang Zhang, Jun Zhou, and Xiu Li. Robostereo: Dual-tower 4d embodied world models for unified policy optimization. arXiv preprint arXiv:2603.12639, 2026a.
Ruicheng Zhang, Kaixi Cong, Jun Zhou, Zhizhou Zhong, Zunnan Xu, Shuiyang Mao, Wei Liu, and Xiu Li. Kvpo: Ode-native grpo for autoregressive video alignment via kv semantic exploration. arXiv preprint arXiv:2605.14278, 2026b.
Ruicheng Zhang, Jianhui Lei, Kaiwen Shen, Haowei Guo, Jun Zhou, Bin Chen, Mengtang Li, Shen Zhao, and Shuo Li. Teams: Text-prompted spatiotemporal dual-head mamba snake. Medical Image Analysis, pp. 104277, 2026c.
Tao Zhang, Xiangtai Li, Hao Fei, Haobo Yuan, Shengqiong Wu, Shunping Ji, Chen Change Loy, and Shuicheng Yan. OMG-LLaVA: Bridging image-level, object-level, pixel-level reasoning and understanding. In Advances in Neural Information Processing Systems, volume 37, pp. 71737–71767, 2024a.
Yichi Zhang, Ziqiao Ma, Xiaofeng Gao, Suhaila Shakiah, Qiaozi Gao, and Joyce Chai. GROUNDHOG: Grounding large language models to holistic segmentation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14227–14238, 2024b.
Shen Zhao, Jinhong Wang, Xinxin Wang, Yikang Wang, Hanying Zheng, Bin Chen, An Zeng, Fuxin Wei, Sadeer Al-Kindi, and Shuo Li. Attractive deep morphology-aware active contour network for vertebral body contour extraction with extensions to heterogeneous and semi-supervised scenarios. Medical Image Analysis, 89:102906, 2023a.
Tony Z. Zhao, Vikash Kumar, Sergey Levine, and Chelsea Finn. Learning fine-grained bimanual manipulation with low-cost hardware. In Proceedings of Robotics: Science and Systems, 2023b.
A ADDITIONAL IMPLEMENTATION AND EXPERIMENTAL DETAILS
A.1 TRAINING AND EVALUATION PROTOCOL
The complete training pipeline comprises grounding pretraining followed by the two-stage contour-policy training described in the main text: supervised fine-tuning (SFT) and DECT-GRPO post-training. Across these three chronological stages, ContourVLA progressively acquires referent grounding, geometric contour control, and joint grounding-action optimization. The visual and language backbones are initialized from MoonViT and Qwen2.5-3B-Instruct, respectively.
Stage I: Grounding and Detection. We first train VLIM on LocateAnything-Data (Wang et al., 2026), a large-scale mixture of object detection and vision-language grounding tasks. Stage I contains 139M training instances; Figure 6 summarizes their composition. Detection provides most of the supervision, while UI, referring, OCR, layout, and pointing data contribute complementary signals for fine-grained, language-conditioned localization. This stage adapts the initialized multimodal backbone to structured referent localization. VLIM learns to produce language-conditioned grounding outputs, including bounding boxes and no-target responses, while retaining the general visual-language representations inherited from pretraining. Because LocateAnything-Data primarily provides localization annotations, Stage I trains grounding and detection rather than contour actions.

Figure 6: Composition of the 139M LocateAnything-Data training instances used in Stage I. The mixture contains detection (66.9%), UI (16.5%), referring (7.3%), OCR (3.6%), layout (3.5%), and pointing (2.2%) data.
Stage II: Supervised Contour Fine-Tuning. Starting from the Stage-I checkpoint, we perform SFT jointly on the training sets of gRefCOCO (Liu et al., 2023a), RefCOCO and RefCOCO+ (Yu et al., 2016), and RefCOCOg (Mao et al., 2016) to initialize the contour-based perception-action policy. Ground-truth boxes supervise VLIM grounding, and segmentation masks are converted into aligned contour targets for GAD. Perturbed copies of the ground-truth boxes initialize the contour-action branch, after which reference contour trajectories supervise the evolution from these initial states toward the target boundaries.
This stage jointly establishes referent grounding and geometric action prediction. Auxiliary geometric and routing objectives stabilize contour evolution and EASS optimization, as detailed in Appendix A.6. The resulting checkpoint initializes DECT-GRPO post-training.
Stage III: DECT-GRPO Post-Training. The final stage applies DECT-GRPO to the same four-dataset training mixture, initialized from the Stage-II checkpoint. For each image-expression pair,
Table 4: Complete training pipeline of ContourVLA. The four-dataset mixture comprises the training sets of gRefCOCO, RefCOCO, RefCOCO+, and RefCOCOg.
| Stage | Training data | Supervision and objective |
|---|---|---|
| I. Grounding | LocateAnything-Data | Boxes and grounding responses; comprehensive grounding and detection pretraining. |
| II. Contour SFT | Four-dataset mixture | Boxes, masks, and aligned contour trajectories; joint grounding and geometric-action learning. |
| III. DECT-GRPO | Four-dataset mixture | Final segmentation feedback; joint optimization of the grounding and contour-action policies. |
VLIM samples discrete grounding outputs that define the initial contours, and GAD then samples continuous geometric action trajectories. The final contours are rasterized into segmentation masks and evaluated by dustbin-augmented entropic transport.
The resulting transport plan provides both a transport-based rollout reward and instance-level credit maps. The reward is used to compute the shared group-relative advantage, whereas the credit maps assign instance-specific corrections to the corresponding grounding tokens and contour actions. DECT-GRPO therefore jointly optimizes the autoregressive grounding policy and the continuous contour-action policy from final segmentation feedback, without retaining the supervised contour losses used in Stage II.
Data splits and checkpoint evaluation. Stage I performs grounding and detection pretraining on the 139M-instance LocateAnything-Data corpus. To prevent benchmark information leakage, entries originating from gRefCOCO, RefCOCO, RefCOCO+, or RefCOCOg are restricted to their official training splits; no validation or test annotations or expressions from these benchmarks are used during training. For Stages II and III, we likewise pool only the designated training splits of the four benchmarks, retaining the same data mixture for SFT and DECT-GRPO. After Stage III, a single checkpoint is evaluated on all validation and test splits without further adaptation to individual benchmarks.
Mask-level metrics. Each image-expression pair is treated as one evaluation sample. Predicted instance masks are merged by union, and the target mask is the union of all instances referred to by the expression. For RES, mIoU averages foreground IoU over the evaluated samples. For GRES, gIoU extends this average to no-target samples (Liu et al., 2023a): an empty prediction receives a score of one when the target is empty, whereas a nonempty prediction receives zero. An empty prediction for a nonempty target also receives zero. The cIoU metric divides the summed intersection area by the summed union area over the evaluated split. Correct empty predictions contribute zero to both sums, while foreground predictions on no-target samples contribute to the union.
No-target accuracy. N-acc is the percentage of ground-truth no-target samples for which the predicted mask contains no foreground pixels. Its denominator includes only no-target samples, rather than the full evaluation set.
Instance-level evaluation. Instance F1@0.5 is computed from individual instance masks before union. For each expression, we construct a one-to-one matching that maximizes the number of prediction-target pairs with mask IoU of at least 0.5. Matched pairs are true positives (TP); unmatched predictions and targets are false positives (FP) and false negatives (FN), respectively. Counts are accumulated over all evaluated expressions, and
For no-target expressions, predicted instances contribute false positives, while a correct empty prediction contributes no counts. For expressions with targets but no predictions, all targets contribute false negatives. The final score is reported as a percentage.
Boundary evaluation. For Figure 5, Boundary IoU (bIoU) (Cheng et al., 2021) is evaluated at the original image resolution on the same fixed subset of gRefCOCO validation expressions containing targets. At each action step, the predicted contours are rasterized and merged by union; the ground-truth instance masks are merged in the same way. Boundary regions are extracted by subtracting an eroded mask from the original mask, using a kernel with
erosion iterations, where H and W are the original image dimensions. Zero padding accounts for boundaries touching the image border. Boundary IoU is the intersection-over-union of the predicted and ground-truth boundary regions, averaged over expressions and reported as a percentage. Samples with no predicted mask receive zero and remain in the average at every step. This evaluation operates on expression-level union masks and does not require instance matching.
Latency protocol. For Figure 5(a), Full EASS and frozen observations use identical grounding predictions and initial contours, with two evolution iterations and four action steps per iteration. Cumulative contour latency is measured at action steps 2, 4, and 8 on the shared subset with predicted boxes. The step-2 measurement includes the cost of predicting the complete first four-step action chunk and executing its first two residual steps. Timing includes contour-branch preparation, EASS readouts, GAD execution, and contour updates, while excluding image encoding, grounding generation, and mask rasterization. Intermediate contours are recorded from each model's complete inference run.
A.2 ADDITIONAL QUALITATIVE COMPARISONS
Figures 7 and 8 provide additional side-by-side comparisons on challenging referring expressions, complementing the quantitative evaluation in the main text.
Figure 7 examines plural fruit referents, an absent target, and a multi-referent expression combining visual attributes and spatial relations. Different mask colors distinguish referred instances, while “No Target” denotes an empty prediction. These examples jointly test referent-set completeness, false-positive suppression, and boundary quality.
Figure 8 focuses on numerical and spatial constraints for multiple suitcases and on a heterogeneous object–person query involving a pot and a person. Together with Figure 7, it covers plural and multi-instance descriptions, heterogeneous referents, and the no-target case.
A.3 OUT-OF-DISTRIBUTION VIDEO SEGMENTATION
To examine qualitative robustness beyond the image benchmarks, we apply the trained ContourVLA checkpoint to sampled frames from four out-of-distribution video examples. Figure 9 shows predictions in temporal order for the query displayed at the left of each panel. Across object manipulation, hand–object interaction, and human motion, the predicted masks generally remain aligned with the referred regions despite changes in pose, position, appearance, and partial occlusion. This experiment provides a qualitative OOD assessment and does not report video-level temporal-consistency metrics.
A.4 STATE DESCRIPTORS AND DECODER INITIALIZATION
Seven-dimensional routing state. The implementation instantiates the factors in equation 5 with a seven-dimensional state descriptor: log box aspect ratio, log box area, normalized point allocation, contour irregularity, normalized evolution index, and the mean and maximum displacement from the preceding evolution iteration. Contour irregularity is the coefficient of variation of the vertex radii about the box center in box-relative coordinates. Displacements are also normalized by box width and height. All statistics exclude padded vertices, and the two displacement entries are set to zero at the initial iteration. For fixed boxes and point allocations, the first three descriptors remain constant across iterations and encode instance characteristics rather than evolution progress.
Initialization and routing regularization. Within , the final projection of the state-dependent component is zero-initialized. Consequently, the initial query is determined by the evolution-depth

Figure 7: Qualitative comparisons on plural, no-target, and relational referring expressions.
slot embedding, while the state-dependent offset is introduced gradually during training. The output projection of the residual semantic-attention branch is also zero-initialized, so the initial GAD block preserves its spatial and instance-context pathway. During SFT, aggregate-usage, maximum-probability, and expected-depth regularizers constrain the router as specified in equation 35. During DECT-GRPO, EASS is optimized through the action likelihood and the straight-through routing path, without an additional router loss.
Routing-score scale. In equation 6, normalized queries and keys yield dot products in . When the prior weight is zero, the largest soft routing probability is bounded by
The forward argmax still selects a single layer, but the bound limits the attainable value of a confidence objective defined on the soft probabilities. Equation 6 uses neither a routing temperature nor an additional logit scale.
A.5 COORDINATE CONVENTIONS AND ACTION-CHUNK EXECUTION
Box-normalized normal-direction sampling. All image coordinates are normalized to . For box , define its origin and anisotropic scale matrix
Input

Expression
LISA
GroundHog
HiMTok
RAS
TALENT
DeRIS-B
GSVA
Ground truth
Seg-R1
"two suitcases next to the wall"
ContourVLA

Input
LISA
HiMTok
TALENT
GSVA
Seg-R1

Expression
GroundHog
RAS
DeRIS-B
Ground truth
"the pot on the right and the guy standing with back facing us"
ContourVLA
Figure 8: Qualitative comparisons on numerical, spatial, and heterogeneous queries.
cup

(a)
hand

(b)
person

(c)
cup

(d)
Figure 9: Qualitative segmentation on out-of-distribution videos. Panels (a)–(d) show sampled frames in temporal order, indicated by the arrows. The referring query is displayed at the left of each panel.
The cyclic central-difference tangent and outward unit normal are computed in this box-normalized coordinate system:
where rotates the tangent by for a counterclockwise contour and by for a clockwise contour. Indices are cyclic, and the contour orientation is determined from its signed area. The
Table 5: Default spatial sampling, action execution, and optimization configuration. Stage-II and Stage-III batch sizes are global.
| Component | Setting | Interpretation |
|---|---|---|
| Input / feature grid | Fixed-resolution input and stride-16 VLIM grid | |
| Contour vertices | Perimeter-adaptive valid-point count | |
| Spatial offsets | Fractions of box-normalized distance on each side | |
| GAD depth | One routed semantic feature per block | |
| Action horizon | Eight action steps, with re-observation between the two chunks. | |
| Action bound | Per-axis bound in normalized-box coordinates | |
| VLIM adaptation | LoRA rank 64, , dropout 0.05 | Applied to attention Q/K/V/O and MLP gate/up/down projections |
| Stage-II SFT | 30k steps; batch 128; LR (LoRA) and (EASS/GAD) | Four-dataset joint supervised training |
| Stage-III DECT-GRPO | 8k updates; 32 input groups/update; | One update per sampled rollout group |
| Grounding sampling | temperature [, ], top- | Grouped rollout diversity with fixed nucleus threshold |
| Optimizer | AdamW, , weight decay 0.01 | Cosine decay, 3% warmup, gradient clipping at 1.0 |
| Numerics | bfloat16 with float32 rewards and transport | Mixed-precision policy optimization |
sampling coordinates used in equation 3 are therefore
This is strict normal sampling in the normalized-box domain and box-scale-normalized directional sampling in the image domain. Under anisotropic scaling, need not be parallel to the Euclidean image-space normal; the latter would instead be proportional to and is not used here. Before bilinear interpolation, is mapped to feature-grid coordinates and clipped to the valid grid boundary.
Chunk prediction and state transition. At closed-loop iteration , EASS is evaluated once on . Conditioned on this observation, GAD predicts the entire chunk in parallel. Each bounded action is a residual in box-normalized coordinates:
or, equivalently,
The residual fields are executed sequentially without refreshing visual or semantic observations inside the chunk. Coordinates are clipped to the image domain, while vertex ordering and valid-point counts remain fixed. After the final within-chunk step, ; normals, spatial samples, routing queries, and GAD observations are then recomputed before predicting the next chunk. Thus, controls the open-loop action horizon, whereas controls the number of perception-action cycles. Deterministic SFT and inference use ; DECT-GRPO samples according to equation 39.
Centralized implementation configuration. Table 5 reports the default geometry and optimization settings. With and , the policy executes eight action steps and re-observes the contour after every four steps. Since , one step can move a vertex by at most of the box width and height along the two normalized coordinate axes.
A.6 SUPERVISED TARGETS AND LOSS DETAILS
Grounding targets and initial contours. SFT uses teacher-forced grounding answers constructed from quantized and subsequently dequantized ground-truth boxes. A separate copy of each box is perturbed to initialize the contour-action branch; the grounding targets themselves are not jittered. Each perturbed box initializes an elliptical contour with 64-128 valid vertices, and the corresponding ground-truth boundary is resampled by arc length to the same number of vertices. The perturbation magnitude increases linearly from 0.05 to 0.10 during the first 3,000 optimization steps.
Reference contour trajectories. Let be the resampled ground-truth contour. We align it to by minimizing squared vertex distances over cyclic shifts and both traversal directions, denoted by :
This operation fixes the within-instance vertex correspondence and is distinct from the inter-instance transport used by DECT-GRPO. At evolution iteration k, the reference position for action step t interpolates from the iteration's actual starting contour to the aligned target:
The references in equation 25 provide soft positional supervision through equation 29, rather than executable expert-action trajectories. The predicted contour remains subject to the bounded transitions in equation 22-equation 23, so these references are not guaranteed to be reachable within every chunk. Reaching the aligned target at each chunk endpoint is therefore a supervision objective, not a hard constraint. The stop-gradient operator is applied only when constructing the reference. The predicted contour trajectory itself remains connected across iterations, so later trajectory losses can backpropagate through earlier contour updates.
Smooth- and trajectory weights. For a scalar residual, the smooth- penalty is
With and , the time weights in equation 29 are
These weights sum to one over all evolution iterations and action steps. To emphasize vertices that must travel farther, we define box-normalized distances from the initial contour:
(28)
where and prevents division by zero. All averages exclude padded vertices. Normalizing to unit mean preserves the average weight of each instance, and equation 29 weights instances equally rather than in proportion to their vertex counts.
Trajectory supervision. Let I contain instances with valid target contours. Their box-normalized residual and trajectory loss are
(29)
Box dimensions are lower-bounded before normalization. The temporal weights emphasize later actions, while the unit-mean travel weights emphasize vertices farther from their aligned targets.
Region supervision. At the end of each evolution iteration, we differentiably rasterize the predicted contour within an expanded region of interest (ROI) and compare it with the ground-truth mask rasterized in the same ROI:
The soft-rasterization temperature is 0.0025. Unlike the mask evaluation used to construct the RL reward, this operation is differentiable with respect to the predicted contour.
Final-contour regularization. Let and use cyclic adjacency within each instance's valid point count. Smoothness penalizes deviation from the midpoint of neighboring vertices:
With and , the spacing penalty is
This term promotes uniform edge lengths within each contour without imposing a common absolute spacing across objects. Both regularizers are applied only to the final contour.
Auxiliary signed-distance supervision. For locations on a grid in each object ROI, let denote the target signed distance. We normalize it by and truncate only the target:
(33)
The predicted distance is not clipped, which preserves gradients outside the target truncation interval.
Grounding supervision. Let S collect supervised answer-token positions. The teacher-forced grounding objective is
Supervised positions include coordinate tokens, structural tags, no-target responses, and the end-of-sequence token. Prompt positions are excluded, and copied expression tokens inside <ref> tags are masked by default. The target coordinates are obtained from the annotated boxes before geometric perturbation. If an example contains no valid target contour, the geometric losses provide no contour-learning signal, whereas grounding supervision, including no-target responses, remains active.
Routing regularization during SFT. Index decoder slots first by evolution iteration and then by block depth , with , and write for their layer probabilities. Define and expected layer depth . The regularizer is
The first term encourages diverse aggregate layer usage; the second rewards confident selection through the maximum probability rather than by minimizing per-slot entropy. The final term penalizes decreases in expected layer depth between adjacent evolution–depth slots. The confidence objective respects the finite probability range in equation 18 and therefore does not require probabilities to approach one. These auxiliary terms are used only during SFT and are not added separately during DECT-GRPO.
Effective SFT coefficients. The SFT objective used in our experiments is
The coefficients internal to are specified separately. These supervised objectives initialize the policy and are not retained during DECT-GRPO post-training.
A.7 DECT-GRPO REPLAY AND TRAINING PROTOCOL
Configuration and group-relative advantages. The DECT-GRPO configuration uses , , , , , clipping range , , transport entropy , and null score . For the rewards associated with one image-expression pair, define
The threshold suppresses numerically unstable updates when the rewards within a group are effectively identical.
Rollout likelihoods and replay. For a sampled grounding sequence, the grounding branch follows an autoregressive categorical policy with token-level log-probability
For each valid action index , GAD predicts a two-dimensional mean and samples . The bounded contour action is , with log-probability
During rollout collection, we store the sampled grounding outputs, pre-tanh action latents, behavior-policy log-probabilities, valid-point masks, grounding boxes, and historical contour states. During replay, the sampled quantities remain fixed, while current grounding log-probabilities, trainable observations, and action means are recomputed with gradients enabled. Dropout is disabled during both collection and replay.
Direct geometric policy gradients. For a fixed latent u and fixed variance, the transformation Jacobian is constant with respect to the current mean. Thus
This approximation holds when the likelihood ratios are close to one and clipping is inactive. The sampled continuous actions and their historical states are detached, while the current mean network remains differentiable. The resulting score-function gradient trains GAD and its observation pathways without differentiating through the mask reward. DECT-GRPO retains none of the SFT trajectory, region, smoothness, spacing, SDF, or router losses, and it introduces no action-reference KL or action-entropy term. Inference and SFT use deterministic actions .
Output-count weighting. Grounding-token counts and valid-action counts can induce different centered corrections for the same instance. With correctly aligned, disjoint grounding spans and valid-point masks, each branch preserves its rollout-level advantage sum under instance-level modulation:
This conservation property does not make the branch gradients equal, because their likelihood models and normalizations differ. Within an instance, all valid action steps and vertices receive the same instance-corrected advantage; DECT-GRPO does not estimate an additional temporal credit signal. For a single predicted instance, branch-wise centering yields zero instance correction, but the rollout still receives the shared advantage .
Grounding sampling and reference convention. Grounding answers use temperature and nucleus sampling. For each rollout, the temperature is sampled from [0.65, 0.75], while the nucleus threshold remains fixed. Replay scores the re-tokenized answer under the model's untruncated softmax. Because collection and replay therefore use different token distributions, the resulting objective should be interpreted as the implemented branch-wise policy-gradient surrogate rather than as an exactly unbiased on-policy estimator of the transformed grounding sampler. The grounding reference branch is formed by disabling the LoRA adapters while sharing the current visual-to-language projector. Reference log-probabilities are detached, but the reference is not a separately frozen copy of the complete SFT model. The exponential reference penalty is applied only to grounding and is not treated as an exact KL estimate under the transformed sampler. Behavior-policy log-probabilities are retained for both branches, and each rollout group is used for a single update rather than for multiple PPO epochs.
A.8 DERIVATION OF DUSTBIN-AUGMENTED ENTROPIC TRANSPORT
For rollout g, DECT solves the entropy-regularized transport problem
where specifies the prediction-side and target-side marginals, with . The augmented score matrix contains both real prediction-target IoUs and dustbin scores, so matched and unmatched instances are handled within a single transport problem.
Operational marginals, dustbin capacity, and solver settings. For and , let . We use the normalized SuperGlue-style marginals
Thus, every real prediction supplies mass and every real target demands mass. The null-prediction row has capacity , enough to explain all targets as missed, while the null-target column has capacity , enough to absorb all predictions as unmatched. The null-null entry receives whichever part of these capacities remains after real matches are formed. Consequently, dustbin capacity is determined by equation 43, rather than merely by appending a row and column.
Mask IoUs are kept on their native scale. In all experiments we fix and ; hence a weak real match competes directly with a null match of score 0.25, while entropy smooths competition within a scale of 0.05. We perform Sinkhorn scaling in the log domain, initialized with zero log-scalings, until the maximum row/column marginal residual is below or 1000 iterations are reached. Cases with or bypass transport and use the explicit set rewards in Section A.9.
Dustbin-free credit ablation. For the variant in Table 3, the rollout reward remains unchanged. For and , we compute a separate entropic transport plan on the real prediction-target IoU matrix , with uniform row and column marginals and , respectively. Instance credits are computed as . Entropy regularization, solver settings, branch-wise credit normalization, advantage modulation, and empty-set handling remain unchanged.
Equivalent reward identity. For , define the total real-match overlap mass as
When the marginal constraints in equation 43 are satisfied exactly, every real prediction row and real target column has total mass . Substitution into equation 12 gives
The zero-reward convention following equation 12 extends this identity to , including the case in which all real prediction–target IoUs vanish. This equality provides an implementation check rather than a new reward definition. Because finite Sinkhorn scaling satisfies the marginals only up to the stopping tolerance, numerical checks of the identity allow the corresponding residual error.
Introducing Lagrange multipliers and for the row and column constraints gives
Stationarity with respect to yields
and therefore
where the constant term is absorbed into the positive scaling factors and . Defining the element-wise exponential kernel
the optimal plan takes the matrix form
The marginal constraints determine the scaling vectors:
which leads to the alternating Sinkhorn updates
where and denote elementwise multiplication and division. For numerical stability, the implementation maintains dual log-scalings and and alternates
(53)
where LSE denotes log-sum-exp. This is algebraically equivalent to equation 52 but avoids explicitly forming large entries of .
This factorization clarifies the role of entropy regularization in DECT. Without it, small IoU differences can induce nearly hard assignments, making instance credit sensitive to ambiguous or overlapping predictions. Entropy regularization instead produces the positive affinity kernel , allowing mass to be distributed among plausible matches before the marginal constraints reconcile competing assignments globally. Dustbin entries participate in the same normalization, so false-positive predictions and missed targets compete directly with real correspondences rather than being handled by separate heuristics.
Equation 13 converts the transport plan into instance-level credit. Real matches contribute in proportion to mask IoU, whereas dustbin assignments contribute no overlap credit. Thus, resolves ambiguous correspondences globally while allowing unmatched predictions and targets to reduce the downstream reward and credit signals.
Representative transport and credit cases. The following examples use the fixed settings above. Matrices are rounded to four decimals; their last row and last column denote the null prediction and null target, respectively. We report the conditional instance credit from equation 13. For the normalized correction , we assume equal grounding/action output counts per predicted instance; the final branch advantage is then .
Ambiguous matching. For two nearly interchangeable predictions and targets,
The off-diagonal mass preserves matching uncertainty. Both predictions receive the same credit, , so . This avoids an arbitrary instance-level preference, while the rollout reward is .
Duplicate predictions. For two predictions competing for one target,
Most target mass is assigned to the stronger prediction, whereas the weaker duplicate is sent to the null target. The credits are and , so the former receives and the latter ; the set reward is .
Missed target. For one prediction and two targets,
The second target is explained almost entirely by the null-prediction row. The existing prediction has and, because it is the only prediction, . The missed target instead lowers recall and the shared rollout reward to , thereby affecting all sampled outputs through even though no instance-specific span exists for the missing object.
A.9 DECT-GRPO OPTIMIZATION DETAILS
Credit-map normalization. For rollout g, the instance credit in equation 13 is broadcast to the grounding-token span and valid action indices . Because different instances can contribute different numbers of grounding-token and action-likelihood terms, the two branches normalize the credits separately. Let
for . The normalized instance credit is
when the denominator exceeds ; otherwise, the correction is set to zero. The credit maps are constructed by assigning and . This output-count-weighted centering preserves the branch-wise mean advantage after instance-level modulation, as shown in equation 41. It requires valid, nonoverlapping grounding spans and valid-point masks for the action branch.
Sign-preserving modulation. For , the instance-modulated advantage satisfies
Thus, for , the correction preserves the sign of the shared advantage. With the default , the ratio lies in . When , the correction also vanishes. The mechanism therefore differentiates the strength of shared rollout feedback across instances without assigning independent advantage signs.
Empty outputs and set rewards. For positive-target inputs with no predicted objects, the rollout reward is set to
For no-target inputs, the reward depends only on the predicted object count,
For these no-target examples, grounding advantages are multiplied by the configured weight . The action branch is disabled because the reward evaluates object count rather than contour quality, even when the rollout contains predicted objects. Missed targets have no corresponding grounding span or action trajectory and therefore influence optimization through target coverage, the set reward , and the shared group-relative advantage .
Likelihood ratios and clipped objectives. During rollout collection, we store grounding and action log-probabilities under the behavior policy. During replay, the current log-probabilities are recomputed on the same sampled outputs. Their likelihood ratios are
Both branches use the clipped surrogate from equation 15, defined explicitly as
For grounding, the instance-modulated token advantages from equation 14 yield
For geometric actions,
where contains all valid two-dimensional actions in the rollout. Padding points do not contribute to the action likelihood or loss.
Grounding reference regularization. The grounding branch is regularized toward a reference policy. Let
We use
This nonnegative exponential surrogate is applied only to grounding; the continuous action branch uses no reference-policy regularizer.
Fixed-sample replay. Rollout collection stores the sampled grounding output, pre-tanh action latents, behavior-policy log-probabilities, valid-point masks, boxes, and historical contour states. During replay, these sampled quantities remain fixed while the current VLIM, EASS, and GAD features and action means are recomputed with gradients enabled. Rewards, rasterized masks, transport plans, and credit maps are detached from gradient computation.
Consequently, the action branch is optimized through score-function gradients of the sampled continuous actions rather than differentiation through contour rasterization, mask rewards, or transport matching. Gradients from the action likelihood propagate through GAD and its trainable observation pathways, including EASS and the trainable VLIM features.
Update aggregation. Rollouts with zero group-relative advantage or without scoreable grounding outputs are omitted from the policy loss, including the grounding reference term. The action loss is additionally omitted when , , or . Each remaining rollout retains its weight in equation 15; grounding and action losses are normalized independently before applying . Across gradient-accumulation steps, gradients are averaged over the accumulation count and across devices, then clipped before the optimizer update. Each sampled group is used for a single policy update.
A.10 ADDITIONAL ABLATION STUDIES
A.10.1 STATE CONDITIONING IN SEMANTIC ROUTING
Experimental setup. We compare four semantic-routing variants to distinguish learned layer selection from conditioning on static instance attributes and evolving contour geometry. All variants retain Spatial Visual Sampling (SVS), contour-aligned spatial re-observation, and the default action horizon and . They follow the same Stage-II SFT protocol from the same Stage-I initialization and are evaluated with identical grounding outputs and initial contours, as in Table 2. No RL post-training is used in this comparison.
The predefined schedule retains SVS and spatial re-observation but uses the predefined VLIM layer schedule instead of learned semantic routing. Slot-conditioned routing retains evolution–depth slot embeddings and the normalized evolution index, but masks instance-specific and dynamic geometric descriptors at the query input. Static-instance-conditioned routing additionally retains log box aspect ratio, log box area, and normalized point allocation. Full state-conditioned routing further includes contour irregularity and the mean and maximum displacement from the preceding evolution iteration, recovering Full EASS. These descriptors follow Appendix A.4.
For the three learned-routing variants, masked query dimensions are set to zero during both training and inference without changing the query-network width. Semantic-key construction, candidate layers, straight-through selection, the routing-prior schedule, and routing regularizers remain unchanged. Only routing-query inputs are ablated; geometry in SVS, contour tokens, and instance context is retained. Because semantic keys depend on VLIM features, slot-conditioned routing can still vary across image-expression inputs rather than imposing a dataset-wide fixed schedule.
Evaluation. We report gIoU and cIoU on gRefCOCO val under the common-grounding protocol of Table 2. We additionally report mean Boundary IoU on the fixed positive-target expression subset used in Figure 5, denoted bIoU . It is evaluated after eight action steps using expression-level union masks, original image resolution, and the boundary-width parameter of 2% of the image diagonal specified in Appendix A.1. Empty predictions receive zero and remain in the average.
Table 6: State conditioning in semantic routing on gRefCOCO val (%). All variants retain SVS and spatial re-observation. gIoU and cIoU use the validation split; bIoU uses the fixed positive-target subset from Figure 5 at action step 8. The Full EASS boundary score is the Figure 5 endpoint (65.98%), rounded to one decimal place. Bold denotes the best score in each column.
| Routing variant | gIoU ↑ | cIoU ↑ | bIoU+ ↑ |
|---|---|---|---|
| Predefined schedule | 74.2 | 63.5 | 61.4 |
| Slot-conditioned | 74.7 | 64.2 | 62.2 |
| Static-instance-conditioned | 76.5 | 65.1 | 64.3 |
| Full state-conditioned | 77.6 | 67.4 | 66.0 |
Analysis. Table 6 shows modest gains from slot-conditioned routing over the predefined schedule, followed by further improvements when static instance attributes are included. Full state conditioning adds 1.1 gIoU, 2.3 cIoU, and 1.7 bIoU points over the static variant. With SVS and spatial re-observation retained, this comparison supports the value of evolving contour descriptors for semantic routing beyond evolution–depth slots and static instance attributes. The boundary improvement on the fixed positive-target subset is consistent with more effective semantic conditioning during contour refinement.
A.10.2 GROUNDING AND CONTOUR-ACTION OPTIMIZATION
Experimental setup. We ablate the two policy-gradient (PG) terms while retaining the complete architecture. Let and denote the aggregated grounding-token and contour-action clipped-surrogate losses, respectively, excluding reference regularization and the action coefficient. We use
The switches , , and give grounding-PG only, action-PG only, and joint DECT-GRPO, respectively. retains the original grounding reference penalty and aggregation rules in Appendix A.9 for all RL variants. SFT-only denotes the checkpoint before post-training.
All RL variants use the same SFT initialization, training data, rollout settings, transport reward, dust-bin treatment, instance credits, and optimization budget. Both grounding and actions are sampled regardless of which PG term is retained. Loss coefficients and validity masks are unchanged, and no SFT losses are added. No-target rollouts receive no action PG loss. This is an objective ablation, not module freezing: shared VLIM features can change even when one PG term is absent.
End-to-end and fixed-grounding evaluation. Table 7(a) evaluates the full gRefCOCO validation split using each model's own grounding. Panel (b) fixes the same complete SFT grounding sequences, boxes, and initial contours for every model on the fixed positive-target subset used in Figure 5. Models recompute their own VLIM features, EASS observations, and eight-step contour actions without regenerating grounding outputs. Thus, upstream predictions are controlled, but learned observation pathways are not frozen.
On this subset, mIoU averages expression-level union-mask IoU, while bIoU follows the boundary protocol above. Empty predictions remain in both averages with zero scores; no model-specific filtering is applied. The SFT-only boundary reference is shared with Full EASS in Table 6. Panel (b) is a separate controlled evaluation, not a positive-target breakdown of panel (a).
Table 7: Ablation of grounding and contour-action PG objectives (%). (a) End-to-end evaluation on the full gRefCOCO validation split using each model's own grounding. (b) Eight-step contour evaluation on the fixed positive-target subset from Figure 5, with the same SFT grounding and initial contours for every model. Bold denotes the best score in each column.
| Variant | (a) End-to-end | (b) Fixed grounding | ||||
|---|---|---|---|---|---|---|
| gIoU ↑ | cIoU ↑ | N-acc ↑ | F1@0.5 ↑ | mIoU+ ↑ | bIoU+ ↑ | |
| SFT only | 77.6 | 67.4 | 74.6 | 73.8 | 78.4 | 66.0 |
| Grounding-PG only | 81.4 | 70.2 | 80.7 | 79.8 | 79.0 | 66.7 |
| Action-PG only | 79.8 | 69.5 | 76.3 | 76.1 | 80.5 | 68.5 |
| Joint DECT-GRPO | 83.5 | 72.3 | 83.2 | 82.4 | 81.2 | 69.3 |
Analysis. Both single-PG objectives improve over SFT, but their relative performance differs between the two evaluation settings. Grounding-PG-only training achieves higher end-to-end scores, whereas action-PG-only training yields better region overlap and boundary quality under fixed SFT grounding. Joint DECT-GRPO achieves the highest scores in both panels. Relative to grounding-PG only, it improves end-to-end gIoU and F1@0.5 by 2.1 and 2.6 points, respectively. Under fixed grounding, it retains gains of and points, supporting a refinement benefit from including the action objective beyond changes in predicted boxes and referent counts at evaluation. Joint training also improves over action-PG only under both protocols, supporting the retention of both PG terms within the evaluated training budget. These comparisons support the two training objectives without attributing their gains to isolated modules.
A.11 LIMITATIONS AND SCOPE
Scope of the closed loop. In the current formulation, “closed-loop VLA” specifically denotes feedback between the evolving geometry of initialized contours and state-conditioned visual–semantic readouts. VLIM determines the instance set and initial boxes before contour evolution; the subsequent action space refines these instances but does not regenerate boxes or introduce instance-birth and instance-deletion actions within the same inference rollout. Consequently, an initially missed referent—including the M = 0 case—cannot be recovered through later contour updates. DECT-GRPO improves the grounding policy across training rollouts, but is not intended to imply online bidirectional revision of grounding and segmentation. This scoped design isolates geometric correction and keeps inference stable; extending the action space with re-grounding and cardinality-changing operations is a natural direction for a broader closed-loop policy.
Contour representation. The fixed ordered-vertex state provides efficient, interpretable boundary updates, but retains the initialized contour topology and point budget. Highly disconnected regions, holes, or exceptionally thin structures may therefore benefit from topology-changing actions or adaptive vertex insertion. These extensions are complementary to EASS and DECT-GRPO rather than changes to their underlying perception and credit-assignment principles.