← All posts

Glance: Box Grounding at the Granularity of the Words

Qian Zhang* and Zexuan Gao*

*Equal contribution

Real model outputs on COCO validation images.

Abstract

Referring-expression benchmarks pair every expression with exactly one object in the image, so a grounding model can score well by matching the coarsest cue (the category and a rough position) and treating every finer word as decoration. We call this the missing semantic granularity of box grounding. It shows up as soon as a description matches nothing: a strong 4B vision-language model that reaches 91.4 on RefCOCO val still draws a box for a third of the expressions in gRefCOCO that have no target.

We address it with data. Keeping the 24K COCO images of RefCOCO/+/g, we build absent descriptions at three granularities, a missing category, a wrong attribute and the right kind of object described by details it does not have, and add human-written no-target expressions. We train Glance-4B-preview on this mixture: Qwen3.5-4B with LoRA reads the image once and answers any number of questions from that single prefill through readout heads, returning a box together with a calibrated probability that the target is present. Trained for one epoch on one GPU, it reaches 93.2 / 94.5 / 90.7 on RefCOCO, rejects 87.4% of gRefCOCO val no-target expressions (against 65.0 for its base model and 77.2 for Qwen3-VL-4B), and its presence probability has an expected calibration error of 2.4%. Served with our inference engine, it answers 32 questions about an image in 49 ms, 6.8× faster than vLLM serving the base model. A description-shift analysis shows the cost: the model also learns to reject coarser descriptions of objects that are there.

Introduction

Box grounding asks a model to read a sentence and return the box of the object it describes. The standard benchmarks, RefCOCO, RefCOCO+ and RefCOCOg (Yu et al., 2016; Mao et al., 2016), were collected by showing annotators one object and asking for a description that singles it out (Kazemzadeh et al., 2014). Every expression therefore has exactly one referent, and every word in it is true of that referent.

This design leaves one thing untested: whether the model uses the words at all. A description constrains the target at several semantic granularities at once. “The white cow lying on the left” names a category (cow), an attribute (white) and an instance-level detail (lying on the left). When every expression matches some object, the finer constraints are never needed to pick the right box, since the category and a rough position are usually enough. A model can reach high accuracy while treating everything below the category as decoration, and nothing in the score reveals it. We call this the missing semantic granularity of box grounding.

The gap becomes visible when a description matches nothing. On gRefCOCO (Liu et al., 2023; He et al., 2023), which adds human-written expressions with no target, a recent 4B vision-language model (Qwen Team, 2026) that reaches 91.4 on RefCOCO val still returns a box for 35% of the no-target expressions.

No-target data alone does not close the gap. gRefCOCO’s no-target expressions are few and are not organised by what makes them false, and a generative model that learns to emit “no object” gives a string rather than a probability that can be thresholded or trusted. What is missing is supervision that makes each granularity necessary: descriptions that are false only because of the category, only because of an attribute, or only because no instance of the right kind fits the details.

We build this supervision from the images RefCOCO already has. Each negative keeps the image and changes what the words refer to, at one of three granularities (Figure 1). We train a grounding model on it whose answer is a box together with a calibrated probability that the target is present, and which reads an image once for any number of questions (Figure 2). Our contributions:

  • A negative-construction recipe that turns referring-expression data into absent descriptions at the category, attribute and instance level, using only the existing annotations.
  • Glance-4B-preview, a grounding model that answers typed questions from one prefill through readout heads, with a presence probability, a box and a box confidence for every expression.
  • An evaluation of the trade-off. The model is ahead of larger vision-language models on RefCOCO, rejects 87.4% of no-target expressions with well-calibrated probabilities, and, as a description-shift analysis shows, over-rejects coarse descriptions of objects that are present.

