ARC-AGI-3 · world models

Learning the Rules of a Game You've Never Seen

My ARC-AGI-3 agent builds a world model while it plays. It won seven public games and scored 0.18% on the hidden ones, and one ablation shows where its competence really lived.

Code
A grid maze drawn like a survey map. The left half is charted: dark wall cells, an orange route from a start marker to the agent's current position, and a thin graph of visited states. The right half is unexplored dots with a single blue goal marker.
Half a level, surveyed. Walls the agent has bumped into, the states it has visited, the frontier it has not, and a goal it has not found yet.

Put a person in front of a game they have never seen, with no instructions, and within a minute they are pressing keys to see what moves. A few minutes later they know what they control, what blocks them, and roughly what the game wants. I spent a summer building an agent, Curio, that does this on purpose for ARC-AGI-3: it compares each frame with the one before and turns the differences into rules. It won seven of the 25 public games outright. On the hidden competition games it scored 0.18%.

This post is about both numbers. First I will show how an agent can learn the rules of a game while playing it, with real mechanisms you can poke at. Then I will show why that machinery was worth almost nothing on games I had not seen, and what one ablation says about where the agent's competence actually lived. Most of it lived in me.

A game with no manual#

ARC-AGI-3 is an interactive benchmark [1]. Each game is a turn-based environment drawn on a grid of at most 64 by 64 cells, each cell one of 16 values. Every turn the agent receives the current frame and a list of legal actions: up to five simple actions that behave like keys, a click at an (x, y) coordinate, sometimes an undo, and a reset. There is no text and no reward. The only feedback is a counter of completed levels and a flag that says the game is still running, won, or over.

People handle this fine. The benchmark's authors report that humans solve 100% of the environments, and that frontier AI systems scored below 1% as of March 2026 [1]. The design follows Chollet's argument that intelligence is skill-acquisition efficiency: how little experience you need before you are good at something new [2]. ARC-AGI-3 measures that directly. It counts your actions and compares them with the actions of a human who was also seeing the game for the first time.

My bet was that the right response is a model, and that searching over action sequences without one is hopeless. Curio is a single Python file, 12,735 lines, CPU only, with no trained weights. Everything it knows about a game it learns during that game.1The usual meaning of "world model" in reinforcement learning is a generative network trained by gradient descent on many rollouts, as in Ha and Schmidhuber [3]. Curio sits at the other extreme: symbolic structure that I wrote, with a handful of parameters fit from tens of frames.

What do I control?#

Start with perception. Curio takes the most common color in the frame as background and splits everything else into connected components: maximal sets of same-colored cells that touch along an edge. Each component gets an appearance signature, which is its cell pattern shifted to the origin, minimized over the four rotations, plus its color. The same sprite then hashes to the same value wherever it sits, on this level or the next.

Then it looks at what changed. For every component in the new frame that has no identical twin in the old frame, Curio searches for an old component of the same color that is an exact translation of it. That gives a list of movers, each with a shift.

Two consecutive frames and their difference: one two-colored group shifts one cell right, and a counter strip on the bottom edge shrinks.frame beforeframe after ACTION4what changedone rigid group, two colorsshift (+1, 0): a vote for ACTION4counter strip: maskedcolored components on a backgroundsame components, two differ
Figure 1. One step of evidence. The orange and yellow cells are separate components, but they moved by the same shift, so they count as one rigid group. The purple strip on the bottom edge is a step counter. It changes on every action and has to be ignored.

The rule for reading a diff is strict. If every mover shares one shift, the movers form one rigid group, and that group is a candidate for the thing I control. A sprite drawn in several colors moves as several components, which is why the test is on the group. If two different shifts appear in the same frame, something else is animating, and Curio learns nothing from that frame. Being wrong about physics costs more than waiting one more step.

Each clean observation is a vote: this action produced this shift. Three consistent votes and the rule is trusted. The same votes identify the avatar by color and by shape.

