Skip to content
Proyek

Tentang

Official implementation of paper "LAW: Unifying Language, Action, and World Modeling for Agentic Physical Intelligence"

AI dan pembelajaran mesin

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

LAW

Unifying Language, Action, and World Modeling for Agentic Physical Intelligence

Paper · Project page · Method and results

LAW overview

LAW combines VLM planning, state assessment and value estimation with FastWAM or OpenWAM. This guide covers the two RoboTwin training and inference pipelines.

1. Installation

Use Linux, Python 3.10 and NVIDIA GPUs. Training and full evaluation use 4 nodes × 8 GPUs. Clone the repository, then follow environment setup to install the model and RoboTwin environments, cuRobo and system libraries.

git clone https://github.com/hey-cjj/LAW.git
cd LAW

export LAW_ROOT="$(pwd -P)"
export LAW_DATA_ROOT="$LAW_ROOT/data"
export LAW_MODELS_ROOT="$LAW_ROOT/checkpoints"
export LAW_RUNS_ROOT="$LAW_ROOT/runs"

After installing the environments, run the following in each terminal and on each node (adjust these paths if your environments are installed elsewhere):

export FASTWAM_ENV="$LAW_ROOT/.venv/wam16d"
export LAW_PYTHON="$FASTWAM_ENV/bin/python"
export PYTHON_BIN="$LAW_ROOT/.venv/vlm/bin/python"
export Q3_PYTHON="$PYTHON_BIN"
export OPENWAM_PYTHON="$LAW_ROOT/.venv/openwam/bin/python"
export ROBOTWIN_PYTHON="$LAW_ROOT/.venv/robotwin/bin/python"
export LAW_VLM_SITE_PACKAGES="$LAW_ROOT/.venv/vlm/lib/python3.10/site-packages"
"$PYTHON_BIN" -m pip install -r requirements-tools.txt

Use the same persistent data, checkpoint and output directories on all training nodes. In a new terminal, set the LAW_* paths and interpreter variables again; apply the graphics/ICD settings from the environment guide before simulation.

2. Models and data

Model Download
LAW-FastWAM Hugging Face
LAW-VLM-FastWAM Hugging Face
LAW-OpenWAM Hugging Face
LAW-VLM-OpenWAM Hugging Face

Each VLM includes Q1/Q2/Q3. All four models and the training initialization weights are public.

Training data Download
WAM: expert demonstrations for FastWAM and OpenWAM LAW-RoboTwin-WAM-Training
VLM: complete Q1/Q2/Q3 data for both policies LAW-RoboTwin-VLM-Training

Download checkpoints, foundation weights, RoboTwin assets and data:

"$PYTHON_BIN" scripts/download.py models --profile all
"$PYTHON_BIN" scripts/download.py foundations
"$PYTHON_BIN" scripts/download.py assets
"$PYTHON_BIN" scripts/download.py datasets --dataset all
"$PYTHON_BIN" scripts/verify.py --profile all --scan-source

Use --dataset wam or --dataset vlm to download one training package; all downloads both and extracts their shared demonstrations once. The downloader uses pinned revisions and verifies file hashes. To prepare only one pipeline, replace all with 16d for FastWAM or 20d for OpenWAM in the model and verification commands.

3. Training

Video latent caches are excluded from the datasets. Before WAM training, generate them in the FastWAM environment:

"$PYTHON_BIN" scripts/run.py precompute --kind latent

Other preprocessing requirements are in data preparation.

Set NODE_RANK (0–3), MASTER_ADDR (node 0's address), and the shared path variables on each node. Run the chosen launcher on all four nodes using its configured environment.

WAM

# FastWAM
"$PYTHON_BIN" scripts/run.py train-wam --profile 16d

# OpenWAM
"$PYTHON_BIN" scripts/run.py train-wam --profile 20d

VLM

# Q1 followed by Q2
"$PYTHON_BIN" scripts/run.py train-vlm --stage q1q2 --profile 16d

# Q3 for FastWAM
"$PYTHON_BIN" scripts/run.py train-vlm --stage q3 --profile 16d

# Q3 for OpenWAM
"$PYTHON_BIN" scripts/run.py train-vlm --stage q3 --profile 20d

Q3 defaults to initialization from the released Q1/Q2 checkpoint. To train the entire chain with your newly trained Q1/Q2, set model.source_checkpoint in the corresponding Q3 recipe to that checkpoint. See the VLM training guide for stage settings and output paths.

4. Inference

FastWAM

"$PYTHON_BIN" scripts/run.py eval --profile 16d --task adjust_bottle --episodes 1

OpenWAM

Start the WAM server, then run the RoboTwin client in a second terminal with its environment configured:

"$PYTHON_BIN" scripts/run.py serve --profile 20d --gpu 0 --port 8848
"$PYTHON_BIN" scripts/run.py eval --profile 20d --task adjust_bottle --episodes 1 --port 8848

Single-task evaluation defaults to randomized scenes. Add --task-config demo_clean for clean scenes.

5. Full RoboTwin evaluation

Set NODE_RANK and MASTER_ADDR as above and run the selected command on all four nodes, each with eight GPUs. The manager launches all 50 tasks with 100 clean and 100 randomized episodes per task, using the accepted seedbank:

"$PYTHON_BIN" scripts/run.py eval --profile 16d
"$PYTHON_BIN" scripts/run.py eval --profile 20d
Policy Clean Randomized Average
LAW + FastWAM 94.22% 94.20% 94.21%
LAW + OpenWAM 95.60% 95.52% 95.56%

These are the paper's reported results. The launchers carry the selected inference settings. Use the released checkpoints and normalization statistics for evaluation.

License

Root code: MIT. LAW-authored trained weights: Apache-2.0. LAW-authored annotations: CC-BY-4.0. Upstream code, media and assets retain their own terms; see NOTICE and license scope.

Citation

If you find our work useful for your research, please consider citing:

@misc{cao2026law,
      title={LAW: Unifying Language, Action, and World Modeling for Agentic Physical Intelligence}, 
      author={Jiajun Cao and Kai Tang and Bohua Zhang and Zezhong Qian and Ying Li and Xiaozhu Ju and Xiaobao Wei and Jiaming Liu and Yang Ding and Sixiang Chen and Yiding Sun and Siyuan Qian and Tinghao Wang and Jixian Wu and Yichen Guo and Yi Zhang and Shilong Zou and Yong Dai and Jian Tang and Shanghang Zhang},
      year={2026},
      eprint={2610.23334},
      archivePrefix={arXiv},
      primaryClass={cs.RO},
      url={https://arxiv.org/abs/2610.23334}, 
}

Jelajahi proyek terkait

Memuat…