cs.RONov 24, 2026

CodeWAM: A Code World Action Model for End-to-End Autonomous Driving

Authors: Zhisheng Chen, Jinpeng Wang, Beicheng Lou, Zhengwei Xie, Hao Wu, Rui Qian, Kun Wang, Vivian W. H. Wong

Organizations: Nanyang Technological University · Tsinghua University · Independent Researcher · University of Science and Technology of China · 

Abstract

Driving world models anticipate action consequences through representations of how the world evolves. For autonomous driving, these representations must capture both the surrounding scene and the ego vehicle's motion under a candidate plan. We propose CodeWAM, a driving world model that incorporates executable code as part of its world representation. Code represents ego dynamics by expressing how the vehicle state evolves under plan execution, while a learned visual model captures scene-dependent consequences. Executing the code produces a candidate-conditioned motion sequence, which is evaluated relative to the prior plan and recorded motion history. The resulting execution consequences and learned scene outcomes jointly represent the candidate's future, enabling the planner to assess both what a plan may lead to and how the vehicle transitions into that future. The selected plan becomes part of the next decision's execution context, linking successive choices within the model. CodeWAM achieves 93.6 PDMS on NAVSIM v1 navtest, 92.1 EPDMS on v2 navtest, and 50.6 EPDMS on NAVHARD. Further experiments demonstrate improved pairwise execution consistency and gains on Hydra-MDP and DrivoR without additional training, supporting executable code as a complementary representation for driving world models.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Latent-WAM: Latent World Action Modeling for End-to-End Autonomous Driving

    Mar 25, 2026Linbo Wang, Yupeng Zheng, Qiang Chen +13End-to-End Autonomous DrivingWorld Models for Autonomous Driving

  2. PlanWAM: Planning-Shaped Future Representations for End-to-End Autonomous Driving

    Oct 8, 2026Jinchang Xu, Hongda Yu, Fengwei Dong +9End-to-End Autonomous DrivingWorld Model-Based Planning

  3. DriveVA: Video Action Models are Zero-Shot Drivers

    Apr 5, 2026Mengmeng Liu, Diankun Zhang, Jiuming Liu +7Action-Conditioned Video GenerationWorld Models