Twin: Playing an Unknown Game with a Test-Time Digital Twin
The paper introduces "Twin," a test-time world-model inference system that enables a coding agent to dynamically construct and iteratively repair executable simulations of unknown grid games through interaction, achieving a 97.8% success rate on ARC-AGI-3 levels by verifying actions against a digital twin before execution.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are dropped into a video game you've never seen before. There are no instructions, no tutorial, and no one to tell you what the buttons do or what you're supposed to win. You just have to press buttons, watch what happens, and figure out the rules by trial and error. This is the daily reality for artificial intelligence when it faces "unknown worlds." For a long time, AI researchers tried to teach computers to be super-smart guessers, hoping they could just memorize patterns or learn from millions of examples. But when the rules change completely, or the game is brand new, those guessers often get stuck, pressing buttons randomly until they get lucky. The big question in this corner of computer science is: How can an AI learn a new game as quickly and efficiently as a human does, without needing a million practice rounds first?
This paper introduces a clever new system called Twin that solves this by changing the game entirely. Instead of just guessing, Twin acts like a curious detective who builds a "digital twin"—a perfect, working copy of the game's rules inside a computer program. Think of it like this: when you play a new game, you might make a mental note, "If I click here, the block turns red." Twin doesn't just make a mental note; it actually writes a tiny piece of code that says, "If you click here, the block turns red." Then, before it makes any real move in the actual game, it runs a simulation in its own head using that code. If the simulation says the block turns blue, but the real game shows it turning red, Twin knows its code is wrong. It immediately rewrites the code to fix the mistake. It keeps doing this—writing, testing, and fixing its own rulebook—until its digital twin predicts the real world perfectly. Only then does it take a real action.
The results are impressive. The researchers tested Twin on 25 brand-new, mysterious grid games (part of a benchmark called ARC-AGI-3) where the rules and goals are hidden. In these games, a standard AI model playing directly without any special help managed to clear only one game and scored a low 7.8 out of 100. Even a smart AI with a standard "helper" tool improved to 61.1. But Twin, with its self-writing rulebook, cleared 23 out of the 25 games and scored a massive 93.3. Perhaps even more surprisingly, Twin figured out what "winning" looked like in 87.2% of the levels before it ever got a reward or a "game over" signal. It did this by guessing what the goal might be, testing that guess in its digital twin, and only committing to a plan if the simulation said it would work.
The paper shows that building a usable world model is actually simpler than people thought, but figuring out the goal is the hard part. Twin doesn't just react to the game; it constructs the game's logic in real-time, checks its work against every single move it has ever made, and then plans its next steps with confidence. It turns out that if you give an AI a way to write its own simulator and force it to prove that simulator works before it acts, it can learn unknown games almost as efficiently as a human playing for the first time. This suggests that the secret to smart AI isn't just having a bigger brain, but having a better way to test its own theories before making a move.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.