Zero-WAM README

The project's README from github.com/robbyant-research/Zero-WAM. As one markdown file: 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)

Searching Database…

What is this?Zero-WAM is a research method for zero-shot cross-task robotic manipulation: a causal video-action policy that learns in-context world-action modeling, predicting future robot observations and executable actions from either language instructions or human demonstration videos.
Is this a working codebase I can run, or just a paper for now?Right now it is only a paper. The code, trained model, and training data are all still unreleased, with each marked as expected before Sep 15, 2026.
How do I try Zero-WAM myself right now?You can't run it yet. The repo currently only hosts the paper (arXiv:2608.26103); code, pretrained model weights, and the training data had not been published at the time of this README.
Does it actually solve every manipulation task well?No. Even though average zero-shot success jumps to 46.95% across seven unseen RoboTwin 2.0 tasks, some tasks remain very hard: the 'Stack blocks three' task only reaches 9.00% success compared to 0% for the baselines.
Who is this aimed at?Robotics and machine learning researchers working on manipulation policies and in-context/video-based learning, not end users looking for a ready-made robot controller, since nothing is runnable yet.
What is HumanGen and why does it matter?HumanGen is the data pipeline that converts task-sampled robot trajectories into matched human demonstration videos, producing 74.2K human-robot in-context-learning (ICL) pairs across 8.6K tasks so the policy can learn from human video prompts without collecting more robot data.
How well does Zero-WAM perform compared to prior work?On seven unseen RoboTwin 2.0 tasks, Zero-WAM reaches a 46.95% average zero-shot success rate, beating LingBot-VA's 17.45% by 29.50 percentage points and far outperforming WAN-Action's 10.98%.
Why use human videos as task instructions instead of just language?Human demonstration videos act as richer, more precise visual task specifications than plain text, letting the causal video-action policy infer what to do on unseen tasks by watching how a human performs them.
How much training data does Zero-WAM use?It combines a task-diverse resampling of five public robot datasets (over 6K tasks, about 400K trajectories per epoch) with the 74.2K HumanGen-generated human-robot ICL pairs spanning external, in-house, simulation, and real-world sources.
Size
124 MB
Stars
456
Updated
CommitSep 14
Age
3mo
Commits · 90 Days