A faster simulator helped train a stronger game AI agent
A superhuman AI agent was built for Generals.io, a strategy game with hidden information. The agent reached number one on the public human 1v1 and beat the two top-ranked human players in 199 of 269 ladder matches. The first version began as a master’s thesis and used , , and reward shaping, but it still lost reliably to the best players.
The later version rebuilt the full training pipeline in JAX and replaced a convolutional with a . The main idea was to spend effort on scaling the training system instead of adding more hand-made rules and patches. A JAX-based simulator became about 10,000 times faster than the earlier simulator and could run tens of millions of game frames per second on one GPU.
The final agent was trained for four days on four Nvidia H200 GPUs. The code, agent, and fast simulator are , so others can reuse the environment for experiments with strategy agents.
Key points
- The agent reached number one on the Generals.io public 1v1 .
- A faster JAX simulator was about 10,000 times quicker than the older simulator.
- The final run used four Nvidia H200 GPUs for four days.
- The project favored scalable training over hand-made rules and patches.
- The simulator and agent code are .