Glance-4B-v1.2b

v1.2 with multi-box heads: one question returns every instance an expression covers (gRefCOCO multi-target set F1 79.7), while single-box accuracy stays at v1.2's level (presence calibration is a little worse).

GitHub (code, docs) · Glance-4B-preview · Results · Known regressions · Quick bench · Versions

Glance turns Qwen3.5-4B (LoRA r=64 plus small readout heads) into a decision function: give it an image or a text and a list of typed questions (find this object, pick an option, yes or no, rate on a scale), and it returns calibrated probabilities for all of them from one shared-prefix forward pass, including a probability that the target is not there at all. The preview card explains the model; this card covers what is different in this checkpoint.

Status: superseded by Glance-4B-v1.3b (same heads on the stronger v1.3, set F1 82.7). Kept for reproducibility.

What is in this repository

File Content
adapter_model.safetensors LoRA (r=64, alpha=128) on all linear layers of the Qwen3.5-4B language model, fp32 (122 M parameters)
heads.safetensors single-box heads (presence, patch choice, 4 ordinal edge distributions, IoU) and the typed label readout, fp32 (12 M parameters)
multibox_heads.safetensors multi-box heads (centre heat map, per-candidate match, count 1 / 2 / 3 / 4+), fp32 (6.6 M parameters)
glance_config.json base model id, LoRA and head config, prompt limits, per-type temperatures, version

The base weights are not included; they load from Qwen/Qwen3.5-4B (Apache-2.0). The weights need the glance package (0.2.0 or later for the multi-box heads).

What changed from v1.2

The v1.2 model plus a multi-instance readout on the same <|box_start|> features. Single-box answers (box, ask with Box) still come from the v1.2 heads; Boxes questions use the new heads:

  • Heat map over the image's patches: a logit that each patch holds the centre of a referent. Its local maxima (top 16) are the candidates, and the single-box edge head, read at each candidate patch, gives that candidate's box.
  • Match head: P(candidate is a distinct correct box | present). Box confidence = P(present) · P(match).
  • Count head: P(n = 1, 2, 3, 4+ | present). Decoding keeps the top-n candidates by P(match) after NMS (IoU 0.7), with n from the count head; with "4+" it keeps every candidate with P(match) ≥ 0.5.