Referring-expression data. ReferItGame (Kazemzadeh et al., 2014) introduced the two-player game behind referring-expression collection; RefCOCO and RefCOCO+ (Yu et al., 2016) and RefCOCOg (Mao et al., 2016; Nagaraja et al., 2016) applied it to COCO (Lin et al., 2014) and remain the standard REC benchmarks. gRefCOCO (Liu et al., 2023) extended the task to expressions with several targets or none, and GREC (He et al., 2023) defined the corresponding box-level metrics. Described object detection (Xie et al., 2023) evaluates descriptions, including absent ones, across a whole dataset. We reuse these images and annotations and add negatives organised by granularity.

Grounding models. Specialist detectors condition box prediction on text: MDETR (Kamath et al., 2021) and Grounding DINO (Liu et al., 2024). Sequence models emit boxes as tokens: OFA (Wang et al., 2022) and vision-language models such as Shikra (Chen et al., 2023), Ferret (You et al., 2024), Qwen2.5-VL (Bai et al., 2025a) and Qwen3-VL (Bai et al., 2025b). These models generate one answer per prompt and express absence, if at all, as text. Glance keeps a vision-language backbone (Qwen Team, 2026) but replaces generation with readout heads, which gives every answer a probability and lets many questions share one prefill.

Negatives and compositionality. Vision-language models often behave like bags of words, matching the right nouns and ignoring attributes and relations (Yuksekgonul et al., 2023); hard negatives that swap words are the usual remedy for retrieval. For grounding, RC-GRPO (Yang et al., 2026) teaches a generative model to refuse with a refusal-calibrated variant of reinforcement learning. We instead build the negatives at fixed granularities in the data and read presence from a head trained with a proper scoring rule.

Method

We first describe the data (Section 3.1), then the model (Section 3.2) and its training (Section 3.3).

Data construction. Left: a COCO image with a RefCOCO expression and its box. Top: four kinds of absent description built from the same image, ordered from coarse to fine: a missing category, a swapped colour attribute, a same-category description from another image, and a human-written no-target sentence. Bottom: the training mixture of natural images, screenshots, points and counts, and text, decontaminated against evaluation images and held-out calibration splits.
Figure 1. Data. Every negative keeps a RefCOCO image and changes what the words refer to. Absent descriptions are built at three granularities, from a missing category to a detail no instance has, alongside human-written no-target expressions from gRefCOCO. Box questions from natural images join screenshots, point and count data, and text questions in the training mixture, after removing every evaluation image.

Data: absent at three granularities

Positives. We start from the 23,807 COCO training images (Lin et al., 2014) used by RefCOCO, RefCOCO+ and RefCOCOg, with their 260K human expressions and boxes.

Negatives. For each image we write descriptions that are false at exactly one granularity, using only the existing annotations:

  • Category. An expression from another image whose COCO category does not occur in this image (“a man holding an umbrella” in a field of cows). These are easy and teach the model that the head noun matters (35K).
  • Attribute. The image’s own expression with one colour word replaced by a colour that appears in none of the image’s expressions (“the black cow lying on the left”). Category, position and phrasing all still match; only the attribute is false (25K).
  • Instance. An expression for an object of the same category, taken from another image, whose attribute words never occur in this image’s expressions (“the cow with a bell in the snow”). The right kind of object is present, but no instance fits the details (25K).
  • No target. Human-written no-target expressions from gRefCOCO (17K).

Absent descriptions make up 28% of the natural-image pool, and 65% of them are hard (attribute, instance or human-written). The vocabulary checks are what make a swap false: a colour or attribute word counts as absent only if no annotator used it for anything in the image.

Mixture. Questions about natural images make up 114K of the 520K training questions. To keep the model useful beyond COCO, the rest come from GUI screenshots (Wu et al., 2024; Xu et al., 2024; Feizi et al., 2025) (130K), point and count annotations (Deitke et al., 2024) (68K, as box and count questions), and text-only choice, yes/no and score questions (Sileo, 2023) (208K). In total there are 212K states (an image or a text) and 520K questions: 304K box, 158K choice, 28K yes/no and 30K score, with 17.9% of box questions absent.

