PUZZLES: A Benchmark for Neural Algorithmic Reasoning
Benjamin Estermann, Luca A. Lanzendörfer, Yannick Niedermayr, Roger Wattenhofer
TL;DR
PUZZLES introduces a scalable RL benchmark derived from Simon Tatham's Puzzle Collection to probe neural algorithmic reasoning. It provides 40 puzzles with adjustable size/difficulty, two observation modalities (internal state or pixel), a discrete action space, action masking, and early termination options, all within a Gymnasium-compatible environment. Across multiple baselines (PPO, TRPO, A2C, DQN, QRDQN, MuZero, DreamerV3), DreamerV3 showed the strongest performance on average but many puzzles remain challenging, with many not solvable within the optimal upper bound. The results highlight the importance of reward design, input representation, and inductive biases (e.g., Transformer-based encoders, potential GNNs) for learning algorithmic reasoning, and they establish PUZZLES as a standardized platform for future research in this area.
Abstract
Algorithmic reasoning is a fundamental cognitive ability that plays a pivotal role in problem-solving and decision-making processes. Reinforcement Learning (RL) has demonstrated remarkable proficiency in tasks such as motor control, handling perceptual input, and managing stochastic environments. These advancements have been enabled in part by the availability of benchmarks. In this work we introduce PUZZLES, a benchmark based on Simon Tatham's Portable Puzzle Collection, aimed at fostering progress in algorithmic and logical reasoning in RL. PUZZLES contains 40 diverse logic puzzles of adjustable sizes and varying levels of complexity; many puzzles also feature a diverse set of additional configuration parameters. The 40 puzzles provide detailed information on the strengths and generalization capabilities of RL agents. Furthermore, we evaluate various RL algorithms on PUZZLES, providing baseline comparisons and demonstrating the potential for future research. All the software, including the environment, is available at https://github.com/ETH-DISCO/rlp.
