๐ World2VLM: Distilling World Model Imagination into VLMs for Dynamic Spatial Reasoning
April 30, 2026 ยท View on GitHub
๐ Official repository for World2VLM, a framework that distills world model imagination into Vision-Language Models (VLMs) for dynamic spatial reasoning.
๐ Overview
World2VLM introduces a novel paradigm that leverages world models to generate imagined trajectories and distills them into VLMs for enhanced spatial understanding.
This repository contains the core codebase used in the paper, which is sufficient to reproduce the main experiments.
A fully complete version of the codebase (including additional engineering components) will be released soon.
โจ Key Features
- ๐ World Model Simulation for trajectory generation
- ๐ฏ Bidirectional Spatial Supervision (A1โA4, D1โD4 tasks)
- ๐ Two-stage Post-training Pipeline (SFT + GRPO)
- ๐ฆ Modular and reproducible pipeline aligned with the paper
๐ Resources
- ๐ Paper: https://arxiv.org/abs/2604.26934
- ๐ค Dataset: https://huggingface.co/datasets/WanyueZhang/World2VLM
๐งฉ Pipeline Overview
The repository follows the three-stage pipeline described in the paper:
- World Model Trajectory Generation
- Spatial Supervision Construction
- Post-training (SFT โ GRPO)
๐ Repository Structure
code/
โโโ README.md
โโโ 01_world_model_trajectory_generation
โ โโโ hy_worldplay
โ โ โโโ hyvideo/
โ โ โโโ motion_configs/
โ โ โ โโโ simulate_datagen.yaml
โ โ โโโ run_hy_worldplay_scene_generation.sh
โ โโโ svc_teacher
โ โ โโโ config/
โ โ โ โโโ default.yaml
โ โ โ โโโ simulate_camera.yaml
โ โ โ โโโ svc_teacher_generation.yaml
โ โ โโโ datagen/
โ โ โโโ run_svc_real_scene_generation.sh
โ โ โโโ run_svc_simulate_scene_generation.sh
โ โโโ tools
โ โโโ build_manifest.py
โ โโโ export_hy_motion_plan.py
โโโ 02_spatial_supervision_construction
โ โโโ run_build_a1_a4_motion_supervision.sh
โ โโโ run_build_d1_d4_object_supervision.sh
โ โโโ svc_dataset_gen/
โ โโโ tools
โ โโโ build_motion_tasks.py
โ โโโ build_object_tasks.py
โ โโโ cache_detector_tracks.py
โ โโโ package_worldvlm_data.py
โโโ 03_post_training
โโโ grpo_support
โ โโโ config.yaml
โ โโโ prepare_grpo_data.py
โโโ reward
โ โโโ worldvlm_reward.py
โโโ run_stage1_sft.sh
โโโ run_stage2_grpo.sh
๐งช Stage 1: World Model Trajectory Generation
This stage generates multi-step camera trajectories and corresponding scene data using world models.
๐น Components
hy_worldplay/
- Simulated trajectory generation using HY-WorldPlay
- Includes motion configuration and runtime modules
svc_teacher/
- Teacher pipeline for both real and simulated scenes
- Handles:
- trajectory construction
- frame generation
- scene serialization
tools/
- Manifest building and motion plan conversion utilities
๐ง Stage 2: Spatial Supervision Construction
Transforms generated scenes into eight task types:
- Motion-centric: A1โA4
- Object-centric: D1โD4
๐น Key Scripts
- run_build_a1_a4_motion_supervision.sh
- run_build_d1_d4_object_supervision.sh
๐น Modules
svc_dataset_gen/
- Prompt construction
- Bounding box normalization
- Detector integration
- Task template generation
tools/
- Task building utilities
- Data packaging for training
๐ฅ Stage 3: Post-training
Implements the two-stage training pipeline:
๐ฅ Stage 1: SFT (Supervised Fine-Tuning)
run_stage1_sft.sh
๐ฅ Stage 2: GRPO (Reinforcement Learning)
run_stage2_grpo.sh
๐น Additional Components
- prepare_grpo_data.py โ data preprocessing
- config.yaml โ GRPO configuration
- worldvlm_reward.py โ task-aware reward function
๐ Getting Started
โ ๏ธ This is a core release. Some engineering utilities and dependencies will be included in the full release.
- Clone the repository
git clone https://github.com/your-repo/world2vlm.git
cd world2vlm
- Prepare dataset
Download from: ๐ https://huggingface.co/datasets/WanyueZhang/World2VLM
- Run pipeline
Follow the stages:
- Stage 1 โ trajectory generation
- Stage 2 โ supervision construction
- Stage 3 โ training
๐ Notes
- โ This repo contains essential components for reproducing experiments
- ๐ Full codebase (training infrastructure, optimizations, etc.) coming soon
- ๐งช Designed for research and reproducibility
๐ Citation
If you find this work useful, please cite:
@misc{zhang2026world2vlmdistillingworldmodel,
title={World2VLM: Distilling World Model Imagination into VLMs for Dynamic Spatial Reasoning},
author={Wanyue Zhang and Wenxiang Wu and Wang Xu and Jiaxin Luo and Helu Zhi and Yibin Huang and Shuo Ren and Zitao Liu and Jiajun Zhang},
year={2026},
eprint={2604.26934},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2604.26934},
}
๐ค Acknowledgements
We thank the open-source community and prior work on:
- World Models ๐
- Vision-Language Models ๐๏ธ๐ฃ๏ธ
- Embodied AI & Spatial Reasoning ๐งญ
โญ Star This Repo
If you find this project helpful, consider giving it a โญ to support our work!