Walls come next, and the order matters. Once ACTION4 is trusted to mean "shift by (+1, 0)", an ACTION4 that leaves the avatar where it was means the cell ahead is blocked. Before the rule is trusted, a frame that does not change says nothing. Curio does not assume what a wall looks like. It finds walls by walking into them, and each bounce costs one action. Remember that cost. It comes back when we get to the score.

The figure below is a small version of this loop that you can drive. The left panel is the true game. The right panel is what the agent has evidence for. Press the actions yourself, or let Curio run and watch three stages go by: voting on what the keys do, bumping into things, then planning. Left alone, Curio finishes this level in 45 actions. The shortest route is 12.

Interactive figure: a 9 by 7 grid world with four unlabeled actions, and a panel showing which movement rules, walls and visited cells the agent has inferred so far. It needs JavaScript.

Figure 2. Learning to move, from frame differences alone. The thresholds are Curio's real ones: three consistent votes to trust a rule, and a wall is recorded only when a trusted move fails. The 9 by 7 map is my illustration; real frames are 64 by 64 and the avatar is a multi-cell sprite. Watch the action count when the level ends.

Once at least two movement rules are trusted, Curio plans. The planner is a breadth-first search over avatar positions, using the learned shifts as edges and skipping known walls. Its target is the nearest position that touches a small object or that the avatar has never stood on. That is the entire general-purpose movement core: segment, diff, vote, bump, search.

One detail from Figure 1 deserves a paragraph, because it breaks everything if you miss it. Many games draw a step counter or a row of lives along the edge of the frame. It changes on every action, so no two frames are ever identical, and the question "have I been in this state before?" always gets the answer no. Curio tracks how often each cell changes within three pixels of the border and masks strips that change in more than 40% of frames. Only the border band can be masked, so gameplay in the interior can never be hidden by mistake.

When the rule is richer than "I move"#

Most of the games are not walk-to-the-goal. Take the public game ft09. It has no avatar and only one action, the click. The frame shows a board of tiles, and clicking a tile recolors it.

Curio's model for this kind of game has four parts. It finds the board by looking for same-shaped sprites that agree on one spacing and one offset. It clicks one tile of each appearance class to learn that class's effect: which neighboring tiles recolor, and which color follows which. It reads the static marker tiles as constraints on their neighbors: this one must match my color, that one must differ. Then it solves.

On the last level of ft09 a click recolors the tile and also the tile above it, and there are two colors. This is a relative of the Lights Out puzzle, and it has the same clean structure [4]. Clicking a tile twice undoes the click. The order of clicks does not matter. So the only question about each tile is whether to click it once or not at all. Write that as a vector xx of zeros and ones, one entry per tile. Write bb for which tiles currently have the wrong color. And let Aij=1A_{ij} = 1 when clicking tile jj recolors tile ii. The board is solved exactly when

A x=b(mod2).A\,x = b \pmod 2 .

Each row says: the number of chosen clicks that touch this tile must be odd if the tile is wrong and even if it is right. Arithmetic mod 2 is the field GF(2), where addition is XOR, and Gaussian elimination works in it the way it does over the reals. Curio stores each row as one integer, so eliminating a row is a single XOR.

Interactive figure: a 4 by 3 board of two-colored tiles where a click recolors the tile and the one above it, next to the matrix A, the click vector x and the wrong-color vector b. It needs JavaScript.

Figure 3. A recolor board as a linear system. Click tiles and watch bb change; the solver recomputes xx each time. Each column of AA has two entries: the tile itself and the tile above. The board is my illustration, with the click effect of the last ft09 level.

I like two things about this solver. It is exact: no search, no exploration, just the answer. In the recorded run ft09 falls in 124 actions against a summed human baseline of 208, and Curio is under the baseline on all six levels. And an inconsistent system is informative. If elimination produces the row 0=10 = 1, no set of clicks satisfies the constraints as Curio read them, and the solver returns nothing in place of a bad plan. Curio keeps two readings of the markers, "must match" and "must differ", and drops one when it contradicts itself or is satisfied without the level ending. An exact solver makes that kind of test cheap.

