Zero-WAM README

项目的 README,来自 github.com/robbyant-research/Zero-WAM。合并为一个 markdown 文件:README.md。

Zero-WAM:
In-Context World-Action Modeling from Human Videos for Open-Ended Task Generalization

Jiaming Zhou   Qihang Zhang*   Gangwei Xu   Cunxin Fan   Yujie Zhao   Ruilin Wang   Yiming Luo   Shuai Yang   Xing Zhu   Yujun Shen   Junwei Liang†   Yinghao Xu†
Robbyant  ·  HKUST (GZ)  ·  HKUST
*Project Lead    †Corresponding Authors

Project page Paper Code Pretrained model Robotwin model HumanGen dataset License

Zero-WAM framework overview

Overview

Zero-WAM targets zero-shot cross-task robotic manipulation, where a policy must execute tasks that were never practiced during training using only deployment-time context. It brings in-context learning to robotics by treating human demonstration videos as visual task specifications, enabling a causal video-action policy to predict future robot observations and executable actions from either language instructions or human video prompts.

Highlights

Data Overview

Zero-WAM builds its training data around task diversity rather than raw trajectory count. Task-diverse VA re-samples five public robotic video-action datasets at the task level, yielding more than 6K manipulation tasks and about 400K robot trajectories per training epoch. HumanGen complements this robot-domain corpus with 74.2K human-robot ICL pairs over 8.6K tasks, spanning external, in-house, simulation, and real-world sources.

Zero-WAM data overview

Data Pipeline

The in-context human video generation pipeline starts from task-sampled robot trajectories that retain executable actions. A VLM parses task semantics and object-state changes, an image editor converts the first robot frame into a human observation, and a video generation model synthesizes the corresponding human manipulation video. Each generated video is filtered for semantic preservation and physical plausibility before being paired back with the original robot trajectory as an ICL sample.

Zero-WAM data pipeline

RoboTwin 2.0 Zero-Shot Evaluation

Zero-WAM achieves 46.95% average zero-shot success on seven unseen RoboTwin 2.0 tasks, outperforming LingBot-VA by 29.50 percentage points.

Task WAN-Action LingBot-VA Zero-WAM
Place object on scale 3.00 ± 2.16 6.17 ± 4.87 24.67 ± 2.05
Stamp seal 7.33 ± 1.25 3.67 ± 2.49 47.00 ± 4.55
Open microwave 2.26 ± 1.60 29.33 ± 10.66 59.00 ± 2.83
Move stapler to pad 10.67 ± 1.70 23.33 ± 8.22 69.14 ± 2.93
Place bread in basket 15.26 ± 2.55 17.33 ± 6.18 35.00 ± 3.74
Place empty cup 38.33 ± 2.05 42.33 ± 7.85 84.87 ± 0.18
Stack blocks three 0.00 ± 0.00 0.00 ± 0.00 9.00 ± 2.16
Average 10.98 ± 1.07 17.45 ± 1.40 46.95 ± 0.72

Environment

Use Python 3.10 with a CUDA-enabled PyTorch environment, then install the project dependencies:

python -m pip install -r requirements.txt --no-build-isolation

Robotwin evaluation also requires a working Robotwin 2.0 installation. Follow the official Robotwin installation guide:

https://robotwin-platform.github.io/doc/usage/robotwin-install.html

See INSTALL.md for the exact tested environment (Python 3.10, PyTorch 2.9.0, CUDA 12.6), the tested Robotwin revision, and the two unseen-task success-condition updates. Run all commands below from the repository root.

export PROJECT_ROOT=/path/to/Zero-WAM
cd "${PROJECT_ROOT}"

HumanGen Data

This repository releases two HumanGen subsets used by Zero-WAM: Simulation ICL (RoboTwin) and Pre-training ICL (External). Install the Hugging Face CLI first:

python -m pip install "huggingface_hub[cli]"

Simulation ICL (RoboTwin)

