PuzzleJAX: A Benchmark for Reasoning and Learning
Organizations: New York University · University of Malta · University of the Witwatersrand · Microsoft
Abstract
We introduce PuzzleJAX, a GPU-accelerated puzzle game engine and description language designed to support rapid benchmarking of tree search, reinforcement learning, and LLM reasoning abilities. Unlike existing GPU-accelerated learning environments that provide hard-coded implementations of fixed sets of games, PuzzleJAX allows dynamic compilation of any game expressible in its domain-specific language (DSL). This DSL follows PuzzleScript, which is a popular and accessible online game engine for designing puzzle games. In this paper, we validate in PuzzleJAX several hundred of the thousands of games designed in PuzzleScript by both professional designers and casual creators since its release in 2013, thereby demonstrating PuzzleJAX's coverage of an expansive, expressive, and human-relevant space of tasks. By analyzing the performance of search, learning, and language models on these games, we show that PuzzleJAX can naturally express tasks that are both simple and intuitive to understand, yet often deeply challenging to master, requiring a combination of control, planning, and high-level insight.
Figures & tables
| Game | N. rules | Description |
|---|---|---|
| Blocks | 0 | The player simultaneously controls multiple avatars, navigating obstacles to guide them to target positions. |
| Sokoban | 1 | The player navigates a top-down grid of traversible and wall tiles, pushing crates onto targets. The challenge is to sequence moves such that crates do not wind up “deadlocked” in a position (e.g. a corner) from which they cannot be moved. |
| Sokoban Match 3 | 2 | Sokoban, except that when 3 crates are arranged in a horizontal or vertical line, they disappear. |
| Not Snake | 2 | When the player moves onto a cell, they flip it between one of two colors. One must walk a hamiltonian path or strategically retrace one’s steps to produce a successful grid-coloring. |
| Zen Puzzle Garden | 3 | Tasks the player with “raking” each cell in a central square of sand without retracing its steps, while at the same time avoiding increasingly complex arrangements of obstacles within the sand patch. The player may freely navigate around the border of the sand patch. |
| Multi-Word Dictionary Game | 4 | The player arranges letters by either pushing and pulling them in different directions to correctly spell an English word (“Cat” or “Act”). |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Game | # Levels | Total Plays | Avg Solution Length |
|---|---|---|---|
| Simple Block Pushing Game | 2 | 14 | 32.36 |
| Match 3 Block Push | 2 | 19 | 88.47 |
| Travelling salesman | 6 | 12 | 14.33 |
| Atlas Shrank | 9 | 94 | 98.79 |
| constellation z | 11 | 53 | 35.02 |
| Multi-word Dictionary Game | 1 | 15 | 57.93 |