Introduction
The ONELIFE framework addresses the challenge of learning a symbolic world model from a single episode of unguided exploration. Unlike traditional neural models that require vast datasets or symbolic models that assume determinism, ONELIFE combines Large Language Model (LLM) program synthesis with gradient-based statistical inference to reverse-engineer environment dynamics as executable Python code.
Problem Statement: Learning from "One Life"
Current world models often struggle with the trade-off between interpretability and data efficiency. Neural models are "black boxes" requiring massive interaction, while symbolic models often fail in stochastic (random) environments. ONELIFE targets "one-life" learning: discovering the "laws of physics" in a complex, dangerous world with a limited interaction budget and no external rewards or guidance.
Methods: Probabilistic Program Synthesis
The ONELIFE architecture treats world modeling as a probabilistic program synthesis task, structured around three pillars:
- Law Synthesis: An LLM-driven agent explores the world. When changes occur, a Law Synthesizer proposes "atomic laws"—Python snippets with precondition-effect structures (e.g., "IF next to tree AND action is chop, THEN wood increases").
- Probabilistic Inference: To handle stochasticity, ONELIFE treats the model as a mixture of programmatic laws. It uses the L-BFGS algorithm to learn weights for these laws based on observed transitions. A dynamic computation graph ensures scalability by only updating laws relevant to specific state changes.
- Forward Simulation: These laws can be executed to "imagine" future states. Since they output probability distributions, the agent can account for uncertainty during planning.
Datasets: Crafter-OO
To test ONELIFE in non-trivial environments, the authors developed Crafter-OO, a re-engineered version of the "Crafter" survival game. It provides a structured, object-oriented state (JSON-like) and a pure transition function. The evaluation suite includes 30+ scenarios covering a complex tech tree and "mutators" to test the model's ability to distinguish plausible from impossible states.
Key Insights
- Symbolic Sparsity: Modular laws allow for extremely efficient learning; updating a "Movement Law" doesn't require retraining the entire model.
- LLMs as Hypothesizers: LLMs generate creative hypotheses (code), while rigorous statistical likelihood (math) verifies them.
- State Ranking: The model prioritizes distinguishing plausible futures over perfect pixel-level generation, enhancing its utility for planning.
Key Results
ONELIFE demonstrated significant improvements over baselines in both accuracy and planning capability.
- Superior Accuracy: ONELIFE outperformed the PoE-World baseline on 16 out of 23 core game mechanics.
- Discriminative Power: In state ranking tasks, it achieved an 18.7% Rank@1 accuracy and a Mean Reciprocal Rank (MRR) of 0.479.
- Zero-Shot Planning: The model successfully identified winning strategies in goal-oriented tasks (e.g., "Zombie Fighter") via internal simulation, despite having no prior training on those specific goals.
Limitations and Future Work
Exploration remains a bottleneck; the agent struggles to reach deep tech-tree levels (like iron tools) in a single life. Future work aims to "close the loop" by using the model's own uncertainty to guide exploration toward unknown or poorly understood dynamics.
Summary updated