Xiaomi open-sourced a 4B vision model that adds only one token
Published on December 1, 2026Industry Information

Xiaomi has open-sourced a 4B multimodal model called Xiaomi-Lens-0, built on Qwen3.5-4B (Zhidx, 2026-11-30).
Its job is concrete: given a sentence, box the thing it refers to, or output a pixel-level mask. Referring expression comprehension, referring segmentation, reasoning segmentation, fine-grained perception, embodied referring, and multi-instance grounding, six task families in one model.
The release includes weights, inference code, evaluation code and two-stage training code, on GitHub at xiaomi-research/xiaomi-lens-0, with HuggingFace and a project page. For a model grown out of a phone business, that is an unusual degree of openness.
It is already shipping. In the HyperOS 4 and Super Xiaoai 2.0 Inspiration Ball feature, a user uploads a screenshot, drags a coordinate and speaks a sentence, and the model circles the matching region. It is live on the Xiaomi 18 Fold and REDMI K100 (Zhidx, 2026-11-30).
The most interesting part of the architecture is what it leaves out.
Most segmentation models bolt a heavy mask head onto the language model, importing SAM or fusing multi-scale features, which doubles parameters and memory. Lens-0 adds one special token, |mask|, and a lightweight decoder: a single Transformer layer, a linear projection and two transposed convolutions, under 2% new parameters. Text and masks share one visual backbone instead of a second feature path (Zhidx, 2026-11-30).
Inference runs in three steps. The model autoregressively generates text or a reasoning chain. When a mask is needed, it emits the |mask| token. The hidden state at that position becomes the target representation, goes through the decoder into a query vector, matches image patch features and is upsampled into a mask. The mask branch does not backpropagate; training sums language and mask losses.
The implication: segmentation emerges from the language model's representation rather than being attached to it. Where |mask| lands in the sentence, and after which word, decides which object it must align to. The model has to resolve what the thing is before it can outline it.
Results on public benchmarks.
Across eight subsets of RefCOCO, RefCOCO+ and RefCOCOg, average Prec@0.5 is 92.9%, 5.6 points above the base. Among 16 compared models it ranks first on seven subsets. On RefCOCOg Test it reaches 92.4%, second, behind only Youtu-VL-4B (Zhidx, 2026-11-30).
RefCOCO+ TestB rises from the base's 79.1% to 88.5%, up 9.4 points. That subset omits location words from descriptions, so the model must judge by appearance and attributes; the jump says fine-grained attribute understanding genuinely changed.
Mask quality via F1@mIoU is 83.3, 81.1 and 81.1 on the three benchmarks, first among 18 models, 8.8, 11.6 and 9.5 points above the base. Tightening the IoU threshold to 0.95, near-exact overlap, its hit rate is 15.5% to 16.8% higher than the base. The stricter the threshold, the wider the gap, so edge precision improved for real.
Average cIoU is 81.4%, highest across eight subsets among 12 models, above Qwen3-VL-Seg-4B and Youtu-VL-4B.
Multi-instance cases were tested separately on COCO 2017. When one sentence refers to several objects of the same class, F1@mIoU is 63.9%, first among 17 models, versus 63.0% for GroundingPI and 60.6% for GroundingDINO.
On ReasonSeg for reasoning segmentation and RoboRefIt for embodied referring, it leads all eight metrics across eight models (Zhidx, 2026-11-30).
The team also built its own benchmark, LensBench: 1,200 paired units and 4,800 instructions drawn from settings public datasets miss.
Aerial-view referring comprehension reaches 79.6% Prec@0.5, first among compared models. Multi-object segmentation on panoramic images falls from 71.8% cIoU for an explicit method to 48.9%. That is the worst number in the set, and the team reported it itself: once fisheye distortion enters, directional judgement breaks down (Zhidx, 2026-11-30).
Training data is another engineering job. Referring segmentation datasets share two flaws: boxes and masks disagree, and one sentence can point at several objects. The team applied layered consistency checks, using relocation IoU to test box-mask agreement, semantic uniqueness screening to drop ambiguous samples, and keeping only verifiable answers and valid boxes in reasoning traces.
Training has two stages. The first aligns, freezing the vision and language backbones and training only the lightweight decoder and the |mask| embedding so the new token learns to point. The second fine-tunes everything, optimising language and mask losses together (Zhidx, 2026-11-30).
An ablation gives a useful number. With stage one alone, RefCOCO+ validation Prec@0.5 is 89.7%; adding stage two takes it to 92.1%. MME-RealWorld-CN moves from 66.1 to 67.5, up 1.4, which the team attributes to the perception gain from pixel-level mask supervision. Learning to segment does not just teach boundaries; it makes the model see more finely.
On-device, the positioning is clear. Four billion parameters, a mask head at 2%, and no second segmentation model at inference: memory and latency both drop.
The phone feature is the shipping form. Users do not say "segment this image"; they drag a point and say "make this red", and the model works out which region is meant.
Limits are visible. Strongly distorted inputs such as panoramas and fisheyes degrade badly. Multi-instance, occluded and small-object cases score well on benchmarks but may not in real photos. At 4B, long reasoning chains strain it.
For teams wanting segmentation on their own devices, the appeal is simplicity. No second vision encoder, no second set of weights to maintain; one token and a small decoder let the language model draw masks in passing (Zhidx, 2026-11-30).
The release even includes two-stage training code, so others can reproduce the alignment on their own data rather than only run inference. That is more useful than dropping weights alone.
