Trained this 9M param world model
@neural_avb15K followers
21,599 views
14 Comments
Comments from the original post on X (Twitter)

@neural_avb
This is part of my upcoming computer vision "marathon" video. Repo WIP:
16 likes

@neural_avb
1) Claude created the 2D ray-casting env. We generated 20K episodes with a scripted random player... ~2.5M 64x64 frames 2) Trained a VQ-VAE tokenizer on the images (no temporal stuff yet)... 512 codes and 16x16 token grid. So each frame can be represented by a sequence of 256 tokens. 3) With the frozen VQ-VAE, trained a transformer. 3D rope for positional embedding, causal mask across time, and maskGIT across a single frame's token. Ie the 16x16 token grid does bidirectional attention with randomly masked tokens. But frames only look at past frames (causal attention) 4) the maskgit training allows us to generate the 256 tokens paralely during inference. 5) Each of the 5 actions have their own unique embedding. On an action, this action embedding is added to all the 256 frame embeddings where the action was applied.
11 likes

@shreyanbr
Damnn the shadows off the boxes stay properly consistent for 9M params 🔥 Went through the repo, train_wm.sh has K=4, so at 30fps the model only ever sees the last ~0.13 sec. Whatever long term continuity it has must be coming from what's still visible in those 4 frames, and it's a dark room, so the moment the flashlight turns away a box is basically gone from the context. Test I'd add to the 60 step dreams in select_ckpt - park the beam on a box, turn away for 2-3 sec, turn back. Same spot and angle means the VQ tokens are carrying way more scene info than 4 frames should allow. If it shifts or vanishes thats where the drift is
1 like

@Rachel_hkz
レンダリングエンジンを使わず、入力に応じて次フレームを30fpsで生成する世界モデルという説明が具体的で面白いです。過去フレームと操作から光や衝突の整合性まで保つなら、単なる動画生成より「動く環境」を学ばせる方向に感じます。

@Grumpysmurf_xyz
keeping objects persistent after they leave view is the tricky part, impressive at that scale

@ZECTBynmo
Cool as hell! I love VAEs so much.

@tarat_211
soo cool

@kdpisda
with a scripted random player the data barely has long straight walks, does continuity hold if you just hold forward for a minute?

@emil406p
This is extremely cool! He did a good job on this

@AIQuanting
Nice. How many hours of footage did it train on? I'm curious what breaks first when you do something it rarely saw, like hugging a wall for a while.

@VipulKewatTech
Excellent visual instincts

@TahaMajlesi
intresting

@vanraj_narula
Only 9M params and it runs at 30fps, that's wild. How long can you play before the frames start to drift?

@stevencheng
how long does the context window go