betaFeedback

WorksComputer Science

LLMSeg: Training-Free Text-Prompted Image Segmentation with B-Splines

Abstract

Promptable segmentation models such as SAM 3 achieve remarkable open-vocabulary performance but require dedicated architectures, large-scale annotation engines, and task-specific training. We ask a different question: can a general-purpose multimodal large language model (MLLM) segment images directly, without an added segmentation head, mask decoder, or training? We present LLMSeg, a training-free pipeline that turns a vision-capable LLM into a text-prompted image segmenter. LLMSeg decomposes segmentation into three LLM-driven stages. First, detect localizes all instances matching a free-form text query and describes their coarse morphology. Next, segment traces each instance using closed periodic B-splines confined to its detected box. These splines define an outer boundary and optional hole loops. Finally, refine iteratively proposes focus boxes around residual errors and retraces confined splines. The process ends when the mask stabilizes or the pass budget is exhausted. The output is a binary mask with inspectable intermediate geometry. We evaluate LLMSeg across ten referring and reasoning segmentation splits (ReasonSeg and RefCOCO/+/g). We also evaluate open-vocabulary instance segmentation (LVIS, COCO, and SA-Co), semantic segmentation, and zero-shot detection (ODinW13 and RF-100VL). With an off-the-shelf Gemini-3.7-Flash backend, LLMSeg is competitive with and often surpasses the specialist SAM 3 model on identical items. It reaches 71.5 cIoU on ReasonSeg val without additional segmentation-specific training. Backend model updates can improve accuracy without retraining the pipeline. The code is available at https://abdullahamdi.com/llmseg .

Introduction

Text-prompted segmentation (producing a pixel mask for every instance that matches a language query) is a foundational capability for multimodal AI. The dominant approach builds ever-stronger specialist models: the SAM series [27, 55] introduced promptable visual segmentation. SAM 3 [6] extends this capability to promptable concept segmentation from noun phrases. It relies on a dedicated detector-tracker architecture and a massive human- and model-in-the-loop data engine.

In parallel, multimodal large language models (MLLMs) have acquired remarkable general visual competence. Their capabilities include grounding, counting, and coarse localization [9, 50, 3, 11]. However, they are widely assumed to require a trained segmentation decoder, such as SAM, to produce dense pixel masks [28, 54, 6]. We challenge this assumption. We present LLMSeg (Figure 1), a fully training-free pipeline. A general-purpose MLLM is its only vision component. It returns geometry: closed curves that deterministic code rasterizes into a mask and keeps inside each box. The work splits into three stages. Detect localizes every instance the query matches and returns its box. Segment traces that instance with closed periodic B-spline loops confined to the box. Refine reads the rendered overlay and retraces the errors that remain, each inside a signed focus box.

Figure 1. Text-prompted segmentation from a frozen MLLM. LLMSeg segments an image from a free-form text query alone, with a frozen multimodal LLM as its only vision component: no segmentation head, no mask decoder, no training. Top: four results, each under its query. Bottom: the model emits geometry rather than pixels; deterministic code rasterizes it, and the rendered overlay is fed back so the model can inspect and correct its own boundary.

This design provides an explicit parametric intermediate representation: cubic traces encode smooth curves, while degree-one traces encode straight edges. Rasterization and refinement need not preserve a smooth final boundary. With topology enabled, holes are specified as subtractive loops. Reasoning queries (“the food that the bird likes to eat”) work off the shelf because each query is interpreted by the same LLM that performs the segmentation. Every stage emits human-readable JSON, making geometric decisions inspectable. Since LLMSeg adds no trained parameters, backend upgrades require no pipeline retraining and usually come with segmentation accuracy gains.

Contributions: (i) We propose LLMSeg, a training-free promptable segmentation pipeline in which an MLLM predicts parametric B-spline geometry confined to each detected box and then refines it inside signed focus boxes. (ii) We show for the first time at benchmark scale that a general-purpose MLLM can perform dense text-prompted segmentation without any trained segmentation component. LLMSeg with Gemini-3.7-Flash as the backend is competitive with SAM 3 [6] on ReasonSeg, RefCOCO+/g, LVIS, COCO, SA-Co, ADE20K, Cityscapes, ODinW13, and RF-100VL, and reaches 71.5 cIoU on ReasonSeg val, the best among methods not fine-tuned for the task. Further analysis shows LLMSeg’s segmentation quality follows the backend strength without retraining, offering automatic improvement in segmentation with better backends.

Related Work

Segmentation models and MLLM-driven segmentation. SAM [27] introduced promptable segmentation. SAM 2 [55] extended it to video. SAM 3 [6] extended it to open-vocabulary concept prompts. GLIP [33], GroundingDINO [40], OWLv2 [48], and DINO-X [57] are trained specialists. MLLM-based methods add language reasoning but retain a trained mask component. LISA [28] decodes an LLM’s <SEG> token with SAM. GLaMM [54], PSALM [80], and X-SAM [63] also use trained mask components. SAM4MLLM [8] and Seg-Zero [44] train MLLMs to prompt SAM.

Training-free alternatives include RSVP (Lu et al., 2025) and attention-based grounding [24]. Agentic systems include SAM 3 Agent [6] and the pipeline in Colon-Bench [19]. These approaches still delegate mask production to a segmentation model. In contrast, LLMSeg uses only text queries to a frozen, general-purpose MLLM. It requires no exemplars, input boxes, or video prompts. The MLLM emits the final geometry, which our loop revises directly.

Geometry as text and contour representations. Representing geometry as text is not new. Vision-LLM [65] represents boundaries as short polygons in a trained multitask pipeline. VisionLLM v2 [68] uses task-specific trained decoders. PixelLLM [73] learns localization heads and obtains masks through SAM. Text4Seg [29] generates segmentation tokens but requires fine-tuning. General models such as Molmo [11] and Gemini ([9, 62]) also provide pointing and coarse localization. Classical boundary representations include spline snakes ([4]). Trained vertex predictors include Polygon-RNN++ ([1]) and Curve-GCN ([39]). LLMSeg uses this output space without training a contour predictor. A frozen, general-purpose backend emits control points that define the mask prediction. Only deterministic geometric processing follows. Confined signed regions then allow the refinement process to correct local parts of the mask.

Method

Overview. Given an image II and a free-form text query qq, LLMSeg predicts binary masks for NN retained instances. We index these instances by k=1,…,Nk = 1, \ldots, N. Stage 2 initializes each mask as Mk(0)M_k^{(0)}. Refinement pass tt produces Mk(t)M_k^{(t)}. Their union is M(t)=⋃k=1NMk(t)M^{(t)} = \bigcup_{k=1}^{N} M_k^{(t)}. The final output MM is the union at termination. A frozen multimodal LLM fϕf_\phi is the only vision component. No parameters are updated, and no segmentation head is attached. The pipeline accesses fϕf_\phi only through fixed text prompts, with one prompt per stage call. Each call is stateless and uses no tools. Deterministic code controls the sequence. It also turns the returned geometry into masks. Figure 2 shows the three stages.

Figure 2. LLMSeg pipeline overview. Detection localizes instances, segmentation traces box-confined B-splines, and refinement corrects the mask within signed focus boxes (+ adds pixels, − removes them). Each MLLM call serves all instances (one is shown).

Stage 1: detecting instances and their structure

A single detection call to fϕf_\phi takes II and qq as input. For every instance matching qq, it returns an axis-aligned box bk=[xk,1,yk,1,xk,2,yk,2]b_k = [x_{k,1}, y_{k,1}, x_{k,2}, y_{k,2}] and a confidence score. It also returns a short morphology description of the coarse shape and aspect. Optionally, it provides a topology descriptor that specifies the component and hole counts. Near-duplicate boxes are merged at IoU⁡≥0.9\operatorname{IoU} \ge0.9. Instances are then ordered in reading order. At most Nmax⁡N_{\max} are kept, so 0≤N≤Nmax⁡0 \le N \le N_{\max}. Coordinates are given in absolute pixels. The origin is at the top left. In set operations, bkb_k denotes the pixel region inside that box. If N=0N = 0, the output is empty.

Stage 2: from language to geometry

One batched call traces every instance at once. It returns an outer loop for each instance. With topology conditioning, it also returns one loop per predicted hole, each a list of control points.

Representation. A loop is a closed periodic BB-spline of degree dd. It is defined over a control polygon P=(p1,…,pn)P = (p_1, \ldots, p_n) containing nn two-dimensional control points indexed by ii. The count nn can vary between loops. The polygon is wrapped so that pi+n=pip_{i+n}=p_i:

CP,d(u)=∑i=1nBi,d(u) pi,u∈[0,n],CP,d(n)=CP,d(0),(1)C_{P,d}(u)=\sum_{i=1}^{n}B_{i,d}(u)\,p_i,\qquad u\in[0,n],\qquad C_{P,d}(n)=C_{P,d}(0), \tag*{(1)}

where uu is the curve parameter and Bi,dB_{i,d} are the uniform periodic B-spline basis functions of degree dd [52]. Eq. (1) is a piecewise polynomial consisting of nn degree-dd segments. Each Bi,dB_{i,d} is supported on only d+1d+1 knot spans. Thus, each control point influences only d+1d+1 segments, and a misplaced point changes a bounded arc rather than the whole curve. Stage 3 does not edit these original control points. Its locality comes from adding or subtracting focus-box regions.

We also let the model choose the degree. The same call that places the control points first chooses d∈{1,3}d\in\{1,3\} based on the object’s form. It uses d=3d=3 for rounded and organic silhouettes and d=1d=1 for angular, straight-edged ones. It then places the points as the selected degree requires. Cubic control points are pushed outward toward the edge, whereas degree-1 vertices lie directly on it. One degree is shared by all loops of all instances in the stage-2 call.

Rasterization by sampling. Masks are produced by sampling the curve and filling the resulting polygon, not by evaluating an implicit function. Let clip⁡b\operatorname{clip}_b denote the per-coordinate clamp onto a box bb. Let Fill⁡\operatorname{Fill} denote even-odd polygon fill [14]. One loop then becomes the region

Rb,d(P)=Fill⁡((clip⁡b(CP,d(ur)))r=1m),ur=r−1m−1n,(2)\mathcal{R}_{b,d}(P)=\operatorname{Fill}\left(\left(\operatorname{clip}_b(C_{P,d}(u_r))\right)_{r=1}^{m}\right),\qquad u_r=\frac{r-1}{m-1}n, \tag*{(2)}

with mm samples indexed by rr, uniformly spaced in the curve parameter and including the repeated endpoint. For cubic loops, mm is proportional to the perimeter of bb, so small and large objects are rasterized at comparable boundary resolution. For d=1d=1, the control polygon is filled directly. Eq. (2) applies Fill to an ordered sequence of boundary samples. The control points are used as returned, and the sampled boundary is clamped to bb before filling. A trace can never leave its own detected box, so a hallucinated control point cannot paint across the image. Overlapping instance boxes can still produce overlapping masks. Consequently, detection quality upper-bounds segmentation quality. With topology conditioning off, the initial instance mask is Mk(0)=Rbk,d(Pkout)M_k^{(0)}=\mathcal{R}_{b_k,d}(P_k^{\mathrm{out}}), where PkoutP_k^{\mathrm{out}} is instance kk’s outer control polygon. When topology conditioning is enabled, regions rasterized from predicted hole loops are subtracted from the outer region to obtain Mk(0)M_k^{(0)}. The predicted hole count is not guaranteed to survive loop overlap, rasterization, refinement, or cleanup.

Stage 3: iterative refinement

The initial outline often identifies the right object but misses boundary detail. Each refinement pass asks the model to locate errors on the current mask overlay. It then retraces those regions within smaller boxes. In pass t=1,…,Tt=1,\ldots,T, both calls receive I⊕M(t−1)I\oplus M^{(t-1)}, the previous union mask rendered over the image. Leaving the fixed prompts and structural context implicit, we write the loop as

{(kj,βj,σj)}j=fϕ(I⊕M(t−1),q),Mk(t)=Compose⁡(Mk(t−1),{(σj,Rβj,3(Pj))}j:kj=k).(3)\begin{aligned} \{(k_j,\beta_j,\sigma_j)\}_j &= f_{\phi}(I\oplus M^{(t-1)},q),\\ M_k^{(t)} &= \operatorname{Compose}\left(M_k^{(t-1)},\{(\sigma_j,\mathcal{R}_{\beta_j,3}(P_j))\}_{j:k_j=k}\right). \tag*{(3)} \end{aligned}

Here jj indexes the focus boxes in the current pass. The value kjk_j identifies the instance corrected by the jjth focus box. The box βj\beta_j is confined to that instance’s box. The sign σj∈{+1,−1}\sigma_j \in\{+1,-1\} requests addition or removal. A second call uses the same overlay, query, and box geometry. It returns cubic control polygons for all retained boxes in one batch, where PjP_j is the control polygon of the jjth focus box, which corrects instance k=kjk = k_j. Before this call, an effect gate discards boxes with negligible potential to change the mask. If none remain, retracing is skipped.

Composition applies each correction to instance kjk_j and cleans up small artifacts. It carries a per-instance commitment field that is implicit in Eq. (3). This field resists opposing edits and reduces oscillation. Boolean composition and cleanup need not leave a globally smooth spline boundary. The updated union M(t)M^{(t)} feeds the next pass. Both model calls batch all instances, so each pass uses at most two MLLM calls regardless of NN. The gating and cleanup settings, the per-pixel composition rule, and a worked example of each call are given in Section B. Refinement ends after at most TT passes, or once the union mask changes only negligibly for ss consecutive passes (the patience criterion). § 4 gives additional details, and § 5 examines convergence.

Experiments

Experimental setup

Benchmarks and metrics. We follow the image evaluation suite of SAM 3 ([6]). We use each benchmark’s standard metrics. **(i) Referring and reasoning segmentation: ** We evaluate on ReasonSeg ([28]) (val/test) and all splits of RefCOCO, RefCOCO+, and RefCOCOg ([26, 46]). We report gIoU (mean per-item IoU) and cIoU (cumulative ∑I/∑U\sum I/\sum U). **(ii) Open-vocabulary instance segmentation: ** We evaluate on LVIS ([18]) and COCO ([37]), and additionally on SA-Co/Gold ([6]), which is reported in the appendix (Table 8). We report presence-gated cF1 and pmF1 (with hard negative prompts), positive-set IoU, and COCO-style box/mask AP. **(iii) Semantic segmentation: ** We report 19-class mIoU on Cityscapes [10], using deterministic mask compositing. We use ADE20K [81] as a class-prompted oracle upper bound. (iv) Zero-shot detection: We evaluate on ODinW13 [31] and RF-100VL [58]. We report AP0\mathrm{AP}_0, the mean per-subset box AP computed from masks.

MethodMLLMLVIS cgF1LVIS pmF1LVIS box APLVIS mask APCOCO cgF1COCO pmF1COCO box APCOCO mask APSA-Co/Gold cgF1SA-Co/Gold pmF1
Human–––––––––72.8–
OWLv2 (Minderer et al., [48])–20.1–35.2–––38.2–17.3–
OWLv2 (LVIS-trained)–29.3–45.543.4––46.1–24.6–
gDino-T (Liu et al., [40])–14.7–20.5–––45.7–3.3–
LLMDet-L (Fu et al., [15])–35.1–42.036.3––55.6–6.5–
APE-D (LVIS-trained) (Shen et al., [59])–––59.653.0––58.3–16.4–
DINO-X (Ren et al., [57])–––52.438.5––56.0–21.3–
Gemini 2.5 Flash (Comanici et al., [9])–13.4–––––––13.0–
SAM 3 (Carion et al., [6])–37.2–53.648.5––56.4–54.1–
SAM 3*–50.158.069.162.252.457.668.059.245.455.2
SAM 3 Agent*Gemma-4-31B51.062.456.250.949.958.648.942.0––
LLMSeg (w/o refine)Gemini-3.7-Flash50.453.057.136.950.454.059.638.031.948.6
LLMSeg (full)Gemini-3.7-Flash53.957.364.247.256.160.666.650.536.455.4

Table 8. Open-vocabulary instance segmentation. Rows without asterisks or shading report published full-split results quoted from Carion et al. [6]. Rows marked with * show our evaluations of the SAM 3 baselines on matched random subsets with hard negatives, using the same items as our methods (shaded rows). cgF1 is presence-gated F1, and pmF1 is its positive-only counterpart. Within the starred and shaded rows (our matched block), the best and second-best result per column are shown in bold and <u>underlined</u>, respectively. Published rows and the human reference are not ranked.

Protocol: complete splits and sampled subsets. We run each split in full whenever end-to-end evaluation is practical. This includes ReasonSeg val (200) and test (779), Cityscapes val (500), and every ODinW13 and RF-100VL subset (6,237 and 1,987 items). In total, we fully evaluate 9,703 of the 17,703 scored items. Four of the ten benchmarks are run in full. The remaining annotation files contain 10410^4 to 10510^5 items, making full MLLM inference impractical. We instead draw uniform random samples with seed 0. We do not take the first items because the annotation files are strongly ordered. We sample 1,500 items each from LVIS and COCO, 1,000 from ADE20K, and 500 from each RefCOCO/+/g split. The item counts above cover the ten benchmarks of the main tables. The appendix SA-Co/Gold evaluation uses a further 2,500 items covering all seven domains. On these sampled splits, we run every baseline once on the full split. We then recompute its metrics on exactly the item set seen by LLMSeg, using a shared-key intersection. Negative sampling is also identical: 3 negatives per positive for LVIS and COCO, with seed 0.

LLMSeg configuration. The main results use Gemini-3.7-Flash as the backend for all three stages. The backend selects the Stage-2 curve degree d∈{1,3}d \in\{1, 3\} (§ 3). This degree is shared across all instances in a call. Refinement curves are always cubic. Refinement uses a budget of T=8T=8 passes, a cap of Nmax⁡=200N_{\max}=200 instances per image (matching SAM 3’s cap), and a focus-box budget of 6 per instance per pass. The stopping criterion is ∣M(t)△M(t−1)∣<ϵ∣⋃k=1sbk∣|M^{(t)} \triangle M^{(t-1)}| < \epsilon\left|\bigcup_{k=1}^{s} b_k\right|, where ϵ=0.005\epsilon=0.005. The loop stops when this criterion holds for s=3s=3 consecutive passes with t≥1t \ge1. Here, ss is the stopping patience, ∣⋅∣|\cdot| counts pixels, and △\triangle denotes symmetric difference. The denominator is the union of the instance boxes. By Eq. (2), this is the only region that a pass can alter. Normalizing by the full image would make the same threshold behave very differently for small and large objects (§ 5).

