Skip to main content
Back

UCL's Memento 3 Beats Human Efficiency by 56% on Every ARC-AGI-3 Puzzle

A frozen LLM agent learns by rewriting its own natural-language rulebook and compiling it into verified code, clearing every public ARC-AGI-3 game.

Pro

  • Memento 3 reaches the ARC-AGI-3 RHAE ceiling of 100.0 across all 25 public games with a frozen LLM.
  • Agent uses 7,518 actions versus the 17,135-action human baseline, roughly 44 percent efficiency.
  • World model is a Markdown rulebook compiled into Python, revised through observe-reflect-revise-compile-verify loops.
  • Revisions accepted only when LLM judges faithfulness and cell-exact replay reproduces observed transitions.
  • Atari Pong controller derived from the rulebook wins 21:0 in three episodes with no LLM calls at inference.
  • Paper available on arXiv; prior Memento code on GitHub.

Researchers from University College London and Huawei’s Noah’s Ark Lab describe Memento 3, an agent that builds and revises an external world model while keeping its large language model frozen. The agent records its current understanding of a game in Markdown, compiles those rules into Python, and checks the resulting program against observed state transitions. When a prediction fails, it updates the rulebook and recompiles the engine without changing the LLM’s weights.

On the 25 public ARC-AGI-3 games, the authors report that Memento 3 cleared every level with a mean Relative Human Action Efficiency score of 100.0, the metric’s ceiling. It used 7,518 actions, or 44% of the 17,135-action human baseline. RHAE measures action efficiency against a human reference and caps scores at 100, so the metric does not distinguish between matching and exceeding that reference.

Why plausible models fail

ARC-AGI-3 is an interactive, game-based successor to the ARC visual reasoning puzzles. An agent must infer each game’s objects, controls, dynamics, and goals from observations gathered while playing. Effective planning therefore depends on a world model that predicts how the environment will respond to an action.

The paper identifies identifiability as the central problem. A limited interaction history can support several explanations that reproduce every observed transition while making different predictions about unseen states. An agent may appear accurate until a new level exposes an incorrect assumption about movement, geometry, or control behavior.

Common LLM-agent designs retain trajectories in the context window or update model weights from experience. Memento 3 stores its evolving hypotheses in persistent external artifacts, where later observations can revise or reject them. This gives the agent a versioned model that survives context limits and can be inspected independently of the LLM.

A rulebook the agent can execute

The authors call the design Code as Model. Three artifacts separate evidence, interpretation, and execution:

Artifact Contents Purpose
Interaction history Actions, observations, and resulting transitions Preserves episodic evidence from the environment
Markdown rulebook Hypotheses about objects, actions, dynamics, and goals Acts as persistent semantic memory
world_model_engine.py Executable rules compiled from the Markdown document Supports prediction, replay, and planning
Memento 3 observation, reflection, rule revision, compilation, and verification loop
Memento 3 turns observed transitions into revised rules, executable code, and replay checks.

Each update cycle follows five steps:

  1. Observe: Record the current state, selected action, and resulting state.
  2. Reflect: Compare the observed transition with the engine’s prediction and identify the rule that failed.
  3. Revise: Edit the Markdown rulebook to incorporate the new evidence.
  4. Compile: Generate a new Python world model from the revised rules.
  5. Verify: Check that the code matches the rulebook and reproduces recorded transitions exactly.

For the grid-based ARC tasks, a revision is accepted only after an LLM judge finds the generated code faithful to the rulebook and cell-exact replay reproduces the observed states. If either check fails, the previous model remains active. Replay grounds the revision process in recorded evidence, while the semantic check attempts to prevent the compiler from implementing behavior absent from the written rules.

Guardrails around revision

  • Unknowns remain explicit. The rulebook can leave unresolved mechanics underspecified, reducing the number of unsupported claims that later evidence must undo.
  • Rules retain stable names. Identifiers in the Markdown document carry into the generated Python, allowing developers to trace a code change back to a specific hypothesis.
  • Alternative models can coexist. A population variant maintains several rulebooks, shares interaction evidence among them, and uses their differing predictions to select informative actions.
  • Rollback remains available. Failed compilations and replay mismatches do not replace the last verified engine.

