mlsanityData to 14 Oct 2026

RamseyGadgets: A Graph Construction Dataset for LLMs

arXiv 2608.14999 ↗First posted 15 Aug 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Constructing special graphs is an important task within graph theory and computer science. Many popular graph constructions are the result of a comprehensive exploration of relevant graphs and human ingenuity. Given the rise of generative AI usage in mathematics, it is natural to test whether LLMs are able to construct graphs with specified properties using their reasoning capabilities. Unfortunately, many natural graph construction problems, such as finding extremal Ramsey-good graphs (i.e., avoiding specific monochromatic subgraphs), have been explored extensively in the literature, making it difficult to ascertain whether a construction is the product of an LLM's reasoning capabilities or its recollection from training data. In this work, we introduce RamseyGadgets, a novel dataset of 70 underexplored graph construction problems that require finding Ramsey-good graphs with special properties (e.g., containing an edge with a fixed color). These problems have reasonably sized solutions (at most 10 vertices) that can be verified by SAT solvers, making them suitable for automatic evaluation. Our dataset is easily expandable, as one can simply change the monochromatic subgraphs being avoided to obtain a new set of problems. We evaluate the performance of five open-source LLMs on our dataset and report the results. Our findings show that LLMs achieve only 37.70% accuracy on the hard-tier problems in our dataset, with Gemma-4-31B achieving the highest performance out of the five. We also showcase how our dataset allows us to ascertain what kind of hints help LLMs perform better at this task.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 26 references that are in the map. First posted on arXiv 15 Aug 2026.

Builds on

8 of 26 references.

References · 8

  1. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  2. 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 867
  3. 2026Gemma 4 Technical Reportcited by 259
  4. 2023Large Language Models on Graphs: A Comprehensive Surveycited by 192
  5. 2025MathConstruct: Challenging LLM Reasoning with Constructive Proofscited by 16
  6. 2025Evaluating the Systematic Reasoning Abilities of Large Language Models through Graph Coloringcited by 10
  7. 2026Reinforced Generation of Combinatorial Structures: Ramsey Numberscited by 9
  8. 2026New Bounds for Zarankiewicz Numbers via Reinforced LLM Evolutionary Searchcited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Doubly Saturated Ramsey Graphs: A Case Study in Computer-Assisted Mathematical Discovery
  2. 2024CodeGraph: Enhancing Graph Reasoning of LLMs with Code
  3. 2026GTA: Graph Theory Agent and Benchmark for Algorithmic Graph Reasoning with LLMs
  4. 2025Rethinking and Benchmarking Large Language Models for Graph Reasoning
  5. 2026GTBench: A Curriculum-Grounded Benchmark for Evaluating LLMs as Mathematical Research Assistants in Graph Theory
  6. 2023GraphLLM: Boosting Graph Reasoning Ability of Large Language Model
  7. 2025Improving LLMs' Generalized Reasoning Abilities by Graph Problems
  8. 2024Are Large-Language Models Graph Algorithmic Reasoners?