A full run uses 2 MLLM calls for detection and segmentation. Each refinement pass adds at most 2 calls. Thus, the maximum is 2T+2=182T+2=18 calls, although early stopping keeps the measured mean well below this limit. The stage-1 topology descriptor (§ 3) is optional. The main results disable it for all three stages (§ 5). We use the same settings on every benchmark and tune nothing per dataset.

Baselines. Our two main baselines are from the SAM 3 paper [6]. SAM 3: We use the public checkpoint through Hugging Face Transformers in fp32. We provide one text query per item and allow up to 200 instances. We score its output with the same metric code on the same items. SAM 3 also accepts image-exemplar and box prompts and supports video. We use none of these features, and LLMSeg is text-only by design. SAM 3 Agent: This agent baseline was introduced in the same paper. An MLLM drives SAM 3 as a tool. The MLLM proposes simple noun phrases

MethodADE20K-150CityscapesODinW13RF-100VL
gIoUcIoUmIoUAP₀gIoUcIoUpmF1AP₀gIoUcIoUpmF1
APE-D (LVIS-trained)––44.2––––––––
Gemini 2.5 Pro–––33.7–––11.6–––
gDino-T–––49.7–––15.7–––
gDino1.5-Pro–––58.7–––––––
SAM 3––65.261.0–––15.2–––
SAM 3*57.967.363.751.548.351.539.614.213.821.711.4
LLMSeg (w/o refine)56.660.548.852.048.748.750.030.442.150.858.7
LLMSeg (full)59.264.753.357.254.255.757.531.443.653.261.7

caption: Table 2: Semantic segmentation and zero-shot detection. The baselines are APE-D (Shen et al. [59]), Gemini 2.5 Pro (Comanici et al. [9]), and gDino-T (Liu et al. [40]). LLMSeg uses Gemini-3.7-Flash. Unmarked baselines are published full-split numbers. * Our evaluation uses complete splits, except on ADE20K, where we use the same 1,000 random items as the shaded rows. ADE20K reports oracle-class union-IoU and Cityscapes reports 19-class mIoU. Detection reports mean per-subset box AP₀ and pooled mask metrics. Bold is the best and <u>underline</u> the second best per column.

:::

for SAM 3, inspects the returned numbered masks, and selects those matching the query. We use Gemma-4-31B-it and Gemini-3.7-Flash rather than the paper’s Qwen and Gemini 2.5 Pro backends. The selected union is scored identically. We also quote full-split numbers of published specialists from Carion et al. [6].

Main results

Tables 1 to 3 summarize ten benchmarks. Figure 4 shows one example per setting. Additional examples appear in Figure 10 to Figure 14.

Figure 4. LLMSeg Qualitative comparisons. We show comparisons of LLMSeg with baselines on various setups. Top: input with ground truth in amber. Middle: the baselines SAM 3 in the first four columns and LLMSeg (w/o refine) in the last two. Bottom: LLMSeg.

Figure 10. Where LLMSeg separates from both SAM 3 baselines. Selected items from ReasonSeg, RefCOCO/+/g, SA-Co/Gold, and ADE20K. SAM 3 [6] receives the same text query as LLMSeg, and each chip reports that system’s recorded IoU.

Four rows of refinement-mask examples with columns Input, Ground truth, Stage 2, Pass 1, Pass 2, and Last pass. Rows are “man on left” with RefCOCOg, 12 passes; “the goat nearest to the bottom stone” with ReasonSeg, 11 passes; “bicycle” with LVIS, 11 passes; and “synthetic rug” with SA-Co/Gold, 6 passes.

Figure 14. What one refinement pass does. Four items, one per task format, for which the final mask substantially outperforms the stage-2 mask. Each is shown at stage 2, after the first two passes, and after the final pass. Each chip identifies the state and reports its IoU. The intermediate masks are replayed from each item’s refinement record using the pipeline’s own composition code.

Reasoning segmentation. On ReasonSeg (Table 1), LLMSeg reaches 71.5 cIoU on validation. This is the best result among methods not fine-tuned for the task. Refinement adds 6.9 cIoU over the segment stage alone. The gIoU scores and complete published results for both tasks appear in Section D.1.

MethodMLLM/BackendReasonSeg valReasonSeg testRefCOCO valRefCOCO testARefCOCO testBRefCOCO+ valRefCOCO+ testARefCOCO+ testBRefCOCOg val (U)RefCOCOg test (U)
Seg-ZeroQwen2.5-VL 7B62.052.0––––––––
LISALLaVA 7B––74.979.172.365.170.858.167.970.6
LISALLaVA1.5 13B72.962.2––––––––
GLaMMVicuna 7B47.2–79.583.276.972.678.764.674.274.9
PSALMPhi1.5 1.3B––83.684.781.672.975.570.173.874.4
RICEQwen2.5-7B––83.585.381.779.482.875.479.880.4
HyperSegPhi2 2.7B56.7–84.885.783.479.083.575.279.478.9
X-SAMPhi3 3.8B32.941.085.187.183.478.081.074.483.883.9
Grounded SAM–14.516.4––––––––
Gemini SegGemini2.5 Flash13.39.2––––––––
SAM 3*–9.911.342.042.844.233.637.032.940.039.7
LISALLaVA1.5 13B60.350.8––––––––
Kang et al.LLaVA1.5 13B60.549.976.178.972.864.167.157.367.769.0
RSVPGPT-4o63.160.0––––––––
SAM 3 AgentQwen2.5-VL 7B49.153.559.464.355.051.457.044.957.258.8
SAM 3 AgentQwen2.5-VL 72B65.164.071.674.966.064.970.857.968.870.2
SAM 3 AgentLlama4 Maverick61.560.971.776.566.565.171.257.667.768.7
SAM 3 AgentQwen3-VL 8B Think57.467.368.672.363.959.364.555.666.466.9
SAM 3 AgentQwen3-VL 235B Think67.071.873.977.069.766.970.962.272.172.9
SAM 3 AgentGemini2.5 Pro66.072.175.577.671.067.371.163.473.474.0
SAM 3 Agent*Gemma-4-31B63.966.773.275.675.067.272.061.972.174.7
SAM 3 Agent*Gemini-3.7-Flash62.063.273.276.775.568.472.068.576.576.9
LLMSeg (w/o refine)Gemini-3.7-Flash64.658.265.565.772.959.761.461.164.869.3
LLMSeg (full)Gemini-3.7-Flash71.565.871.273.876.067.069.964.970.974.5

Table 1. Reasoning and referring expression segmentation. Results on ReasonSeg ([28]) and RefCOCO/+/g ([26, 46]). All values are cIoU. The baselines are Seg-Zero ([44]), LISA ([28]), GLaMM ([54]), PSALM ([80]), RICE ([72]), HyperSeg ([67]), X-SAM ([63]), Grounded SAM ([56]), Gemini Seg ([62]), Kang et al. ([24]), RSVP (Lu et al., 2025), and both SAM 3 and SAM 3 Agent ([6]). The top block contains methods fine-tuned for referring or reasoning segmentation. Unmarked rows are published full-split numbers quoted from SAM 3 [6]. *Our baseline evaluation uses the complete ReasonSeg splits. On RefCOCO/+/g, it uses the same 500-item subset per split as LLMSeg. Bold is the best and <u>underline</u> the second best per column.

Referring expression segmentation. On RefCOCO/+g (Table 1), LLMSeg substantially outperforms SAM 3, while SAM 3 Agent generally remains stronger. Refinement improves cIoU across all eight splits. On RefCOCO testB, LLMSeg reaches 76.0 cIoU, the best zero-shot result on that split. This result shows that refinement narrows the gap to SAM 3 Agent.

Open-vocabulary instance segmentation. LLMSeg reaches 53.9 and 56.1 cgF1 on LVIS and COCO (Table 3). It outperforms both SAM 3 baselines in cgF1 but trails SAM 3 in mask AP.

MethodLVIS cgF1LVIS box APLVIS mask APCOCO cgF1COCO box APCOCO mask AP
OWLv220.135.2––38.2–
OWLv2†29.345.543.4–46.1–
gDino-T14.720.5––45.7–
LLMDet-L35.142.036.3–55.6–
APE-D†–59.653.0–58.3–
DINO-X–52.438.5–56.0–
Gemini 2.5 Flash13.4–––––
SAM 337.253.648.5–56.4–
SAM 3*50.169.162.252.468.059.2
SAM 3 Agent*<u>51.0</u>56.250.949.948.942.0
LLMSeg (w/o refine)50.457.136.950.459.638.0
LLMSeg (full)53.9<u>64.2</u>47.256.1<u>66.6</u><u>50.5</u>

Table 3. Table 3: Open-vocabulary instance segmentation. The baselines are OWLv2 (Minderer et al. [48]), gDino-T (Liu et al. [40]), LLMDet-L (Fu et al. [15]), APE-D (Shen et al. [59]), DINO-X (Ren et al. [57]), and Gemini 2.5 Flash (Comanici et al. [9]). * Evaluated on a matched subset. Unmarked rows are published results from SAM 3 (Carion et al. [6]). † LVIS-trained. cgF1 is presence-gated F1.

Semantic segmentation and zero-shot in-the-wild detection. LLMSeg achieves 59.2 gIoU on ADE20K and 53.3 mIoU on Cityscapes (Table 2). On Cityscapes, it trails SAM 3 by 10.4 points. Dense scene labeling therefore remains a limitation. On zero-shot detection, LLMSeg reaches 57.2 AP0_0 on ODinW13 and 31.4 on RF-100VL (Table 2). It exceeds SAM 3 on all four metrics in both benchmarks. Its AP0_0 on RF-100VL is 2.2× that of SAM 3, showing strong cross-domain transfer.

Analysis

Backend progress transfers without segmentation training

We hold the pipeline fixed (T=12T=12, topology on) and test 21 backends from six developers. Stage-2 gIoU ranges from 13.4 to 74.2 on ReasonSeg val (Figure 5). Recently-released GPT-6 Astra reaches 74.2 without a segmentation model, compared with 72.4 for SAM 3 Agent driven by Gemini-3.7-Flash. The benefit is that LLMSeg can use better backends without retraining. General benchmark capability is a weak predictor of segmentation quality. Strong public scores do not reliably translate into strong masks (e.g., Claude Opus 5). The full ranking and generation comparisons are in Section E.2. The appendix also reports the stage-2 and final results and the study protocol.

Figure 5. LLMSeg quality is the backend’s quality. Stage-2 gIoU on all 200 ReasonSeg val items. We show 18 of the 21 tested backends for readability. Whiskers show 95% item-bootstrap intervals. Dashed lines mark SAM 3 and SAM 3 Agent (Gemini-3.7-Flash). Recent MLLMs like GPT-6 Astra surpasses SAM 3 Agent even without refinement.

Refinement improves the boundary and usually stops early

With Gemini-3.7-Flash, refinement improves every benchmark in Table 1 to Table 3. Focus boxes let the model correct a local boundary without redrawing the object. In the topology-enabled ablation, removing refinement reduces cIoU by 5.4 on ReasonSeg and 12.7 on RefCOCO (Table 4). This is the clearest component effect. However, refinement is also the largest source of inference cost. The loop has no convergence guarantee, so we measure both mask stability and quality. In the T=12T=12 ReasonSeg study, 79% of items stop before the cap (Figure 15a). The median item uses six passes, while 18.5% reach the cap. We score the mask after each pass budget (Figure 6). Four passes recover 2.7 of the eventual 3.2 gIoU gain. Raising TT from 8 to 12 changes gIoU by under 0.1. The main results therefore use T=8T=8. At T=12T=12, early stopping cuts mean calls from 26 to 14.7.

Figure 6. Refinement budget. We score the mask after the first TT passes at every budget on 200 ReasonSeg val items with Gemini-3.7-Flash. Gains saturate before T=8T=8, the budget of the main results.

ConfigurationReasonSeg val cIoU ↑\uparrowReasonSeg val calls ↓\downarrowRefCOCO val cIoU ↑\uparrowRefCOCO val calls ↓\downarrow
w/o refinement67.2 ±\pm2.722.064.62.0
w/o detection72.1 ±\pm0.878.878.810.4
w/ topology72.6 ±\pm0.2314.377.316.8
Polygon loops73.1 ±\pm3.1614.779.116.6
Per-instance refinement74.9 ±\pm0.9121.377.718.8
Main conditioning74.7 ±\pm1.6214.679.817.5

Table 4. Design alternatives. Final cIoU and mean MLLM calls per image. ReasonSeg values are mean ±\pm run SD over three runs. RefCOCO values come from one run. Gray marks the main conditioning.

Figure 15. The refinement loop stops on its own. ReasonSeg val, all 200 items, Gemini-3.7-Flash. (a) Share of items still inside the loop at each pass. A run stops once the mask changes by less than 0.5% of its box area for three consecutive passes. (b) The same run’s mask after the first TT passes, scored at every budget, with the mean MLLM calls on the top axis.

Ablation study

Table 4 compares the core design alternatives in final-mask quality and inference calls with Gemini-3.7-Flash on 200 items per split. The shaded row uses the main method’s conditioning without topology. The ReasonSeg reports three-run means and standard deviations. RefCOCO has one run per configuration.

Detection helps the initial trace. Removing detection lowers initial cIoU from 68.3 to 60.3 on ReasonSeg. On RefCOCO, it lowers initial cIoU from 66.0 to 63.5. After refinement, the no-detection configuration closes these gaps with fewer total calls. Detection’s initial advantage is larger on the 63 ReasonSeg targets with disconnected ground-truth masks (+11.3 cIoU). After refinement,

Batching bounds the cost as instance count grows. Per-instance cropped refinement increases ReasonSeg calls from 14.3 to 21.3 (49%). This yields a 2.3-point cIoU increase. On RefCOCO, it adds calls for only a 0.4-point increase. Batched tracing uses one call, regardless of the instance count, and hence it is our default choice. In contrast, crop-based calls grow with the number of instances.

Letting the model choose the degree helps. Forcing polygon loops (B-splines of degree 1) degrades performance on some instances. Letting the model pick the degree improves it, specially on curved structures that are difficult to represent with straight lines ( see Figure 22 in the Appendix).

Comparison of input, ground truth, polygon loops, and B-splines for three ReasonSeg queries

Figure 22. Polygons vs. B-splines in LLMSeg. Stage-2 traces from the polygon-loop ablation and the B-spline run on identical items with the same backend. Each chip shows that run’s recorded stage-2 IoU. Cubic B-splines cover curved boundaries better than polygons with fewer control points.

Conclusion

We presented LLMSeg, a training-free pipeline that transforms a multimodal LLM into a text-prompted segmenter using box-confined B-spline geometry and iterative focus-box refinement. Across ten benchmarks spanning four task families, LLMSeg is competitive with SAM 3 and performs better on reasoning queries, rare domains, and some metrics. Its limitations include detection errors, imprecise pixel-level boundaries, amorphous classes, and inference cost. The code, prompts, and evaluation harness are available at https://abdullahamdi.com/llmseg/.

Appendix

The appendix follows the order of the paper. Section A extends the related work. Section B gives the method details that the main text states only in words, and Section C the experimental setup: benchmarks, configuration, scoring, and the protocols for the backend and cost studies. Section D holds the complete result tables and qualitative grids. Section E covers the extended analysis (refinement, backends, ablations, topology, localization, cost, and limitations), while Section F reproduces the prompt templates verbatim.

Extended Related Work

Promptable and open-vocabulary segmentation. SAM ([27]) introduced promptable segmentation with points, boxes, and masks. SAM 2 ([55]) extended it to video, while SAM 3 ([6]) extended it to open-vocabulary concept prompts by training a DETR-based detector-tracker ([5, 23]) with data from a purpose-built data engine. Open-vocabulary detection and segmentation methods ([17, 47, 12, 34]) leverage vision-language encoders such as CLIP ([53]). GLIP ([33]) and GroundingDINO ([40]) cast detection as phrase grounding, with OWLv2 ([48]), LLMDet ([15]), APE ([59]), DINO-X ([57]), GLEE ([69]), and T-Rex2 ([21]) pushing scale and prompt modalities. All of these are trained specialists. LLMSeg instead treats segmentation as an emergent capability of a general MLLM, requiring no segmentation training at all, and uses only text prompts (no exemplars, boxes, or video, unlike SAM 3).

MLLMs for grounding and segmentation. A large family attaches a trained mask decoder to an (M)LLM. LISA ([28]) introduced reasoning segmentation by decoding a <SEG> token with SAM. GLaMM ([54]), GSVA ([70]), OMG-LLaVA ([78]), PSALM ([80]), EVF-SAM ([79]), HyperSeg ([67]), and X-SAM ([63]) refine this recipe. SAM4MLLM ([8]) and Seg-Zero ([44]) train the MLLM to emit prompts for SAM. Training-free alternatives still delegate the pixels to a segmentation model. RSVP (Lu et al., 2025) and attention-based grounding ([24]) use the MLLM for localization only, and SAM 3 Agent ([6]) lets an MLLM drive SAM 3 as a tool, similar in spirit to set-of-mark prompting ([74]). Native MLLM segmentation has appeared only as coarse per-token masks in Gemini 2.5 ([9, 62]). SAM 3 reports that these masks lag far behind those of specialists. LLMSeg is, to our knowledge, the first pipeline in which a frozen, general-purpose MLLM produces the final mask geometry itself, as parametric splines rather than pixels. No downstream component is trained, and the pipeline achieves accuracy competitive with trained systems. The prior work closest to this output space is discussed next.

