Skip to content
Robotics.world

Research

VespaSeg: A Resource-Aware Ground-then-Segment Pipeline for Referring Expression Segmentation

Referring expression segmentation asks a system to take an image plus a natural-language phrase (for example, a description of a specific object) and return a pixel-accurate mask of the described…

The paper’s first page · arXiv:2608.01077
arXiv
2608.01077 · Preprint · not peer-reviewed
Published
2026-08-02
Authors
Savindu Dilshan Wickramasinghe

In plain words

Referring expression segmentation asks a system to take an image plus a natural-language phrase (for example, a description of a specific object) and return a pixel-accurate mask of the described object. Monolithic end-to-end models that do this can be expensive to deploy on latency- and memory-constrained hardware.

AI summary

Overview

Research area: Robotics / computer vision — specifically referring expression segmentation (RES), visual grounding, and efficient promptable segmentation.

Technical level: Intermediate. Readers should be comfortable with bounding boxes, IoU/mIoU metrics, vision–language models, and the Segment Anything family of segmentation models; the paper is otherwise written in accessible terms.

Scope: The paper presents and audits VespaSeg, a modular two-stage pipeline that uses a compact vision–language model to ground a text query into a box and MobileSAM to convert that box into a pixel mask, evaluated on a repository-specific 3,811-pair RefCOCO validation protocol with accuracy, cached-query throughput, and allocated GPU memory measurements.

What This Paper Is About

Referring expression segmentation asks a system to take an image plus a natural-language phrase (for example, a description of a specific object) and return a pixel-accurate mask of the described object. Monolithic end-to-end models that do this can be expensive to deploy on latency- and memory-constrained hardware. The paper's goal is to test a simple alternative: let a small vision–language model predict a bounding box, then let MobileSAM turn that box into a mask, so that each stage can be swapped, adapted separately, and partially cached.

Key Contributions

  1. A modular ground-then-segment design. A compact vision–language grounder (Florence-2-base, Florence-2-large, or Moondream2) produces a box, and MobileSAM produces the mask from that box. The explicit box interface makes components interchangeable and allows MobileSAM's image embedding to be reused across multiple expressions on the same image.

  2. An artifact-backed comparison of accuracy, cached-query throughput, and allocated GPU memory. This includes a matched 500-query comparison of Florence-2-base versus Florence-2-large under the same adapted MobileSAM.

  3. Component and inference-budget ablations. Ground-truth-box experiments isolate the segmentation stage, and a sweep over input resolution (320/256/192 pixels maximum side) and output-token budget (64 versus 32 tokens) characterizes the accuracy/resource frontier.

  4. An explicit account of protocol limitations. The paper documents that its evaluation uses only the first expression of each of 3,811 RefCOCO validation records rather than all 10,834 validation expressions, and that its throughput figure measures cached-image queries rather than video frame rate.

Main Findings

  • Best repository-protocol result: Adapted Florence-2-base with adapted MobileSAM reaches 73.64 mIoU and 84.60 P@0.5 on the 3,811-pair protocol, at 22.8 cached-image queries per second and 2.20 GB mean allocated GPU memory on an NVIDIA RTX 6000 Ada GPU.

  • Grounding adaptation dominates: Florence-2-base with only MobileSAM LoRA (unadapted grounder) scores 40.40 mIoU and 43.32 P@0.5, versus 73.64 mIoU and 84.60 P@0.5 when the grounder is also LoRA-adapted — a 33.24-point difference. The authors caution this is not an unbiased training-effect estimate because the checkpoint was selected on validation behavior and no multiple-seed or held-out test results exist.

  • Smaller grounder wins at this operating point: On a matched 500-query comparison, Florence-2-base achieves 73.73 mIoU and 85.00 P@0.5 at 22.2 q/s and 2.21 GB, while Florence-2-large achieves 72.82 mIoU and 83.40 P@0.5 at 13.0 q/s and 3.38 GB. The base model is 1.70× faster and uses 1.17 GB less allocated memory.

  • Mask adaptation helps measurably: With ground-truth boxes on a fixed 1,000-record validation subset, MobileSAM mask-decoder LoRA raises mIoU from 82.22 to 86.61.

  • Grounder fine-tuning gives a small box gain: Full Moondream2 fine-tuning improves box IoU from 69.33 to 70.09 on a 500-record validation subset.

  • Moondream2 as an alternative grounder: Unadapted Moondream2 reaches 62.23 mIoU / 69.56 P@0.5, and with full fine-tuning plus MobileSAM LoRA reaches 63.22 mIoU / 71.37 P@0.5. The paper notes these rows change two components and are not a controlled single-component ablation, and that no compatible resource measurements were retained for Moondream2.

  • Token budget is nearly free to cut: Reducing Florence-2's output-token limit from 64 to 32 changes neither accuracy (73.64 mIoU, 84.60 P@0.5) nor memory, and slightly increases throughput from 22.50 to 22.78 q/s.

  • Resolution reductions cost accuracy: At 256 pixels with 32 tokens, mIoU is 73.54 with 22.91 q/s; at 192 pixels with 32 tokens, mIoU drops to 72.76 with 23.10 q/s. The 192-pixel setting trades 0.88 mIoU points for only 0.32 additional q/s relative to the selected 320/32 setting.

  • Qualitative recovery cases: In a 200-pair diagnostic subset, two complete grounding failures improve from 0.000 to 0.970 and 0.000 to 0.965 IoU, and one partial error improves from 0.114 to 0.921. The authors state these cases were selected for large improvement and are not representative samples.