There is a third thing, and I did not like it once I saw it clearly. The idea that this game is a lattice of recolor tiles with neighbor constraints did not come from Curio. I wrote that model class after staring at ft09. Curio fits the class. It did not find it. Hold that thought.

The file contains about a dozen of these family solvers. One handles an avatar that carries an attribute which certain tiles change, and plans over position and attribute jointly. One assembles pieces by overlapping their connection ports. One drives a cursor and a glyph cycler to rewrite a row of symbols. One plans through a maze of nodes in the joint state of the player and the moving actors. One simulates pushes and collisions and searches the result. Each solver sits behind a gate: a structural test on the action set and the first frames that decides whether the model applies. The gates contain no game names, no coordinates and no scripted paths.2I was careful about this. The push solver's gate, for example, was checked against the opening frames of all 25 public games and passed on exactly one: the game it was built for. At the time I read that as precision.

When nothing matches: explore the state graph#

If no gate opens, Curio falls back to exploration over a graph of states. A node is a frame, hashed with the masked border removed. An edge is an observed transition: in this state, this action led to that state. Each node keeps the list of actions not yet tried there, ranked into tiers by how much they are likely to teach:

The policy is short. Take the best untried action in the current state. If there is none, search the known edges for the nearest state that still has one, scoring each candidate as path length minus 0.25 per tier, and walk there. If no such state is reachable, reset to the start of the level, at most four times per level. An edge is treated as fatal only after four identical deaths, because timers kill too and I did not want one unlucky death to wall off a corridor.

A state graph. The current state has no untried actions, so the explorer routes through known edges to a state two steps away that still has an untried click on a never-seen sprite, in preference to another state at the same distance with a lower-tier action.4 deaths here: edge excludedRESET: last resort, back to the level startlevel startcurrent statenothing untriedtier 1, 2 steps: cost 1.75route to tier 3, 2 steps: cost 1.253 click on a sprite never seen before2 click class that usually changes the board1 key whose effect is not yet trusted
Figure 4. The explorer's view of a level. The current state has nothing left to try. Two states still have untried actions, both two steps away. The one with a never-clicked sprite wins: 2 minus 0.75 is 1.25, against 1.75 for the other. Distance dominates. The tier only breaks near-ties.

This has the shape of Go-Explore: remember states, return to a promising one, explore from there [5]. One difference matters more than it looks. Go-Explore returns to a state by restoring the simulator, which is free. Curio has to return by replaying actions in the live game, and every replayed action is counted against it.

Seven wins#

Here is what the full agent does on the public games it handles. Every run is the official local environment at seed 0.

Seven complete wins. For each game, total actions Curio used against the summed human baseline.04008001200actionstu939 levels462211re868 levels1255552ka597 levels730313cn046 levels789328tr876 levels414242sc256 levels350147ft096 levels208124Curiohuman baseline
Figure 5. The seven complete wins: 48 levels in 1,917 actions, against 4,208 for the summed human baselines. Curio uses between 42% and 60% of the human action count on every game.

Level by level, Curio is under the human baseline on 45 of the 48 levels and ties one. The two it loses are both first levels: 21 actions against 19 on tu93, 32 against 26 on re86. That is where the model is still being fit. After level one the rules carry over and the agent just executes.

So the local evidence looked strong. Seven complete campaigns at about half the human cost, protected by a regression suite that kept every win at its exact action count through later changes. I expected the hidden score to at least register.

0.18%#

0.18%Curio's score on the hidden competition games, twice in a row

The competition evaluates 110 games that nobody outside the organizers has seen. I checked the boring explanations first. I pulled the submitted Kaggle kernel back down and compared its embedded agent with the repository: identical, byte for byte. The run completed without errors. A second submission three days later, with a threading fix, scored 0.18% again. An earlier version of Curio, about a third the size, had scored 0.22%. Roughly 8,700 more lines and more public wins had not moved the hidden score up. It went from 0.22% to 0.18%.

To see why, you need the scoring rule and one ablation.

The scoring rule#

