LeMario: Training a JEPA World Model on Super Mario Bros

benjamin-bai.com
July 14, 2026
11 min read
53/100
Summary
LeMario is a Joint-Embedding Predictive Architecture (JEPA) model trained on Super Mario Bros to learn world dynamics from pixels and actions. The model successfully passed all initial tests.
Key Takeaways
- The LeMario model is based on a Joint-Embedding Predictive Architecture (JEPA) that learns world dynamics from pixels and actions in Super Mario Bros.
- The model successfully generalized to held-out episodes and predicted five-step futures better than strong baselines, but struggled with navigating toward distant goals.
- The architecture includes a vision encoder and an action encoder that compresses visual frames and button states into latent representations for prediction.
- The causal predictor uses six transformer blocks and incorporates Adaptive LayerNorm Zero (AdaLN-Zero) to modulate the influence of actions on frame predictions.
Coverage & discussions
Hacker News · benjamin-bai.com
Community discussions
Historical count: 5 · 5 saved in sample · Historical sample
Analysis ready
Community Sentiment
Positives
- This paper shines a light on JEPA's potential, especially how it can predict horizontal position effectively after minimal training — a promising step for model-based control.
- The insights shared by the author about the training process are invaluable, showcasing a real-world application of AI concepts in gaming.
Concerns
- Planning in latent space can be noisy and unrepresentative of actual game positions, which raises concerns about control and optimization in dynamic environments.
- Chunking planning into intermediate goals feels limiting, undermining the essence of model-based control where flexibility is key.
Related Articles

The Annotated JEPA
Jul 10, 2026

Ornith-1.5: From Self-Scaffolding to Self-Improvement
Aug 19, 2026

Kimi Linear: An Expressive, Efficient Attention Architecture
Jul 28, 2026

A $500 RL fine-tune of a 9B open model beat frontier models on catalog review
Jul 28, 2026

The Little Book of Reinforcement Learning
Jul 16, 2026