# Xiaomi-Lens-0

> Source: https://aiwiki.ai/wiki/xiaomi_lens_0
> Updated: 2026-12-01
> Categories: AI Models, Computer Vision, Multimodal AI
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Xiaomi-Lens-0." aiwiki.ai, 1 Dec 2026. https://aiwiki.ai/wiki/xiaomi_lens_0
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Xiaomi-Lens-0** is a [vision-language model](https://aiwiki.ai/wiki/vision_language_model) from [Xiaomi](https://aiwiki.ai/wiki/xiaomi_ai) that can point out the objects it describes in an image. Built on [Qwen3.5-4B](https://aiwiki.ai/wiki/qwen3_5), it can return a [bounding box](https://aiwiki.ai/wiki/bounding_box) around an object and a [segmentation mask](https://aiwiki.ai/wiki/image_segmentation) that follows its outline pixel by pixel. In one demonstration, a request for something that could hold a gift produces a separate mask for each of two gift boxes on a table. Pei Fu and colleagues first posted the technical report on October 16, 2026. [1][2]

## How the model identifies a region

The model uses one vision encoder for both language generation and segmentation. The language model receives image patches grouped into coarser visual tokens. When it generates a special mask token, a small decoder matches that token's hidden state against the finer grid of patches retained by the vision encoder. This lets the decoder recover the shape of the object described in the text. A response can contain several mask tokens, each referring to a different region. [1][2]

Mask tokens can also occur before the final answer. For a counting question, for example, the response can mark individual objects as it counts them. The decoder makes those intermediate regions visible to a reader. The language model continues generating text from the original image and the preceding tokens. The implementation does not feed the decoded masks back as cropped images. [1][3]

The researchers first trained the mask decoder using features from a frozen backbone. They then trained the backbone and decoder together to predict the next token and match target masks. The examples included instructions paired with object outlines and worked answers with masks for the intermediate objects they mentioned. [1][3]

## Evaluation

The researchers designed **LensBench** to test how much the wording of a request changes the mask a model produces. It contains 1,200 human-reviewed units, divided equally among everyday, aerial, driving and panoramic imagery. Each unit has four instructions, two for a single object and two for a group. In each pair, one instruction names the category and the other describes the same target indirectly, for example by its use. Since the target mask stays fixed within each pair, the benchmark can compare explicit and implicit wording on the same pixels. [1][2]

| LensBench measure | Explicit wording | Implicit wording |
| --- | ---: | ---: |
| Cumulative intersection over union of predicted and target masks | 71.4% | 54.7% |
| Examples with mask intersection over union of at least 0.5 | 85.0% | 70.0% |

These are the Xiaomi team's results, pooled across single and multiple targets. For the first measure, intersections and unions are summed across examples, so larger target regions carry more weight. The second measure counts each example once. For requests involving several objects, the evaluation combines their masks before scoring. [1][2]

On eight splits of the RefCOCO family of datasets, the researchers reported an average gain of 5.6 percentage points over Qwen3.5-4B in locating a described object by its box. They also tested [visual question answering](https://aiwiki.ai/wiki/visual_question_answering) without requiring a box or mask in the final answer. On CountQA, a benchmark that asks models to count objects in cluttered photographs, Xiaomi-Lens-0 answered 50.6% correctly, compared with 43.8% for its backbone. [1][5]

## Weights and software

Xiaomi distributes the weights under the [Apache License 2.0](https://aiwiki.ai/wiki/apache_license). Its code repository includes programs for inference, evaluation and [fine-tuning](https://aiwiki.ai/wiki/fine_tuning). The reference implementation processes still images. It returns masks on the resized image used by the vision encoder, so an application drawing them on the original photograph must account for the resize. Xiaomi's model card identifies small, partly hidden and ambiguous targets as common sources of errors. [3][4]

## References

1. Pei Fu, Yike Liu, Yue Sun, et al. [Xiaomi-Lens-0 Technical Report](https://arxiv.org/html/2610.23279v2). arXiv:2610.23279, October 2026.
2. Xiaomi Research, SeerRay Lab. [Xiaomi-Lens-0 project page, demonstrations and evaluation tables](https://xiaomi-research.github.io/xiaomi-lens-0/).
3. Xiaomi Research. [Xiaomi-Lens-0 code, training and evaluation documentation](https://github.com/xiaomi-research/xiaomi-lens-0). GitHub.
4. Xiaomi Research. [Xiaomi-Lens-0 model card and weights](https://huggingface.co/xiaomi-research/xiaomi-lens-0). Hugging Face.
5. Jayant Sravan Tamarapalli, Rynaa Grover, Nilay Pande and Sahiti Yerramilli. [CountQA: How Well Do MLLMs Count in the Wild?](https://arxiv.org/abs/2508.06585). arXiv:2508.06585, 2025.