Decontamination. Every image that appears in any RefCOCO/+/g or gRefCOCO evaluation split is removed from training. This matters because RefCOCOg’s train split shares images with RefCOCO’s val and test splits. Evaluation images of other benchmarks are removed by perceptual hash. A further 600 natural images are held out as a calibration split and never trained on.

Model. Left: an image with four questions: a box question, a yes/no question, a multiple-choice question and a score question. Middle: the image prefix is prefilled once; each question is a block appended to it. In the Gated DeltaNet layers every block starts from the prefix's final state; in the attention layers each block sees the prefix and itself, bidirectionally, and no other block. Right: the box head predicts presence, a patch, four edge distributions and IoU; typed questions are answered by a softmax over the answer-label tokens.
Figure 2. Model. The image is prefilled once. Each question is a block that reads the prefix and itself but no other block, so any number of questions are answered in one forward pass, in any order. A readout token at the end of each block feeds the box head (presence, patch, four edges, IoU) or a softmax over the answer labels.

Model: one prefill, many questions

Backbone. Glance-4B-preview fine-tunes Qwen3.5-4B (Qwen Team, 2026), whose language model interleaves Gated DeltaNet layers (Yang et al., 2025) with gated attention at a ratio of 3 : 1. We train LoRA adapters (Hu et al., 2022) of rank 64 on every linear layer of the language model; the vision tower and embeddings stay frozen.

Shared prefix. The state, an image or a text, is prefilled once. Each question is appended as its own block and answered at its last token. In the attention layers a block attends to the prefix and, bidirectionally, to itself, but never to another block. In the Gated DeltaNet layers each block starts from the prefix’s final recurrent state. Questions therefore cannot leak into each other, and the answer to a question does not depend on which other questions were asked or in what order. Eight questions about a COCO image cost about the same as one.

Box head. From the readout vector hh, the box head predicts:

  1. a presence probability p=σ(w⊤h)p = \sigma(w^\top h);
  2. a distribution over image patches, whose target spreads mass over the patches covered by the ground-truth box in proportion to their overlap;
  3. four ordinal distributions over 64 bins for the left, top, right and bottom edges;
  4. the probability that the decoded box reaches IoU ≥ 0.5 with the target.

The answer is “not present” when p<0.5p < 0.5; otherwise it is the decoded box with confidence p⋅P(IoU≥0.5)p \cdot P(\mathrm{IoU} \ge 0.5).

Typed heads. Choice, yes/no and score questions are answered by a softmax over the logits of their answer-label tokens: the language model’s own output rows plus a learned residual initialised at zero. A new set of options needs no new parameters.

Training

The box loss sums binary cross-entropy on presence, soft cross-entropy on the patch, a Cramér distance and a GIoU term on the edges, and binary cross-entropy on the IoU head; absent questions contribute only to presence. Choice and yes/no heads use soft cross-entropy plus a Brier term; score heads use cross-entropy plus a Cramér distance over the ordered labels. Presence and answer probabilities are trained with proper scoring rules, so they are pushed to be calibrated, not only ranked.

We train for one epoch (3,844 steps) with AdamW and a cosine schedule: learning rate 2×10−42 \times 10^{-4} for LoRA and 5×10−45 \times 10^{-4} for the heads, 100 warmup steps, and images resized to at most 640 visual tokens. Training takes 6.6 hours on one RTX PRO 6000. Afterwards we fit one temperature per head on the held-out calibration splits; no evaluation data is used.

Results

All Glance numbers are single-pass, with no test-time augmentation or second look, using bf16 and at most 640 visual tokens per image. Every evaluation image was removed from training. Numbers for other models are taken from their papers unless marked. Their prompts and resolutions differ from ours, so cross-model comparisons are indicative.

Referring expression comprehension

Table 1 reports Acc@0.5, the fraction of expressions whose box reaches IoU ≥ 0.5, on the eight standard splits. Glance-4B-preview is the best model in the table on all eight splits, with an 8-split mean of 90.8. Standard REC ignores presence. Requiring p≥0.5p \ge 0.5 as well lowers RefCOCO val from 93.2 to 92.0: the negatives cost about one point of recall on clean positives.