MLLMs that emit coordinates as text. Writing geometry down as tokens rather than decoding it is not itself new. What is new here is that the tokens are the final answer. In prior work the emitted text is an intermediate consumed by a trained head, and the pipeline around it is trained. VisionLLM ([65]) is the closest precedent. It represents an instance boundary as a short polygon, typically 16 points, emitted by the language model, but keeps a trained decoding head per task, which both ties generalization to the task set seen in training and caps mask resolution at the vertex budget. VisionLLM v2 ([68]) scales that recipe to hundreds of vision-language tasks by routing a special per-task token to a decoder fine-tuned for that task, while fine-tuning the MLLM for each task. PixelLLM ([73]) adds an MLP head to regress locations and an encoder to embed an input box, giving the MLLM localization and grounding. It trains the pipeline end to end and still obtains masks by prompting SAM with a box. Text4Seg ([29]) makes the most extensive use of text as an output space: it defines segmentation tokens over a row-ordered grid that is encoded and decoded so that masks are produced by generating text, yet the MLLM must be fine-tuned to generate them. Beyond segmentation, Jiang et al. ([22]) cast detection as next-point prediction over the same kind of structured coordinate text, training the full pipeline with supervised fine-tuning followed by reinforcement learning, and report detection and grounding but no masks. PixelVLA ([36]) carries pixel-level grounding into vision-language-action models with trained pixel modules. Perceive Anything ([38]) instead couples SAM 2 with a modern LLM in a single jointly trained pipeline for fine-grained region understanding, and its gains are in recognition, explanation and captioning: the masks come from the SAM 2 branch, not from the language model. Frontier general-purpose models are acquiring coarse localization on their own, with Molmo (Deitke et al., [11]) able to point at queried objects and the Gemini series grounding boxes well (Comanici et al., [9]; Voigtlaender et al., [62]), but neither comes close to a specialized segmentation network or SAM 3 at the pixel level. LLMSeg departs from all of the above in one consistent way: the backend is frozen and general-purpose, nothing downstream of it is trained, and the control points it writes out are the prediction itself rather than a prompt, a latent, or a seed for a decoder.

Agentic MLLM pipelines. Beyond single-call inference, MLLMs increasingly act as agents that decompose visual tasks, call tools, and verify intermediate results (Fan et al., [13]; Ge et al., [16]; Yang et al., [74]), including for large-scale annotation (Carion et al., [6]). Colon-Bench (Hamdi et al., [19]) shows such a workflow producing dense lesion masks in a niche clinical domain where SAM 3 fails. However, the masks are drawn by EdgeTAM (Zhou et al., [82]), a compact SAM 2 tracker invoked by the MLLM as a tool. The pixel-level competence therefore remains with the tool. LLMSeg follows this philosophy with a fixed, budgeted loop: every stage is a structured JSON exchange, and deterministic geometry code (rasterization, clamping, composition) provides the reliability that free-form agent loops lack. The iterative focus-box refinement can be seen as the model self-verifying its own rendered prediction, an ability that improves with backend reasoning strength (§ 5).

Contour and curve parameterizations of masks. Describing a mask by its boundary rather than by a pixel grid has a decades-long history. Active contour models (Kass et al., [25]) evolve a spline under internal smoothness and external image forces, and Brigger et al. [4] showed that the optimal solution to the curvature-constrained snake energy is a cubic spline, the classical argument for the representation we adopt. Deep learning recast the same idea as vertex prediction. Polygon-RNN (Castrejon et al., [7]) and Polygon-RNN++ (Acuna et al., [1]) emit polygon vertices autoregressively for interactive annotation. Curve-GCN (Ling et al., [39]) predicts all vertices at once with a graph network and supports spline as well as polygon outputs. Deep Snake (Peng et al., [51]) deforms an initial contour with circular convolutions, and PolarMask (Xie et al., [71]) regresses boundary rays in polar coordinates. PolyTransform (Liang et al., [35]) and SharpContour (Zhu et al., [83]) deform the polygon of an existing mask to sharpen it, and E2EC (Zhang et al., [77]) learns the contour initialization end to end. BoundaryFormer (Lazarow et al., [30]) regresses points with a transformer supervised only through a differentiable rasterizer. Parametric curves are standard in text spotting as well, where ABCNet (Liu et al., [43]) localizes curved text with Bézier control points. LLMSeg shares its output space with this literature but little else. Each method above is a network trained to regress vertices from image features over a fixed label set, whereas LLMSeg obtains control points as text from a frozen general-purpose MLLM, without added contour or mask supervision or a closed vocabulary. This representation makes that possible: a handful of control points is short enough to serve as a language-model output, and focus-box confinement lets the refinement loop add or subtract local regions without retracing the whole outline.

Method Details

Structured replies and coordinate conventions

Prompts and output schemas. Each stage uses a single prompt with a strict structured-output schema. Detect returns a list of detections, each with a box, a label, a confidence, and a morphology description. When topology conditioning is enabled, it also returns the component and hole counts. For each instance ID, Segment returns a list of spline loops, each with a role (outer boundary or hole), a degree, and control points. The model chooses a degree of 1 or 3, shared by every loop of every instance in the call. The refinement schema has no degree field because focus loops are always cubic. The two refinement calls return, respectively, typed focus boxes tagged with their instance IDs and confined spline loops for every surviving focus box. Each instance line in the segment prompt restates its box as explicit numeric inequalities. Points are clamped in any case, but a clamped-in point produces a worse outline than a correctly placed one. §F gives the templates themselves.

Coordinate conventions across backends. Everything passed between stages is expressed in absolute pixels, with the origin at the top left. Boxes use the order [x1,y1,x2,y2][x_1,y_1,x_2,y_2]. Gemini-family models natively emit boxes in the order [ymin⁡,xmin⁡,ymax⁡,xmax⁡][y_{\min},x_{\min},y_{\max},x_{\max}] on a grid from 0 to 1000. Requesting xx-first order does not solve the problem: on some multi-instance images, these models transpose their output, and no downstream check can catch this because a swapped box is still well formed. We therefore request each family’s native order and convert it afterward, transposing before rescaling. All families return control points in [x,y][x,y] order. If a loop is transposed, we detect and repair it against its box: the swapped interpretation lies almost entirely inside the box, whereas the raw interpretation does not. Unlike boxes, points can be checked this way because their box is known ground truth.

Recovering truncated replies. Batched replies covering several instances can hit output limits. Rather than discard a truncated reply, we keep every instance completed before the cut and treat the rest as missing. The refinement stage can still grow them from their boxes. The prompts fix the emission order by ascending instance ID, so truncation affects the tail rather than an arbitrary subset. We recover Detect replies in the same way. An instance that survives with no loops is scored as an empty mask and is never dropped from the item.

Rasterization and composition

Rasterization. A cubic loop is rasterized with m=min⁡{2000,max⁡{64,round⁡(2(wb+hb))}}m=\min\{2000,\max\{64,\operatorname{round}(2(w_b+h_b))\}\} samples for a rasterization box bb of width wbw_b and height hbh_b. Before clipping, this corresponds to roughly one sample per pixel of the box perimeter. Samples include both endpoints, as in Eq. (2). Degree-1 loops use the closed control polygon directly. The box is bkb_k for an initial instance loop and βj\beta_j for a refinement loop.

Composing a refinement pass. Compose in Eq. (3) is deterministic. Naively reapplying the signed regions each pass makes the mask oscillate: a boundary pixel added by one pass is removed by the next and added again. We therefore carry a signed commitment field alongside each instance mask, marking every pixel as committed to foreground, committed to background, or uncommitted, with a magnitude that records the strength of agreement across passes. A refinement writes freely into uncommitted pixels. One that agrees with an existing commitment reinforces it. One that opposes it must first cancel one unit of commitment, and only flips the pixel once the accumulated resistance is spent. Repeated agreement makes a pixel progressively harder to overturn. Setting the unit an opposing edit cancels (α\alpha below) to zero would freeze committed pixels permanently. Eq. (4) gives the per-pixel rule.

Two deterministic steps bracket the composition. Before the re-tracing call, an effect gate drops any focus box whose largest achievable change to the current mask is negligible, and a pass whose boxes are all dropped skips its re-tracing call. Afterwards, a deterministic cleanup, described below, removes specks and spurious holes.

The soft lock, per pixel. This expands Compose in Eq. (3). Let Λk(t)\Lambda_k^{(t)} be instance kk’s signed commitment field after pass tt, initialized to zero before refinement. Fix a pass tt, a focus box jj that corrects instance k=kjk=k_j, and a pixel xx in its correction region Rβj,3(Pj)\mathcal{R}_{\beta_{j,3}}(P_j). Write a patch as the current binary mask value and ℓ\ell for its current signed commitment, initially α=1[x∈Mk(t−1)]\alpha=\mathbf{1}[x\in M_k^{(t-1)}] and ℓ=Λk(t−1)(x)\ell=\Lambda_k^{(t-1)}(x). These values carry forward after each correction within the pass. Let χ=sgn⁡ℓ\chi=\operatorname{sgn}\ell and v=∣ℓ∣−αv = |\ell| - \alpha, the resistance remaining after an opposing edit erodes it by α\alpha (α=1\alpha= 1 throughout). With σ=σj\sigma= \sigma_j, one correction updates the pixel to

