Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study

Yinghao Li, Haorui Wang, Chao Zhang

Abstract

A central question in contemporary AI research is whether Large Language Models (LLMs) possess genuine reasoning capabilities or if they primarily function as "stochastic parrots" that recall patterns from training data. To investigate this, researchers at Georgia Tech evaluated LLMs using Minesweeper as a novel, "off-distribution" benchmark. By converting the visual game into various text-based formats, the study tested models on spatial awareness, arithmetic, and deductive logic. The results reveal a significant "instruction-logic gap": while top-tier models like GPT-4 can follow game syntax with high precision, they consistently fail to execute the multi-step reasoning required to solve even simple 5x5 boards. These findings suggest that current LLMs struggle with autonomous planning in logically rigorous, novel environments.

Introduction: The Reasoning vs. Recall Debate

Many popular reasoning benchmarks, such as GSM8K, may suffer from data contamination, where models achieve high scores by recalling similar problems from their massive training sets. To bypass this, the authors introduced Minesweeper as a case study. Minesweeper requires a unique blend of spatial reasoning and deductive logic. By abstracting the game into unfamiliar text-based formats, the researchers created an environment where models cannot rely on memorized solutions and must instead apply the game's rules to novel scenarios.

Methodology: Minesweeper as a Logic Benchmark

The study evaluated models across two primary dimensions: Board Understanding (identifying cell states and counting neighbors) and Gameplay (making valid moves to clear the board).

Board Representations and Prompting

To test the models' spatial parsing abilities, the researchers compared two board representations:

  1. Table-formatted: A 2D grid of symbols resembling a Markdown table.
  2. Coordinate-based: A list of (x,y): state mappings.
Minesweeper board representations: (a) GUI, (b) Table-formatted, (c) Coordinate-based, and (d) Action history.

The gameplay was tested using two prompting modes: Natural Conversation (NC), which maintains the full chat history, and Compact History (CH), which provides a condensed summary of past actions. Chain-of-Thought (CoT) prompting was employed to encourage models to externalize their reasoning before selecting an action.

Key Results and Analysis

The Failure of Text-Based Logic

Despite their advanced capabilities, both GPT-3.5 and GPT-4 achieved a 0% solve rate on 5x5 boards. While GPT-4 was significantly better at following the required action syntax (achieving an ~82% valid action rate), it eventually hit a mine or reached the move limit in every trial. GPT-3.5 variants frequently entered "action loops," repeating invalid moves despite receiving corrective feedback.

Format Sensitivity and Spatial Reasoning

A critical finding was that models performed significantly better with Coordinate representations than with Table representations. This suggests that LLMs struggle to parse spatial relationships from 2D text grids, a common practice in prompt engineering. Even with the superior coordinate format, models often failed to correctly count neighbors or identify the boundaries of the board.

Hallucinated Reasoning

Manual inspection of the models' reasoning chains revealed a phenomenon termed "golden-font" reasoning. Models often generated confident, logical-sounding text that was grounded in false observations—for example, claiming a cell had four neighbors when it only had one. Correct moves were frequently the result of lucky guesses rather than sound deduction; GPT-4's internal reasoning was found to be accurate and coherent only 12% to 26% of the time.

Conclusion and Future Directions

The study concludes that while LLMs are proficient at following instructions and mimicking the structure of logical thought, they are not yet reliable autonomous planners for novel, logically rigorous tasks. The "instruction-logic gap" highlights a fundamental limitation in current architectures.

Future research may explore whether fine-tuning on logic-heavy datasets or utilizing Vision-Language Models (VLMs) to interact with graphical interfaces can bridge this gap. For now, Minesweeper remains a formidable challenge that exposes the boundaries of LLM reasoning.

Summary updated

BibTeX
@inproceedings{li2024assessing,
  author = {Yinghao Li and Haorui Wang and Chao Zhang},
  title = {{Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.4},
}
Figure