Xiaomi open-sources 4B Xiaomi-Lens-0 for localization, segmentation and region-grounded reasoning

Built on Qwen3.5-4B, Xiaomi-Lens-0 uses shared visual features and a lightweight mask decoder for six tasks. The team reports a 5.6-point mean gain on eight RefCOCO-family splits, but implicit multi-target and panoramic tasks remain challenging; device interaction does not prove local inference.
The results in this article are evaluations by Xiaomi's team on the datasets and comparison models specified in its technical report; improvements are measured in percentage points. The official repository recorded the successive public release of weights and training code in October 2026. November 30 is the date of the original media report. The Inspiration Ball is an on-device interaction entry point. As the article describes, screenshots, coordinates and speech are uploaded to the cloud; the 4B parameter count alone does not establish that local operation has been validated on every kind of device.

It can understand conversational visual instructions and distinguish sizes and colors.
Zhidx reported on November 30 that Xiaomi had released and open-sourced the 4B multimodal model Xiaomi-Lens-0, which is built on the general-purpose multimodal model Qwen3.5-4B and can perform six categories of visual tasks: referring expression comprehension, referring expression segmentation, reasoning segmentation, fine-grained perception, embodied referring and multi-instance grounding. It can link target references and reasoning evidence to specific regions of an image.

The Inspiration Ball feature in Xiaomi's HyperOS 4 and Super XiaoAI 2.0 supports "one drag, one utterance" interaction without leaving the current page. Users drag the ball to a target position on the screen and say what they need; the system uploads the screenshot, drag coordinates and spoken instruction to the cloud together.
The feature uses referring-expression grounding derived from the Xiaomi-Lens-0 foundation and adapted to the business scenario. Combining page information with the drag anchor, it identifies what the user is pointing to within complex interfaces or images. The feature is now available on models including the Xiaomi 18 Fold and REDMI K100.

Xiaomi-Lens-0's model weights, inference and evaluation code, and code for both training stages are now all publicly available.

Github:
https://github.com/xiaomi-research/xiaomi-lens-0
Hugging Face:
https://huggingface.co/xiaomi-research/Xiaomi-Lens-0
Technical report:
https://arxiv.org/abs/2610.23279
Project website:
https://xiaomi-research.github.io/xiaomi-lens-0/
01.
Locating objects in an image with one sentence
And understanding instructions about the image
According to Xiaomi's team, Xiaomi-Lens-0's capabilities can be broadly divided into three parts:
1. Localization and segmentation
For descriptions combining position, appearance and action, such as "the dark brown bear on the left," "the smallest wooden spoon" or "the player running behind the pitcher," Xiaomi-Lens-0 uses bounding boxes for referring expression comprehension (REC), returning the target's location.


Segmentation masks also follow object contours to specify the area a target occupies in the image. For example, given instructions such as "the second piece of grapefruit from the left" or "the kite on the grass," the model performs referring expression segmentation (RES) along the object's outline.

2. Multiple targets and reasoning segmentation
When an image contains several objects of the same category, Xiaomi-Lens-0 supports multi-instance localization and segmentation from a single instruction.
For instructions such as "find all the oranges" or "mark every bottle in the image," the model identifies each individual target and outputs its corresponding bounding box and contour mask, localizing multiple objects. If the instruction does not explicitly name an object, the model first combines image information with commonsense reasoning to determine which objects meet the request, then generates segmentation results. This is reasoning segmentation.

Xiaomi-Lens-0 can also interpret questions such as "which one can be used to wrap a gift?" or "which one can add acidity when eating seafood?" It handles conversational interactions such as "pass me the cola on the right" or "get the white cup at the corner of the table," using relative position and visual attributes to identify the target for embodied referring.
3. Pointing while thinking
Beyond retrieving targets from instructions, Xiaomi-Lens-0 can mark relevant regions during complex visual reasoning, annotating key objects in the reasoning chain on the image and retaining the basis for its judgments, enabling fine-grained perception.
For example, when counting leaves, the model can mark each leaf it counts with a mask. When answering questions about colors in a local region of a large image or spatial relationships between objects, it also outlines the regions used as evidence. These image annotations let users visually check the identified instances and the reference regions corresponding to its conclusions.
02.
Localization and segmentation surpass the Qwen3.5-4B backbone
Highest accuracy among the evaluated models
Benchmark comparisons for Xiaomi-Lens-0 cover specialist localization and segmentation models, multimodal segmentation models, and open-source multimodal models with 3B–9B parameters, among others.

The specific results can be examined at three levels:
First, "how accurately does it find the target?"—that is, referring-expression localization and segmentation.
Across eight evaluation splits of the three established benchmarks RefCOCO, RefCOCO+ and RefCOCOg, Xiaomi-Lens-0 achieves mean Prec@0.5 of 92.9%, 5.6 percentage points above its Qwen3.5-4B backbone. It ranks first on seven splits among the 16 models compared in the table. On RefCOCOg Test, Xiaomi-Lens-0 ranks second at 92.4%, behind only Youtu-VL-4B.
On RefCOCO+ TestB, which excludes absolute location words and relies primarily on appearance and attributes to distinguish targets, Xiaomi-Lens-0 improves from its backbone's 79.1% to 88.5%, a gain of 9.4 percentage points.

