{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/drivingworld-constructingworld-model-for","title":"DrivingWorld: Constructing World Model for Autonomous Driving via Video GPT","arxiv_id":"2412.19505","date":"2024-12-27","proceeding":null,"authors":["Xiaotao Hu","Wei Yin","Mingkai Jia","Junyuan Deng","Xiaoyang Guo","Qian Zhang","Xiaoxiao Long","Ping Tan"],"abstract":"Recent successes in autoregressive (AR) generation models, such as the GPT series in natural language processing, have motivated efforts to replicate this success in visual tasks. Some works attempt to extend this approach to autonomous driving by building video-based world models capable of generating realistic future video sequences and predicting ego states. However, prior works tend to produce unsatisfactory results, as the classic GPT framework is designed to handle 1D contextual information, such as text, and lacks the inherent ability to model the spatial and temporal dynamics essential for video generation. In this paper, we present DrivingWorld, a GPT-style world model for autonomous driving, featuring several spatial-temporal fusion mechanisms. This design enables effective modeling of both spatial and temporal dynamics, facilitating high-fidelity, long-duration video generation. Specifically, we propose a next-state prediction strategy to model temporal coherence between consecutive frames and apply a next-token prediction strategy to capture spatial information within each frame. To further enhance generalization ability, we propose a novel masking strategy and reweighting strategy for token prediction to mitigate long-term drifting issues and enable precise control. Our work demonstrates the ability to produce high-fidelity and consistent video clips of over 40 seconds in duration, which is over 2 times longer than state-of-the-art driving world models. Experiments show that, in contrast to prior works, our method achieves superior visual quality and significantly more accurate controllable future video generation. Our code is available at https://github.com/YvanYin/DrivingWorld.","url_abs":"https://arxiv.org/abs/2412.19505v2","url_pdf":"https://arxiv.org/pdf/2412.19505v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"drivingworld-constructingworld-model-for","repo_url":"https://github.com/yvanyin/drivingworld","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"autonomous-driving","task_name":"Autonomous Driving"},{"task_slug":"video-generation","task_name":"Video Generation"}],"methods":[{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"cosine-annealing","method_name":"Cosine Annealing"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"discriminative-fine-tuning","method_name":"Discriminative Fine-Tuning"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"gpt","method_name":"GPT"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"linear-warmup-with-cosine-annealing","method_name":"Linear Warmup With Cosine Annealing"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"weight-decay","method_name":"Weight Decay"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2412.19505","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2412.19505"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yvanyin/drivingworld","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":1,"ran_violates":1,"ran_fixture":1,"unverified":6},"by_repo_kind":{"official":{"samples":9,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"5412a244b5b49ca7","entry":"apply_rotary_emb","repo":"yvanyin/drivingworld","repo_kind":"official","path":"modules/tokenizers/vq_model.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/modules/tokenizers/vq_model.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5412a244b5b49ca7"}},{"code_sha256_prefix":"e93cc5b705c2eb3b","entry":"precompute_freqs_cis","repo":"yvanyin/drivingworld","repo_kind":"official","path":"modules/tokenizers/vq_model.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/modules/tokenizers/vq_model.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e93cc5b705c2eb3b"}},{"code_sha256_prefix":"70bf6ebaafd266c4","entry":"reshape_for_broadcast","repo":"yvanyin/drivingworld","repo_kind":"official","path":"modules/tokenizers/vq_model.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/modules/tokenizers/vq_model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"70bf6ebaafd266c4"}},{"code_sha256_prefix":"9c7d2f6da948633b","entry":"data_aug_for_seq","repo":"yvanyin/drivingworld","repo_kind":"official","path":"datasets/datasets_utils.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/datasets/datasets_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9c7d2f6da948633b"}},{"code_sha256_prefix":"0a312449b8db6e5e","entry":"indices_to_pose","repo":"yvanyin/drivingworld","repo_kind":"official","path":"modules/tokenizers/pose_tokenizer.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/modules/tokenizers/pose_tokenizer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0a312449b8db6e5e"}},{"code_sha256_prefix":"4c06571857e3fedc","entry":"poses_to_indices","repo":"yvanyin/drivingworld","repo_kind":"official","path":"modules/tokenizers/pose_tokenizer.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/modules/tokenizers/pose_tokenizer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4c06571857e3fedc"}},{"code_sha256_prefix":"c5fe3ff15c5683d0","entry":"radians_to_degrees","repo":"yvanyin/drivingworld","repo_kind":"official","path":"datasets/datasets_utils.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/datasets/datasets_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c5fe3ff15c5683d0"}},{"code_sha256_prefix":"45226648043ea159","entry":"reverse_seq_data","repo":"yvanyin/drivingworld","repo_kind":"official","path":"datasets/datasets_utils.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/datasets/datasets_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"45226648043ea159"}},{"code_sha256_prefix":"2957dd5703a0835c","entry":"yaws_to_indices","repo":"yvanyin/drivingworld","repo_kind":"official","path":"modules/tokenizers/pose_tokenizer.py","file_url":"https://github.com/yvanyin/drivingworld/blob/HEAD/modules/tokenizers/pose_tokenizer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2957dd5703a0835c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}