Training: 450 steps on the new heads only, then 1,200 joint steps (LoRA lr 2e-5, heads 5e-5; the multi-box heads' gradients do not flow into the backbone) on multi-instance data plus Glance-COCO and replay. This is the winner of a pre-registered comparison of two multi-box heads trained on the same data and steps: this heat-map head (79.7) versus a per-patch objectness head (76.9). The first heat-map run diverged (68.1); it was rerun with a lower heat-map learning rate, its own gradient clipping and a corrected focal-loss normalisation, and the rerun was registered as the deciding run before its result was known.

Results

Pass bars were written before training (relative to v1.2). 5 of 6 pass; M2 could not be judged because its reference value was never measured.

# Benchmark Metric v1.2 v1.2b Bar
M1 gRefCOCO val, multi-target expressions set F1, gated on presence — 79.5 ≥ 70² ✅
M2 COCO all-instances val set F1 not measured 69.8 > v1.2 single box —³
M3 Diagnostic: count negatives N-acc 100.0 99.7 ≥ 97.0 ✅
M4 RefCOCO / + / g, 8-split mean Acc@0.5 91.4 91.24 ≥ 90.9 ✅
M5 gRefCOCO val (no-target) N-acc 83.8 84.8 ≥ 82.8 ✅
M6 gRefCOCO val, multi-target expressions set F1, ungated — 79.7 ≥ 77.3 ✅

² For reference, single-box v1.1 scores 51.0. ³ The single-box v1.2 value on this set was never measured, so the bar cannot be judged. For scale, single-box v1.3 scores 37.7 there.

Set F1 (M1, M6): per expression with two or more targets, one-to-one greedy matching at IoU ≥ 0.5, F1 = 2·TP / (|predicted| + |true|), averaged over the 5,324 expressions. 77.3 in M6 is the number reported for Glance-X-4B (our separate open-vocabulary grounding model) on this definition; we did not re-measure it.

How it picks boxes on the 5,324 multi-target expressions (mean 2.01 targets): exact count 96.2%, precision of the chosen boxes 80.4%, recall 79.1%, and the candidate set contains 91.4% of all targets.

Single-box results: RefCOCO 93.3 / 94.9 / 91.5 (val / testA / testB), RefCOCO+ 90.0 / 93.4 / 85.9, RefCOCOg 90.3 / 90.7 (val / test); gRefCOCO AUROC of P(present) 98.8, ECE 4.9%. GUI and text benchmarks were not re-run for this checkpoint.

How these numbers were measured

  • One evaluation run of the released checkpoint, the final step of training. No checkpoint selection, threshold or mixture tuning on any evaluation set; temperatures and decoding thresholds are fitted on held-out splits of the training distribution only.
  • The pass bars were written down before training started (a pre-registration per version). A failed bar is reported as failed; fixes go into the next version, never back into this one.
  • Natural images ≤640 visual tokens; GUI benchmarks at native resolution (≤8,192 visual tokens, no upscaling), single pass, no zoom. RefCOCO Acc@0.5 ignores the presence gate (standard REC). Presence thresholds are 0.5 on the raw P(present) unless stated.
  • Description shift is our wording-robustness set: positives described only by function ("something to sit on"), by a generic word ("the object"), or by a relation ("the thing left of the cup"), plus matched absent-target versions, with expressions written by a different LLM pipeline than the training data and images disjoint from training. A cleaned version is public as Glance-COCO robust; the numbers here are on the original set.
  • VenusBench-GD (official) uses the official UI-Venus evaluator; when Glance says "not present" it gives no click (a refused positive is wrong). GREC (official) is the gRefCOCO refexp scorer at threshold 0.7.
  • Diagnostic set rows come from 300 held-out images of the same templates as part of the training data. A text-only classifier (no image) separates present from absent there at AUROC 0.93, so those rows show the model did not forget its training distribution; they are not evidence that it looks at the image. External sets (RefCOCO, gRefCOCO, description shift) carry the grounding claims.

Known regressions

  • Everything listed on the v1.2 card still applies: RefCOCO 91.4 is below v1.1, Chinese and relational negatives are weaker, GUI over-refusal remains.
  • Presence calibration is worse than v1.2: ECE of P(present) on gRefCOCO 4.9% (v1.2: 3.3%). Recalibrate on your data if you depend on thresholds.
  • The win over the objectness head comes from the count head. With the same threshold decoding for both heads, this one scores 76.3 versus 76.9.

Recommended use

Reproducing v1.2b. For multi-target use take v1.3b.

Usage

pip install "glance @ git+https://github.com/Vision-Decision/Glance"
pip install flash-linear-attention   # optional, CUDA only
from glance import Glance, Box, Boxes, Choice, YesNo

m = Glance.from_pretrained("Vision-Decision/Glance-4B-v1.2b")
m.box("park_bench.jpg", "the clear umbrella")            # BoxResult: present_prob, box, confidence
m.yesno("editor.png", "Is a save dialog open?")          # YesNoResult: p_yes
m.ask("vegetables.jpg", ["the broccoli", "a banana",     # many questions, one shared-prefix pass
                         Choice("What is the main food group?", ["vegetables", "meat", "dairy", "grains"])])

# every instance an expression covers (multi-box heads)
m.boxes("park_bench.jpg", "the people on the bench")
# BoxesResult: present_prob, boxes=[...], confidences=[...], count_probs={'1': .., '2': .., '3': .., '4+': ..}

The API and the example images are the same as for Glance-4B-preview; see the GitHub README for details.

Quick bench (subset)

A few-minute sanity check anyone can rerun: python examples/quick_bench.py --model Vision-Decision/Glance-4B-v1.2b from the GitHub repository.

Version RefCOCO val Acc@0.5 (200) gRefCOCO no-target N-acc (200) gRefCOCO multi-target set F1 (100) ScreenSpot-v2 click (100) Latency, 1 / 8 questions (ms)
v1 (Glance-4B-preview) 93.5 86.5 47.3 (1 box) 91.0 96 / 97
v1.1 (Glance-4B-v1.1) 96.0 86.5 48.7 (1 box) 93.0 92 / 92
v1.2 (Glance-4B-v1.2) 93.0 85.0 50.0 (1 box) 94.0 91 / 92
v1.2b (Glance-4B-v1.2b) 94.0 86.0 75.0 93.0 92 / 92
v1.3 (Glance-4B-v1.3) 94.0 87.0 46.5 (1 box) 94.0 91 / 92
v1.3b (Glance-4B-v1.3b) 93.5 85.0 82.3 93.0 91 / 91

These are subset numbers, not the full results above. Item ids are fixed (seed 0) in examples/quick_bench_items.json; one standard error is about 2 points at 90% accuracy on 200 items and 3 on 100, so small differences between versions are noise. RefCOCO is Acc@0.5 without the presence gate; no-target N-acc counts P(present) < 0.5; multi-target set F1 asks a Boxes question (gated on presence; single-box models answer one box); ScreenSpot-v2 is click accuracy at ≤2,048 visual tokens; latency is the median ask() over 30 RefCOCO images with 1 and 8 box questions. All rows: one NVIDIA RTX PRO 6000 Blackwell Server Edition (Colab G4), bfloat16, flash-linear-attention on, torch 2.14.1+cu130, transformers 5.22.1; one run per version, about 1.5 min each with data and base weights cached (the first run also downloads the base model, about 400 COCO images and 100 screenshots).

Versions

Every Glance checkpoint is its own repository and loads with Glance.from_pretrained(repo). Each card lists what changed, full results against that version's pre-registered pass bars and its known regressions; a quick bench across all versions is in the GitHub README.

Version Repository Built from What it is Use it for
v1 Glance-4B-preview Qwen3.5-4B first public release the reference preview
v1.1 Glance-4B-v1.1 Qwen3.5-4B v1 recipe plus high-resolution GUI data and more natural images reproducing v1.1
v1.2 Glance-4B-v1.2 v1.1 fixes false "not present" on function, generic and relational wording; RefCOCO drops reproducing v1.2
v1.2b Glance-4B-v1.2b v1.2 v1.2 plus multi-box heads reproducing v1.2b
v1.3 Glance-4B-v1.3 v1.2 re-balanced mix: RefCOCO recovers, wording fixes kept; Chinese negatives regress single-box use
v1.3b Glance-4B-v1.3b v1.3 v1.3 plus multi-box heads; RefCOCO 0.72 below v1.3 multi-target use

License

  • These weights (adapter and heads): CC BY-NC 4.0, non-commercial use only. The training data includes gRefCOCO, which is licensed for non-commercial use, and some text sources whose licenses we could not confirm, so we release the weights under a non-commercial license.
  • The base model Qwen/Qwen3.5-4B is Apache-2.0 and is downloaded from its own repository.
  • The inference code (GitHub) is Apache-2.0.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Vision-Decision/Glance-4B-v1.2b

Finetuned
Qwen/Qwen3.5-4B
Adapter
(1,233)
this model

Collection including Vision-Decision/Glance-4B-v1.2b