Evaluating the Systematic Reasoning Abilities of Large Language Models through Graph Coloring

Alex Heyman, Joel Zylberberg
2/10/2025
cs.LG

No official code found. Best implementation: AlexHeyman/LLMGraphColoring (0 stars, MIT, last commit 2025-05-17).

Abstract

Contemporary large language models are powerful problem-solving tools, but they exhibit weaknesses in their reasoning abilities which ongoing research seeks to mitigate. We investigate graph coloring as a means of evaluating an LLM's capacities for systematic step-by-step reasoning and possibility space exploration, as well as effects of semantic problem framing. We test Claude 3.5 Sonnet, Llama 3.1 405B, Gemini 1.5 Pro, GPT-4o, o1-mini, and DeepSeek-R1 on a dataset of $k$-coloring problems with $2 \leq k \leq 4$ and vertex count $4 \leq n \leq 8$, using partial algorithmic solvers to further categorize problems by difficulty. In addition to substantial but varying framing effects, we find that all models except o1-mini and R1 exhibit $>60\%$ error rates on difficult problem types in all frames ($>15\%$ for o1-mini and $>10\%$ for R1), and no model achieves perfect accuracy even in the simple domain of 2-coloring 4-vertex graphs. Our results highlight both the considerable recent progress in LLM systematic reasoning and the limits of its reliability, especially in relation to increasing computational costs. We expect that more complex graph coloring problems, and procedural generation of arbitrary-complexity reasoning problems more broadly, offer further untapped potential for LLM benchmarking.

View on arXivView PDF

Code Implementations(1)

MIT

Code and data for the experiments of the paper "Evaluating the Systematic Reasoning Abilities of Large Language Models through Graph Coloring"

00PythonFeb 2, 20251 years agoMIT

Similar Papers

Cite this paper

@article{heyman2025evaluating,
  title  = {Evaluating the Systematic Reasoning Abilities of Large Language Models through Graph Coloring},
  author = {Alex Heyman and Joel Zylberberg},
  year   = {2025},
  eprint = {2502.07087},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.07087v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.07087.svg)](https://codeofpaper.com/paper/2502.07087)

Discussion