The metric is called Relative Human Action Efficiency [6]. For each level, the organizers recorded how many actions first-time human players needed, and took the upper median as the baseline hℓh_\ell. If the agent completes level ℓ\ell in aℓa_\ell actions, the level scores

sℓ=min⁡ ⁣(1.15,  (hℓaℓ)2),s_\ell = \min\!\left(1.15,\; \left(\frac{h_\ell}{a_\ell}\right)^{2}\right),

and zero if the level is not completed. The ratio is squared, so inefficiency is punished twice. Being faster than the human earns a small bonus, capped at 1.15. A game's score is the average of its level scores weighted by level number, so later levels count more, and it is capped by the share of weight the agent actually completed:

Sgame=min⁡ ⁣(∑ℓℓ sℓ∑ℓℓ,    ∑ℓ ∈ completedℓ∑ℓℓ).S_{\text{game}} = \min\!\left(\frac{\sum_{\ell} \ell\, s_\ell}{\sum_{\ell} \ell},\;\; \frac{\sum_{\ell\,\in\,\text{completed}} \ell}{\sum_{\ell} \ell}\right).

The final score is the mean over games, reported as a percentage. Move the sliders.

Interactive figure: level score as a function of agent actions relative to the human baseline, with the real per-level results for the game tu93 with and without its dedicated solver, and a slider showing how the number of completed levels caps a game's score. It needs JavaScript.

Figure 6. The price of slow learning. The curve is the level score. The dots are real: the nine levels of tu93 with its maze solver (orange, mostly on the cap) and the five levels the generic core completed on the same game (blue, all on the floor). The second slider shows the completion cap for an eight-level game.

Three consequences follow, and each one hurts an agent that explores.

Twice the human's actions is worth 25%. Ten times is worth 1%. Across the 183 levels of the public games, the median human baseline is 60 actions, and for first levels it is 30. To earn even a quarter of the credit on a typical first level, an agent has 60 actions in total to work out what it controls, what the goal is, and then do it. Curio's opening allowance for passive learning runs up to 500 actions. On a level with a 30-action baseline, 500 actions is worth (30/500)2=0.36%(30/500)^2 = 0.36\%. Every wall found by bumping into it is paid for at this rate.

Completion caps everything. Clear only the first level of an eight-level game and the game cannot score above 2.78%, however fast that level was. Three of eight caps it at 16.67%.

And the two effects multiply. The blue dots in Figure 6 are the clearest example I have. With its family solver disabled, Curio still completes five of the nine levels of tu93. The generic machinery really does learn the game. It takes 7,369 actions to do it, and the game scores 0.06%. With the solver enabled, the same game takes 211 actions and scores 100%.

The ablation#

One environment variable disables every family solver and leaves the rest: perception, control discovery, the planner, the graph explorer. I ran both configurations on all 25 public games, seed 0, with a cap of 10,000 actions per game.

ConfigurationPublic-game scoreComplete winsLevels completed (of 183)
Full agent29.4916%772
Family solvers disabled0.1433%021
Per-game score on the 25 public games for the full agent and for the generic core alone. Seven games score 100 with the full agent. With the family solvers switched off, every game scores under 3.0255075100tu93re86cn04ft09tr87sc25ka59sb26dc22lp85su15g50tls20tn36r11llf52vc33sp80cd82ar25m0r0bp35s5i5sk48wa30full agent, mean 29.49%generic core only, mean 0.14%full agentfamily solvers disabledgame score %
Figure 7. The same sweep, game by game. Seven orange bars reach 100. Every blue bar is under 3. Of the full agent's 29.49 points, 28.00 come from the seven complete wins and 1.49 from all partial progress on the other 18 games combined.
0.14%the same agent on the 25 public games with its family solvers switched off

The generic core is not dead. With no family solver it completes 21 levels across 15 games, so it does discover rules it was never told about. But on those levels it uses a median of 18.9 times the human baseline, and (1/18.9)2(1/18.9)^2 is 0.28%. Exactly one of the 21 levels came in under the baseline.

