Skip to content
Preprint

RamseyGadgets: A Graph Construction Dataset for LLMs

Aug 2026 · 0 citations · 26 references
Computer Science

TL;DR

A novel dataset of 70 underexplored graph construction problems that require finding Ramsey-good graphs with special properties, which shows that LLMs achieve only 37.70% accuracy on the hard-tier problems in this dataset, with Gemma-4-31B achieving the highest performance out of the five.

Abstract

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 \textbf{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.

View source

Similar papers

Jul 2026

Structural Tractability Frontiers for Metric Repair

This paper asks what structural properties of the graph itself make metric repair tractable, and gives pseudo-polynomial time algorithms for series-parallel graphs, and by generalization, graphs of bounded treewidth and a new algorithm for the length-bounded multicut problem.

Asaf Etgar, A. Gilbert, Jamie Tucker-Foltz · 0 citations
#artificial intelligence Preprint Sep 2026

AutoGraphForge: Towards Automated Graph Theory Discovery

This project reports on the ongoing project to develop a computational pipeline, AutoGraphForge, for an automated graph-theoretic conjecturing-refuting-formalizing-proving system, and reports on the conjectures that survived the refutation dataset, the novelty filter and every active-search run.

Ján Pastorek · 0 citations
Preprint Aug 2026

LLM-Guided Graph Generation for Structure-Based Local Improvement Methods

An automatic pipeline that is problem-agnostic to all problems in the MiniZinc format is built, finding that algorithm selection achieves a 39.6% average problem-weighted win rate against a one-shot Gurobi baseline, more than doubling the best single configuration (19.3%).

Hai Xia, Vaidyanathan Peruvemba Ramaswamy, Stefan Szeider · 0 citations
Preprint Aug 2026

Neurosymbolic Discovery of Algebraic Graph Constructions

The smallest known counterexample to the Bernhart-Kainen dispersability conjecture is identified, a $16-vertex graph that enumeration found as raw data, and the agent found an explicit algebraic construction.

David Seka, Stefan Szeider · 0 citations
#artificial intelligence Preprint Sep 2026

GTA: Graph Theory Agent and Benchmark for Algorithmic Graph Reasoning with LLMs

The Graph Theory Agent (GTA), which pairs a preference-trained representation selector with plan-and-decompose scaffolding around a frozen executor LLM, is proposed, which lifts Phi-4 from 53.5% to 69.1% on the benchmark's easy split and from 33.0% to 41.5% on its hard split.

Zi-Xiang Xu, Yan-Bo Wang, Chenxi Wang et al. · 4 citations · ⚡1
Preprint Aug 2026

AutoGrable: What Is a Good Graph for a Table?

The experiments show that AutoGrable recovers the columns that generate the label on controlled tasks and outperforms fixed, random, and task-aware constructors on real tasks under a fixed predictor; and that it is the only method compared that can decline to build a graph when none helps.

Tamara Cucumides, F. Geerts · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.