Compiling Known Rules into Compact Neural Agents: Weight-Space Programming on Unseen Games
Jens Lehmann
Key points
From the paper's conclusion- We test whether known game mechanics can be compiled into compact agents that generalise to held-out levels, renderings and start states within a game family.
Abstract
Weight-space programming (WSP) uses language models to construct neural network weights without training. We test whether known game mechanics can be compiled into compact agents that generalise to held-out levels, renderings and start states within a game family. Writers receive simulator source with held-out level data removed for 20 privately authored, unpublished ARC-AGI-3-style game families. With a fixed 57k-parameter recurrent architecture, the strongest writer reaches 56% held-out-level success with feedback, while the four main writers' Python players reach 97-100%. An exploratory free-architecture condition reaches 68-90%. Learning from support-level examples transfers much less well, but these learners lack the source information given to writers. Written networks have a program-like structure: 93% of parameters are zero, and 90% of the rest are small integers or powers of two. NumPy players under comparable computation caps reach 91%, versus the networks' 79%. Training the strongest writer's architectures from scratch yields about 1% success within our budget. Written fixed-network weights are fragile, and standard PPO removes most of their success. Prompts for noise robustness increase tolerance by about four orders of magnitude for two of three writers, but PPO makes larger updates and still removes most success. These results demonstrate rule-to-network compilation in this setting, while showing limited benefits over Python programs and no successful combination with the tested PPO fine-tuning.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Zero-Shot Weight-Space Programming Across a Difficulty-Graded Ladder of Two-Player GamesarXiv · 2026
- Reading, Writing and Repairing Game-Theoretic Policies in Weight SpacearXiv · 2026
- Replicating and Extending Weight-Space Programming: Frontier LLMs Compile Programs into Weights and Read Input LayersarXiv · 2026
- How Many Exposures Does a World Model Need? Learning Unseen Game Mechanics at Test TimearXiv · 2026
- WeightCode: Installing New Capabilities into Neural Networks via Weight-Space ProgrammingarXiv · 2026
- WeightBench: Evaluating Language Models as Weight-Space ProgrammersarXiv · 2026