Now put the two small numbers side by side: 0.18% on the hidden games, 0.14% on the public games with the solvers off. I cannot use one to predict the other. They are different games, and the repository records say so in several places. But the simplest reading is hard to avoid. On a game I never saw, no gate opens, and Curio is its generic core.

This is the part I got wrong. I had assumed the hidden games would be variants of the public families, so that every public win was a down payment on hidden score. The unchanged score after adding those wins says the hidden games are not variants, or at least not ones my gates recognize. The precision I was proud of in the gates was the problem. A gate that fires on exactly one of 25 public games is a detector for that game.

Where the generic core spends its actions#

Where the 10,001 actions went in each of the 18 games Curio did not finish: a short solved prefix, then thousands of actions on the first level it could not solve.02,5005,0007,50010,000sk480/8wa300/9su151/9lp851/8sb263/8tn361/7r11l1/6g50t1/7vc332/7sp801/6ar251/8lf522/10ls202/7cd821/6dc224/6m0r01/6bp351/9s5i51/8actions on levels it completedactions on the first level it could not solvelevels
Figure 8. The 18 public games the full agent does not finish. Each bar is one run of 10,001 actions. The green sliver is everything spent on levels it completed. In 17 of the 18 games, at least 8,000 actions go to the first level it cannot solve.

The pattern is a wall, and I instrumented it. Two mechanisms showed up.

The first is a novelty trap. On level 2 of lp85 the explorer issued the same click 610 times from 134 distinct states. A click that reliably changes the board makes every successor state look new, so "untried in this state" never runs out, and the counter that detects stagnation never trips. This is a relative of a known failure in curiosity-driven exploration, where an agent rewarded for novelty or prediction error gets captured by anything that keeps producing fresh observations [7][8]. I tried penalizing repeated clicks within a level. On a fixed 12-game subset the score went from 34.0305 to 34.0154. Worse. I reverted it.

The second is frontier exhaustion. On a stalled level the query for untried actions returned zero or one candidates in 88% of calls, and nothing at all in 4,429 of 7,963. The designed escape is the reset. I raised the reset limit from 4 to 32 to 128 and the score did not change in any digit, which made me suspicious. I instrumented the reset branch on three stalled games for 3,000 actions each. It fired zero times. I had been tuning a knob that was connected to nothing.

The family solvers hit a different wall. I traced six of them to the exact line where they give up on the first level they fail. None of the failures was fragility. The games had moved on to mechanics no solver models: lf52 is peg solitaire, vc33 is a network where quantities are conserved as they are transferred, and the fifth level of dc22 stops being a switch puzzle at all. Landing every remaining fix I had diagnosed would be worth about 0.25 points on the public set.

Where the competence lived#

Each family solver is two things: a hypothesis class and an estimator. The estimator is Curio's. Given the class "lattice of recolor tiles", it finds the effect masks and the color cycle in a few clicks, and then it is done. That part is efficient, which is why the wins come in at half the human action count.

The hypothesis class is mine. Choosing it was slow work. The repository has 17 probe and debug scripts, each written to stare at one game until I understood its mechanic. That is where the rule discovery happened. It happened offline, in my head, with unlimited actions and a debugger.

Chollet draws this line carefully. He separates generalization to situations the system has not seen from generalization to situations the developer has not seen either, and argues that only the second kind should be credited to the system [2]. By that standard the seven wins measure my skill acquisition. The benchmark did its job. The hidden games took me out of the loop, and what was left scored 0.18%.

I do not think the world model was the mistake. The seven wins show what an accurate model buys: exact plans at half the human cost. The 21 generic levels show what a vague one costs: 19 times the human's actions. The mistake was where the model's structure came from. Curio can estimate parameters inside a class. It cannot propose a class.

What I would build next#

The project took 126 commits between May 27 and August 30, 2026, at one Kaggle submission per day. Here is the plan for the next version, in the order I would do it.

Hold games out from myself first. Before writing any agent code, split the 25 public games: develop on 12, and do not open the other 13 until the agent is frozen. The 0.14% ablation is the baseline to beat on the held-out half. If the number does not move there, it will not move on Kaggle, and I will know without spending a submission.