Table 1. Referring expression comprehension, Acc@0.5. Baselines as reported in their papers; ‡ our run of the generative base model on a random 500-expression sample.
ModelRefCOCORefCOCO+RefCOCOg
valtestAtestBvaltestAtestBvaltest
MDETR87.590.482.781.185.573.083.483.3
OFA-L90.192.985.385.889.979.285.986.6
Grounding DINO-L90.693.288.282.889.075.986.187.0
Shikra-7B87.090.680.281.687.472.182.382.2
Ferret-7B87.591.482.580.887.473.183.984.8
Qwen2.5-VL-3B89.191.784.082.488.074.185.285.7
Qwen2.5-VL-7B90.092.585.484.289.176.987.287.2
Qwen3.5-4B (base)91.4‡–––––––
Glance-4B-preview93.294.590.789.793.384.690.090.4

Rejecting descriptions that match nothing

Table 2 measures the problem from the introduction directly. N-acc is the fraction of gRefCOCO no-target expressions the model rejects, with Glance rejecting when p<0.5p < 0.5. Glance-4B-preview rejects 87.4 / 80.8 / 77.1% on val / testA / testB, ahead of every model we could compare against: its own base model rejects 65.0% on val, and Qwen3-VL-4B 77.2%.

The presence probability also ranks well. Pooled over gRefCOCO and RefCOCO val, its AUROC is 97.9, and its expected calibration error (15 bins) is 2.4%; that of the box confidence is 3.8%. A probability of 0.9 means about nine times in ten.

On the official GREC metric, Pr@(F1 = 1), Glance-4B-preview is close to Qwen3-VL-4B on val and well behind on testA and testB. This metric counts a sample as correct only when all its targets are found, and Glance-4B-preview returns one box per question, so every multi-target expression is wrong by construction; testA and testB contain many of them.

Table 2. No-target rejection (N-acc) and the official GREC metric on gRefCOCO. MCN, VLT, MDETR and UNINEXT as reported by He et al. (2023); Qwen3-VL-4B as reported by Yang et al. (2026). ‡ our run on a random 500-expression sample.
ModelN-acc (no target)Pr@(F1 = 1)
valtestAtestBvaltestAtestB
MCN30.632.030.328.032.326.8
VLT35.234.132.536.640.230.2
MDETR36.334.531.042.750.036.5
UNINEXT50.649.348.258.246.442.9
Qwen3.5-4B (base)65.0‡–––––
Qwen3-VL-4B77.270.270.272.468.062.2
Glance-4B-preview87.480.877.171.647.551.3

Speed

Glance reads answers from heads instead of generating them, and every question shares one prefill, so a question costs a short block rather than a decoding loop. We serve Glance-4B-preview with Glance-Engine, our GPU inference engine, and compare it with vLLM 0.34 and SGLang 0.5.23 serving the base Qwen3.5-4B on the same requests: boxes decoded greedily (up to 24 tokens) and yes/no answers as one token with log-probabilities, with prefix caching and CUDA graphs on. All three run in BF16 on one RTX PRO 6000, and Figure 3 reports warm median latency.

Grouped bar charts of latency in milliseconds for Glance-Engine, vLLM and SGLang. (a) One image with 1, 8 or 32 box questions: Glance 37.7, 38.5 and 48.9 ms; vLLM 166.5, 221.0 and 334.0 ms; SGLang 187.3, 395.8 and 658.0 ms. (b) One new box question over 64 or 256 images already read, log scale: Glance 23.7 and 96.7 ms; vLLM 899.1 and 3,151.6 ms; SGLang 1,556.6 and 7,732.9 ms. (c) One yes/no question over 32 to 256 new images: Glance 301.7, 602.1, 1,207.5 and 2,420.5 ms; vLLM 322.8, 629.4, 1,244.7 and 2,495.9 ms; SGLang 461.0, 848.4, 1,567.6 and 2,997.1 ms.
Figure 3. Speed. Warm median latency on one RTX PRO 6000, all in BF16. Glance-4B-preview runs on Glance-Engine; vLLM and SGLang serve the generative Qwen3.5-4B for the same requests. (a) Questions about one image. (b) One new question over images whose prefixes are already cached. (c) One question each over images that have not been read yet.

