One Life to Learn: Inferring Symbolic World Models for Stochastic Environments from Unguided Exploration

Zaid Khan, Archiki Prasad, Elias Stengel-Eskin, Jaemin Cho, Mohit Bansal

Imagine dropping an AI agent into a complex, Minecraft-like survival game. It has no manual, no rewards, and no "extra lives." To survive, it must observe the world and figure out the underlying rules—the "physics" of the game—on the fly.

This is the challenge addressed by OneLife, a new framework designed for the messy, unpredictable, and "expensive" reality of complex simulations. While previous symbolic world models thrived in simple, deterministic environments with massive amounts of data, OneLife tackles stochastic environments with severe constraints.

TL;DR

OneLife learns to represent an environment's dynamics as a collection of probabilistic, programmatic "laws" synthesized by a Large Language Model (LLM) and refined via gradient descent. By learning from just a single episode of unguided exploration, it can predict future states and plan complex multi-step tasks in stochastic, object-oriented worlds.

Overview of the OneLife framework and its benefits

What Problem Does This Paper Address?

Most current world models fall into two camps: "black-box" neural networks (powerful but uninterpretable) and symbolic models (interpretable and editable, but rigid). Symbolic models usually struggle with two main issues:

  1. Stochasticity: Real environments have "aleatoric uncertainty"—randomness you can't predict perfectly, such as a zombie's next move.
  2. Data Efficiency: Most models require thousands of interactions. In a "one life" scenario where exploration is dangerous, an agent needs to learn from very few observations.

The authors identify a critical gap: we lack symbolic models capable of handling complex, hierarchical, and random environments without relying on human-defined rewards or goals.

Methods: Probabilistic Mixture-of-Laws

The core of OneLife is a Probabilistic Mixture-of-Laws. Instead of one monolithic program, the world model acts as a library of small, atomic "laws."

Each law features a precondition (when it applies) and an effect (how it alters the state). For example, a ZombieMovementLaw only activates if a zombie is near the player. The framework operates in a two-stage loop:

  1. Law Synthesis: As the agent explores, it uses an LLM to "hypothesize" laws. When the agent observes a state change (e.g., wood count increases after hitting a tree), the LLM writes a Python class to explain that specific transition.
  2. Inference & Optimization: Because not all hypothesized laws are correct, OneLife uses a gradient-based inference algorithm to assign weights ($\theta$) to these laws. If a law consistently predicts the next state correctly, its weight increases; if it's wrong, it is effectively silenced.
The dynamic computation graph routing inference and optimization

Crucially, this creates a dynamic computation graph. Gradients only flow through the laws that were "active" during a specific transition. This allows for incredibly precise credit assignment, avoiding scaling bottlenecks even in worlds with hundreds of moving parts.

Datasets: Crafter-OO

To evaluate this approach, the authors introduced Crafter-OO, a specialized reimplementation of the popular "Crafter" survival benchmark.

  • Object-Oriented State: Unlike the original pixel-based version, Crafter-OO exposes a structured, text-based state (JSON) that LLMs can read and reason about.
  • Pure Transition Function: It ensures that every change in the world results strictly from the current state and action, with no hidden variables—a perfect testbed for symbolic discovery.
  • Evaluation Suite: The authors contributed over 30 scenarios (e.g., "Collect Coal," "Defeat Skeleton") to measure how well the model understands specific mechanics.

Key Insights and Ideas

  • Macroscopic vs. Microscopic Physics: Trying to predict the exact random seed of a simulator is a fool's errand. Instead, OneLife aims for "macroscopic" laws—predicting the distribution of possible outcomes (e.g., "the zombie will move to one of these three squares") rather than a single deterministic point.
  • Atomicity is Scalable: By forcing the LLM to write laws that govern only a "narrow slice" of the state (like just the player's health or a single map tile), the model avoids the static graph bottleneck of previous work.
  • Exploration as Reverse-Engineering: The agent isn't trying to "win"; it explores to trigger as many "IF-THEN" scenarios as possible, maximizing its understanding of the world's underlying code.

Key Results

OneLife was compared against PoE-World (a prior state-of-the-art symbolic model).

  • State Ranking: OneLife achieved a Mean Reciprocal Rank (MRR) of 0.479, significantly outperforming the PoE-World baseline (0.351). This indicates a superior ability to distinguish plausible future states from implausible ones.
  • Win Rate: It outperformed the baseline on 16 out of 23 core environment dynamics tested.
  • Planning in Imagination: The authors demonstrated that an agent could use the learned OneLife model to "imagine" different strategies. In a "Stone Miner" task, the model correctly predicted that crafting a pickaxe first was necessary to mine stone, allowing it to choose the superior plan without trial-and-error in the real world.

Limitations and Future Work

While OneLife represents a significant leap forward, the "one life" constraint remains a high bar.

  • Exploration Bottlenecks: The agent's ability to learn is limited by what it observes. If the unguided exploration policy fails to discover how to craft a diamond sword, the synthesizer cannot write a law for it.
  • Memory: The authors noted a tendency for the agent to "forget" previously learned information during long trajectories.
  • Tech Tree Depth: Currently, the model struggles with very deep causal chains, such as the complex, multi-step prerequisites required to reach the end-game of a survival simulator.

Ultimately, OneLife proves that we don't need millions of frames to learn how a world works. With smart hypothesis generation and well-placed gradients, an agent can autonomously decode the programmatic laws of an unknown environment from just a single life.

Summary updated

BibTeX
@inproceedings{khan2026one,
  author = {Zaid Khan and Archiki Prasad and Elias Stengel-Eskin and Jaemin Cho and Mohit Bansal},
  title = {{One Life to Learn: Inferring Symbolic World Models for Stochastic Environments from Unguided Exploration}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=UQ36IrVCw2},
}
Figure