Executable World Models: Teaching AI to Understand the World by Writing Code Instead of Guessing Words
Topic: Interactive reasoning world model based on code generation Paper: *Executable World Models for ARC-AGI-3 in the Era of Coding Agents* Author: Sergey Rodionov (SingularityNET, 2026)
---
1. What Does "Truly Understanding" Mean?
Feynman once said: "What I cannot create, I do not understand."
If you ask today's LLM: "What happens if I move this red square next to the blue circle?" It will guess the most probable answer based on billions of lines of text it has seen. This is "statistical simulation," not "understanding."
Real understanding is building a simulator in your head. You don't need to look at the answer—you just run the action mentally and see the result.
The core idea of this paper: instead of giving answers directly, the AI first writes Python code to simulate the rules of the world.
2. ARC-AGI-3: The "Intelligence Ceiling" for AI
To prove the idea, the author takes on ARC-AGI-3, a benchmark created by Google's legendary expert François Chollet, designed specifically to catch AI systems that rely on rote memorization.
ARC tasks look like this: given a few examples of graphic transformations, find the underlying rule. For example, "all red blocks rotate 90 degrees around the blue block." Humans see it instantly; AI struggles because it has never seen that specific rule before.
3. "Writing Code" IS "Modeling"
The paper's Executable World Models framework turns the AI into a programmer:
1. Observe and hypothesize: After seeing examples, the AI doesn't guess the answer directly—it writes Python code like: "I think the rule is color_fill(x, y, red)."
2. Self-verification: It runs the code locally. If the code's output matches the examples exactly, its "world model" is correct.
3. Relentless refactoring: The most brilliant step! The AI tries to write the code shorter and shorter.
- Why? Occam's razor: simpler explanations tend to be closer to the truth (minimum description length, MDL).
- The AI keeps simplifying its code logic until it distills the core physical rule. 4. Planning by simulation: Once the model is built, the AI runs the simulation first, confirms the plan works, and only then submits the final answer.
- Exploding interpretability: If the AI is wrong, you can read its Python code directly and spot exactly where the logic went off track.
- Striking efficiency: On the 25 hardest ARC games, this "code-as-model" approach directly solved 7. It sounds small, but at ARC's brutal difficulty, that is a milestone.
- Cross-domain generality: As long as an environment can be described in code (physics, chemistry, programming, etc.), the AI can learn to master it by "writing a simulator."
4. Core Thesis: Code Is the "Skeleton" of Reasoning
The paper demonstrates a strong claim: code generation capability is the key to general-purpose reasoning in AI.
5. Takeaway: From "Probability" Back to "Logic"
We used to think that with enough data, AI would stack its way into intelligence. This paper says otherwise: intelligence is not about how much you memorize, but whether you can distill chaotic phenomena into concise, runnable logic.
This is more than an AI framework—it is the scientific method, digitized: observe -> model -> verify -> simplify.
Editor's note: This paper marks a necessary step on the road to AGI. Once AI learns to explore the unknown by "writing world models," it stops being a parrot that repeats and becomes a genuine "digital scientist."