---
title: Xiaomi-Robotics-U1-ScanAR
canonical_url: "https://www.modelscope.cn/models/XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR"
md_url: "https://www.modelscope.cn/models/XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR.md"
repository: XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR
last_updated: 2026-12-02
license: "Apache License 2.0"
model_type:
  - qwen3
architectures:
  - Qwen3ForCausalLM
library_name:
  - safetensors
  - pytorch
frameworks:
  - PyTorch
downloads: 7
stars: 1
---

# Xiaomi-Robotics-U1-ScanAR

> Xiaomi-Robotics-U1-ScanAR - XiaomiRobotics 在 ModelScope 开源的模型。Controllable Multi-View Generation and Editing for Embodied Intelligence

XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR 是 ModelScope 魔搭社区上的机器学习模型，采用 Apache License 2.0 许可。

- **Repository**: XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR
- **License**: Apache License 2.0
- **Downloads**: 7
- **Stars**: 1
- **Last updated**: 2026-12-02

Source: https://www.modelscope.cn/models/XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR

---

<div align="center">

# Xiaomi-Robotics-U1

### Controllable Multi-View Generation and Editing for Embodied Intelligence

Xiaomi Robotics

[![GitHub](https://img.shields.io/badge/GitHub-Code-black.svg?logo=github)](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1)
[![Paper](https://img.shields.io/badge/arXiv-2612.01730-b31b1b.svg)](https://arxiv.org/pdf/2612.01730)
[![Project Page](https://img.shields.io/badge/Project-Page-orange.svg)](https://robotics.xiaomi.com/xiaomi-robotics-u1.html)
[![Hugging Face](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Models-yellow.svg)](https://huggingface.co/collections/XiaomiRobotics/xiaomi-robotics-u1)
[![ModelScope](https://img.shields.io/badge/ModelScope-Models-624aff.svg)](https://modelscope.cn/collections/XiaomiRobotics/Xiaomi-Robotics-U1)
[![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1/blob/main/LICENSE)

</div>

<p align="center">
  <img src="assets/overview.jpg" width="100%" alt="Xiaomi-Robotics-U1 overview">
  <br>
  <em>Scene generation from robot state, five types of multi-view editing, and real-robot gains from edited demonstrations.</em>
</p>

## About

Xiaomi-Robotics-U1 is a 34B pure autoregressive model that generates and edits the multi-view
observations of a robot: the head camera and both wrist cameras. Target images are produced by
next-token prediction over visual tokens, with no task-specific diffusion denoising. It is the
successor to [Xiaomi-Robotics-U0](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U0).

- **State-conditioned scene generation.** A robot's end-effector state and a four-field scene
  description (workspace, objects, lighting, background) produce the head, left-wrist, and
  right-wrist views of one scene. The arms follow the input state, and each wrist view matches the
  arm pose seen in the head view.
- **Five edit types on multi-view observations.** One instruction-guided editor covers transfer,
  replace, add, remove, and move. It applies the change in every view that can see it and keeps
  unedited content, including the robot, unchanged.
- **Unified pure autoregressive co-training.** Embodied generation and editing are co-trained with
  general T2I and X2I data in one model under one autoregressive objective.
- **ScanAR.** Row-parallel decoding: visual tokens in a row are generated in parallel, and rows
  advance autoregressively. Decoding depth drops from H×W to H+W, 13.1× faster per 512×512 image.

<p align="center">
  <img src="assets/architecture.png" width="100%" alt="Unified AR transformer with standard AR and ScanAR decoding">
</p>

## News

- **[2026-12-02]** Technical report, model weights, and inference, training, and serving code released.

## Contents

- [Results](#results)
- [Models](#models)
- [Quick start](#quick-start)
- [Documentation](#documentation)
- [Citation](#citation)

## Results

### Multi-view editing

On a 336-case three-view editing benchmark, U1 has the highest average score of the ten editors,
and the highest instruction following and multi-view consistency (MVC). Nano Banana 2.1 has the
highest original preservation. Gemini 4 Argon grades each case on a 1–10 scale. All scores come
from this single judge, so small differences should be read with care.

| Model | Access | IF | OP | MVC | Avg. |
|---|---|:-:|:-:|:-:|:-:|
| **Xiaomi-Robotics-U1** | **open** | **6.75** | 6.38 | **6.54** | **6.56** |
| Nano Banana 2.1 | closed | 6.68 | **6.74** | 6.15 | 6.52 |
| GPT-Image-2.5-Sunburst | closed | 6.61 | 6.49 | 5.95 | 6.35 |
| Qwen-Image-3.0-Pro | closed | 6.26 | 5.90 | 5.60 | 5.92 |
| Seedream 5.0 Pro | closed | 6.39 | 5.79 | 5.52 | 5.90 |
| MiniMax-H3-Image | open | 6.44 | 6.15 | 5.77 | 6.12 |
| FLUX 3 Image Klein | open | 5.93 | 5.66 | 5.11 | 5.57 |
| Qwen-Image-2.1 | open | 5.39 | 5.98 | 5.00 | 5.46 |
| FIBO 2.0 Dev | open | 5.84 | 5.41 | 4.89 | 5.38 |
| HunyuanImage-3.0-Instruct | open | 5.70 | 5.28 | 4.83 | 5.27 |

IF: instruction following. OP: original preservation. MVC: multi-view consistency. Avg.: mean of the three.

<details>
<summary>Average score by edit type</summary>

| Model | Transfer | Replace FG | Replace BG | Add | Remove | Move |
|---|:-:|:-:|:-:|:-:|:-:|:-:|
| **Xiaomi-Robotics-U1** | 6.61 | 6.45 | 6.49 | **6.45** | **6.68** | **6.65** |
| Nano Banana 2.1 | **6.81** | **6.56** | **6.67** | **6.45** | **6.68** | 5.96 |
| GPT-Image-2.5-Sunburst | 6.78 | 6.31 | 6.50 | 5.91 | 6.61 | 6.00 |
| Qwen-Image-3.0-Pro | 6.35 | 6.32 | 5.98 | 5.71 | 6.08 | 5.07 |
| Seedream 5.0 Pro | 6.42 | 6.03 | 6.00 | 5.44 | 6.29 | 5.21 |
| MiniMax-H3-Image | 6.60 | 6.44 | 6.26 | 5.87 | 6.15 | 5.40 |
| FLUX 3 Image Klein | 6.62 | 5.12 | 5.85 | 5.13 | 6.08 | 4.60 |
| Qwen-Image-2.1 | 6.35 | 5.29 | 5.87 | 5.29 | 5.44 | 4.52 |
| FIBO 2.0 Dev | 5.98 | 5.34 | 5.67 | 5.12 | 5.67 | 4.52 |
| HunyuanImage-3.0-Instruct | 5.91 | 4.77 | 5.56 | 5.12 | 5.72 | 4.54 |

Cases per type: transfer 84 (including lighting), replace foreground 42, replace background 84
(including workspace surfaces), add 42, remove 42, move 42 (including rotations).

</details>

### Real-robot generalization with edited demonstrations

U1 edits the tablecloth, lighting, and clutter of real demonstrations while keeping the robot and
task objects unchanged, so the original action labels stay valid. Post-training the
[XR-1](https://github.com/XiaomiRobotics/Xiaomi-Robotics-1) policy with these edited demonstrations
raises the average out-of-distribution (OOD) success rate on five bimanual tasks from 11.1% to 82.2%:

| Task | ID, XR-1 | ID, XR-1 + U1 | OOD, XR-1 | OOD, XR-1 + U1 |
|---|:-:|:-:|:-:|:-:|
| Store Condiments | 100% | 100% | 0.0% | **88.9%** |
| Pack Fruit | 66.7% | **100%** | 0.0% | **88.9%** |
| Pack Phone | 33.3% | **66.7%** | 11.1% | **77.8%** |
| Charge Earbuds | 33.3% | **66.7%** | 22.2% | **66.7%** |
| Shelve Book | 100% | 100% | 22.2% | **88.9%** |
| **Average** | 66.7% (10/15) | **86.7%** (13/15) | 11.1% (5/45) | **82.2%** (37/45) |

Success rates, 3 trials per scenario and policy (one in-distribution and three OOD scenarios per
task). The average OOD progress score rises from 48.3% to 93.6%.

### ScanAR speed

<p align="center">
  <img src="assets/scanar_speed.png" width="100%" alt="ScanAR decoding depth and latency">
</p>

One 512×512 image (32×32 tokens) on one H20 GPU takes 57.17 s with raster AR (1,024 decoding steps)
and 4.37 s with ScanAR (64 steps), end to end.
More timings are in [guides/inference.md](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1/blob/main/guides/inference.md#reference-timings).

## Models

| Model | Decoding | Hugging Face | ModelScope |
|---|---|---|---|
| Xiaomi-Robotics-U1 | AR | [🤗 Link](https://huggingface.co/XiaomiRobotics/Xiaomi-Robotics-U1) | [Link](https://modelscope.cn/models/XiaomiRobotics/Xiaomi-Robotics-U1) |
| Xiaomi-Robotics-U1-ScanAR | ScanAR | [🤗 Link](https://huggingface.co/XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR) | [Link](https://modelscope.cn/models/XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR) |
| VisionTokenizer | – | [🤗 Link](https://huggingface.co/BAAI/Emu3.5-VisionTokenizer/) | [Link](https://modelscope.cn/models/BAAI/Emu3.5-VisionTokenizer) |

- **AR and ScanAR** share the architecture and size. ScanAR adds no parameters; it changes only the
  attention mask and which hidden state predicts each token.
- **The language model** uses the stock `Qwen3ForCausalLM` architecture (64 layers, hidden size
  5120, GQA 64/8, QK-norm). It loads with `AutoModelForCausalLM` and runs on vLLM's built-in Qwen3
  implementation. The tokenizer needs `trust_remote_code=True`.
- **The vision tokenizer** is the IBQ tokenizer from Emu3.5: 16×16 pixels per token, 131,072 codes.

## Quick start

```bash
conda create -n xr-u1 python=3.12 -y && conda activate xr-u1
pip install -e ".[serve,train]"
huggingface-cli download XiaomiRobotics/Xiaomi-Robotics-U1-ScanAR --local-dir Xiaomi-Robotics-U1-ScanAR   # ~65 GB
```

The 34B weights take about 68 GB in bf16. We recommend one GPU with 96 GB or more, or two GPUs:
vLLM with `--tp 2`, or transformers with `device_map="auto"` (`--device-map auto` in `xr-u1-serve`).
The vision tokenizer is downloaded from the Hub on first use.

Edit three views of one scene:

```python
from PIL import Image
from xr_u1 import prompts
from xr_u1.generation.hf import U1Generator

gen = U1Generator.from_pretrained("Xiaomi-Robotics-U1-ScanAR", vision_tokenizer="BAAI/Emu3.5-VisionTokenizer")
views = [Image.open(f"examples/assets/g1_white_table_{v}.jpg") for v in ("head", "left", "right")]
out = gen.generate(prompts.scene_edit("Change the lighting to cold blue moonlight.", views))
for i, img in enumerate(out.images):
    img.save(f"view_{i}.png")
```

Or from the command line:

```bash
xr-u1-generate --model Xiaomi-Robotics-U1-ScanAR --vision-tokenizer BAAI/Emu3.5-VisionTokenizer \
    --task scene_edit --instruction "Add a yellow rubber duck on the white table." \
    --images examples/assets/g1_white_table_head.jpg examples/assets/g1_white_table_left.jpg examples/assets/g1_white_table_right.jpg --out outputs/
```

## Documentation

| Document | Contents |
|---|---|
| [Inference](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1/blob/main/guides/inference.md) | Installation, transformers and vLLM (with the vLLM 0.11.0 patches), CLI, timings, ScanAR decoding |
| [Tasks and prompts](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1/blob/main/guides/tasks_and_prompts.md) | `t2i`, `x2i`, `scene_gen`, `scene_edit`; arm types, proprioception, edit sentence forms |
| [Web service](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1/blob/main/guides/web_service.md) | Model backend, gateway, and browser UI with 3D robot-arm pose editing |
| [Training](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1/blob/main/guides/training.md) | FSDP2 training for AR and ScanAR on one 8-GPU node, data format, losses |

Repository layout:

```
src/xr_u1/
  tokens.py          special tokens and ids (single source)
  prompts.py         task templates, proprioception and edit helpers
  processing.py      prompts + images -> token ids, generated ids -> images
  models/            tokenizer, IBQ vision tokenizer
  scanar/rules.py    ScanAR attention / readout rule (training and inference)
  generation/        transformers generator, sampling
  vllm/              vLLM 0.11.0 patches and engine (AR and ScanAR)
  train/             FSDP2 trainer, data, losses
  serve/             model backend, gateway, web UI
configs/  examples/  guides/  scripts/  tests/
```

## Citation

```bibtex
@misc{li2026xiaomiroboticsu1controllablemultiviewgeneration,
  title         = {Xiaomi-Robotics-U1: Controllable Multi-View Generation and Editing for Embodied Intelligence},
  author        = {Xinghang Li and Jiahang Cao and Jun Guo and Jingen Qu and
                   Jiaxi Song and Hang Lai and Qiwei Li and Long Qian and
                   Yingbo Tang and Hongyu Yan and Xiaoshen Han and Xi Chen and
                   Knagchen Lv and Yueze Wang and Zhengshen Zhang and Nan Sun and
                   Jiayi Chen and Futeng Liu and Mengzhen Liu and Wanli Peng and
                   Yunhong Wang and Caoyu Xia and Diyun Xiang and Hangjun Ye and
                   Heng Qu and Huaping Liu and Tao Kong},
  year          = {2026},
  eprint        = {2612.01730},
  archivePrefix = {arXiv},
  primaryClass  = {cs.RO},
  url           = {https://arxiv.org/abs/2612.01730}
}
```

## License

Apache-2.0, see [LICENSE](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1/blob/main/LICENSE) and [NOTICE](https://github.com/XiaomiRobotics/Xiaomi-Robotics-U1/blob/main/NOTICE). The model and vision tokenizer derive from
BAAI Emu3.5 (Apache-2.0).

## Acknowledgements

U1 builds on [Emu3.5](https://github.com/baaivision/Emu3.5), [Qwen3](https://github.com/QwenLM/Qwen3),
and [vLLM](https://github.com/vllm-project/vllm).