Simulation ICL (RoboTwin) contains ~2,500 human-robot ICL pairs across 50 RoboTwin 2.0 tasks, with 43 tasks used for training and seven unseen tasks used for evaluation. We release the robot videos, robot actions, human-video latents, robot-video latents, and pairing manifest needed for RoboTwin post-training and evaluation.

If you only need Robotwin ICL data for post-training or evaluation, download the minimal subset:

hf download Robbyant-Research/HumanGen \
  --repo-type dataset \
  --local-dir "${PROJECT_ROOT}/data/HumanGen" \
  --include "icl_configs/*" \
  --include "robotwin_data/**" \
  --include "human_latents/robotwin/**"

The released Robotwin data follows this layout:

data/HumanGen/
├── robotwin_data/<task>/{data,meta,videos,latents}
├── human_latents/robotwin/run_*/samples/*/*.pth
└── icl_configs/ICL_config_robotwin.json

ICL Pre-training Data

ICL Pre-training Data provides the public-dataset ICL data used during pre-training. It is built from five robotic video-action datasets: AgiBot, InternData-A1, Open X-Embodiment (Bridge), RoboCOIN, and RoboMIND. We release the paired robot videos, robot actions, robot-video latents, and precomputed human-video latents used for co-training.

The five ICL pre-training sources use the following HumanGen dataset keys and paths:

DATASETS key Robot data and latents Human latents Human data Pairing manifest
agibot agibot_data/ human_latents/agibot/ human_data/agibot/ icl_configs/ICL_config_agibot.json
robocoin robocoin_data/ human_latents/robocoin/ human_data/robocoin/ icl_configs/ICL_config_robocoin.json
robomind robomind_data/ human_latents/robomind/ human_data/robomind/ icl_configs/ICL_config_robomind.json
interna1 interna1_data/ human_latents/interna1/ human_data/interna1/ icl_configs/ICL_config_interna1.json
oxe oxe_data/ human_latents/oxe/ human_data/oxe/ icl_configs/ICL_config_oxe.json

To use the released Pre-training ICL data ("External" subset) for co-training, download the Robotwin subset plus the five public-dataset robot datasets and the archived human latents:

hf download Robbyant-Research/HumanGen \
  --repo-type dataset \
  --local-dir "${PROJECT_ROOT}/data/HumanGen" \
  --include "icl_configs/*" \
  --include "robotwin_data/**" \
  --include "human_latents/**" \
  --include "agibot_data/**" \
  --include "robocoin_data/**" \
  --include "robomind_data/**" \
  --include "interna1_data/**" \
  --include "oxe_data/**"

The public-dataset robot data and non-Robotwin human latents are stored as tar.zst shards to avoid transferring hundreds of thousands of small files.

Install zstd with apt:

sudo apt-get update && sudo apt-get install -y zstd

Or install it with conda:

conda install -c conda-forge zstd

Extract all released tar.zst shards from the HumanGen root:

cd "${PROJECT_ROOT}/data/HumanGen"
for dir in human_latents agibot_data robocoin_data robomind_data interna1_data oxe_data; do for f in "$dir"/part-*.tar.zst; do test -e "$f" && tar -I zstd -xf "$f" -C .; done; done

After extraction, human_latents/ contains robotwin/ as regular files and the five public-dataset latent folders from the shards. Each *_data/ directory contains the corresponding extracted robot data and robot-video latents.

Robot-video latents are stored with each LeRobot task under latents/. Human-video latents use the matching human_latents/<dataset>/ hierarchy.

The generated human videos are optional for training. Download human_data/ if you want the original HumanGen videos:

hf download Robbyant-Research/HumanGen \
  --repo-type dataset \
  --local-dir "${PROJECT_ROOT}/data/HumanGen" \
  --include "human_data/**"

Model Checkpoints

Two Zero-WAM checkpoints are released on the Hugging Face Hub:

Model Description Arch Parameters Size
zero-wam-pretrain Pre-trained Zero-WAM MoT 10.8B ~35 GB
zero-wam-posttrain-robotwin Robotwin post-trained Zero-WAM MoT 10.8B ~35 GB

Download the released Zero-WAM checkpoints as needed:

hf download robbyant-research/zero-wam-pretrain \
  --local-dir "${PROJECT_ROOT}/checkpoints/zero-wam-pretrain"
hf download robbyant-research/zero-wam-posttrain-robotwin \
  --local-dir "${PROJECT_ROOT}/checkpoints/zero-wam-posttrain-robotwin"

Robotwin Inference

Configure the model and simulator paths:

export MODEL_PATH="${PROJECT_ROOT}/checkpoints/zero-wam-posttrain-robotwin"
export ROBOTWIN_ROOT=/path/to/Robotwin

Single Task

Start the inference server on one GPU:

CUDA_VISIBLE_DEVICES=0 \
bash evaluation/robotwin/launch_server.sh

In another terminal, evaluate one unseen task for 100 trials:

ICL_CFG=5 \
TARGET_TEXT_CFG=-1 \
SEED=0 \
bash evaluation/robotwin/launch_client.sh \
  /path/to/eval_results \
  place_object_scale

ICL_CFG=5 applies classifier-free guidance between the ICL-conditioned and non-ICL robot-video branches. TARGET_TEXT_CFG=-1 disables target-text CFG and uses the empty-text embedding for the target robot stream. SEED=0 fixes the Robotwin rollout seed. The ICL demonstration for each task is fixed by evaluation/robotwin/robotwin_icl_human_videos.py.

Eight-GPU Evaluation

Run the full unseen-task evaluation:

ICL_CFG=5 \
TARGET_TEXT_CFG=-1 \
SEED=0 \
TEST_NUM=100 \
SAVE_ROOT=/path/to/eval_results \
bash evaluation/robotwin/run_icl_eval.sh

The launcher evaluates seven unique tasks and repeats place_empty_cup to fill eight GPU slots:

stack_blocks_three
place_object_scale
stamp_seal
open_microwave
move_stapler_pad
place_bread_basket
place_empty_cup
place_empty_cup

The launcher starts eight independent one-GPU server/client pairs, waits until all servers are healthy, and stops them after evaluation. The repeated place_empty_cup run is saved under place_empty_cup_repeat so it cannot overwrite the primary result.

Each task uses the fixed human demonstration in evaluation/robotwin/robotwin_icl_human_videos.py. Human-video paths are relative to data/HumanGen, and precomputed latents are used when available. Logs are written to ./logs, generated videos to ./visualization, and rollout results to the selected SAVE_ROOT.

Training

Both training modes start from the released zero-wam-pretrain checkpoint. Configure the model and output paths:

export MODEL_PATH="${PROJECT_ROOT}/checkpoints/zero-wam-pretrain"
export ZERO_WAM_SAVE_ROOT=/path/to/output

Human video ICL, bidirectional human-video attention, the action branch, and MCP are enabled by default. The released configuration uses drop_icl=0.1, droptext_target=0.4, four one-block MCP modules, loss weights [0.5, 0.25, 0.15, 0.1], MCP SNR shift 10, and future-chunk stride 2.

Robotwin-only Post-training

Start eight-GPU post-training using only Robotwin data:

NGPU=8 \
DATASETS="robotwin:1.0" \
bash script/train.sh --init-worker 1

robotwin:1.0 is the default, so DATASETS may be omitted for this mode. The loader always excludes the seven unseen evaluation tasks and requires the remaining Robotwin training split to contain exactly 43 tasks. Training stops with an error if this isolation check fails.

RoboTwin + Pre-training ICL Co-training

Start eight-GPU co-training with RoboTwin and all five Pre-training ICL (External) datasets:

NGPU=8 \
DATASETS="robotwin:1.0,agibot:1.0,robocoin:1.0,robomind:1.0,interna1:1.0,oxe:1.0" \
bash script/train.sh --init-worker 1

Each value in DATASETS is the relative probability of selecting that dataset for the next sample. The weights are normalized automatically; the equal weights above give each of the six sources probability 1/6. Change the values to set another sampling mixture. After a source is selected, samples are drawn uniformly from that dataset.

Checkpoints are written to ZERO_WAM_SAVE_ROOT/checkpoints/checkpoint_step_N/transformer. Run the repository tests with python -m pytest -q.

Note: The zero-wam-posttrain-robotwin checkpoint reported in the paper was post-trained on a mixture of Task-diverse VA data, the complete Pre-training ICL collection, and Robotwin ICL data using specified sampling ratios. The released training data contains only a subset of the Pre-training ICL collection and the Robotwin ICL data. Post-training with the released data will produce a model that differs from our released checkpoint.

Acknowledgments

Zero-WAM is built on Next Forcing and LingBot-VA. We thank the authors for releasing their work.

Citation

If you find Zero-WAM useful, please cite:

@misc{zhou2026zerowam,
  title = {Zero-WAM: In-Context World-Action Modeling from Human Videos for Open-Ended Task Generalization},
  author = {Zhou, Jiaming and Zhang, Qihang and Xu, Gangwei and Fan, Cunxin and Zhao, Yujie and Wang, Ruilin and Luo, Yiming and Yang, Shuai and Zhu, Xing and Shen, Yujun and Liang, Junwei and Xu, Yinghao},
  year = {2026},
  eprint = {2608.26103},
  archivePrefix = {arXiv},
  primaryClass = {cs.RO},
  url = {https://arxiv.org/abs/2608.26103}
}

Zero-WAM (robbyant-research/Zero-WAM)

正在搜索数据库…

这是什么?Zero-WAM 是一种面向零样本跨任务机器人操作的研究方法:它是一个因果视频-动作策略,学习上下文式的世界-动作建模,能从语言指令或人类演示视频中预测未来的机器人观测和可执行动作。
这是一个我能运行的可用代码库,还是目前只是一篇论文?目前它只是一篇论文。代码、训练好的模型和训练数据都尚未发布,各项均标注为预计 2026 年 9 月 15 日之前发布。
我现在要怎么亲自试用 Zero-WAM?现在还运行不了。该仓库目前只托管论文(arXiv:2608.26103);在本 README 撰写时,代码、预训练模型权重和训练数据都尚未发布。
它真的能把每个操作任务都解决得很好吗?不能。尽管在七个未见过的 RoboTwin 2.0 任务上平均零样本成功率跃升至 46.95%,但有些任务仍然非常难:「Stack blocks three」任务的成功率只有 9.00%,而基线方法为 0%。
这是面向什么人的?面向从事操作策略以及上下文学习/基于视频学习研究的机器人学和机器学习研究者,而不是想找现成机器人控制器的最终用户,因为目前还没有任何可运行的东西。
HumanGen 是什么?为什么它很重要?HumanGen 是一条数据管线,把按任务采样的机器人轨迹转换成配对的人类演示视频,在 8.6K 个任务上产出 74.2K 个人类-机器人上下文学习(ICL)配对,使策略能够从人类视频提示中学习,而无需收集更多机器人数据。
与之前的工作相比,Zero-WAM 的表现如何?在七个未见过的 RoboTwin 2.0 任务上,Zero-WAM 取得 46.95% 的平均零样本成功率,比 LingBot-VA 的 17.45% 高出 29.50 个百分点,也远超 WAN-Action 的 10.98%。
为什么用人类视频而不是只用语言来充当任务指令?人类演示视频作为视觉任务规范比纯文本更丰富、更精确,让因果视频-动作策略能通过观看人类如何完成任务,来推断在未见过的任务上该做什么。
Zero-WAM 用了多少训练数据?它把五个公开机器人数据集按任务多样性重采样后的结果(超过 6K 个任务,每个 epoch 约 400K 条轨迹),与 HumanGen 生成的 74.2K 个人类-机器人 ICL 配对结合起来,后者涵盖外部、内部、仿真和真实世界等来源。
大小
124 MB
星标
456
更新
提交Sep 14
时长
3个月
提交 · 90 天