# 🔍 Xiaomi-Lens-0: open 4B model marks objects in images down to the pixel

AI Today · published 2026-12-01T06:30:00Z · https://ai-today.com/product/434550aa-4a6f-4e3d-8572-1fe4f4874caa?lang=en

- 🔍 Xiaomi-Lens-0 is a 4-billion-parameter vision-language model that marks the object you describe in an image as a pixel mask.
- 📦 Weights and code are under the Apache 2.0 licence on Hugging Face, and an online demo runs on Hugging Face Spaces.
- 📊 On Xiaomi's own LensBench it ranks second behind GPT-6-Astra on explicit instructions, but drops clearly on vague instructions and panoramas.

🔍 Xiaomi has released **Xiaomi-Lens-0**, a vision-language model with 4 billion parameters that does not only name what is in an image but marks the region you mean as a pixel mask. You describe the object in plain language ("the dog on the left") and the model returns a box and a mask. It is built on Qwen3.5-4B plus a lightweight mask decoder. According to its model card, weights and inference code are open under Apache 2.0, but they need a CUDA GPU. 📊 On the self-made LensBench it ranks second behind GPT-6-Astra for clear instructions and leads on aerial images in precision.

**What the model does.** According to the model card, Xiaomi-Lens-0 handles several tasks around image regions: finding and cutting out a described object (referring expression comprehension and segmentation), locating several matching objects at once, answering questions that need reasoning ("What can be squeezed onto seafood as a tangy flavour enhancer?"), tying robot-style instructions such as "Pass me the white cup on the left" to an object, and answering finer perception questions, for example counting things or naming the colour of a trailer. Masks can appear in the final answer or already during the model's reasoning.

**How it is built.** The starting point is Qwen3.5-4B from Alibaba Cloud. Xiaomi adds a lightweight mask decoder. When the model emits a special `<|mask|>` token while answering, the decoder combines that token's internal state with the features of the vision encoder and rebuilds the mask, so no separate segmentation encoder is needed. Training has two steps: the decoder first, then the whole model with language and pixel-level supervision. The technical report on [arXiv](https://arxiv.org/abs/2610.23279) (submitted 16 October 2026) describes the method and reports an average gain of 5.6 points over Qwen3.5 on the eight RefCOCO splits and the highest segmentation cIoU among the models it compared. The model was therefore presented in October; the Russian-language outlet Habr, in a post by the IT provider Selectel on 1 December, is what brought the weights release into the news.

**The numbers.** Xiaomi introduces the test LensBench: 1,200 expert-checked image units with 4,800 instructions across general, aerial, driving and panoramic imagery. Per the model card, Xiaomi-Lens-0 scores 71.4 (cIoU) and 85.0 per cent (Prec@0.5) on explicit instructions, just behind GPT-6-Astra at 72.6 and 86.3. On aerial images its Prec@0.5 of 79.6 is the best in the table (GPT-6-Astra: 76.9). On panoramic images its 72.1 trails Gemini-3.6-Flash (80.3) and GPT-6-Astra (88.3). The specialist SAM 3 scores far lower in the same table (17.3 and 38.1 on explicit instructions). All figures come from the maker.

**Limits.** Vague instructions are the weak spot: with implicit instructions cIoU falls from 71.4 to 54.7 and Prec@0.5 from 85.0 to 70.0. The gap is largest for several targets in panoramic scenes (cIoU from 71.8 to 48.9). The card warns that predictions can miss objects or give inaccurate boxes and masks, especially for small, occluded or ambiguous regions, and that the supplied inference path supports images only, not video.

**Trying it.** There is an online demo on Hugging Face Spaces that needs no installation. Locally the model needs Python 3.10 or newer and a CUDA GPU with bfloat16 and FlashAttention-2. After installing the inference package from the code repository, a script takes an image and an instruction and returns text, boxes (coordinates from 0 to 1000) and masks. For vLLM serving, text generation and mask decoding run as two separate services. The licence is Apache 2.0; Xiaomi holds the copyright of the modifications, Alibaba Cloud that of Qwen3.5-4B. Note: the [model card](https://huggingface.co/guarin/Xiaomi-Lens-0) we read sits on Hugging Face under the account "guarin"; we could not open an official Xiaomi account, so licence and figures here come from that card and the report.

## Sources

- [Xiaomi-Lens-0 Technical Report](https://arxiv.org/abs/2610.23279)
- [Вышла Xiaomi-Lens-0](https://habr.com/ru/companies/selectel/articles/1114572)
- [Xiaomi-Lens-0 model card](https://huggingface.co/guarin/Xiaomi-Lens-0)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