Methodology in Plain English

The pipeline has two stages with a box in between. First, a vision–language model is shown the image and the text expression and asked to return the coordinates of the described object. Florence-2 is prompted with a phrase-grounding task token followed by the expression; Moondream2 is given a pointing query and returns normalized coordinates. Coordinates that are invalid or out of order are clamped before being passed on. Second, MobileSAM takes the image and the box and produces the mask. Because MobileSAM's image embedding only depends on the image, it can be computed once and reused for several expressions about the same picture — this caching is what the reported throughput measures.

Both stages are adapted with low-rank adaptation (LoRA), which freezes the original weights and learns small low-rank correction matrices. For Florence-2, LoRA is applied to the q_proj, k_proj, v_proj, out_proj, fc1, and fc2 projections with rank 8 and scale 16; the base checkpoint is the epoch-2 state of a three-epoch run and the large checkpoint uses the same settings after three epochs. Florence-2 training expands every sentence in the 42,404 training records to 120,624 expression pairs, using batch size 4, gradient accumulation of 4, AdamW, and a learning rate of 10⁻⁴. MobileSAM LoRA is applied to eligible mask-decoder linear layers with rank 8 and scale 16, trained on 42,404 RefCOCO training records for 10 epochs with batch size 4 and learning rate 10⁻⁴, using a loss of Dice plus 0.5 times BCE; this updates 167,936 of 10,298,028 parameters (1.63%). Training MobileSAM with ground-truth boxes deliberately isolates mask quality from grounding error. Moondream2 was instead fully fine-tuned on the first expression of each of the 42,404 training records for three epochs with batch size 2 and learning rate 10⁻⁵.

Accuracy is reported as mIoU and precision at IoU 0.5, both as percentages. Runtime was measured in half precision with PyTorch scaled dot-product attention, images resized to a maximum side of 320 pixels, at most 32 generated tokens, and five warm-up samples; the timed interval covers VLM preprocessing and generation plus box-prompted MobileSAM decoding, with the image encoder excluded when the image changes and its embedding reused. Memory is mean PyTorch allocated GPU memory sampled after each query, not total board consumption.

Why This Matters

Impact on research. The paper argues for keeping an explicit, inspectable box interface between language grounding and segmentation instead of collapsing everything into one large model. It also models a kind of honest reporting that is useful to the field: it re-audits its own earlier numbers, renames its throughput metric, and states plainly that its validation protocol is repository-specific and cannot be placed on a standard RefCOCO leaderboard. It further shows that gains can be attributed separately to grounding and mask adaptation, which helps future work decide where to spend compute.

Real-world applications:

  • Robot manipulation: a robot receiving a spoken instruction such as "the lower-left banana" needs a mask of the correct object before grasping; the paper's own qualitative example is exactly this kind of spatial disambiguation.

  • Assistive interaction: interfaces that let a user point at things by description rather than by coordinates, where per-query latency and memory matter.

  • Interactive multi-query tools: annotation or inspection tools where several expressions refer to the same image, so MobileSAM's embedding can be cached — the exact use case the reported cached-query throughput measures.

  • Resource-constrained vision deployments: settings where the modular split allows swapping in a smaller or differently adapted grounder without retraining the segmentation stage.

Industry relevance. The 2.20 GB allocated-memory figure and 22.8 queries-per-second figure describe a single-consumer-GPU operating point, which is relevant to teams deciding whether a large end-to-end RES model is necessary or whether a compact two-stage pipeline fits their hardware. The paper is explicit that these numbers do not establish embedded-device latency, energy use, or deployability within a 2.20 GB physical-memory budget.

Future Directions

  • Evaluate on the complete standard splits. The current protocol uses only the first expression per validation record (3,811 pairs) and omits testA and testB; re-running all 10,834 validation expressions and the held-out test splits is necessary before any leaderboard comparison.

  • Add statistical rigor. Multiple seeds, uncertainty intervals, and significance tests were not recorded, and the checkpoint was selected on validation behavior, so re-evaluation on held-out checkpoints is needed to confirm the magnitude of the gains.

  • Measure true end-to-end and edge performance. Independent end-to-end latency, peak memory, video-frame throughput, energy use, and embedded-hardware behavior are all unmeasured; the current throughput depends on cached image embeddings and a high-end desktop GPU.

  • Compare against current RES systems under one protocol, and address the structural limitation that grounding errors cannot be recovered by the box-prompted mask decoder and that the two stages are not jointly optimized for reasoning and boundary accuracy.

Target Audience

This paper is most useful to robotics and computer vision practitioners who need referring expression segmentation under tight latency and memory budgets and are weighing modular pipelines against monolithic models. It also suits engineers building interactive multi-query or annotation tools, and researchers who want a careful example of how to report and audit benchmark protocols. Readers looking for state-of-the-art RefCOCO leaderboard numbers will not find them here — the authors state that explicitly.

Authors’ abstract

Referring expression segmentation requires language conditioned localization and pixel-accurate masks, but monolithic models can be costly to deploy. We present VespaSeg, a modular pipeline that grounds a text query with a compact vision-language model and converts the predicted box to a mask with MobileSAM. We study Florence-2-base, Florence-2-large, and Moondream2 grounders together with targeted adaptation of the grounding and segmentation stages. Under a…

The full abstract on arXiv
Read the original paper

Related papers