Susie Lu, Haonan Chen, Weirui Ye, Yilun Du
This codebase contains the official implementation for the DriftWorld paper.
You can install the relevant libraries by running conda env create -f environment.yml. DriftWorld checkpoints can be downloaded at this HuggingFace link.
| Dataset | Code Folder |
|---|---|
| Push-T | pusht_driftworld |
| Robomimic | robomimic_driftworld |
| RT-1 | rt1_driftworld |
| Bridge-V2 | bridge_driftworld |
| Language Table | language_table_driftworld |
The folder pusht_driftworld contains the code for training and evaluating DriftWorld on Push-T. Please put the pretrained checkpoints in the folder pusht_driftworld/pusht_checkpoints, and download the dataset in the folder pusht_driftworld/pusht_data.
To train DriftWorld:
- Run
torchrun --nproc_per_node=2 main_train.py --config-name=pushT_driftworld. Experiments were run on 2 H100 GPUs.
To visualize generated videos:
- Run
python main_vis.pyto generate videos using DriftWorld.
To evaluate visual quality metrics:
- Run
python main_eval_metrics.py. This will compute the MSE, SSIM, PSNR, and LPIPS metrics on the generated videos.
To evaluate DriftWorld's performance on policy improvement:
- Run
main_gpc_rank.pyusing the instructions in the file. This will compute the IoU score of a baseline policy after applying inference-time policy improvement by rolling out action proposals in DriftWorld and selecting the best ones.
To evaluate DriftWorld's performance on policy evaluation:
- Run
python main_policy_eval.py. This will compute the IoU scores of the policy when rolled out in DriftWorld, compared to the ground-truth IoU scores.
The folder robomimic_driftworld contains the code for training and evaluating DriftWorld on the Robomimic tasks. Please put the pretrained checkpoints in the folder robomimic_driftworld/robomimic_checkpoints, and set up the dataset by following this.
To train DriftWorld:
- Run
torchrun --nproc_per_node=2 main_train.py --config-name=<config name>with one of the configs inrobomimic_driftworld/configs/train.
To visualize generated videos:
- Run
python main_vis.pyto generate videos using DriftWorld.
To evaluate visual quality metrics:
- Run
python main_eval_metrics.py. This will compute the SSIM, PSNR, and LPIPS metrics on the generated videos.
The folder rt1_driftworld contains the code for training and evaluating DriftWorld on the RT-1 dataset. Please put the pretrained checkpoint in the folder rt1_driftworld/rt1_checkpoints, and set up the dataset by following this.
To train DriftWorld:
- Run
torchrun --nproc_per_node=2 main_train.py --config-name=rt1_phase1for phase 1 training, and then runtorchrun --nproc_per_node=2 main_train.py --config-name=rt1_phase2for phase 2 self-forcing training. Experiments were run on 2 H200 GPUs.
To visualize generated videos:
- Run
python main_vis.pyto generate videos using DriftWorld.
To evaluate visual quality metrics:
- Run
script/eval_on_validation.sh. This will compute the SSIM, PSNR, LPIPS, FID, and FVD metrics on the generated videos.
About the pretrained checkpoint:
- On RT-1, DriftWorld uses DINOv3 and the SD3 VAE during training, and it uses the SD3 VAE during inference. These two need to be downloaded separately. The pretrained DriftWorld checkpoint does not contain DINOv3 or SD3 VAE.
The folder bridge_driftworld contains the code for training and evaluating DriftWorld on the Bridge-V2 dataset. Please put the pretrained checkpoint in the folder bridge_driftworld/bridge_checkpoints, and set up the dataset by following this.
To train DriftWorld:
- Run
torchrun --nproc_per_node=2 main_train.py --config-name=bridge_phase1for phase 1 training, and then runtorchrun --nproc_per_node=2 main_train.py --config-name=bridge_phase2for phase 2 self-forcing training. Experiments were run on 2 H200 GPUs.
To visualize generated videos:
- Run
python main_vis.pyto generate videos using DriftWorld.
To evaluate visual quality metrics:
- Run
script/eval_on_validation.sh. This will compute the SSIM, PSNR, LPIPS, FID, and FVD metrics on the generated videos.
About the pretrained checkpoint:
- On Bridge-V2, DriftWorld uses DINOv3 and the SD3 VAE during training, and it uses the SD3 VAE during inference. These two need to be downloaded separately. The pretrained DriftWorld checkpoint does not contain DINOv3 or SD3 VAE.
The folder language_table_driftworld contains the code for training and evaluating DriftWorld on the Language Table dataset. Please put the pretrained checkpoint in the folder language_table_driftworld/language_table_checkpoints, and set up the dataset by following this.
To train DriftWorld:
- Run
torchrun --nproc_per_node=2 main_train.py --config-name=language_table_phase1for phase 1 training, and then runtorchrun --nproc_per_node=2 main_train.py --config-name=language_table_phase2for phase 2 self-forcing training. Experiments were run on 2 H200 GPUs.
To visualize generated videos:
- Run
python main_vis.pyto generate videos using DriftWorld.
To evaluate visual quality metrics:
- Run
script/eval_on_validation.sh. This will compute the SSIM, PSNR, LPIPS, FID, and FVD metrics on the generated videos.
If you have any questions, feel free to contact me at susielu [dot] research [at] gmail [dot] com.
If you find this work useful in your research, please consider citing:
@article{lu2026driftworld,
title={DriftWorld: Fast World Modeling through Drifting},
author={Lu, Susie and Chen, Haonan and Ye, Weirui and Du, Yilun},
journal={arXiv preprint arXiv:2607.15065},
year={2026}
}