[Paper Review] MazeBase: A Sandbox for Learning from Games
MazeBase is a text-based 2D game environment designed to train neural networks in algorithmic reasoning and planning without access to game rules or simulation. It enables training with procedural curricula and demonstrates that even simple tasks like conditional logic or navigation remain challenging for current models, while showing transferability to real-world tasks such as StarCraft combat scenarios.
This paper introduces MazeBase: an environment for simple 2D games, designed as a sandbox for machine learning approaches to reasoning and planning. Within it, we create 10 simple games embodying a range of algorithmic tasks (e.g. if-then statements or set negation). A variety of neural models (fully connected, convolutional network, memory network) are deployed via reinforcement learning on these games, with and without a procedurally generated curriculum. Despite the tasks' simplicity, the performance of the models is far from optimal, suggesting directions for future development. We also demonstrate the versatility of MazeBase by using it to emulate small combat scenarios from StarCraft. Models trained on the MazeBase version can be directly applied to StarCraft, where they consistently beat the in-game AI.
Motivation & Objective
- To create a controlled, programmable environment for training machine learning models in algorithmic reasoning and planning without relying on game simulation or pre-specified rules.
- To investigate the limitations of current neural network architectures—such as MLPs, ConvNets, and memory networks—in learning abstract, rule-based reasoning from interactive environments.
- To evaluate the effectiveness of procedural curricula in improving learning efficiency and performance on algorithmic tasks.
- To demonstrate transferability of models trained in MazeBase to real-world game environments like StarCraft, where they outperform in-game AI.
- To provide a flexible, open-source platform for benchmarking and developing models focused on understanding and reasoning in structured, interactive environments.
Proposed method
- Design a text-based 2D game environment where game states are represented as symbolic descriptions rather than pixels, enabling efficient and interpretable input for neural models.
- Define 10 simple games that embody core algorithmic reasoning tasks, such as conditional logic, set operations, and navigation, each with a clear objective and no built-in simulation.
- Train neural models (MLP, ConvNet, MemNN) using policy gradient reinforcement learning on these games, with and without a curriculum that gradually increases task difficulty.
- Implement a curriculum strategy that generates sequences of increasing complexity for each game, improving training stability and performance.
- Use the environment to train models on simplified StarCraft combat scenarios, then evaluate them directly on the full StarCraft game, demonstrating transferability.
- Represent game states and actions using a natural language-like symbolic format, enabling models to learn functional roles of game elements (e.g., water tiles, switches) through interaction.
Experimental results
Research questions
- RQ1Can neural networks learn to perform basic algorithmic reasoning (e.g., if-then logic, set negation) in a text-based, interactive 2D environment without access to game rules or simulation?
- RQ2To what extent does a procedurally generated curriculum improve learning efficiency and performance on algorithmic reasoning tasks in MazeBase?
- RQ3How do different neural architectures (MLP, ConvNet, MemNN) compare in solving tasks requiring memory, reasoning, and planning in a partially observable, interactive environment?
- RQ4Can models trained on MazeBase generalize to real-world game environments like StarCraft, and do they outperform the in-game AI in simplified combat scenarios?
- RQ5What are the key limitations of current deep learning models in learning abstract, rule-based reasoning from interactive, symbolic environments?
Key findings
- Despite the simplicity of the tasks, current neural models—including MLPs, ConvNets, and MemNNs—fail to achieve optimal performance, indicating significant gaps in reasoning and planning capabilities.
- The MemNN model outperformed MLP and ConvNet baselines on tasks involving large information items or complex dependencies, suggesting that memory capacity is a critical bottleneck.
- The use of a curriculum significantly improved test performance across all models, with the best-performing setup (MemNN + curriculum) achieving a mean reward of -1.78, compared to -2.37 without curriculum.
- Models trained in MazeBase successfully transferred to StarCraft, consistently beating the in-game AI in small combat scenarios, demonstrating the environment's utility for zero-shot transfer learning.
- The estimated optimal performance across all games was -0.89 mean reward, while the best model (MemNN with curriculum) achieved -1.78, indicating a substantial performance gap that highlights the need for improved reasoning models.
- Even with extensive training and curriculum, models struggled with tasks requiring long-term planning or forecasting, suggesting that current architectures lack the ability to simulate future states or reason about action consequences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.