Eleven revisions in one game

A trace from ARC-AGI-3 game tr87 shows the agent producing 11 rulebook versions during one run. Early observations leave it uncertain whether glyphs are mirrored or rotated. A later transition refutes the mirror hypothesis and supports clockwise rotation. Another level forces the agent to replace a pixel-coordinate rule with one based on glyph bounding boxes, while subsequent evidence reverses an earlier claim about cursor behavior.

Rulebook versions from game tr87 showing retracted and resolved claims
Rulebook revisions from tr87 connect changed claims to the observations that contradicted them.

The paper’s “recursive self-improvement” label refers to this accumulating external state. Each accepted observation leaves the agent with a more detailed rulebook and a revised engine for future planning. The trace also exposes when a belief entered the system, which evidence changed it, and how the compiled implementation evolved.

What the benchmarks show

Benchmark Configuration Reported result
ARC-AGI-3 Single-model Memento 3 on 25 public games Every level cleared, mean RHAE 100.0, 7,518 actions
ARC-AGI-3 human reference Human baseline on the same public set 17,135 actions
Atari Pong Compiled Memento 3 controller after learning 21:0 in each of three episodes with different openings
Atari Pong LLM baseline without a world model Score of -19 in the authors’ comparison

The ARC-AGI-3 experiment measures interactive puzzle solving on the benchmark’s public games. Its reported result covers that set, leaving performance on hidden games and unfamiliar mechanics unmeasured by this study.

The Pong experiment tests whether the learned artifact can operate independently after the rulebook stabilizes. Memento 3 compiles its model into a feedback controller that plays three evaluated episodes without additional LLM calls. The result demonstrates deployment without model inference for a compact environment whose dynamics can be expressed in executable rules.

Pong score curves showing the compiled controller reaching 21 and the LLM baseline reaching minus 19
The compiled Pong controller reaches the winning score in all three evaluated episodes.

Exact replay sets the operating envelope

Cell-exact verification suits environments with deterministic or near-deterministic transitions, compact state representations, and mechanics that can be expressed through a manageable set of symbolic rules. Grid puzzles, small simulators, and simple 2D arcade games fit those constraints.

Environment property Effect on the approach
Deterministic transitions Recorded actions can be replayed against exact expected states.
Compact symbolic state The rulebook and generated code can represent objects and dynamics directly.
Stochastic behavior Exact equality may reject valid models, requiring probabilistic checks or tolerances.
Partial observability Identical visible states may conceal different underlying conditions.
Continuous sensor streams Cell-level replay becomes impractical and symbolic rules may lose relevant detail.

Exact replay establishes consistency with observed transitions, but several incompatible models may still pass the same checks. The population variant preserves alternative hypotheses and can seek actions that distinguish among them, although it cannot guarantee the correct interpretation of every unseen state.

Learning also incurs LLM inference costs. Reflection, rule revision, compilation, and judging consume calls, including attempts that fail verification. Eliminating LLM calls from a deployed Pong controller does not remove the expense of constructing that controller.

Implementations that execute generated Python also need operational safeguards. Sandboxing, file and network restrictions, execution timeouts, resource limits, versioning, and rollback protect the host system from malformed or unsafe generated code.

What writable memory buys

Memento 3 places adaptation in artifacts that developers can inspect directly. Rulebook versions can be diffed, each change can be connected to an observation, and the compiled engine can be tested without invoking the language model. Those properties make failures easier to reproduce and give reviewers a concrete record of the agent’s evolving assumptions.

The architecture’s practical contribution is a testable pattern for long-running agents: preserve interaction evidence, express current beliefs in a revisable document, compile those beliefs into an executable model, and reject updates that fail replay. The reported results are strongest in small, structured environments, while noisy and high-dimensional domains will require verification methods that tolerate uncertainty.