WAP project overview

World-as-Prompt: Rewriting Robot Observations for Robust Policy Execution

arXiv coming soon Project page Code on GitHub Dataset on Hugging Face

World-as-Prompt (WAP) generates the RGB observation that a frozen robot policy sees. Given a scene description, a clean appearance reference and the current depth image, it renders a clean-looking version of the current scene. In the released RoboTwin evaluation, the policy received the generated image at each query and produced the robot actions itself.

The code repository includes a single-frame inference example. The project page shows closed-loop rollouts and results for individual tasks.

Checkpoint

The model uses the Xiaomi-Robotics-U0 UNIS architecture with FlashAR decoding. The released checkpoint contains 37,508,999,810 parameters in BF16. The 16 safetensors files form one checkpoint. The weight index maps 758 tensor names to their shards.

The weights were recovered from the step-2000 export. The release includes the inference weights, model configuration and UNIS text tokenizer. Exact training continuation would additionally require the original optimizer, FP32 master-state and RNG data. Those are unavailable for this checkpoint.

World-as-Prompt training and inference with a structured prompt, reference RGB and current depth

During training, FlashAR learns to predict clean RGB tokens from the prompt, reference RGB and depth. At inference, a frozen visual decoder turns the predicted tokens into an RGB observation. The figure shows DA3 estimating depth from raw RGB. The example below accepts a prepared depth PNG directly.

Run the example

Use Linux, Python 3.12 and a CUDA 12.8-compatible driver. The inference runner uses two GPUs, with FlashAR on the first and the IBQ vision tokenizer on the second. The original deployment budgeted 88 GiB and 16 GiB respectively. Follow the inference repository's environment setup, including its vLLM patch, then run these commands from the repository root.

hf download EmbodiedCity/WAP --local-dir checkpoints/WAP
hf download BAAI/Emu3.5-VisionTokenizer config.yaml model.ckpt \
  --revision a5c45bdb8084763048e094ae124778bfeca7d5ee \
  --local-dir checkpoints/ibq

export U0_INFERENCE_SOURCE="$PWD/src/frozen/robotwin37/upstream_xiaomi_u0/inference"
export PYTHONPATH="$U0_INFERENCE_SOURCE:$PWD/src/xiaomi/upstream_xiaomi_u0/training/src:$PWD/static_backend${PYTHONPATH:+:$PYTHONPATH}"
CUDA_VISIBLE_DEVICES=0,1 python tools/infer_robotwin38b_image.py \
  --checkpoint checkpoints/WAP --vq checkpoints/ibq \
  --reference examples/reference.png --depth examples/depth.png \
  --prompt examples/prompt.txt --output results/wap.png

The external vision tokenizer encodes the reference and depth, then decodes the generated visual tokens. The pinned tokenizer files match the hashes recorded during dataset preparation. Vision tokenizer

Input and output

  • Reference. A clean 960 ร— 240 RGB canvas provides appearance. Place the top camera, left wrist and right wrist views side by side in that order.
  • Depth. Use the same camera order and size. Convert valid metric depth to an 8-bit grayscale value with round(255 * clip(1 - depth_mm / 1000, 0, 1)). Encode invalid depth as zero.
  • Text. Start with examples/prompt.txt in the code repository. Retain the two visual input placeholders and the output placeholder in their original positions when changing the scene description.
  • Output. The reference runner generates a 15 ร— 60 grid of visual tokens and decodes it into one 960 ร— 240 RGB canvas.

Closed-loop evaluation

On the official RoboTwin 2.0 randomized benchmark, across 50 tasks and 100 episodes per task, ฯ€0.5 succeeded on 2,298/5,000 episodes (45.96%) with the recorded baseline observations and 3,078/5,000 (61.56%) with WAP observations. The difference is 15.60 percentage points. The comparison uses the official baseline outcomes for the same seeds. The main result uses a clean reference from the training set matched by task.

These results cover simulation. Each policy query was rendered independently, so successive observations can flicker. Success declined on 10 of the 50 tasks. Depth alone does not determine color, and the evaluation supplied a per-episode description that included clean workspace, background and lighting information. The choice of reference and the availability of this text matter when interpreting the scores. Evaluation details and task breakdown

Citation

@misc{fang2026worldasprompt,
  title  = {{World-as-Prompt}: Rewriting Robot Observations for Robust Policy Execution},
  author = {Fang, Jianjie and Wang, Ziyou and Zheng, Yichun and
            Wang, Zhaolu and Tang, Rongze and Xu, Jiacheng and
            Liu, Xvyuan and Gao, Chen and Wu, Wei and
            Chen, Xinlei and Li, Yong},
  year   = {2026}
}
Downloads last month
-
Safetensors
Model size
38B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Dataset used to train EmbodiedCity/WAP