More questions per image. One box question takes 37.7 ms and 32 take 48.9 ms, against 166.5 and 334.0 ms for vLLM. The lead grows from 4.4× to 6.8× with the number of questions, because each extra question adds a short block to one batched pass instead of another decoding loop. vLLM with FP8 weights and speculative decoding, a lossy configuration, brings one question down to 99.2 ms, still 2.6× slower.

More images. Glance-Engine keeps the prefix state of every image it has read. A new question over 256 such images takes 96.7 ms: 33× faster than vLLM with prefix caching and 80× faster than SGLang. When the images are new, encoding them dominates and every engine does the same vision work. Glance-Engine is then 1.03–1.07× faster than vLLM and 1.2–1.5× faster than SGLang over 32 to 256 images.

Description shift

Rejecting the wrong descriptions is only half of granularity; the other half is accepting the right ones when they are worded differently. We take about 600 referents from the RefCOCO/+/g val splits and describe each several ways with a language model: a paraphrase, and a vague casual reference (“the guy on the left”). For 300 objects whose category is unique in their image we add two coarser descriptions: function only (“something to drink from”) and the supercategory alone. Accuracy here requires p≥0.5p \ge 0.5 and IoU ≥ 0.5. We compare against the generative base model, whose confidence is its probability of not answering “absent”.

Table 3. Description shift on val referents. Accuracy (gated Acc@0.5) on present objects described by the original expression, a paraphrase, a vague reference, its function only, or its supercategory; N-acc on gRefCOCO val no-target expressions and their rewrites; overconfident errors are wrong answers given with confidence above 0.8, over all items.
ModelPresent: accuracy by wordingAbsentAll items
Orig.Para.VagueFunc.Super.N-accOverconf. ↓ECE ↓
Qwen3.5-4B (base)88.688.983.679.053.863.518.220.0
Glance-4B-preview88.688.183.659.243.588.03.72.9

Table 3 shows both sides of what the negatives teach. Wording that keeps the granularity of the original, a paraphrase or a vague reference, costs nothing. Glance rejects far more absent descriptions, and its wrong answers are rarely confident: 3.7% of answers are wrong with confidence above 0.8, against 18.2% for the base model. But descriptions coarser than the training expressions are often rejected. For function-only descriptions, 19% of present objects are called absent, against 3% for the base model.

The negatives taught the model that a word without a match in the image makes a description false. Nothing in the data taught it that a coarser word, a function or a supercategory, can still match. Semantic granularity runs in both directions, and our data covers one of them.

Conclusion

Referring-expression benchmarks reward a model for finding the right box without checking that it read the whole description. Building negatives at the category, attribute and instance level from the same images makes every granularity matter, and a readout head turns the answer into a probability that can be trusted. With one epoch of training on one GPU, Glance-4B-preview grounds better than larger vision-language models and rejects descriptions that match nothing far more reliably.

