A Xiaomi open model combines visual responses and segmentation
Based on Qwen3.5-4B, Xiaomi-Lens-0 combines responses, localization, and segmentation masks. Its weights and code are licensed under Apache 2.0.
Xiaomi-Lens-0’s responses can indicate the objects they refer to by framing them or outlining their contours. This vision-and-language model of about four billion parameters, developed by Xiaomi teams, combines image understanding, localization, and segmentation in a single architecture. The weights, training code, and evaluation tools are publicly available.
The message posted on November 30 relays work that had already been available since October: the technical report was submitted on October 16, then revised on the 19th. More recently, as of November 28, the repository notes the addition of a pathway for adapting the published weights to one’s own data, either by full fine-tuning or with LoRA adapters. Responses that designate a region of the image
The project page presents several forms of prompts. A description such as “the smallest object in this group” can lead to a localization box. A segmentation request produces a mask that follows the object’s contours. Retrieval can also concern multiple occurrences, for example all the bottles or all the people in a scene.
Instructions can designate a function rather than a category: finding what could wrap a gift requires identifying an object suited to that use. Other cases concern an object requested in a cluttered scene or a counting question. The model can associate masks with its final response, but also with the objects mentioned in the reasoning steps it generates. A mask decoder added to Qwen
The architecture starts from Qwen3.5-4B and adds a lightweight decoder to it. When a special token `` appears in the response, its internal state represents a target region given the image, the instruction, and the preceding text. The decoder combines it with the visual features already extracted from the image to produce the mask.
The method therefore reuses the visual encoder of the base model, without adding a second encoder specialized in segmentation. The masks form an output branch: they are not fed back in the form of new crops into the language model. The term “reasoning with visual representations” here describes the association between regions and the textual steps produced.
Training consists of two phases. The decoder first learns to exploit fixed representations. The full model is then fine-tuned with supervision covering both text and masks. The data combine public resources and internal data prepared by the team. Gains even when the answer remains textual
Across the eight RefCOCO, RefCOCO+, and RefCOCOg subsets evaluated, the authors report an average gain of 5.6 points over Qwen3.5-4B for description-based localization. In segmentation, the average reaches 81.4% cIoU, the best result among the models compared in this table. This metric evaluates the overlap between the predicted regions and the reference ones; it does not correspond to a proportion of objects perfectly outlined.
The reported benefit is not limited to outputs accompanied by a mask. Across the eight perception tests studied, textual responses on images also improve over the base model. On CountQA, dedicated to counting, accuracy rises from 43.8% to 50.6%, a gain of 6.8 points. These evaluations do still take an image as input: “textual response” does not mean the model works without an image.
The project files include the two training stages, scripts, and data examples. The code and weights are distributed under the Apache 2.0 license. An online demo is offered; the documented local run requires a CUDA GPU compatible with bfloat16 and FlashAttention-2. Implicit instructions still difficult on LensBench
The team also publishes LensBench, which brings together 4,800 prompts drawn from 1,200 evaluation units across four domains: general images, aerial views, driving scenes, and panoramas. Each unit combines a single target or multiple targets with an explicit or implicit formulation. The paired prompts aim at the same regions, which helps isolate the effect of their wording.
In the table currently published, GPT-6 Astra obtains better overlap scores than Xiaomi-Lens-0 for both explicit and implicit prompts and across several domains. In aerial views, however, Xiaomi’s model obtains the best score for predictions reaching at least 50% overlap with the reference masks. These comparisons are carried out by the project authors.
The change in wording reveals a clear limitation: Xiaomi-Lens-0’s cIoU score drops from 71.4% with explicit instructions to 54.7% with implicit instructions. For several targets in panoramas, it falls from 71.8% to 48.9%.