The IoU 0.50 metric mainly tests whether a model can roughly localize a target. Multi-threshold mean F1 (F1@mIoU) instead increases the overlap threshold from 0.50 to 0.95, providing a combined assessment of how precisely bounding boxes fit objects.
On these three datasets, Xiaomi-Lens-0 achieves F1@mIoU scores of 83.3%, 81.1% and 81.1%, respectively, ranking first among the 18 comparison models listed in the table. These exceed the Qwen3.5-4B backbone by 8.8, 11.6 and 9.5 percentage points, respectively.
At the single IoU threshold of 0.95, Xiaomi-Lens-0 improves on its backbone by 15.5–16.8 percentage points. In referring-expression segmentation across eight evaluation splits, it achieves mean cIoU of 81.4%, above Qwen3-VL-Seg-4B and Youtu-VL-4B, with the highest cIoU on all eight splits among the 12 comparison models listed.

Next, "how finely does it segment?"—that is, multi-instance grounding and reasoning segmentation.
In COCO 2017 multi-instance bounding-box grounding, Xiaomi-Lens-0 achieves multi-threshold mean F1 (F1@mIoU) of 63.9%, ranking first among 17 comparison models, above specialist grounding models GroundingPI (63.0%) and GroundingDINO (60.6%).

On ReasonSeg, which tests inferring targets from their purpose, and RoboRefIt, which tests understanding conversational instructions over cluttered tabletops, Xiaomi-Lens-0 ranks first among eight compared models on all eight metrics across the two benchmarks.

To test segmentation across scenarios and implicit semantic conditions, Xiaomi's team also built LensBench, with every evaluation unit manually reviewed. It spans four visual domains—general, aerial, driving and panoramic—with 1,200 paired units and 4,800 instructions combining single or multiple targets with explicit or implicit wording.
In this evaluation, Xiaomi-Lens-0 ranks first in aerial-domain Prec@0.5 at 79.6% and is also among the leaders in other domains. The evaluation clearly exposes current limitations, however: performance still drops markedly for implicit multi-target instructions, especially with panoramic distortion. Panoramic multi-target cIoU falls from 71.8% for explicit instructions to 48.9% for implicit ones.
Finally, "how thoroughly does it see?"—that is, visual question answering through text-only responses.
Across eight perception benchmarks covering detail recognition, counting, color and spatial understanding, Xiaomi-Lens-0 outperforms its Qwen3.5-4B backbone throughout and achieves the highest accuracy among the evaluated 4B–9B open-source multimodal models.

03.
Less than 2% additional parameters
Shared representations connect segmentation with visual question answering
How can a 4B model perform localization, segmentation and visual reasoning while even improving accuracy on visual question-answering tasks that require only text responses and no mask output? Xiaomi's team explains that the key lies in an architecture with shared representations.
Xiaomi-Lens-0 is built on the Qwen3.5-4B multimodal model, adding only the special token <|mask|> and a lightweight mask decoder. The decoder consists of a single-layer Transformer, a linear projection and two transposed convolution layers. The additional parameters account for less than 2% of the model's total.
It introduces neither a separate segmentation encoder such as SAM nor an additional multiscale feature-fusion module. Text answers and mask predictions reuse the same visual backbone features.

The overall approach has three parts: inference decoding, two-stage training and data validation.
During inference decoding, the model uses a three-step process to turn textual references into pixel-level contours. After receiving an image and instruction, it autoregressively generates text or reasoning. When it needs to mark a target in the image, it outputs <|mask|>. The contextual hidden state at this position integrates the image, instruction and preceding context as the target representation. The lightweight decoder converts this state into a query vector, matches it against image-patch features and upsamples to produce a pixel mask. Mask decoding is a separate branch and does not feed cropped region features back into the language model.
Training has two stages. The first stage is warm-up alignment, freezing backbone parameters and training only the mask decoder and <|mask|> token embeddings so the branch learns to extract target contours from existing visual features. The second stage is full-parameter fine-tuning, unfreezing all parameters and jointly optimizing the language-generation and mask losses. Errors in contour prediction are backpropagated to the backbone, pushing it to learn finer-grained visual features. Because textual question answering and segmentation share visual representations, text-only answering that requires no bounding boxes benefits as well.
For the data, Xiaomi's team uses multiple consistency checks to ensure that language descriptions reliably match their target regions. Synthetic referring-expression segmentation samples undergo re-grounding IoU checks and semantic uniqueness screening to remove ambiguous examples. Data with reasoning traces retain only examples with verifiable answers and valid bounding boxes, and regions corresponding to reasoning steps receive masks that satisfy the overlap threshold.
Xiaomi also designed an ablation to isolate the gains from pixel-mask supervision. Adding mask supervision increases scores across the RefCOCO-family validation sets, MME-RealWorld, CV-Bench and other benchmarks. RefCOCO+ Val Prec@0.5 rises from 89.7% to 92.1%, while MME-RealWorld-CN answer accuracy increases from 66.1% to 67.5%.
Xiaomi's team considers the additional 1.4-percentage-point improvement on MME-RealWorld-CN in this controlled setting attributable to pixel-level mask supervision, even though the benchmark itself requires neither bounding-box nor segmentation-mask output.

04.
Conclusion: potential applications on devices and in embodied AI
Xiaomi-Lens-0's currently disclosed deployment is the Inspiration Ball in HyperOS 4 and Super XiaoAI 2.0, serving as an on-device visual interaction entry point. As described earlier, screenshots, drag coordinates and spoken instructions are uploaded to the cloud.
With the model now open source, there is more room to imagine its development for tasks such as embodied interaction and tool-based referring on edge devices.
Xiaomi-Lens-0's 4B parameter scale is suited to device environments constrained by computing power and latency. Combined with its support for conversational embodied-referring instructions, this offers prospects for exploration in robotic grasping, in-vehicle assistants, and local-region identification in industrial and medical imagery.
This article is from "Zhidx," by "Han Wang."
Related topics
After reading
Join the AINRK community
Read how to join the community and connect with people working in AI.




