Glance-4B-v1.2
v1.1 trained on expressions without category words and on matched negatives: it stops rejecting real targets described by function, a generic word or a relation (false "not present" 37β51% β 1β4%), at the cost of 1.4 points of RefCOCO.
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. Kept for reproducibility. Glance-4B-v1.3 keeps these gains and recovers RefCOCO.
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) |
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.
What changed from v1.1
Continued from v1.1 for 3,800 steps, same architecture.
- Expressions without category words. New positives that name the target only by function ("something to sit on"), a generic word ("the object") or a relation ("the thing left of the cup"), each paired with a same-type negative on an image without the target. Written by Qwen3.8-27B on images disjoint from every evaluation set.
- Glance-COCO (single-target view, 24,406 COCO train2014 images): location words, superlatives, bare category names, attribute and relation hard negatives, count negatives, in English and Chinese.
- Consistency loss (weight 0.5) that pulls paraphrases of the same present target towards the same answer; applied to present targets only, because pulling absent ones towards an anchor cost ~5 points of N-acc in a pilot.
- Longer box questions: up to 96 tokens (was 40), since long GUI instructions were being truncated.
- Replay of the v1.1 mix reduced to ~75% (650k questions).
Results
Pass bars were written before training: description shift (A), diagnostic set (B), keep v1.1's level (C) and official protocols (D). 15 of these 22 bars pass; v1.3 is judged on the same 22.
| # | Benchmark | Metric | v1.1 | v1.2 | Bar | |
|---|---|---|---|---|---|---|
| A1 | Description shift: function-only | false "not present" (β) | 36.8% | 0.9% | β€ 10% | β |
| A2 | Description shift: generic (positives) | false "not present" (β) | 44.1% | 2.8% | β€ 10% | β |
| A3 | Description shift: relational (positives) | false "not present" (β) | 50.7% | 3.6% | β€ 10% | β |
| A4 | Description shift: relational | gated Acc@0.5 | 13.6 | 62.4 | β₯ 40 | β |
| B1 | Diagnostic: count negatives | N-acc | 46.9 | 100.0 | β₯ 65 | β |
| B2 | Diagnostic: location / superlative on a single instance | accepted | 33.8 | 99.5 | β₯ 70 | β |
| B3 | Diagnostic: bare category name | gated Acc@0.5 | 44.1 | 87.8 | β₯ 60 | β |
| B4 | Diagnostic: attribute hard negatives | N-acc | 68.4 | 94.4 | β₯ 68.4 | β |
| B5 | Diagnostic: relation hard negatives | N-acc | 30.0 | 93.6 | β₯ 30.0 | β |
| C1 | RefCOCO val | Acc@0.5 | 94.9 | 93.5 | β₯ 94 | β |
| C2 | RefCOCO / + / g, 8-split mean | Acc@0.5 | 92.8 | 91.4 | β₯ 92.5 | β |
| C3 | gRefCOCO val (no-target) | N-acc | 86.0 | 83.8 | β₯ 86 | β |
| C4 | gRefCOCO val | ECE of P(present), calibrated (β) | 3.6% | 3.3% | β€ 3.0% | β |
| C5 | VenusBench-GD | refusal | 82.2 | 83.8 | β₯ 81 | β |
| C6 | VenusBench-GD | grounding (positives) | 55.2 | 56.0 | β₯ 53 | β |
| C7 | ScreenSpot-v2 | click accuracy | 89.2 | 89.9 | β₯ 88 | β |
| C8 | OpenDecisions | capability (raw) | 67.8 | 66.4 | β₯ 66 | β |
| D1 | VenusBench-GD, official evaluator | Overall | 40.7ΒΉ | 46.0 | β₯ 45 | β |
| D2 | VenusBench-GD, official evaluator | Refusal | β | 83.4 | β₯ 80 | β |
| D3 | VenusBench-GD, official evaluator | positives accepted | β | 60.2% | β₯ 70% | β |
| D4 | GREC official, val | N-acc | 89.6 | 87.8 | β₯ 90 | β |
| D5 | GREC official, val | Pr@F1=1 | 72.2 | 70.8 | β₯ 72 | β |
ΒΉ v1.1 at β€2,048 GUI tokens, v1.2 at native resolution; not like-for-like.
RefCOCO splits (Acc@0.5): RefCOCO 93.5 / 95.1 / 91.5 (val / testA / testB), RefCOCO+ 90.0 / 93.2 / 86.0, RefCOCOg 91.0 / 91.0 (val / test).
Reported without a bar: ScreenSpot-Pro 48.6 single pass (60.1 with crop-zoom, no training); description-shift Chinese Acc / N-acc 84.8 / 82.3, paraphrases 88.1 / 83.6, relational N-acc 64.3; latency 85 ms for 1 or 8 box questions (RTX PRO 6000).
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
refexpscorer 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
- RefCOCO β1.4 (8-split mean 92.8 β 91.4). 80% of the newly missed expressions are wrong boxes rather than refusals, mostly long expressions and anchored relations ("guy left of umbrella"). Replay of human-written expressions was cut to 36% of v1.1's amount, and the new relational sentences have the opposite structure (generic word + relation + named anchor).
- Absence on gRefCOCO β2.2 N-acc, GREC official β1.8. The new errors are short location phrases about absent objects ("left seat"): training had location-word negatives only of the form "same object, other side".
- Relational negatives: N-acc 80.5 β 64.3. Relational sentences starting with "the thing ..." were always positive in training.
- Chinese: Acc 90.1 β 84.8, N-acc 87.7 β 82.3; long multi-attribute Chinese expressions get rejected.
- GUI over-refusal remains: only 60% of present targets are accepted on VenusBench-GD (bar 70%).
- The diagnostic rows (B) are near 100 because they share templates with training; treat them as in-distribution only.
v1.3 targeted most of these with data changes (not by tuning this checkpoint): RefCOCO and relational negatives recovered, the Chinese fix overshot, and GUI over-refusal was not addressed by data. See its card.
Recommended use
Reproducing v1.2, or as the base of v1.2b. Otherwise use v1.3.
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.2")
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"])])
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.2 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.