(a′,ℓ′)={(1[σ=+1],σ)ℓ=0(free: commit),(1[σ=+1],ℓ+σ)χ=σ(agree: reinforce),(a,χv)χ=−σ, v>0(oppose: erode),(1[σ=+1],σ)χ=−σ, v≤0(oppose: flip).(4)(a',\ell') = \begin{cases} (1[\sigma= +1],\sigma) & \ell= 0 \quad\text{(free: commit)},\\ (1[\sigma= +1],\ell+ \sigma) & \chi= \sigma\quad\text{(agree: reinforce)},\\ (a,\chi v) & \chi= -\sigma,\ v > 0 \quad\text{(oppose: erode)},\\ (1[\sigma= +1],\sigma) & \chi= -\sigma,\ v \le0 \quad\text{(oppose: flip)}. \end{cases} \tag*{(4)}

Here 1[A]1[A] is 1 when statement AA is true and 0 otherwise. Primes denote a single correction, not a complete refinement pass. After all corrections and the cleanup below, the resulting mask and field are Mk(t)M_k^{(t)} and Λk(t)\Lambda_k^{(t)}, and the union is M(t)M^{(t)}. Negative regions are applied before positive ones within a pass. After composition, nearby positive islands disconnected from the main mask are bridged. A deterministic cleanup then applies a minor closing and opening, sized as percentages of the instance box’s minimum dimension, and removes specks and spurious holes using thresholds scaled by object area. When the stage-1 topology descriptor is used, its component and hole counts gate this cleanup so that objects predicted to have holes retain them.

One item, step by step

Figure 7 follows a single ReasonSeg item through every call the pipeline makes, on the query “the spare wheel”. Stage 2 is already competent here, scoring 84.1 IoU, and the loop takes it to 91.9: this is the ordinary case, not a rescue. What makes it a useful example is what is wrong with the stage-2 trace. The wheel is mounted behind a black fender that cuts across its lower-left, and the outline runs straight past the occlusion, so the entire error is one wedge of car body inside an otherwise good boundary. Nothing in the figure is drawn for illustration. Every box, control point and loop is the geometry the model actually returned for that item, and every mask is rebuilt from those records by the pipeline’s own composition code, which reproduces the stage-2 and final masks exactly.

Step-by-step view of LLMSeg on one ReasonSeg test item, showing input, box, control points, masks, refinement passes, enlarged loop, converged mask, ground truth, and IoU after each pass

Figure 7. A step-by-step view of LLMSeg on one ReasonSeg test item, “the spare wheel”, with the Gemini 3.7-Flash backend. Top: stage 1’s box, then stage 2’s control points and the resulting closed cubic B-spline. Middle: three of the four passes, each of which proposes signed focus boxes over the current mask and composes the re-traced loops. The net effect is shown in green (added) and red (removed). Bottom: one loop enlarged, the converged mask, the ground truth, and the IoU after each pass.

Three things stand out in the figure. First, the spline is cubic: stage 2 chose d=3d=3 and placed 24 control points around a circle, all inside the supplied box. Eq. (1) turns them into a smooth closed curve rather than a 24-gon. Second, the loop is mostly subtractive. Pass 1 removes 15,118 pixels of fender, 9.4% of the object’s area, and increases IoU by 7.3 points. The two later passes shave slivers off the same edge. Third, pass 3 is the interesting one. It proposes adding a wedge back along that lower-left edge, but the mask is effectively unchanged: composing the proposal against the commitment field left by the first two passes changes only one pixel. Against an empty field, the same proposal would have added 7,791 pixels (a further 4.8% of the object). This is the signed resistance of Eq. (3) doing its job: it refuses an edit that contradicts earlier commitments instead of letting the boundary oscillate. The loop then stopped itself after 4 of the 12 allowed passes.

Experimental Details

Benchmarks

We evaluate on five families of benchmarks (Table 5). An item is always one (image, query) pair, and the query is the only prompt any system receives. ReasonSeg (Lai et al., [28]) names its target by role or function rather than category, so a system must resolve the query before it can segment the target. RefCOCO and RefCOCO+ (Kazemzadeh et al., [26]) come from a two-player game on COCO images, so their expressions disambiguate one instance from same-class neighbours. The testA split contains images crowded with people, whereas testB contains images crowded with other categories. RefCOCOg (Mao et al., [46]) was collected non-interactively. LVIS (Gupta et al., [18]) uses federated annotations, so we establish absence only from its per-image verified-absent list and draw our negative prompts from that list. COCO (Lin et al., [37]) is exhaustively annotated, so an unannotated category is absent by construction. SA-Co/Gold (Carion et al., [6]) spans seven domains and is annotated three times (we use the first annotation). These three benchmarks report the presence-gated cgF1 of Carion et al. [6]. ADE20K-150 (Zhou et al., [81]) and Cityscapes (Cordts et al., [10]) are semantic benchmarks. ODinW13 (Li et al., [31]) and RF-100VL (Robicheaux et al., [58]) comprise 13 and 100 small detection datasets, respectively. They are prompted with their category names and provide boxes rather than masks.

Benchmark (splits)Query (words)SplitNeg.ScoredGround truthMetric
ReasonSeg val / testreasoning sentence (18.3 / 20.7)200 / 7792.0 / 0.3allone mask per querygIoU, cIoU
RefCOCO val / testA / testBreferring expression (3.6)10,834 / 5,657 / 5,0950500 eachone instancegIoU, cIoU
RefCOCO+ val / testA / testBno location words (3.6)10,758 / 5,726 / 4,8890500 eachone instancegIoU, cIoU
RefCOCOg val / testwritten description (8.5)4,896 / 9,6020500 eachone instancegIoU, cIoU
LVIS valcategory name (1.4)129,54745.91,500every instancecgF1, pmF1, AP
COCO val2017category name (1.2)29,63150.61,500every instancecgF1, pmF1, AP
SA-Co/Goldopen noun phrase (2.6)168,20284.52,500every instancecgF1, pmF1
ADE20K-150 valclass name (1.0)16,10301,000all pixels of classgIoU, cIoU
Cityscapes val19 class names in one query500050019-class label mapmIoU
ODinW13 testcategory name6,237 (13 subsets)0allbox, filledAP0AP_0
RF-100VL testcategory name1,987 (100 subsets)0allbox, filledAP0AP_0

Table 5. Benchmarks. Query type with mean query length in words, the number of items in each split after loading, the share of items whose correct answer is an empty mask, the number of items we score, and the reported metric. An item is one (image, query) pair. Negative shares are percentages of the total number of items in the split.

Configuration of LLMSeg

The main results use Gemini-3.7-Flash as the backend for all three stages. For each call, the backend chooses a stage-2 curve degree d∈{1,3}d \in\{1,3\}, shared across the instances in that call (§ 3). Refinement curves are always cubic. Their rasterization is described in Section B.2. The budget constants and stopping rule are given in § 4. A full run costs 2 MLLM calls (detect and segment) plus at most 2 per refinement pass, so at most 2T+2=182T+2=18. Measured over ReasonSeg val, the reported configuration averages 13.4 calls per image (median 14), because the effect gate and early stopping terminate many loops well before TT (Figure 15). Mean wall-clock time is 159 s per image. Runs at T=12T=12 use more passes and average 14.3 to 15.0 calls per image, depending on the run (Section E.1, Section E.3, Section E.6). The stage-1 topology descriptor (§ 3) is an option rather than a fixed part of the configuration, and the main results leave it off on all three stages. § 5 and Section E.3 report both settings, and the difference between them is within run-to-run variation. These settings are used unchanged on every benchmark. Nothing is tuned per dataset.

Study configuration. The backend study (Section E.2) and the ablations (Section E.3) were run with a budget of T=12T=12 and topology conditioning on. We call this the study configuration. It differs from the reported configuration in exactly these two settings: rows inside one study are comparable with each other, while a comparison between a study row and a main-results number mixes both differences. In the ablation tables the reference row uses the reported setting (topology conditioning off) at T=12T=12, and the + topology conditioning row is the study configuration.

Evaluation protocol and matched-subset scoring

Evaluation protocol. Four of the 200 ReasonSeg val items and two of the 779 test items have a legitimately empty ground-truth mask: the queried thing is absent from the image. We score these items rather than excluding them, so a system that correctly predicts nothing is credited, while one that hallucinates a region is penalized. This distinction matters because dropping these items raises the reported gIoU of systems that do not handle absence well and makes our val numbers incomparable to the published ReasonSeg results we quote. For LVIS/COCO/ADE20K, presence-gated metrics use 3, 3, and 0 sampled negative prompts per image, respectively, with seed 0 shared across all systems. Cityscapes mIoU is computed from corpus-level, per-class intersections and unions over the 19 classes: SAM 3 is queried one class at a time, while LLMSeg labels all classes in an image with a single query and groups spline instances by label. All backends use the same deterministic composition: stuff masks are painted before thing masks, with larger masks first within each group, so smaller masks overwrite larger ones. Uncovered pixels remain unassigned. No confidence argmax is used. ADE20K is class-prompted, with each item defined as (image, class). Its score is a union-IoU oracle upper bound and is not comparable to published argmax mIoU.

Matched-subset scoring. Item keys are constructed in the data loader before items are split by backend, so every backend sees the same items. gIoU/cIoU/cgF1/pmF1/mIoU are recomputed from per-item components over the key intersection. AP is re-evaluated with COCOeval on the matched items only, with boxes derived from masks for all systems. For LLMSeg, pipeline failures (detection or segmentation errors) count as zero.

Five evaluations use their entire split, so their key intersection is the full split and their results can be compared with published full-split results. These are ReasonSeg val and test, Cityscapes val mIoU, and AP0_0 on both detection collections, averaged over all 13 ODinW13 subsets and the 99 of 100 RF-100VL subsets on which AP is defined. Sampling affects box and mask AP on LVIS and COCO. Because AP ranks detections across categories, an image can enter the evaluation only if every ground-truth category it contains was queried. Our items are uniformly sampled (image, category) pairs, so usually only one category is queried for each sampled image, and the image is excluded: only 48 of 1,449 LVIS images and 62 of 1,304 COCO images survive. The surviving images are skewed toward those with few categories. These AP results are not comparable to published full-split federated AP. We use them only to compare systems on the same images. Every other reported metric is computed per item and is unaffected by this sampling issue.

Reproducing the SAM 3 Agent baseline

SAM 3 Agent is the agent baseline of Carion et al. [6], not part of LLMSeg. Our reproduction follows their reference agent implementation. The MLLM iterates over three tools: one runs SAM 3 on a simple noun phrase and returns the resulting masks as a numbered overlay, another selects the mask numbers that match the full query, and the third reports that nothing in the image matches. The loop is capped at 8 rounds, and the union of the selected masks is scored through the same path as every other system. We run it with Gemma-4-31B, Gemini-3.5-Flash and Gemini-3.7-Flash rather than the paper’s Qwen2.5-VL and Gemini 2.5 Pro backends, so our SAM 3 Agent scores are somewhat below the published ones (Table 1). The Gemini-3.5-Flash run is reported only in the cost table (Table 12).

Methodmeasured / estimated cost per image calls MLLM/SAM 3median sest. $ / 1k img | final gIoU
LLMSeg (GPT-6 Astra)11.7 / 0218323.972.9
LLMSeg (Gemini 3.7 Flash)15.0 / 015315.669.4
LLMSeg (Gemini 3.8 Flash)16.2 / 041933.766.7
LLMSeg (Gemini 3.5 Flash)17.6 / 024677.966.2
LLMSeg (GPT-5.6 Sol)15.0 / 066583.061.6
LLMSeg (Gemini 3 Flash)24.4 / 058836.058.6
LLMSeg (Gemma 4 31B)21.8 / 018835.056.2
LLMSeg (Gemma 4 26B)19.4 / 021513.756.1
LLMSeg (GPT-5.6 Terra)10.6 / 026462.355.9
LLMSeg (GPT-5.6 Luna)14.6 / 03688.655.1
LLMSeg (Qwen3.8 27B)12.3 / 084715.451.0
LLMSeg (GLM 5.3 Flash)7.3 / 011001.449.6
LLMSeg (Qwen3.5 397B)12.4 / 0292014.349.5
LLMSeg (Claude Opus 5)23.1 / 0706321.246.6
LLMSeg (Gemini 3.1 Flash-Lite)23.8 / 010017.644.5
LLMSeg (Muse Spark 1.2)24.4 / 083776.243.2
LLMSeg (Gemini 2.5 Flash-Lite)21.4 / 01135.628.8
LLMSeg (GPT-5.4)24.0 / 0211176.827.1
LLMSeg (Qwen3 VL 235B)9.0 / 01286.625.1
LLMSeg (Muse Glimmer 30B)14.7 / 0147813.623.5
LLMSeg (GLM 4.6V)15.7 / 0104611.414.2
SAM 3 Agent (Gemma 4 31B)2.3 / 1.4276.473.1
SAM 3 Agent (Gemini 3.5 Flash)2.5 / 1.51317.572.5
SAM 3 Agent (Gemini 3.7 Flash)2.4 / 1.4118.372.4
SAM 30 / 124.313.1

Table 12. What a mask costs. ReasonSeg validation set (200 items), covering all 21 LLMSeg backends and the SAM 3 and SAM 3 Agent baselines. Call counts and median latency are measured per image. Estimated spend is per 1,000 images, using one token budget shared across all rows and a fixed serving price per SAM 3 forward pass. LLMSeg rows are shaded.

Backend study protocol

Protocol. The backend study in § 5 holds LLMSeg completely fixed and changes only which MLLM answers its three calls. All 21 backends run the full pipeline on all 200 ReasonSeg val items in the study configuration (Section C.2), with every other setting fixed. Metrics are recomputed from the per-item records rather than copied from any summary, so gIoU is the mean per-item IoU and cIoU is ∑I/∑U\sum I/\sum U over all 200 items, with pipeline failures scored 0. Confidence intervals are percentile bootstraps over items (2000 resamples). Each call has a wall-clock budget. Backends with high serving latency (marked † in Table 9) receive a longer budget so that provider latency, rather than model capability, does not determine their scores. The budget limits only how long a call may take. It does not alter any reply. Qwen3-VL-235B is included despite failing to return a usable reply on 49% of items, so its score reflects reply rate as well as segmentation quality. Every row of Table 9 covers the same 200 items. The two reference lines in Figure 5 show SAM 3 and SAM 3 Agent scored with the same code on the same items. These are the ReasonSeg val entries from Table 6. The SAM 3 Agent line uses Gemini-3.7-Flash as its driver, and its gIoUgIoU varies by only 0.7 points (72.4, 72.5, 73.1) across the three MLLMs we ran it with, compared with 10.8 points for LLMSeg across one Gemini Flash product line.

MethodMLLMRESReasonSegval gIoUval cIoUtest gIoUtest cIoU
Published, full splits (Carion et al. [6])
SEEM (Zou et al. [84])–✗✗25.521.224.318.7
Grounded SAM (Ren et al. [56])–✗✗26.014.521.316.4
OVSeg (Liang et al. [34])–✗✗28.518.626.120.8
GLaMM (Rasheed et al. [54])Vicuna 7B✓✗47.447.2––
SAM4MLLM (Chen et al. [8])Qwen-VL 7B✓✗46.748.1––
SAM4MLLM (Chen et al. [8])LLaVA1.6 8B✓✗58.460.4––
Seg-Zero (Liu et al. [44])Qwen2.5-VL 3B✓✗58.253.156.148.6
Seg-Zero (Liu et al. [44])Qwen2.5-VL 7B✓✗62.662.057.552.0
X-SAM (Wang et al. [63])Phi3 3.8B✓✓56.632.957.841.0
HyperSeg (Wei et al. [67])Phi2 3B✓✓59.256.7––
Kang et al. (Kang et al. [24])LLaVA1.5 7B✗✗–52.4–48.7
Kang et al. (Kang et al. [24])LLaVA1.5 13B✗✗–60.5–49.9
LISA (Lai et al. [28])LLaVA 7B✓✗44.446.036.834.1
LISA (Lai et al. [28])LLaVA 7B✓✓52.954.047.334.1
LISA (Lai et al. [28])LLaVA 13B✓✗48.946.944.845.8
LISA (Lai et al. [28])LLaVA 13B✓✓56.262.951.751.1
LISA (Lai et al. [28])Llama2 13B✓✓60.067.851.551.3
LISA (Lai et al. [28])LLaVA1.5 7B✓✗53.652.348.847.1
LISA (Lai et al. [28])LLaVA1.5 7B✓✓61.362.955.656.9
LISA (Lai et al. [28])LLaVA1.5 13B✗✗57.760.353.850.8
LISA (Lai et al. [28])LLaVA1.5 13B✓✓65.072.961.362.2
RSVP (Lu et al. (2025))LLaVA1.6 7B✗✗59.256.756.950.7
RSVP (Lu et al. (2025))Qwen2-VL 7B✗✗58.648.556.151.6
RSVP (Lu et al. (2025))Gemini1.5-Flash✗✗56.949.257.159.2
RSVP (Lu et al. (2025))GPT-4o✗✗64.763.160.360.0
Gemini Seg (Voigtlaender et al. [62])Gemini2.5 Flash??28.313.330.69.2
SAM 3 Agent (Carion et al. [6])Qwen2.5-VL 7B✗✗62.249.163.053.5
SAM 3 Agent (Carion et al. [6])Qwen2.5-VL 72B✗✗74.665.170.864.0
SAM 3 Agent (Carion et al. [6])Llama4 Maverick✗✗68.561.567.160.9
SAM 3 Agent (Carion et al. [6])Qwen3-VL 8B Think✗✗68.557.470.267.3
SAM 3 Agent (Carion et al. [6])Qwen3-VL 235B Think✗✗76.667.073.771.8
SAM 3 Agent (Carion et al. [6])Gemini2.5 Pro✗✗77.066.074.072.1
SAM 3 (text query) (Carion et al. [6])–✗✗13.19.98.411.3
SAM 3 Agent (Carion et al. [6])Gemma-4-31B✗✗73.163.972.266.7
SAM 3 Agent (Carion et al. [6])Gemini-3.7-Flash✗✗72.462.072.263.2
LLM­Seg (w/o refine)Gemini-3.7-Flash✗✗64.964.662.758.2
LLM­Seg (full)Gemini-3.7-Flash✗✗69.671.568.365.8

Table 6. Reasoning segmentation on ReasonSeg (Lai et al. [28]). Top block: published numbers quoted from Carion et al. [6] on the full splits, reproducing its complete baseline list. Bottom block (below the rule): our own evaluations (200 validation items and 779 test items). Both blocks cover the full splits. SAM 3 and SAM 3 Agent are both baselines from Carion et al. [6]. Only the shaded rows are ours. The two training columns follow Carion et al. [6]: RES = fine-tuned for referring expression segmentation, ReasonSeg = fine-tuned on the ReasonSeg training split. A method is zero-shot when both entries are ✗. LLM­Seg (w/o refine) is our pipeline stopped after the segment stage. The best zero-shot result in each column is shown in bold, separately for each block.

BackendDeveloperReleaseStage-2 gIoUFinal gIoUΔ\Delta
GPT-6 Astra†OpenAI2026-0974.2 [70.4, 77.9]72.9 [69.2, 76.6]-1.2
Gemini 3.7 FlashGoogle2026-08-1365.7 [62.1, 69.5]69.4 [65.9, 72.8]+3.7
Gemini 3.8 Flash†Google2026-0963.4 [59.4, 67.3]66.7 [63.0, 70.4]+3.3
Gemini 3.5 FlashGoogle2026-0562.9 [59.1, 66.6]66.2 [62.4, 70.0]+3.3
GPT-5.6 Sol†OpenAI2026-0761.2 [57.3, 64.9]61.6 [57.7, 65.5]+0.3
Gemini 3 FlashGoogle2025-1258.9 [55.1, 62.7]58.6 [55.1, 61.9]-0.3
Gemma 4 31B†Google2026-04-0257.6 [53.8, 61.3]56.2 [52.7, 59.9]-1.3
Gemma 4 26B†Google2026-04-0256.9 [53.3, 60.3]56.1 [52.3, 59.5]-0.8
GPT-5.6 TerraOpenAI2026-0756.2 [52.0, 60.0]55.9 [51.6, 60.1]-0.3
GPT-5.6 LunaOpenAI2026-0754.4 [50.5, 58.7]55.1 [51.0, 59.0]+0.7
Gemini 3.1 Flash-LiteGoogle2026-0251.3 [47.8, 54.8]44.5 [41.2, 47.8]-6.8
Qwen3.5 397B†Qwen2026-02-1650.2 [46.6, 53.7]49.5 [45.9, 53.1]-0.7
Qwen3.8 27B†Qwen2026-08-1449.6 [45.5, 53.5]51.0 [47.1, 54.7]+1.4
Claude Opus 5†Anthropic2026-07-2449.0 [44.9, 53.2]46.6 [42.6, 50.5]-2.4
GLM 5.3 Flash†Z.ai2026-08-2648.8 [45.1, 52.7]49.6 [45.7, 53.3]+0.7
Muse Spark 1.2†Meta2026-0641.2 [37.2, 45.2]43.2 [39.1, 46.9]+2.0
GPT-5.4OpenAI2026-0335.4 [31.8, 38.8]27.1 [23.8, 30.8]-8.3
Gemini 2.5 Flash-LiteGoogle2025-09-2629.9 [26.4, 33.4]28.8 [25.6, 32.1]-1.1
Qwen3 VL 235BQwen2025-11-2625.2 [21.1, 29.5]25.1 [20.8, 29.4]-0.2
Muse Glitter 30B†Meta2026-08-1121.3 [17.7, 24.9]23.5 [20.0, 27.3]+2.2
GLM 4.6V†Z.ai2025-12-0913.4 [10.2, 16.8]14.2 [11.0, 17.6]+0.9

Table 9. Twenty-one backends. LMMSeг on all 200 ReasonSeg val items, using the same pipeline and settings. Only LMM differs. Both masks are shown, with 95% bootstrap intervals and the signed effect Δ\Delta of refinement. † marks a longer per-call budget.

Serving the backends. The eight Gemini and Gemma models are called through Google’s native Gemini API, and the other thirteen through OpenRouter1, a gateway for models from many developers. The route changes only how a request is transported, not the prompt, parser, or geometry code. Images are sent at their original resolution because returned coordinates use the image’s pixel frame. Sampling parameters remain at each provider’s defaults, so every backend is evaluated as its developer serves it. A call that fails or exceeds its budget is a pipeline failure scored 0. OpenRouter’s public listings also provide the prices used in Section E.6.

The capability axes. Public benchmark coverage is uneven: no single published benchmark is reported for all 21 backends, and the available benchmarks use incomparable scales. We build each capability axis by z-scoring every benchmark within this set of backends and averaging the axis’s benchmarks for which a model reports a score. Missing values are never imputed: models with no published score for an axis are omitted from that axis’s panel. The four axes are software engineering (AA Coding Index, SWE-bench Verified, SWE-bench Pro, LiveCodeBench), reasoning and knowledge (AA Intelligence Index, GPQA Diamond, HLE), agentic and tool use (AA Agentic Index, OSWorld, Terminal-Bench), and vision and multimodal (MMMU, MMMU-Pro, CharXiv). Two consequences follow. Each axis is relative: adding a backend re-centres it, so its zero carries no meaning beyond this set. And the underlying numbers are vendor-reported, so the slopes and rank correlations we report are indicative of which skills matter, not claims of statistical significance.

Cost accounting

Protocol. Table 12 and Figure 25 price the same 200 ReasonSeg val items scored in Table 9, covering all twenty-one LLMSeg backends and both the SAM 3 and SAM 3 Agent baselines. Nothing here was rerun: every number is either measured from records those runs already wrote or quoted from the published model table. Wall clock is the median seconds per item among the items a backend answered, based on per-item timers recorded during the runs. We use the median rather than the mean because a run that hits its per-call budget on a handful of items can have a mean that reflects the timeout rather than the backend. The call count includes both types of model invoke for each image. The MLLM call count is reconstructed from each item’s recorded pass list. It counts one detect and one segment call, plus one focus call per refinement pass and one batched spline call for each pass whose focus boxes survived the effect gate. For SAM 3 Agent, it is the mean number of agent rounds. The SAM 3 figure is the number of forward passes of the 860 M-parameter model. It counts one pass for SAM 3 itself and one per phrase the agent chooses to segment. It counts none for LLMSeg, which calls no segmentation model. SAM 3 and SAM 3 Agent were timed with SAM 3 running on one RTX-class GPU. Prices and time-to-first-token come from the providers’ published figures. Call counts come from the single study run of each backend, so they can differ slightly from repeated-run means elsewhere (for Gemini-3.7-Flash, 15.0 here against 14.3 in Table 10).

VariantgIoUcIoUcalls/images/image
LLMSeg (reported configuration)70.7±0.7470.7 \pm0.7474.7±1.6274.7 \pm1.6214.6±0.3214.6 \pm0.32177±9177 \pm9
w/o deterministic postprocessing70.2±0.2770.2 \pm0.2774.1±2.2074.1 \pm2.2014.8±0.3714.8 \pm0.37162±12162 \pm12
+ box-adjust pre-pass70.0±0.2770.0 \pm0.2770.2±0.3870.2 \pm0.3815.7±0.3415.7 \pm0.34188±17188 \pm17
w/o postprocessing + box-adjust69.5±0.1169.5 \pm0.1173.2±1.6473.2 \pm1.6415.9±0.1015.9 \pm0.10169±12169 \pm12
+ topology conditioning69.2±1.3469.2 \pm1.3472.6±0.2372.6 \pm0.2314.3±0.5914.3 \pm0.59175±17175 \pm17
w/o refinement (T=0T=0)63.8±0.6863.8 \pm0.6867.2±2.7267.2 \pm2.722.0±0.002.0 \pm0.0024±224 \pm2
w/o morphology conditioning69.9±0.4769.9 \pm0.4773.4±2.6973.4 \pm2.6914.9±0.3214.9 \pm0.32179±7179 \pm7
low backend reasoning effort68.5±0.3068.5 \pm0.3072.3±1.5972.3 \pm1.5914.4±0.5814.4 \pm0.58133±6133 \pm6
low image detail67.2±0.8867.2 \pm0.8871.5±4.6071.5 \pm4.6014.6±0.2214.6 \pm0.22180±6180 \pm6
w/o deterministic postprocessing69.6±0.5569.6 \pm0.5573.8±1.8973.8 \pm1.8914.8±0.3614.8 \pm0.36172±29172 \pm29
w/o postprocessing + box-adjust69.4±0.6969.4 \pm0.6973.6±3.5573.6 \pm3.5515.5±0.3215.5 \pm0.32166±12166 \pm12
w/o detect stage (splines over whole image)69.5±0.5969.5 \pm0.5972.1±0.8772.1 \pm0.878.8±0.268.8 \pm0.26120±19120 \pm19
per-instance cropped calls71.8±0.4471.8 \pm0.4475.4±0.4475.4 \pm0.4414.2±0.2414.2 \pm0.24169±3169 \pm3
polygon loops instead of B-splines69.8±0.5769.8 \pm0.5773.1±3.1673.1 \pm3.1614.7±0.0914.7 \pm0.09186±7186 \pm7
per-instance cropped refine71.7±0.2371.7 \pm0.2374.9±0.9174.9 \pm0.9121.3±0.4921.3 \pm0.49185±3185 \pm3

Table 10. Ablations on ReasonSeg val (all 200 items, Gemini-3.7-Flash backend, T=12T=12). The shaded row is the configuration reported in the paper (topology conditioning off). Cells are three-run means and sample deviations. s/image is backend-call wall-clock time per image.

Figure 25. Quality against what it costs. ReasonSeg val, 200 items, every LLMSeg backend and baseline, plotted against wall-clock time (top) and estimated serving cost (bottom). Both axes are logarithmic and the dashed staircase is the cheapest-so-far frontier over the LLMSeg backends. Circles are LLMSeg backends, stars the SAM 3 and SAM 3 Agent baselines, which the frontier excludes.

The dollar column is an estimate, and a lower bound. The spend column is an estimate rather than a billed measurement. We price every row using one shared budget: 1900 input tokens per call (the stage prompt templates, which measure 522 to 953 tokens, plus one image with a full-resolution allowance of about 1.1k) and 175 output tokens per call (the mean structured payload recorded across all twenty-one runs). The column depends only on the published price and the measured call count, so it ranks backends consistently under these assumptions. Its absolute values are lower bounds because reasoning tokens, which several providers bill for, are not included.

SAM 3 is not free either. We ran SAM 3 on a local GPU, so we incurred no charge, but a forward pass has a market price. Pricing it at zero would flatter LLMSeg. We charge each SAM 3 pass at $0.0043 per image, the pay-as-you-go rate for a serverless endpoint serving the same checkpoint,2 which puts SAM 3 at $4.30 per thousand images for one pass and adds the cost of 1.4 passes to each SAM 3 Agent image, in addition to its MLLM calls. LLMSeg calls no segmentation model, so it carries no such term.

Additional Results

Complete reasoning and referring comparisons

Table 1 compares selected baselines on ReasonSeg and RefCOCO/+/g using cIoU. The complete tables, including gIoU and the training columns, are reproduced here.

Complete open-vocabulary comparison

Table 3 reports results for LVIS and COCO only. The complete comparison, including pmF1, SA-Co/Gold results, and the human reference, follows.

Qualitative results on the main benchmarks

The grids below extend the qualitative evidence of § 4.2. They use the same Gemini-3.7-Flash runs as the tables, and each chip reports the IoU recorded by the harness for that panel. Figure 8

A four-column figure with column headers Input, Ground truth, Initial trace, and LLMSeg. Rows are labeled LVIS “lampshade”, COCO “person”, SA-Co/Gold “suede shoe”, SA-Co/Gold “metal pipe”, RefCOCOg “a pink and white striped sofa with soft pastel pillow. . . ”, RefCOCO “left sandwich”, RefCOCO+ “her”, and ADE20K “arcade machine”.

Figure 8. LLMSeg across benchmarks and task formats. The same Gemini-3.7-Flash backend and settings are used throughout. The prompt appears at left. Ground truth is shaded amber, and predictions are shown in green with a red outline. Each chip reports the panel’s IoU. Column 3 shows the stage-2 mask, and column 4 shows the final mask. Together, they isolate the effect of refinement.

MethodMLLM / backboneRESRefCOCO valRefCOCO testARefCOCO testBRefCOCO+ valRefCOCO+ testARefCOCO+ testBRefCOCOg val (U)RefCOCOg test (U)
Published, full splits, cIoU (Carion et al., [6])
LISA (Lai et al., [28])LLaVA 7B✓74.979.172.365.170.858.167.970.6
GSVA (Xia et al., [70])13B✓79.281.777.170.373.863.675.777.0
GLaMM (Rasheed et al., [54])Vicuna 7B✓79.583.276.972.678.764.674.274.9
SAM4MLLM (Chen et al., [8])LLaVA1.6 7B✓79.682.876.173.577.865.874.575.6
SAM4MLLM (Chen et al., [8])LLaVA1.6 8B✓79.882.774.774.680.067.275.576.4
GLEE (Wu et al., [69])Plus✓79.5––68.3––70.6–
GLEE (Wu et al., [69])Pro✓80.0––69.6––72.9–
DETRIS (Huang et al., [20])DETRIS-L✓81.081.979.075.278.670.274.675.3
UniLSeg (Liu et al., [42])UniLSeg-20✓80.581.878.472.777.067.078.479.5
UniLSeg (Liu et al., [42])UniLSeg-100✓81.783.279.973.278.368.279.380.5
PSALM (Zhang et al., [80])Phi1.5 1.3B✓83.684.781.672.975.570.173.874.4
EVF-SAM (Zhang et al., [79])RC✓82.183.780.075.278.370.176.877.4
EVF-SAM (Zhang et al., [79])Extra Data✓82.484.280.276.580.071.978.278.3
RICE (Xie et al., [72])Qwen2.5-7B✓83.585.381.779.482.875.479.880.4
MLCD-seg (An et al., [2])Qwen2.5-7B✓83.685.381.579.482.975.679.780.5
HyperSeg (Wei et al., [67])Phi2 2.7B✓84.885.783.479.083.575.279.478.9
X-SAM (Wang et al., [63])Phi3 3.8B✓85.187.183.478.081.074.483.883.9
GL-CLIP (Yu et al., [75])ResNet-50✗32.735.330.137.740.734.941.642.9
GL-CLIP (Yu et al., [75])ViT-B/32✗32.934.930.138.442.132.742.042.0
CaR (Sun et al., [60])ViT-B/16✗33.635.430.534.236.031.036.736.6
Ref-Diff (Ni et al., [49])VAE✗37.238.437.237.340.533.044.044.5
TAS (Suo et al., [61])ResNet-50✗39.942.935.944.050.636.447.747.4
TAS (Suo et al., [61])ViT-B/32✗39.841.136.243.649.136.546.646.8
IteRPrimeE (Wang et al., [66])–✗40.246.533.944.251.635.346.045.1
Pseudo-RIS (Yu et al., [76])CRIS✗39.844.833.042.246.334.543.743.4
Pseudo-RIS (Yu et al., [76])ETRIS✗41.148.233.544.351.435.146.046.7
LGD+DINO (Li et al., [32])ViT-B/32✗49.554.741.049.658.438.650.351.1
VLM-VG (Wang et al., [64])ResNet-50✗47.751.844.741.245.934.746.647.1
VLM-VG (Wang et al., [64])ResNet-101✗49.953.146.742.747.336.248.048.5
HybridGL (Liu & Li, 2025)ViT-B/32✗49.553.445.243.449.137.251.351.6
Kang et al. [24]LLaVA-1.5 7B✗74.276.570.462.565.256.064.268.1
Kang et al. [24]LLaVA-1.5 13B✗76.178.972.864.167.157.367.769.0
SAM 3 Agent (Carion et al., [6])Qwen2.5-VL 7B✗59.464.355.051.457.044.957.258.8
SAM 3 Agent (Carion et al., [6])Qwen2.5-VL 72B✗71.674.966.064.970.857.968.870.2
SAM 3 Agent (Carion et al., [6])Llama4 Maverick✗71.776.566.565.171.257.667.768.7
SAM 3 Agent (Carion et al., [6])Qwen3-VL 8B Think✗68.672.363.959.364.555.666.466.9
SAM 3 Agent (Carion et al., [6])Qwen3-VL 235 Think✗73.977.069.766.970.962.272.172.9
SAM 3 Agent (Carion et al., [6])Gemini 2.5 Pro✗75.577.671.067.371.163.473.474.0
Our runs, matched 500-item subsets, gIoU
SAM 3 (text query)–✗38.740.940.932.135.028.040.038.7
SAM 3 AgentGemma-4-31B✗74.975.676.769.872.967.175.576.5
SAM 3 AgentGemini-3.7-Flash✗75.376.976.171.274.271.278.477.3
LLM Seg (w/o refine)Gemini-3.7-Flash✗66.066.272.161.963.364.067.168.5
LLMSeg (full)Gemini-3.7-Flash✗71.673.074.868.270.867.672.773.0
Our runs, matched 500-item subsets, cIoU
SAM 3 (text query)–✗42.042.844.233.637.032.940.039.7
SAM 3 AgentGemma-4-31B✗73.275.675.067.272.061.972.174.7
SAM 3 AgentGemini-3.7-Flash✗73.276.775.568.472.068.576.576.9
LLMSeg (w/o refine)Gemini-3.7-Flash✗65.565.772.959.761.461.164.869.3
LLMSeg (full)Gemini-3.7-Flash✗71.273.876.067.069.964.970.974.5

Table 7. Referring expression segmentation on RefCOCO/+ /g (Kazemzadeh et al., [26]; Mao et al., [46]). The top block reports published full-split cIoU results quoted from Carion et al. [6], separated into methods fine-tuned on the RES task (RES ✓) and zero-shot methods (RES ✗). Note that nearly all of the MLLM-based methods were trained on the RefCOCO box annotations. The bottom blocks report our runs on matched 500-item random subsets per split (shuffled, seed 0), with gIoU in the upper block and cIoU in the lower block. All methods in the bottom blocks are zero-shot for RES and use the same selected items. SAM 3 and SAM 3 Agent are baselines from Carion et al. [6], reproduced by us on these items. Only the shaded rows show our methods. Best results within each block are in bold. The best zero-shot result in each published-block column is underlined. RefCOCOg val (U) and test (U) are the splits used in our evaluation.

isolates the effect of refinement across benchmark families. Figure 9 shows full Cityscapes label maps. Figure 10 compares LLMSeg with both SAM 3 baselines.

Dense semantic labeling on Cityscapes

Figure 9. Dense semantic labeling on Cityscapes ([10]), Gemini-3.7-Flash backend, official 19-class palette. LLMSeg labels every class in an image from a single query and resolves overlaps by deterministic mask compositing. Each panel is therefore a full label map, rather than a single mask, and its chip reports the image’s mIoU. The losses occur on amorphous ground classes, which lack clear visual boundaries.

Crowded scenes, negatives, rare domains, and single passes

Four grids extend the qualitative evidence of § 4.2 to cases discussed only in aggregate in the main paper: images containing many instances of the queried class (Figure 11), SA-Co prompts whose concept is absent from the image (Figure 12), the rare visual domains of RF-100VL (Figure 13), and the effect of an individual refinement pass (Figure 14). Every panel comes from the same Gemini-3.7-Flash runs at T=12T=12 used for the tables. Each baseline panel comes from the corresponding SAM 3 or SAM 3 Agent run scored on the same item. Each chip reports that system’s recorded IoU, so its value is consistent with the reported results.

Images containing multiple objects of the queried class, comparing Input, Ground truth, SAM 3, SAM 3 Agent, and LLMSeg across examples from COCO, LVIS, and SA-Co/Gold

Figure 11. Images containing multiple objects of the queried class. LVIS, COCO, and SA-Co/Gold examples whose ground truth contains at least three objects. Each label gives the benchmark and number of ground-truth objects. Each chip reports the corresponding system’s recorded union IoU, which does not separate touching objects that a system merges into one region.

Hard negatives: the prompted concept is absent

Figure 12. Hard negatives: the prompted concept is absent. Six SA-Co/Gold examples whose phrases have no matching annotation in the image. Because the ground truth is empty, no ground-truth panel is shown. Each chip indicates only whether the system produced a mask. Each scene contains the broader category, but not the qualified concept.

Figure 13. Rare domains segmentation on RF-100VL subsets. The rows span documents, aerial imagery, medical imaging, and industrial inspection, with one subset per row. Each prompt uses that subset’s category name verbatim, and each ground-truth panel shows the annotated detection box filled in. Some category names are domain jargon, so a failure here may reflect vocabulary rather than localization.

Extended Analysis

This section expands the findings of § 5. The complete ablation results are in Table 10 and Table 11. The backend study and ablations use the study configuration described in Section C.2.

VariantgIoUcIoUcalls/image
LLMSeg (reported configuration)79.379.379.879.817.517.5
w/o deterministic postprocessing76.676.677.977.917.117.1
+ box-adjust pre-pass79.279.279.779.718.418.4
w/o postprocessing + box-adjust77.977.978.378.319.119.1
+ topology conditioning76.776.777.377.316.816.8
w/o refinement (T=0T=0)66.966.964.664.62.02.0
w/o morphology conditioning79.179.178.878.817.017.0
low backend reasoning effort75.775.774.374.316.616.6
low image detail74.874.875.475.415.815.8
w/o deterministic postprocessing76.476.476.876.816.816.8
w/o postprocessing + box-adjust76.976.977.777.718.418.4
w/o detect stage (splines over whole image)78.578.578.878.810.410.4
per-instance cropped calls78.878.878.378.315.415.4
polygon loops instead of B-splines78.778.779.179.116.616.6
per-instance cropped refine77.477.477.777.718.818.8

Table 11. Ablations on RefCOCO val (all 200 items, Gemini-3.7-Flash backend, T=12T=12, one run per configuration). Rows and blocks as in the ReasonSeg ablation: the shaded row is the reported configuration.

Refinement and convergence

Does the loop actually converge? This matters more than a typical hyperparameter question. Eq. (3) is an open loop driven by a stochastic model that can propose a fresh set of focus boxes at every pass, with no contraction guarantee. Left unchecked, such a loop can cycle indefinitely, repainting a boundary one way and then the other. A reader is right to ask whether the pass budget TT provides a genuine early stop or merely truncates an unstable process.

Figure 15a answers this empirically on ReasonSeg val. The stopping criterion of § 4 ends the loop for 79% of items before they reach the budget (81% of the items that enter the loop). The median item uses 6 passes, 36% stop within 4, and only 18.5% are still running when TT cuts them off. This behavior is consistent with the intended damping mechanism: when successive passes agree on a boundary, the commitment field makes those pixels progressively harder to overturn. However, the study does not isolate the soft lock’s contribution. The minority that reaches the cap is a harder set to begin with: its stage-2 masks are already 5.7 gIoU behind (60.0 vs. 65.7), and its final masks remain 7.0 behind (62.3 vs. 69.3). Normalizing the criterion by box area rather than image area makes its threshold relative to the region the loop can alter.

Figure 15b ties this to accuracy rather than to mask stability alone. Quality saturates well inside the budget: the first pass buys +2.0 gIoU, four passes buy +2.7 of the eventual +3.2, and passes 8 to 12 move it by less than 0.1. These figures come from this one run. Other runs of Gemini-3.7-Flash give different totals (+3.7 in Table 9, and 5.4 gIoU between the ablation reference and its no-refinement row), because the pipeline is stochastic and the runs differ in configuration. Because most items have already stopped, the measured cost is far below the worst-case cost of 2T+2=262T+2=26 calls: 14.7 calls per image on average at T=12T=12 in this run (other T=12T=12 runs give 14.3 to 15.0), and about 9 at the T=4T=4 knee. TT is a safety net rather than an operating point.

The residual as a stopping signal.

The stopping criterion of § 4 acts on the residual δ(t)=∣M(t)△M(t−1)∣/∣⋃k=1Nbk∣\delta^{(t)} = \left|M^{(t)} \triangle M^{(t-1)}\right| \mathbin{/} \left|\bigcup_{k=1}^{N} b_k\right|, the fraction of the instance-box union that a pass repaints, rather than on quality: the pipeline sees no ground truth at run time, so the amount of mask change is its only observable. Figure 16 shows that quantity pass by pass on a 16-image development set (free text queries on images that belong to evaluation benchmark), which is where ε\varepsilon and ss were set before any benchmark was run. The 16 images and their queries are released with the code.

Figure 16. Per-item refinement residuals on the development set. Each curve is one development image, run with Gemini-3.7-Flash at budget TT = 12. The curve is the 3-pass moving average of the mask residuals δ(t)\delta^{(t)} on a logarithmic axis, and the dashed line is the threshold ε\varepsilon = 0.005. Blue curves are images that stop on their own with stopping patience ss = 3, orange curves are images that exhaust the budget, and × marks the first smoothed pass below ε\varepsilon. The residuals decay as the masks stabilize, which is the signal the stopping criterion uses in LLMSeg.

Three observations stand out. First, the residual decays. It is not monotone, since a pass is free to propose a large new edit at any point, but every trace ends below where it started, most of them by an order of magnitude or more, and several reach the axis floor, that is, passes that changed no pixel at all. Second, the rate is a property of the image, not a constant. The first pass repaints between 0.2% (person) and 27% (toy) of the box union, a 175×\times spread (based on unsmoothed values, whereas the figure plots the 3-pass average), and the starting value does not predict the decay: toy starts highest and stops itself at pass 10, while taxis, with six crowded instances of the same class, starts at 6% and is still moving 0.7% of its box union at pass 12 (1.3% after the 3-pass average). Boundary length, occlusion, and instance count may affect how quickly an item stabilizes, but the first pass does not reveal it. This is why the budget must be allocated per image rather than fixed globally. Third, ε\varepsilon = 0.005 with ss = 3 sits where those two regimes separate: 11 of the 16 items stop on their own, the earliest at pass 3 (the patience floor, which no item can beat), the median at 6, and 5 run to the cap.

A small residual indicates stability, not correctness. A loop could in principle settle on a wrong mask. Its use as a surrogate is supported by the benchmark-scale behavior above: quality saturates over the same passes in which these residuals collapse, and the items that never stop are the ones that end furthest behind.

Backend study

Because LLMSeg adds no trained parameters, backend progress is the only thing that has to improve for segmentation to improve. We test this directly by running the same pipeline, in the study configuration (Section C.2), on ReasonSeg val with twenty-one MLLM backends from six developers. The only change is that each model answers the three calls. Figure 18 is the complete ranking, read on the stage-2 mask so that one bar carries one backend. Table 9 repeats every row with its final mask, both bootstrap intervals and the signed effect of refinement. First, scores range from 13.4 to 74.2 gIoU at stage 2 and from 14.2 to 72.9 after refinement, a spread far wider than that of any design choice in Table 10. Second, refinement lowers gIoU on eleven of the twenty-one backends, especially the weaker models, which cannot refine their own masks well. Its gains therefore depend on the model’s ability to inspect and correct its own masks. Every backend scores at least as high as the SAM 3 baseline score (13.1) on this benchmark, although the weakest is not clearly above it: GLM 4.6V scores 13.4 ([10.2,16.8][10.2, 16.8]) at stage 2 and 14.2 ([11.0,17.6][11.0, 17.6]) after refinement. The other twenty backends score clearly above SAM 3. At 72.4, the SAM 3 Agent baseline uses the same Gemini-3.7-Flash as our pipeline and a segmentation specialist as its tool. It is close to our best backend, GPT-6 Astra, which scores 74.2 ([70.4,77.9][70.4, 77.9]) at stage 2 and 72.9 ([69.2,76.6][69.2, 76.6]) after refinement. The gaps are 1.8 and 0.5 gIoU, respectively, and the SAM 3 Agent score lies within both corresponding GPT-6 Astra item-bootstrap intervals. By contrast, SAM 3 alone trails GPT-6 Astra by 59.8. The two dashed lines also respond very differently to the MLLM. Swapping the agent’s MLLM among Gemma-4-31B, Gemini-3.5-Flash, and Gemini-3.7-Flash changes its score by just 0.7 gIoU (72.4 to 73.1), because its masks come from SAM 3 either way. Swapping our MLLM across the same Gemini generations changes our score by 10.8. Our score is therefore far more sensitive to the backend than the agent’s is, and the backend is the part of the stack that continues to improve. Figure 21 shows what that spread looks like on single items: the same five ReasonSeg queries traced by seven of the backends, where the object being selected barely changes down a row and the outline drawn around it does.

Figure 18. Complete backend comparison in LLMSeg. All 21 backends we ran, including Gemini 3.8 Flash, Gemma 4 26B, and Qwen3.8 27B. Stage-2 gIoU, 95% item-bootstrap intervals, and baselines use the same 200 ReasonSeg val items.

Comparison of LLMSeg stage-2 masks across MLLM backends

Figure 21. What the MLLM backend gap looks like in LLMSeg. The same pipeline is used throughout, with one column per MLLM backend, ordered by split-level stage-2 gIoU, best first. Every panel shows the stage-2 mask, so the comparison is of what each backend traces rather than how it refines. Grounding is largely shared, but mask outlines deteriorate down the rows with weak MLLMs.

Public capability and segmentation quality. Figure 19 plots that quality against four capability axes built from public benchmark scores (§C.5), one panel per axis. Two things follow. First, no published capability is a reliable predictor of segmentation quality: no axis reaches significance. The reasoning-and-knowledge axis comes closest (ρ=0.43\rho= 0.43, p=0.09p = 0.09, n=17n=17), followed by the vision-and-multimodal axis (ρ=0.36\rho= 0.36, n=8n=8) and software engineering (ρ=0.21\rho= 0.21, p=0.42p = 0.42). Agentic skill carries no signal (ρ=−0.05\rho= -0.05, n=14n=14). The exceptions run in both directions. Claude Opus 5 (96.0 on SWE-bench Verified) and GLM 5.3 Flash score high on software engineering and reasoning yet segment at 46.6 and 49.6, fourteenth and twelfth of twenty-one. GPT-5.4 sits on the right of every panel but near the bottom in segmentation quality (27.1). Mistral Glimmer 30B performs similarly (23.5). We did not diagnose where these backends lose accuracy. The reverse holds as well. Gemma 4 31B and Gemma 4 26B sit at the low end of the agentic, software and reasoning axes and still segment seventh and eighth at 56.2 and 56.1, and Gemini-3.7-Flash lies further above the fit than any other backend on two of the four axes (agentic and vision). The practical reading rests on those exceptions rather than on the fit. No published headline score, whether for vision or coding, is a reliable way to pick a backend for LLMSeg, and the only dependable test is to run the pipeline on the model.

Figure 19. Which kind of capability predicts LLMSeg quality? Final gIoU on ReasonSeg val is plotted against four public-benchmark capability axes, with dashed OLS fits. Slopes (gIoU per unit zz) are 7.7 for vision and 6.9 for reasoning, followed by 6.0 for software and 0.6 for agentic skill. Reasoning and vision track segmentation quality most closely. Agentic skill shows almost no association.

Second, and more directly useful, Figure 17 re-plots the same runs against backend release date, joining models within each product line. All four product lines with multiple releases improve over the period shown while the pipeline remains unchanged. Gemini Flash goes 58.6 →\to 66.2 →\to 69.4 →\to 66.7 over four releases in nine months, Gemini Flash-Lite 28.8 →\to 44.5, GPT 27.1 →\to 55.9 →\to 72.9, and Qwen 49.5 →\to 51.0. The trend is not monotone at the release level: Gemini 3.8 Flash scores 2.72.7 below Gemini 3.7 Flash, a reminder that a newer model is not automatically a better backend. The Flash-Lite line is the most economical evidence: a +15.7+15.7 gIoU gain without retraining anything. Size within a generation buys little: Gemma 4 31B and its mixture-of-experts sibling Gemma 4 26B, released the same day, land 0.1 apart (56.2 and 56.1). The two Z.ai models are not one product line and the generation plot joins no arrow between them, but they bracket the same eight months as the Gemini Flash line: GLM 4.6V, of December 2025, is the weakest backend in the study at 14.2, and GLM 5.3 Flash, of August 2026, reaches 49.6. Price buys much less than generation does (ρ=0.25\rho= 0.25 against input price, Figure 20). The second-best backend here costs 21×21 \times less than the best.

Figure 17. Backend progress is LLMSeg progress. LLMSeg final segmentation gIoU on ReasonSeg val against backend release date, one coloured line per product line with two or more releases. All other backends are gray. Nothing in the pipeline changes between the points of a line.

Figure 20. Segmentation quality is not bought. Backend input price is plotted against LLMSeg final gIoU on ReasonSeg val. The dashed staircase marks the cheapest-so-far frontier, whose backends are shown in blue. Price does not order quality. Gemini 3.7 Flash is the cheapest backend that reaches 72.9 final gIoU, which motivates our LLMSeg choice of backend for the scalable main results.

One caveat belongs with these numbers. Refinement is not uniformly positive across backends: it hurts on eleven of the twenty-one. It adds +3.7+3.7 gIoU on Gemini-3.7-Flash but costs 8.3 on GPT-5.4, 6.8 on Gemini-3.1-Flash-Lite, 2.4 on Claude Opus 5, 1.3 on Gemma 4 31B and 1.2 on GPT-6 Astra, our strongest backend. The loop can only re-trace what the backend proposes, so a backend that mislocates its focus boxes spends its passes moving the mask off the object. The refinement gains reported elsewhere in this paper are Gemini-3.7-Flash’s, and the appropriate refinement budget must be checked for each backend. This is also why Figure 5 ranks the backends on what they trace: a bar pair would read as a refinement result on rows where refinement is not one.

Ablations and design alternatives

Table 10 and Table 11 test the design choices of § 3 on two splits, comparing final-mask quality (gIoU and cIoU) with MLLM calls per image. Each split (ReasonSeg val and RefCOCO val) contains 200 items. The reference (shaded) row is the configuration reported in the paper, with topology conditioning off, run at the study budget T=12T=12. The tables report fourteen variants per split: three change the reported configuration directly (cleanup and box adjustment), one adds topology conditioning, and the remaining ten (indented) apply their change on top of topology conditioning, so each of them is compared with the topology-on row. Both tables give gIoU, cIoU and calls per image, and the ReasonSeg table adds run-to-run deviations and wall-clock time. Every ReasonSeg configuration was run three times with an identical setup, and each cell reports the mean. Across repeated runs, a fixed configuration’s score varies by 0.1 to 1.3 gIoU, which sets the scale for interpreting the comparisons below. Each RefCOCO configuration was run once, so no deviation is reported. These results should be read for direction only. At similar call counts, adding topology conditioning to the reported configuration reduces observed cIoU by 2.1 on ReasonSeg and 2.5 on RefCOCO. The reductions have the same sign on both splits and for gIoU as well (1.5 and 2.6, respectively), so we leave topology off by default and retain it as an option for the item type it was designed for (Section E.4). The largest effect of any component is refinement: removing it costs 5.4 gIoU and 5.4 cIoU on ReasonSeg, and 9.8 gIoU and 12.7 cIoU on RefCOCO, relative to the topology-on row it modifies, and refinement accounts for 12.3 of that row’s 14.3 calls per image. The remaining changes generally produce smaller differences. Apart from removing refinement, the largest gIoU drop relative to the reported configuration is for low image detail: 3.5 gIoU (3.2 cIoU) on ReasonSeg and 4.5 gIoU (4.4 cIoU) on RefCOCO. Most variants are within two points of the reported configuration on both splits. No variant outperforms the reported configuration on both metrics across both splits. Cost varies more across the alternatives than quality does: calls range from 8.8 without the detect stage to 21.3 with per-instance cropped refinement, while on ReasonSeg the final gIoU of every other variant stays between 67.2 and 71.8. The pipeline does not appear to be delicately balanced on prompt conditioning or on how its calls are batched.

Prompt conditioning. Cutting the stage-1 morphology or topology description from the prompts does not measurably change final-mask quality. The topology-on row includes both descriptions.

Relative to its 69.2 ±\pm 1.3 gIoU, removing morphology yields 69.9 and removing topology, which gives the reported configuration, yields 70.7. Both differences are small relative to the spread across configurations. On RefCOCO, the corresponding rows are 2.4 and 2.6 gIoU above the topology-on row (Table 11). Topology conditioning is a design option, not a component on which the aggregate results depend. We report the configuration without the extra topology prompt text because describing holes does not measurably improve split-level scores. Topology information does provide structural control: Stage 2 uses it for hole carving and gated cleanup. Without it, the model is not told how many closed curves to fit, and a holed or multi-part object may be cleaned as if it were one solid blob. The fraction of benchmark targets for which this control applies ranges from 0% to 7%. On items scored both ways, the paired difference is −0.3 gIoU overall and +0.1 on holed items. The option is retained for explicit structural control, not claimed as a source of aggregate accuracy (Section E.4). Reducing the backend’s reasoning effort or the image detail sent with each call leaves quality flat to slightly below the topology-on row it modifies: the corresponding cIoU scores are 72.3 and 71.5 here, against 72.6. On RefCOCO, they are 74.3 and 75.4, against 77.3. Low reasoning effort is the only setting that is cheaper: at the same call count, backend-call time per image falls by about a quarter, from 175 s to 133 s. The deterministic cleanup likewise does not carry the result. Removing it from the reported configuration gives 74.1 cIoU against 74.7 (77.9 against 79.8 on RefCOCO), and removing it from the topology-on row gives 73.8 against 72.6 (76.8 against 77.3). This matters because it is the only step in LLMSeg whose geometry the model did not choose.

Is the detection stage needed? Asking the model for splines directly, with no detect stage and therefore no box to confine control points to, tests whether stage 1 is worth its call. Without a box, the model must place absolute coordinates over the whole image, and no invariant prevents a loop from wandering across the scene. On ReasonSeg, the no-detection variant is within the run-to-run band of the topology-on row it modifies (69.5 gIoU and 72.1 cIoU versus 69.2 and 72.6) and uses fewer calls (8.8 vs. 14.3). RefCOCO is also competitive (78.5 gIoU at 10.4 calls against 76.7 at 16.8). Stage-2 cIoU does favor detection on both splits (Table 4). The advantage is concentrated on targets whose ground-truth masks are disconnected (at least two components above the annotation-speck threshold: 63/200 ReasonSeg and 18/200 RefCOCO items). On ReasonSeg, the initial cIoU on these targets is 52.6 without the detect stage and 63.9 with it. On RefCOCO, it is 61.7 without and 63.9 with. Thus detection provides box confinement (Eq. (2)), instance identities, and structural conditioning, not a demonstrated general accuracy advantage on multiple objects.

Why one batched call rather than per-instance crops? An obvious alternative runs the segment stage once per detected instance on a crop of its box, which gives the model more effective resolution per object at a cost that grows linearly with instance count, against the fixed single call of § 3. It reaches 75.4 cIoU (71.8 gIoU) at 14.2 calls per image, the best ReasonSeg cIoU in the table. This is 2.8 above the topology-on row it modifies but only 0.7 above the reported configuration at the same cost, in part because most ReasonSeg items have one instance, making one crop equivalent to one call. On RefCOCO, however, it scores 78.3 cIoU at 15.4 calls, a point and a half below the reported configuration (79.8). The advantage does not carry over to the second split.

Why one batched refine rather than per-instance crops? The same crop alternative applied to stage 3: keep the batched segment call, then run the refinement loop once per instance on a crop of its box, each with its own overlay. Cost again grows with instance count. The batched refine of § 3 stays two calls per pass regardless of NN. This is the most expensive variant in the table, 21.3 calls per image against 14.6 for the reported configuration, a 46% increase, for 74.9 cIoU against 74.7, and on RefCOCO it costs two points (77.7 against 79.8). Its cost would grow further with multi-instance benchmarks, where the batched refine’s cost does not.

Why B-splines rather than polygons? Asking for a dense polygon instead of spline control points is the natural baseline for our output primitive: it removes the cubic smoothness prior and allows more coordinates per object. The variant uses degree-one loops in both stages, with prompted vertex ranges of 32 to 160 initially and 6 to 24 in refinement, against 16 to 64 and 4 to 12 for the B-spline topology-on row, so this comparison matches neither coordinate nor token budgets. At similar call cost, the final masks score comparably (69.8 gIoU and 73.1 cIoU against 69.2 and 72.6, with 78.7 and 79.1 on RefCOCO), and so do the stage-2 masks over three runs (65.3/66.2 against 65.1/68.3 gIoU/cIoU). The ablation is self-limiting because the backend chooses the degree itself (§ 3) and chooses 1 (the polygon) for 125 of the 195 objects it traced. Thus, on most of the split, the ablation changes the vertex budget and placement rules rather than the primitive. By ground-truth area, stage-2 polygon traces lead in the smaller two strata, while the B-spline run leads in the largest quartile on both metrics (75.6 against 73.4 gIoU and 76.0 against 69.7 cIoU). As a pixel-mass metric, cIoU is dominated by large objects, which is where the B-spline run leads. On cubic-traced items, it does so with fewer coordinates: it emits 28.9 per image, compared with 48.5 for the polygon variant, a 1.7× difference. Figure 22 shows three examples. These results support a compact parametric representation, not a uniform or equal-budget accuracy advantage.

A different split, the same backend. The rankings of the fifteen configurations (the reference and the fourteen variants, the same rows in both tables) by final gIoU agree between ReasonSeg and RefCOCO val (ρ=0.71\rho= 0.71, p=0.003p = 0.003), so a variant that helps on one split is likely to help on the other.

Where the ground truth has holes

The topology ablation of Table 10 removes the hole and component description from all three prompts and produces no measurable change (70.7 vs. 69.2 gIoU, within the run-to-run band). That average is taken over a split where almost no target has a hole, so it cannot distinguish “topology does not help” from “too few items benefit for the effect to show up.” We measure each item’s ground truth directly to find the holed targets. A hole is an enclosed background component that never touches the image border and covers at least 0.5% of the object’s area. Anything smaller is annotation speckle. Items with an empty ground truth are excluded, since a hole needs an object.

The first finding is prevalence. Over the eleven splits measured, holed targets are 7.1% of ReasonSeg val and 6.6% of ReasonSeg test, 4.7% of LVIS positives, and between 0% and 1.4% of every RefCOCO/RefCOCO+/RefCOCOg split: COCO’s polygon annotations essentially never carve one. The subset the topology machinery exists for is a small minority of what these benchmarks contain, which helps explain the null split-level ablation.

The second finding closes the ablation. On the 396 ReasonSeg items scored by both the topology-on and topology-off runs, the mean per-item IoU difference is −0.3 ( [−1.8, 1.2] ) overall and +0.1 ([−5.3, 5.3]) on the 19 holed ones: targeting the subset does not reveal a hidden effect. This is the measurement behind the conclusion in § 5: topology conditioning makes explicit hole-loop specification possible when a target has holes, but it is not a source of the accuracy we report, and we do not claim it as one. Two caveats limit this result’s interpretation: the runs also differ in pass budget (Section C.2), and 19 holed items make up a small sample, as reflected in the interval.

Localization or boundary?

Table 3 reports the gap to SAM 3 as two scalars per benchmark, each averaged over the ten COCO IoU thresholds 0.50:0.05:0.95. This averaging hides the shape of the effect: a system that finds every object but traces it loosely can report the same mean AP as one that finds fewer objects but traces them tightly. Their behavior becomes clear from how AP changes across the threshold axis. To show this, Figure 24 plots AP at each threshold for the main-results pipeline configuration (Gemini-3.7-Flash, T=8T=8, topology conditioning off), using the same matched subsets and COCOeval pass.

Figure 24. LLMSeg localizes like SAM 3 and loses the boundary. COCO-style AP at each IoU threshold on AP-eligible images in the matched LVIS and COCO subsets, with boxes taken from the predicted masks. LLMSeg is the reported configuration. Solid lines are box AP and dashed lines mask AP. The box curves run together while the mask curves fan apart, indicating good localization but loose boundary for LLMSeg errors.

At AP50\mathrm{AP}_{50} on LVIS, box scores are nearly tied (79.3 vs. 79.6). On COCO, LLMSeg leads in box AP (87.4 vs. 79.5) and is close in mask AP (80.0 vs. 81.3). The mask AP gap widens at tighter thresholds. By IoU 0.90, LLMSeg scores 16.4 on both benchmarks, while SAM 3 scores 42.5 and 24.3, respectively. Averaged over the ten thresholds, the mask gap is 3 to 6× the box gap. On COCO, the interval for the box gap includes zero. This pattern is consistent with masks that identify the right object and place it within the right box, but have filled, closed-spline boundaries that remain a few pixels loose. A threshold sweep reveals this boundary error, whereas mean AP obscures it. Refinement improves the boundary but does not eliminate the error: relative to the unrefined stage-2 mask, mask AP improves by +10.4 on LVIS and +12.5 on COCO across thresholds up to 0.85, peaking at +14 to +20 in the 0.65 to 0.85 band. By IoU 0.95, the gains fall to +2.4 and +1.5, respectively. Refinement moves the outline substantially closer to the object but does not produce pixel-tight masks. The remaining gap is concentrated at high overlap thresholds. These subset results do not establish full-dataset AP parity.

What a mask costs

Where the time goes. Refinement dominates: stage 3 accounts for 76 to 94% of wall-clock time on every backend (89% on Gemini-3.7-Flash), consistent with a loop of up to T=12T=12 passes at two calls per pass, compared with one detection and one segmentation call. The cost comes from the number of calls, not their content: at a published 2.3 s time-to-first-token, Gemini-3.7-Flash spends about 34 of its 153 median seconds waiting for first tokens alone across its 15 calls. Call count is not a proxy for useful effort: the best backend averages 11.7 calls per image, while the three highest-call backends average 24.0 to 24.4 and score 58.6, 43.2 and 27.1. This reflects stopping behavior: a sequence may stop while its mask is still changing, while an unproductive sequence may run to the budget.

LLMSeg is the expensive way to reach this quality. On this benchmark SAM 3 Agent is both better and cheaper. Driven by the same Gemini-3.7-Flash, it reaches 72.4 gIoU against our 69.4 in roughly one-fourteenth of the wall-clock time (11 s against 153 s) and at just over half the estimated serving cost ($8.31 against $15.61 per thousand images). It makes 2.4 agent rounds and 1.4 SAM 3 passes where we make 15 vision calls, and the mask itself comes from a 860 M-parameter forward pass rather than from coordinates the MLLM has to write out. Charging for the SAM 3 passes narows that gap rather than closing it: the agent’s 1.4 passes cost it $5.85 of its $8.31, and SAM 3 on its own costs $4.30, a cost undercut by only two LLMSeg backends. That advantage is specific to what SAM 3 can already segment: SAM 3 Agent inherits SAM 3’s mask, so where SAM 3 collapses (§ 4.2) the agent collapses with it, while LLMSeg is bounded only by its detect box. In summary, predicting a mask as text buys open-vocabulary reach at the price of calls, latency and dollars, and the price is set by the backend rather than by the pipeline: across the twenty-one backends, spend per thousand images ranges from 1.4 to 324, a factor of 238, across a gIoU range of 14.2 to 72.9, with cost only weakly tracking gIoU. The most expensive backend is also the best, but costs 21×21 \times as much as the second-best for a 3.5-point gIoU gain, and the two cheapest backends outscore nine dearer ones.

Where the LLM route wins and loses

The results support a consistent picture. LLMSeg wins where (i) the query needs reasoning (ReasonSeg, Figure 3), (ii) the domain is rare (RF-100VL, 2.2×2.2 \times SAM 3’s AP0AP_{0}), including medical and industrial imagery, (iii) presence judgment matters (hard-negative cgF1 on LVIS and COCO), where the LLM can reason about whether the concept is in the image. This does not carry over to SA-Co/Gold, where LLMSeg trails SAM 3 by 9.0 cgF1 while pmF1 is level, so the loss lies in the presence decision. The last case is (iv) a regular shape: such shapes admit compact cubic or straight-edged traces, and, with topology enabled, holes can be specified by interior loops. Neither final boundary smoothness nor hole count is guaranteed. Holed targets are a small minority in these benchmarks (see Figure 23), and prevalence is quantified in Section E.4. LLMSeg loses on pixel-tight mask AP and on thin, amorphous or highly irregular regions (Figure 26), where compact geometric traces lose fine boundary detail. In practice, LLMSeg takes minutes per image and makes multiple API calls, compared with a median of 2 s per image for SAM 3 on a local GPU (Table 12). However, it runs on the heavily optimized LLM serving stack, needs no GPU of its own, and produces inspectable intermediate records (boxes, optional topology, per-loop splines, and focus boxes with a type and a short shape description). These records are not verified explanations of the model’s internal reasoning.

Two ReasonSeg items showing input images and LLMSeg masks

Figure 3. Reasoning queries work off the shelf. Two ReasonSeg items segmented by LLMSeg with Gemini-3.7-Flash. The same model reads the query, reasons about the image and outputs mask geometry, with no agent wrapper or query rewriting.

Input, SAM 3, SAM 3 without refinement, LLMSeg, and LLMSeg mask for the sewage outlet query

Figure 23. Explicitly carved holes. The query is “the sewage outlet”. The cyan-box region is enlarged. SAM 3 fills the grate solidly, whereas LLMSeg carves one hole per slot.

Figure 26. Failure modes. Top left pair: thin structures (retinal vessels) defeat spline outlines even after refinement. Top right pair: on Cityscapes, amorphous and heavily-occluded background classes favour pixel decoders over compact parametric loops. Bottom row: the query is grounded correctly, but a closed loop cannot cut into the deep, narrow concavities of an articulated hands.

Limitations. LLMSeg inherits its backend’s failure modes: hallucinated detections on ambiguous prompts, occasional coordinate-format instability (mitigated but not eliminated by the repairs of §B), and per-call latency of seconds to minutes, which makes video and real-time use out of scope. Spline loops are a poor primitive for thin or fractal structures (Figure 26), and segmentation quality is upper-bounded by detect-box quality due to the confinement invariant. Finally, API-served backends make exact reproducibility subject to provider model updates. We pin model versions and release all records.

Failure modes

Figure 26 collects the failure modes discussed in Section E.7: thin structures, amorphous background classes, and the deep, narrow concavities of articulated bodies.

Prompt Templates

This section gives the three prompt templates that drive the pipeline, in the form the model receives them: box 1 is the detection call of § 3, box 2 the initial tracing call, and box 3 the focus-box proposal call. Text in angle brackets is filled in at run time. The instance and focus-region blocks are shown filled for a two-instance example, since their layout is part of what the model reads. Long lines are re-wrapped to the column width. Everything in black is template text. The #-prefixed green lines are ours, not the model’s, so a box can be copied whole and the notes stay comments. The green leading line stands for the image, which is attached to the request alongside the prompt text. The boxes show the study configuration, which includes the stage-1 topology description. The reported configuration drops that description from all three prompts: the topology block of box 1’s schema, the topology lines of the instance and detection-box listings in boxes 2 and 3, and the sentences that refer to topology. The fourth call, the re-tracing half of a refinement pass, is box 2’s spline rules restated once per focus region. It repeats the coordinate paragraph and the overlay description of box 3, lists the surviving focus regions with their type and reported shape, fixes the degree to cubic, asks for four to twelve control points per region instead of sixteen to sixty-four, and returns the same id-keyed list of closed loops.

The templates share three properties. First, every call states the coordinate space explicitly and every call that returns points restates the box those points must fall inside as a numeric inequality. The code clamps regardless, but a clamped-in point is a worse outline than a correctly placed one. Second, each prompt offers an escape hatch, an empty detection list, an empty loop list for an instance whose box holds nothing, an empty proposal list for a pass that finds no error, so that a failure to find something is expressible and does not have to be invented. Third, batched calls pin the emission order to ascending instance id, which is what makes a truncated reply salvageable.

Prompt #1: Instance Detection (Stage 1)

# <the input image>

The image is <W>x<H> pixels (origin top-left, x right, y down).
ALL coordinates are absolute PIXELS with 0 <= x <= <W> and 0 <= y <= <H>.

Find every DISTINCT instance of the following in the image: "<query>"

Return ONLY a JSON object (no prose, no markdown fences) with this exact schema:
{"detections": [{
    "id": <int starting at 0>,
    "label": "<short label>",
    "box": [x1, y1, x2, y2],
    "confidence": <0..1>,
    "morphology": {
        "shape": "<overall silhouette in a few words, e.g. 'compact rounded body with two upright protrusions'>",
        "aspect": "<tall|wide|square>",
        "convexity": "<convex|slightly-concave|highly-irregular>",
        "parts": ["<protruding/notable parts, e.g. 'left protrusion'>", "<base contact>", "..."]
    },
    "topology": {
        "components": <int number of disconnected pieces of the object silhouette>,
        "holes": <int number of enclosed background holes inside the silhouette>,
        "boundary_loops": <int total closed boundary curves = components + holes>,
        "notes": "<one short phrase, e.g. 'single blob, no holes'>"
    }
}]}

where box is [x1, y1, x2, y2] in the coordinate space described above (x1 < x2, y1 < y2, all values inside the valid range for that space).
- One entry per DISTINCT instance -- do NOT return duplicate or nested boxes for the same object. Order detections in reading order (top-to-bottom, then left-to-right); ids will be reassigned by code, but keep them contiguous from 0.
- morphology.aspect must describe the instance as you SEE it, independently of the numbers you wrote in box; it is cross-checked against them.
- Make each box LARGE enough to ENTIRELY enclose that instance -- leave generous margin so no part of the silhouette (protrusions, extremities, soft edges, head, ears, paws) is clipped by the box. Prefer a roomy box over a tight crop; a later stage confines all outline tracing to this box, so an undersized box truncates the segmentation.
- morphology describes the object's FORM (shape of its outline) so a later stage can trace it; topology describes its STRUCTURE (how many separate blobs and how many holes) so a later stage knows how many closed curves to fit.
If nothing matches, return {"detections": []}.
Output the JSON and nothing else.

Prompt #2: Outline Tracing (Stage 2)

# <the input image>

The image is <W>x<H> pixels (origin top-left, x right, y down).
ALL coordinates are absolute PIXELS with 0 <= x <= <W> and 0 <= y <= <H>.

We have already DETECTED <N> instance(s) of "<query>" (same query / class). Each instance has its own bounding box; a later stage confines that instance’s outline to ITS box only.

INSTANCES (trace EVERY one):

  • id=0 label="<label>" box=[120, 80, 540, 610] every x,y you return for id=0 must satisfy: 120 <= x <= 540 and 80 <= y <= 610 morphology: {"shape": "compact rounded body with two upright ears", "aspect": "tall", "convexity": "slightly-concave", "parts": ["left ear", "tail", "front paws"]} topology: {"components": 1, "holes": 0, "boundary_loops": 1, "notes": "single blob, no holes"}

  • id=1 label="<label>" box=[600, 140, 930, 585]

    ... (one such entry per detected instance)

Your job has TWO parts: (1) pick ONE shared overlay tint color for the mask (same for all instances), (2) CHOOSE a spline degree (1 or 3) shared by every instance of this class, then for EACH instance trace its silhouette with piece-wise CLOSED 2D B-splines of that degree so the spline(s) tightly SURROUND that instance.

MASK COLOR (part 1): Pick ONE color name from this fixed list: "lime", "green", "spring_green", "mint", "teal", "cyan", "turquoise", "sky_blue", "blue", "periwinkle", "indigo", "violet", "purple", "magenta", "hot_pink", "pink", "coral", "orange", "chartreuse" Choose the color that maximizes contrast of a light translucent tint against BOTH the "<query>" AND its surrounding background, so a later pass can clearly see what is covered vs not. Rules for the choice:

  • ONE tint is shared by every instance: pick a hue that reads clearly on ALL of them and against each one’s own local background, not just the first.

  • Prefer a hue that is NOT already dominant in the object or in the nearby background.

  • Do NOT pick a color that would wash out or blend into the object’s own colors or hide fine edge detail under the tint.

  • Return the name EXACTLY as listed (lowercase, underscores).

SPLINE RULES (part 2):

  • Return exactly one entry per instance, keyed by the same integer "id".

  • Every control point for instance id=K MUST lie inside THAT instance’s box=[x1, y1, x2, y2] listed above.

  • Fit ONE closed B-spline per connected blob of that instance (topology.components), plus ONE additional closed B-spline per interior hole (topology.holes), marking holes with "role":"hole".

  • Outer silhouette loops use "role":"outer".

  • Use each instance’s morphology to place control points on the true outline (follow protrusions, concavities, corners, and curves named in the morphology).

  • If one instance’s box is empty, unreadable, or holds nothing matching the "<query>", return an EMPTY "splines" list for that id rather than inventing an outline. Still return its id, and still trace every other instance normally.

  • Your whole reply must fit in ONE response, and <N> instances is a lot of coordinates. Emit entries in ASCENDING id order and FINISH each entry before starting the next; stay near the LOW end of the control-point range for the simple ones so that nothing gets cut off.

CHOOSE THE SPLINE DEGREE (1 or 3) from the object’s form, then place the control points the way that degree requires:

  • Pick DEGREE 1 (closed polyline) for angular / polygonal / straight-edged objects, or simple silhouettes where a polygon is enough. Its control points are vertices ON the true object outline (not a looser control polygon): place them directly on the edge, ordered around the loop, denser at corners/bends and sparser on long straight spans.

  • Pick DEGREE 3 (closed cubic B-spline) for organic / rounded / smoothly curved silhouettes. Its control points are the B-spline control POLYGON (the curve is smoother than and sits inside the polygon), so push them slightly OUTWARD toward the object edge, ordered around the loop.

  • Use the SAME degree for EVERY spline (outer loops and holes). Report it in the top-level "degree" field AND set "degree" on each spline to that value.

  • Choose the NUMBER of control points from the object’s morphology and what you actually see inside the box — typically 16–64 per loop. Use MORE points for intricate / irregular / many-parted outlines (closer to 64) and FEWER for simple, smooth, or rounded ones (near 16). Do not aim for a fixed count — let the shape’s complexity decide within that range; under-sampling a complex outline is worse than a few extra points on a simple one.

Return ONLY this JSON (no prose, no markdown fences): { "mask_color": "<one name from the list>", "mask_color_reason": "<short why this hue contrasts with object+background>", "degree": <1 or 3>, "degree_reason": "<short why this degree fits the object’s form>", "instances": [ { "id": 0, "splines": [ {"role": "outer", "degree": <same as top-level degree>, "closed": true, "control_points": [[x, y], [x, y], ...]} ] } ] } Output the JSON and nothing else.

Prompt #3: Proposing Focus Regions (Stage 3)

<the current overlay image>

This image shows the CURRENT segmentation of the "<query>": – the translucent <tint> tint marks the current MASK REGION (coverage), – the RED outline is the current mask boundary — use this near-edge to compare, – each YELLOW rectangle is one instance’s detection box (ids drawn beside them). The <tint> fill is lighter on purpose: you can still inspect the "<query>"’s real edges/texture underneath. Use the <tint> tint to tell what is already covered; use the red outline + the underlying pixels to judge where the TRUE edge runs. Do NOT treat the soft tinted edge as the object boundary. The image is <W>x<H> pixels (origin top-left, x right, y down). ALL coordinates are absolute PIXELS with 0 <= x <= <W> and 0 <= y <= <H>.

DETECTION BOXES (each focus box MUST lie inside ONE of these):

  • id=0 label="<label>" box=[120, 80, 540, 610] topology: {"components": 1, "holes": 0, "boundary_loops": 1, "notes": "single blob, no holes"}

  • id=1 label="<label>" box=[600, 140, 930, 585]

    ... (one such entry per detected instance)

Your task is a COMPARISON: follow the RED outline and, at each part of it, look through the <tint> tint
at the actual object pixels to see where the TRUE edge of the <query> is. Report the places where the
two disagree.

Find FOCUS BOXES that mark where the mask is wrong and needs local fixing:
- type "positive": a box that FULLY encloses an area that IS part of the <query> but is NOT tinted /
  lies OUTSIDE the red outline (MISSED, e.g. a protruding part or tip left outside the mask) -> to be
  ADDED.
- type "negative": a box that FULLY encloses an area that IS tinted / INSIDE the red outline but is
  actually background (wrongly included, e.g. background bleeding beside the silhouette, or a gap
  that is not the <query>) -> to be REMOVED.
Check BOTH error directions along the red outline: missed object (positive) AND tinted background
(negative). Do not only hunt for misses.

Rules:
- Tag every focus box with "instance_id" naming which detection box it belongs to.
- Each focus box [x1, y1, x2, y2] MUST lie inside that instance’s detection box.
- Make each box LARGE enough to ENTIRELY encompass the region to be fixed -- leave generous margin so
  no part of the miss / over-include is clipped by the box edge. Prefer one roomy box over a tight
  crop; undersized boxes cause the next-step spline to miss the true outline. Propose 1-6 boxes PER
  instance (up to 6 x <N> total), one per distinct problem area.
- Check EVERY one of the <N> instances listed above, not only the largest or the most obviously wrong
  one. Propose up to 6 boxes PER instance (do not dump the whole budget on one).
- Anchor each box on what you can actually SEE: it should cover the full gap between the red outline
  (or the tinted coverage) and the true edge of the <query> at that spot, plus margin. Place box edges
  on real image features (the object’s boundary, a protrusion, the adjacent background), not on the
  soft tint alone.
- A pass may be ALL positive, ALL negative, or a mix -- there is NO requirement to include both types.
  Return only boxes that are genuinely wrong; never add a box of the other type just to have one of
  each.
- Only flag areas that are CLEARLY wrong in the current image; if a spot already looks correct, do not
  propose a box there (earlier fixes already show in the tint).
- For each box, describe the SHAPE of the region to be added/removed in a few words, and how intricate
  its outline is (e.g. "thin curved sliver", "small round bump", "jagged notch", "simple triangular
  wedge"). A later step uses this to decide how many control points to spend on the box, so be honest
  about whether the local edge is simple or wiggly.

Return ONLY this JSON (no prose, no markdown fences). Example shape (mix of types; your list may be
all-positive, all-negative, or mixed):
{
  "focus_boxes": [
    {"type": "positive", "instance_id": 0, "shape": "<shape + complexity of the region to add>",
     "box": [x1, y1, x2, y2]},
    {"type": "negative", "instance_id": 0, "shape": "<shape + complexity of the region to remove>",
     "box": [x1, y1, x2, y2]}
  ]
}
Output the JSON and nothing else.

References

  1. [1]David Acuna, Huan Ling, Amlan Kar, and Sanja Fidler. Efficient interactive annotation of segmentation datasets with polygon-rnn++. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 859–868. IEEE, 2018.arxiv.org/abs/1803.09693
  2. [2]Xiang An, Kaicheng Yang, Xiangzi Dai, Ziyong Feng, and Jiankang Deng. Multi-label cluster discrimination for visual representation learning. In European Conference on Computer Vision, pp. 428–444. Springer, 2024.DOI
  3. [3]Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, et al. Qwen3-vl technical report. arXiv preprint arXiv:2511.21631, 2025.arxiv.org/abs/2511.21631
  4. [4]Patrick Brigger, Jeff Hoeg, and Michael Unser. B-spline snakes: a flexible tool for parametric contour detection. IEEE Transactions on Image Processing, 9(9):1484–1496, 2000.DOI
  5. [5]Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision, pp. 213–229. Springer, 2020.arxiv.org/abs/2005.12872
  6. [6]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, 2026.arxiv.org/abs/2511.16719
  7. [7]Lluis Castrejon, Kaustav Kundu, Raquel Urtasun, and Sanja Fidler. Annotating object instances with a polygon-rnn. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4485–4493. IEEE, 2017.arxiv.org/abs/1704.05548
  8. [8]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. Springer, 2024.arxiv.org/abs/2409.10542
  9. [9]Gheorghe Comanici, Eric Bieber, Mike Schaeekermann, Ice Pasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, et al. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261, 2025.arxiv.org/abs/2507.06261
  10. [10]Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In CVPR, 2016.arxiv.org/abs/1604.01685
  11. [11]Matt Deitke, Christopher Clark, et al. Molmo and pixmo: Open weights and open data for state-of-the-art vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025.arxiv.org/abs/2409.17146
  12. [12]Zheng Ding, Jieke Wang, and Zhuowen Tu. Open-vocabulary universal image segmentation with MaskCLIP. arXiv preprint arXiv:2208.08984, 2022.arxiv.org/abs/2208.08984
  13. [13]Yue Fan, Xiaojian Ma, Rujie Wu, Yuntao Du, Jiaqi Li, Zhi Gao, and Qing Li. Videoagent: A memory-augmented multimodal agent for video understanding. In European Conference on Computer Vision, pp. 75–92. Springer, 2024.arxiv.org/abs/2403.11481
  14. [14]James D. Foley, Andries van Dam, Steven K. Feiner, and John F. Hughes. Computer Graphics: Principles and Practice. Addison-Wesley, 2 edition, 1996.
  15. [15]Shenghao Fu, Qize Yang, Qijie Mo, Junkai Yan, Xihan Wei, Jingke Meng, Xiaohua Xie, and Wei-Shi Zheng. LLMDet: Learning strong open-vocabulary object detectors under the supervision of large language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025.arxiv.org/abs/2501.18954
  16. [16]Yuying Ge, Yixiao Zhao, Ziyun Zhu, et al. Planting a seed of vision in large language model. arXiv preprint arXiv:2307.08041, 2023.arxiv.org/abs/2307.08041
  17. [17]Xiuye Gu, Tsung-Yi Lin, Weicheng Kuo, and Yin Cui. Open-vocabulary object detection via vision and language knowledge distillation. arXiv preprint arXiv:2104.13921, 2021.arxiv.org/abs/2104.13921
  18. [18]Agrim Gupta, Piotr Dollar, and Ross Girshick. LVIS: A dataset for large vocabulary instance segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5356–5364, 2019.arxiv.org/abs/1908.03195
  19. [19]Abdullah Hamdi, Changchun Yang, and Xin Gao. Colon-Bench: An Agentic Workflow for Scalable Dense Lesion Annotation in Full-Procedure Colonoscopy Videos . In Medical Image Computing and Computer Assisted Intervention – MICCAI 2026. Springer Nature Switzerland, 2026.
  20. [20]Jiaqi Huang, Zunnan Xu, Ting Liu, Yong Liu, Haonan Han, Kehong Yuan, and Xiu Li. Densely connected parameter-efficient tuning for referring image segmentation. In Proceedings of the AAAI Conference on Artificial Intelligence, pp. 3653–3661, 2025.arxiv.org/abs/2501.08580
  21. [21]Qing Jiang, Feng Li, Zhaoyang Zeng, Tianhe Ren, Shilong Liu, and Lei Zhang. T-Rex2: Towards generic object detection via text-visual prompt synergy. In European Conference on Computer Vision, pp. 38–57. Springer, 2024.arxiv.org/abs/2403.14610
  22. [22]Qing Jiang, Junan Huo, Xingyu Chen, Yuda Xiong, Zhaoyang Zeng, Yihao Chen, Tianhe Ren, Junzhi Yu, and Lei Zhang. Detect anything via next point prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 25472–25483, 2026.arxiv.org/abs/2510.12798
  23. [23]Aishwarya Kamath, Mannat Singh, Yann LeCun, Gabriel Synnaeve, Ishan Misra, and Nicolas Carion. MDETR: Modulated detection for end-to-end multi-modal understanding. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 1780–1790, 2021.arxiv.org/abs/2104.12763
  24. [24]Seil Kang, Jinyeong Kim, Junhyeok Kim, and Seong Jae Hwang. Your large vision-language model only needs a few attention heads for visual grounding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9339–9350, 2025.arxiv.org/abs/2503.06287
  25. [25]Michael Kass, Andrew Witkin, and Demetri Terzopoulos. Snakes: Active contour models. International Journal of Computer Vision, 1(4):321–331, 1988.DOI
  26. [26]Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara Berg. ReferItGame: Referring to objects in photographs of natural scenes. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 787–798, 2014.DOI
  27. [27]Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C. Berg, Wan-Yen Lo, Piotr Dollár, and Ross Girshick. Segment anything, 2023. URL https://arxiv.org/abs/2304.02643.
  28. [28]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.arxiv.org/abs/2308.00692
  29. [29]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, 2025.arxiv.org/abs/2410.09855
  30. [30]Justin Lazarow, Weijian Xu, and Zhuowen Tu. Instance segmentation with mask-supervised polygonal boundary transformers. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4372–4381. IEEE, 2022.DOI
  31. [31]Chunyuan Li, Haotian Liu, Liunian Li, Pengchuan Zhang, Jyoti Aneja, Jianwei Yang, Ping Jin, Houdong Hu, Zicheng Liu, Yong Jae Lee, et al. ELEVATER: A benchmark and toolkit for evaluating language-augmented visual models. Advances in Neural Information Processing Systems, 35:9287–9301, 2022a.arxiv.org/abs/2204.08790
  32. [32]Jiachen Li, Qing Xie, Renshu Gu, Jinyu Xu, Yongjian Liu, and Xiaohan Yu. Lgd: Leveraging generative descriptions for zero-shot referring image segmentation. arXiv preprint arXiv:2504.14467, 2025.arxiv.org/abs/2504.14467
  33. [33]Liunian Harold Li, Pengchuan Zhang, Haotian Zhang, Jianwei Yang, Chunyuan Li, Yiwu Zhong, Lijuan Wang, Lu Yuan, Lei Zhang, Jeng-Neng Wang, et al. Grounded language-image pre-training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10965–10975, 2022b.arxiv.org/abs/2112.03857
  34. [34]Feng Liang, Bichen Wu, Xiaoliang Dai, Kunpeng Li, Yinan Zhao, Hang Zhang, Peizhao Zhang, Peter Vajda, and Diana Marculescu. Open-vocabulary semantic segmentation with mask-adapted CLIP. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7061–7070, 2023.arxiv.org/abs/2210.04150
  35. [35]Justin Liang, Namdar Homayounfar, Wei-Chiu Ma, Yuwen Xiong, Rui Hu, and Raquel Urtasun. Poly-transform: Deep polygon transformer for instance segmentation. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9128–9137. IEEE, 2020.
  36. [36]Wenqi Liang, Gan Sun, Yao He, Jiahua Dong, Suyan Dai, Ivan Laptev, Salman Khan, and Yang Cong. Pixelvla: Advancing pixel-level understanding in vision-language-action model. In International Conference on Learning Representations, volume 2026, pp. 110464–110481, 2026.arxiv.org/abs/2511.01571
  37. [37]Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft coco: Common objects in context. In European Conference on Computer Vision (ECCV), Zürich, 2014. Oral.arxiv.org/abs/1405.0312
  38. [38]Weifeng Lin, Xinyu Wei, Ruichuan An, Tianhe Ren, Tingwei Chen, Renrui Zhang, Ziyu Guo, Wentao Zhang, Lei Zhang, and Hongsheng Li. Perceive anything: Recognize, explain, caption, and segment anything in images and videos. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 96231–96256. Curran Associates, Inc., 2025. doi: 10.5202/085713-3216. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/8a7495d8459b6831dbdd938453bd3697-Paper-Conference.pdf.arxiv.org/abs/2506.05302
  39. [39]Huan Ling, Jun Gao, Amlan Kar, Wenzheng Chen, and Sanja Fidler. Fast interactive object annotation with curve-gen. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 5252–5261. IEEE, 2019.
  40. [40]Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianwei Yang, Hang Su, et al. Grounding DINO: Marrying DINO with grounded pre-training for open-set object detection. In European Conference on Computer Vision, pp. 38–55. Springer, 2024a.arxiv.org/abs/2303.05499
  41. [42]Yong Liu, Cairong Zhang, Yitong Wang, Jiahao Wang, Yujiu Yang, and Yansong Tang. Universal segmentation at arbitrary granularity with language instruction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3459–3469, 2024b.arxiv.org/abs/2312.01623
  42. [43]Yuliang Liu, Hao Chen, Chunhua Shen, Tong He, Lianwen Jin, and Liangwei Wang. Abcnet: Real-time scene text spotting with adaptive bezier-curve network. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9806–9815. IEEE, 2020.arxiv.org/abs/2002.10200
  43. [44]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, 2025.arxiv.org/abs/2503.06520
  44. [46]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.arxiv.org/abs/1511.02283
  45. [47]Matthias Minderer, Alexey Gritsenko, Austin Stone, Maxim Neumann, Dirk Weissenborn, Alexey Dosovitskiy, Aravindh Mahendran, Anurag Arnab, Mostafa Dehghani, Zhuoran Shen, et al. Simple open-vocabulary object detection. In European Conference on Computer Vision, pp. 728–755. Springer, 2022.DOI
  46. [48]Matthias Minderer, Alexey Gritsenko, and Neil Houlsby. Scaling open-vocabulary object detection. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2306.09683
  47. [49]Minheng Ni, Yabo Zhang, Kailai Feng, Xiaoming Li, Yiwen Guo, and Wangmeng Zuo. Ref-diff: Zero-shot referring image segmentation with generative models. arXiv preprint arXiv:2308.16777, 2023.arxiv.org/abs/2308.16777
  48. [50]OpenAI. Gpt-4 technical report, 2023.arxiv.org/abs/2303.08774
  49. [51]Sida Peng, Wen Jiang, Huajun Pi, Xiuli Li, Hujun Bao, and Xiaowei Zhou. Deep snake for real-time instance segmentation. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 8530–8539. IEEE, 2020.arxiv.org/abs/2001.01629
  50. [52]Les Piegl and Wayne Tiller. The NURBS Book. Springer-Verlag, 2 edition, 1997.
  51. [53]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In ICML, pp. 8748–8763. PMLR, 2021.arxiv.org/abs/2103.00020
  52. [54]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.arxiv.org/abs/2311.03356
  53. [55]Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Roland, Laura Gustafson, Eric Mintun, Junting Pan, Kalyan Vasudev Alwala, Nicolas Carion, Chao-Yuan Wu, Ross Girshick, Piotr Dollár, and Christoph Feichtenhofer. Sam 2: Segment anything in images and videos, 2024. URL https://arxiv.org/abs/2408.00714.
  54. [56]Tianhe Ren, Shilong Liu, Ailing Zeng, Jing Lin, Kunchang Li, He Cao, Jiayu Chen, Xinyu Huang, Yukang Chen, Feng Yan, et al. Ground SAM: Assembling open-world models for diverse visual tasks. arXiv preprint arXiv:2401.14159, 2024.arxiv.org/abs/2401.14159
  55. [57]Tianhe Ren, Yihao Chen, Qing Jiang, Zhaoyang Zeng, Yuda Xiong, Wenlong Liu, Zhengyu Ma, Junyi Shen, Yuan Gao, Xiaoke Jiang, Xingyu Chen, Zhuheng Song, Yuhong Zhang, Hongjie Huang, Han Gao, Shilong Liu, Hao Zhang, Feng Li, Kent Yu, and Lei Zhang. DINO-X: A unified vision model for open-world object detection and understanding, 2025. URL https://arxiv.org/abs/2411.14347.
  56. [58]Peter Robicheaux, Matvei Popov, Anish Madan, Isaac Robinson, Joseph Nelson, Deva Ramanan, and Neehar Peri. Roboflow100-VL: A multi-domain object detection benchmark for vision-language models. arXiv preprint arXiv:2505.20612, 2025.arxiv.org/abs/2505.20612
  57. [59]Yunhang Shen, Chaoyou Fu, Peixian Chen, Mengdan Zhang, Ke Li, Xing Sun, Yunsheng Wu, Shaohui Lin, and Rongrong Ji. Aligning and prompting everything all at once for universal visual perception. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 13193–13203, 2024.arxiv.org/abs/2312.02153
  58. [60]Shuyang Sun, Runjia Li, Philip Torr, Xiuye Gu, and Siyang Li. Clip as rnn: Segment countless visual concepts without training endeavor. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13171–13182, 2024.arxiv.org/abs/2312.07661
  59. [61]Yucheng Suo, Linchao Zhu, and Yi Yang. Text augmented spatial-aware zero-shot referring image segmentation. arXiv preprint arXiv:2310.18049, 2023.arxiv.org/abs/2310.18049
  60. [62]Paul Voigtlaender, Valentin Gabeur, and Rohan Doshi. Conversational image segmentation with Gemini 2.5. https://developers.googleblog.com/en/conversational-image-segmentation-gemini-2-5/, 2025.
  61. [63]Hao Wang, Limeng Qiao, Zequn Jie, Zhijian Huang, Chengjian Feng, Qingfang Zheng, Lin Ma, Xiangyuan Lan, and Xiaodan Liang. X-SAM: From segment anything to any segmentation. arXiv preprint arXiv:2508.04655, 2025a.arxiv.org/abs/2508.04655
  62. [64]Shijie Wang, Dahun Kim, Ali Taalimi, Chen Sun, and Weicheng Kuo. Learning visual grounding from generative vision and language model. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 8057–8067. IEEE, 2025b.arxiv.org/abs/2407.14563
  63. [65]Wenhai Wang, Zhe Chen, Xiaokang Chen, Jiannan Wu, Xizhou Zhu, Gang Zeng, Ping Luo, Tong Lu, Jie Zhou, Yu Qiao, et al. Visionllm: Large language model is also an open-ended decoder for vision-centric tasks. Advances in Neural Information Processing Systems, 36:61501–61513, 2023.arxiv.org/abs/2305.11175
  64. [66]Yuji Wang, Jingchen Ni, Yong Liu, Chun Yuan, and Yansong Tang. Iterprime: Zero-shot referring image segmentation with iterative grad-cam refinement and primary word emphasis. In Proceedings of the AAAI Conference on Artificial Intelligence, pp. 8159–8168, 2025c.arxiv.org/abs/2503.00936
  65. [67]Cong Wei, Yujie Zhong, Haoxian Tan, Yong Liu, Zheng Zhao, Jie Hu, and Yujiu Yang. HyperSeg: Towards universal visual segmentation with large language model. arXiv preprint arXiv:2411.17606, 2024.arxiv.org/abs/2411.17606
  66. [68]Jiannan Wu, Muyan Zhong, Sen Xing, Zeqiang Lai, Zhaoyang Liu, Zhe Chen, Wenhai Wang, Xizhou Zhu, Leiwei Lu, Tong Lu, et al. Visionllm v2: An end-to-end generalist multimodal large language model for hundreds of vision-language tasks. Advances in Neural Information Processing Systems, 37:69925–69975, 2024a.
  67. [69]Junfeng Wu, Yi Jiang, Qihao Liu, Zehuan Yuan, Xiang Bai, and Song Bai. General object foundation model for images and videos at scale. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3783–3795, 2024b.
  68. [70]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.
  69. [71]Enze Xie, Peize Sun, Xiaoge Song, Wenhai Wang, Xuebo Liu, Ding Liang, Chunhua Shen, and Ping Luo. PolarMask: Single shot instance segmentation with polar representation. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 12190–12199. IEEE, 2020.
  70. [72]Yin Xie, Kaicheng Yang, Xiang An, Kun Wu, Yongle Zhao, Weimo Deng, Zimin Ran, Yumeng Wang, Ziyong Feng, Roy Miles, et al. Region-based cluster discrimination for visual representation learning. arXiv preprint arXiv:2507.20025, 2025.
  71. [73]Jiarui Xu, Xingyi Zhou, Shen Yan, Xiuye Gu, Anurag Arnab, Chen Sun, Xiaolong Wang, and Cordelia Schmid. Pixel aligned language models. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 13030–13039. IEEE, 2024.arxiv.org/abs/2312.09237
  72. [74]Jianwei Yang, Hao Zhang, Feng Li, Xueyan Zou, Chun yuan Li, and Jianfeng Gao. Set-of-mark prompting unleashes extraordinary visual grounding in GPT-4V. arXiv preprint arXiv:2310.11441, 2023.
  73. [75]Seonghoon Yu, Paul Hongsuck Seo, and Jeany Son. Zero-shot referring image segmentation with global-local context features. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 19456–19465, 2023.
  74. [76]Seonghoon Yu, Paul Hongsuck Seo, and Jeany Son. Pseudo-ris: Distinctive pseudo-supervision generation for referring image segmentation. In European Conference on Computer Vision, pp. 18–36. Springer, 2024.
  75. [77]Tao Zhang, Shiqing Wei, and Shunping Ji. E2ec: An end-to-end contour-based method for high-quality high-speed instance segmentation. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4433–4442. IEEE, 2022.
  76. [78]Tao Zhang, Xiangtai Li, Hao Fei, Haobo Yuan, Shengqiong Wu, Shunping Ji, Chen Change Loy, and Shuicheng Yan. OML-GLaVA: Bridging image-level, object-level, pixel-level reasoning and understanding. Advances in Neural Information Processing Systems, 37:71737–71767, 2024a.
  77. [79]Yuxuan Zhang, Tianheng Cheng, Lianghui Zhu, Rui Hu, Lei Liu, Heng Liu, Longjin Ran, Xiaoxin Chen, Wenyu Liu, and Xinggang Wang. EVF-SAM: Early vision-language fusion for text-prompted segment anything model. arXiv preprint arXiv:2406.20076, 2024b.
  78. [80]Zheng Zhang, Yeyao Ma, Enming Zhang, and Xiang Bai. PSALM: Pixelwise segmentation with large multi-modal model. In European Conference on Computer Vision, pp. 74–91. Springer, 2024c.
  79. [81]Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ADE20K dataset. International Journal of Computer Vision, 127(3):302–321, 2019.
  80. [82]Chong Zhou, Chenchen Zhu, Yunyang Xiong, Saksham Suri, Fanyi Xiao, Lemeng Wu, Raghuraman Krishnamoorthi, Bo Dai, Chen Chang Loy, Vikas Chandra, et al. Edgetam: On-device track anything model. In Proceedings of the Computer Vision and Pattern Recognition Conference, pp. 13832–13842, 2025.arxiv.org/abs/2501.07256
  81. [83]Chenming Zhu, Xuanye Zhang, Yanran Li, Liangdong Qiu, Kai Han, and Xiaoguang Han. Sharpcounter: A contour-based boundary refinement approach for efficient and accurate instance segmentation. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4382–4391. IEEE, 2022.arxiv.org/abs/2203.13312
  82. [84]Xueyan Zou, Jianwei Yang, Hao Zhang, Feng Li, Linjie Li, Jianfeng Wang, Lijuan Wang, Jianfeng Gao, and Yong Jae Lee. Segment everything everywhere all at once. Advances in Neural Information Processing Systems, 36:19769–19782, 2023.arxiv.org/abs/2304.06718

Paper details

vlnc:W_qhjqehwj
Version
v1 · latest
Published
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents