Back to AI Research

AI Research

Can a language model write game-playing network weights from rules?

Key Takeaways

  • A study asks language models to create game-playing network weights from simulator rules.
  • Directly written Python players solved more unseen levels.
  • Researchers asked language models to write network weights from known game rules.
  • The best fixed network solved 56% of held-out levels with feedback, behind the directly written Python players.
  • The authors of a paper on weight-space programming asked whether a language model could turn known game mechanics into the numerical weights of a neural network without the usual training loop.

The authors of a paper on weight-space programming asked whether a language model could turn known game mechanics into the numerical weights of a neural network without the usual training loop. They tested that idea in privately authored puzzle games and compared the result with code written for the same rules.

What the models had to do

Each writer received the source for a game simulator, with the held-out levels removed. The study covered 20 game families inspired by ARC-AGI-3. It tested whether a network built from the rules would still solve new levels, renderings and start states in the same family. It was not a test of how well a model could infer the rules from a few screenshots alone.

Fixed networks versus conventional code

The best writer in the fixed 57,000-parameter setup solved 56% of the held-out levels with feedback. Python players written by the four main writers solved 97% to 100%. An exploratory condition that allowed a choice of network architecture scored higher than the fixed-network result, but the direct programs remained a strong reference point.
The resulting networks also looked more like programs than typical learned weights. Most parameters were zero, and many of the nonzero values were simple numbers. That pattern is consistent with the model encoding explicit operations under the constraints of the network.

Why the network format did not settle it

The authors tried training the written weights further with a standard reinforcement learning method. They report that it erased most of the success in the fixed-network setup. The study shows that rule-to-network compilation can work on these games. It also identifies a practical reason to keep the Python baseline: an editable program can be more effective when the rules are already available.

Comments