References

  1. Shuai Bai, Keqin Chen, Xuejing Liu, et al.. Qwen2.5-VL Technical Report. arXiv:2502.13923, 2025a.
  2. Shuai Bai, Yuxuan Cai, Ruizhe Chen, et al.. Qwen3-VL Technical Report. arXiv:2511.21631, 2025b.
  3. Keqin Chen, Zhao Zhang, Weili Zeng, et al.. Shikra: Unleashing Multimodal LLM's Referential Dialogue Magic. arXiv:2306.15195, 2023.
  4. Matt Deitke, Christopher Clark, Sangho Lee, et al.. Molmo and PixMo: Open Weights and Open Data for State-of-the-Art Vision-Language Models. arXiv:2409.17146, 2024.
  5. Aarash Feizi, Shravan Nayak, Xiangru Jian, et al.. Grounding Computer Use Agents on Human Demonstrations. arXiv:2511.07332, 2025.
  6. Shuting He, Henghui Ding, Chang Liu, and Xudong Jiang. GREC: Generalized Referring Expression Comprehension. arXiv:2308.16182, 2023.
  7. Edward J. Hu, Yelong Shen, Phillip Wallis, et al.. LoRA: Low-Rank Adaptation of Large Language Models. ICLR, 2022.
  8. Aishwarya Kamath, Mannat Singh, Yann LeCun, et al.. MDETR: Modulated Detection for End-to-End Multi-Modal Understanding. ICCV, 2021.
  9. Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara L. Berg. ReferItGame: Referring to Objects in Photographs of Natural Scenes. EMNLP, 2014.
  10. Tsung-Yi Lin, Michael Maire, Serge Belongie, et al.. Microsoft COCO: Common Objects in Context. ECCV, 2014.
  11. Chang Liu, Henghui Ding, and Xudong Jiang. GRES: Generalized Referring Expression Segmentation. CVPR, 2023.
  12. Shilong Liu, Zhaoyang Zeng, Tianhe Ren, et al.. Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection. ECCV, 2024.
  13. Junhua Mao, Jonathan Huang, Alexander Toshev, et al.. Generation and Comprehension of Unambiguous Object Descriptions. CVPR, 2016.
  14. Varun K. Nagaraja, Vlad I. Morariu, and Larry S. Davis. Modeling Context Between Objects for Referring Expression Understanding. ECCV, 2016.
  15. Qwen Team. Qwen3.5: Towards Native Multimodal Agents. Blog post, 2026.
  16. Damien Sileo. tasksource: A Dataset Harmonization Framework for Streamlined NLP Multi-Task Learning and Evaluation. arXiv:2301.05948, 2023.
  17. Peng Wang, An Yang, Rui Men, et al.. OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Framework. ICML, 2022.
  18. Zhiyong Wu, Zhenyu Wu, Fangzhi Xu, et al.. OS-ATLAS: A Foundation Action Model for Generalist GUI Agents. arXiv:2410.23218, 2024.
  19. Chi Xie, Zhao Zhang, Yixuan Wu, et al.. Described Object Detection: Liberating Object Detection with Flexible Expressions. NeurIPS, 2023.
  20. Yiheng Xu, Zekun Wang, Junli Wang, et al.. Aguvis: Unified Pure Vision Agents for Autonomous GUI Interaction. arXiv:2412.04454, 2024.
  21. Songlin Yang, Jan Kautz, and Ali Hatamizadeh. Gated Delta Networks: Improving Mamba2 with Delta Rule. ICLR, 2025.
  22. Xuzheng Yang, Jun Ling, Tao Huang, Caiyan Qin, and Peng Wang. Teaching MLLMs to Say No: Generalized Referring Expression Comprehension via Refusal Calibrated GRPO. arXiv:2608.04698, 2026.
  23. Haoxuan You, Haotian Zhang, Zhe Gan, et al.. Ferret: Refer and Ground Anything Anywhere at Any Granularity. ICLR, 2024.
  24. Licheng Yu, Patrick Poirson, Shan Yang, Alexander C. Berg, and Tamara L. Berg. Modeling Context in Referring Expressions. ECCV, 2016.
  25. Mert Yuksekgonul, Federico Bianchi, Pratyusha Kalluri, Dan Jurafsky, and James Zou. When and Why Vision-Language Models Behave like Bags-of-Words, and What to Do About It?. ICLR, 2023.

Citation

If you find this work useful, please cite it as:

@misc{zhang2026glance,
  title  = {{Glance: Box Grounding at the Granularity of the Words}},
  author = {Zhang, Qian and Gao, Zexuan},
  year   = {2026},
  url    = {https://happyfox.dev/blog/glance/},
  note   = {Blog post}
}
← All posts