A language of rules in place of a list of families. The family solvers share their parts: objects, shifts, recolors, effect masks, counters, contact events. The model should be a short program composed from those parts, searched for during play and scored by how well it predicts the next frame difference. Program synthesis with a growing library of reusable pieces is the precedent I would start from [9]. The seven solved games become the test: the language is adequate when each of those solvers is a few lines in it, and the search is adequate when it finds them from frames.

Experiments that split hypotheses. The novelty trap is what you get for rewarding new observations. The better question for each candidate action is whether the surviving programs disagree about what it will do. A click that always changes the board in a way every candidate already predicts is worth nothing under that rule, however new the resulting frame looks.

The goal as a hypothesis. Right now goals are baked into solvers: overlap the ports, reach the rare-colored object. The level-complete signal is the only supervision the game gives, and all levels of a game share a goal. After level one the agent should hold an explicit, testable statement of what winning is.

A budget taken from the metric. At twice the human baseline a level is worth 25%, and the median baseline is 60 actions. Discovery has to fit in tens of actions. I would track discovery cost directly, as the number of actions before the model predicts the next frame correctly, and treat that as the main development metric ahead of levels completed.

What I do not know is whether a program search can find a mechanic like peg solitaire inside a hundred actions. People do it routinely, which says the information is there in the frames. That is the experiment.

Notes on method#

All local numbers come from the official offline environments for the 25 public games, agent seed 0, with a cap of 10,000 actions per game. The framework loop is inclusive, so capped runs report 10,001 actions. One full sweep is about 33 minutes of summed single-process game time on CPU. The scoring code in the sweep script reproduces the official scorecard; I recomputed every per-game score in the two sweep records from the per-level action counts and baselines and they match.

The public-game scores are development measurements. Several of those games were tuned against directly, so none of the local numbers is an estimate of the hidden score. The only hidden-game numbers in this post are the three Kaggle results: 0.22% for the earlier version, and 0.18% twice for the final one.

Code, run records and the full results log: github.com/atilavahedian/arc-agi-3-curio. Curio is built on the official ARC-AGI-3 Kaggle starter and agents framework from the ARC Prize team.

References#

  1. ARC Prize Foundation. ARC-AGI-3: A New Challenge for Frontier Agentic Intelligence. 2026. arXiv:2603.24621
  2. F. Chollet. On the Measure of Intelligence. 2019. arXiv:1911.01547
  3. D. Ha, J. Schmidhuber. World Models. 2018. arXiv:1803.10122
  4. M. Anderson, T. Feil. Turning Lights Out with Linear Algebra. Mathematics Magazine 71(4), 1998. doi:10.1080/0025570X.1998.11996658
  5. A. Ecoffet, J. Huizinga, J. Lehman, K. O. Stanley, J. Clune. Go-Explore: a New Approach for Hard-Exploration Problems. 2019. arXiv:1901.10995
  6. ARC Prize Foundation. ARC-AGI-3 documentation: scoring methodology. 2026. docs.arcprize.org/methodology
  7. D. Pathak, P. Agrawal, A. A. Efros, T. Darrell. Curiosity-driven Exploration by Self-supervised Prediction. ICML 2017. arXiv:1705.05363
  8. Y. Burda, H. Edwards, D. Pathak, A. Storkey, T. Darrell, A. A. Efros. Large-Scale Study of Curiosity-Driven Learning. 2018. arXiv:1808.04355
  9. K. Ellis, C. Wong, M. Nye, M. Sablé-Meyer, L. Cary, L. Morales, L. Hewitt, A. Solar-Lezama, J. B. Tenenbaum. DreamCoder: Growing generalizable, interpretable knowledge with wake-sleep Bayesian program learning. 2020. arXiv:2006.08381

Cite this post

@misc{vahedian2026learningther,
  author = {Atila Vahedian},
  title  = {Learning the Rules of a Game You've Never Seen},
  year   = {2026},
  month  = {aug},
  howpublished = {\url{https://atilavahedian.com/writing/learning-the-rules/}},
  note   = {Blog post}
}