GraCoRe: Benchmarking Graph Comprehension and Complex Reasoning in Large Language Models

Zike Yuan, Ming Liu, Hui Wang, Bing Qin

Introduction

Graphs serve as the foundational structure for diverse domains, ranging from social network analysis and recommendation systems to complex biological modeling and drug discovery. Despite their ubiquity, evaluating the ability of Large Language Models (LLMs) to process and reason over graph data has remained a fragmented challenge. Existing benchmarks often focus narrowly on either abstract structural properties ("pure" graphs) or rich metadata ("heterogeneous" graphs), but rarely integrate both into a cohesive evaluation framework.

Furthermore, previous assessments have largely been "task-driven"—measuring if a model can complete a specific task—rather than "ability-driven," which seeks to determine if the model truly understands the underlying logical structure. To address these gaps, we introduce GraCoRe, a comprehensive benchmark designed to stress-test LLMs across a fine-grained taxonomy of graph intelligence. Our findings reveal a significant performance disparity between standard LLMs and the latest reasoning-optimized models like OpenAI o1, while highlighting the critical role of semantic enrichment in model performance.

The GraCoRe Taxonomy and Methodology

GraCoRe utilizes a three-tier hierarchical taxonomy to systematically evaluate model performance. This structure allows researchers to distinguish between simple pattern recognition and genuine logical abstraction.

The GraCoRe hierarchical taxonomy for evaluating graph intelligence.
  1. Core Abilities: Tasks are bifurcated into Graph Understanding (the ability to parse explicit nodes and edges) and Graph Reasoning (the ability to infer implicit information or solve complex problems).
  2. Data Types: Tasks are categorized by their data environment—Pure Graphs (abstract structures) versus Heterogeneous Graphs (nodes with rich textual metadata).
  3. Specific Capabilities: The benchmark defines 10 distinct areas, including Graph Memory, Traversal, and Semantic Reasoning, which are evaluated through 19 specific tasks.

To ensure a fair comparison across diverse metrics—such as boolean success rates for connectivity versus path length accuracy for traversal—the researchers employed standardized global scores (z-scores) and Min-Max scaling. This methodology enables the ranking of models on a unified 0-100 scale, providing a clear leaderboard of graph intelligence.

Experimental Setup and Datasets

The GraCoRe benchmark includes 11 datasets comprising a total of 5,140 graphs. These are divided into two primary categories:

  • PureGra: These are custom-generated undirected and directed graphs ranging from 8 to 30 nodes. They are used to test fundamental structural tasks such as Breadth-First Search (BFS), Shortest Path, Max Flow, and NP-complete challenges like the Traveling Salesman Problem (TSP) and Hamiltonian Cycles.
  • HeterGra: These datasets are derived from real-world sources, specifically IMDBText (movie/actor relationships) and ACMText (academic paper/field networks). In these graphs, nodes carry rich textual descriptions, requiring the model to integrate semantic knowledge with structural logic.

Key Insights: The Reasoning Cliff and Semantic Multipliers

Our evaluation yielded several critical insights into the current state of LLM graph intelligence:

The "o1" Paradigm Shift

The OpenAI o1 model represents a significant breakthrough in graph reasoning. While previous state-of-the-art models like GPT-4o demonstrated competent graph understanding, they frequently struggled with complex structural reasoning. In contrast, o1 showed remarkable capabilities in solving NP-complete problems where other models often resorted to guessing.

The Reasoning Cliff

As graph complexity increases (measured by node count), most models experience a "reasoning cliff." While they may maintain high accuracy on simple understanding tasks, their performance drops precipitously when asked to perform multi-step reasoning or solve structural problems on larger graphs.

Accuracy vs. node number for various reasoning tasks, highlighting the performance gap between OpenAI o1 and other LLMs as complexity increases.

Semantics as a Force Multiplier

A major finding of this study is that LLMs perform significantly better when graphs are "semantically enriched." When nodes are given meaningful names (e.g., "The Longest Yard" instead of "Node 0"), models can leverage their internal pre-trained knowledge to help navigate relationships. This suggests that current LLMs are better at "semantic navigation" than "pure logical abstraction."

Positional and Contextual Biases

LLMs exhibit a surprising sensitivity to how a graph is described. Listing nodes in sequential order (0, 1, 2...) leads to much higher success rates than random ordering, indicating a reliance on positional heuristics. Furthermore, the study found that a model's ability to handle long-context windows (e.g., 32k tokens) does not necessarily correlate with better graph reasoning; reading the data is not the same as mapping the connections internally.

Conclusion and Future Work

GraCoRe establishes a new standard for evaluating graph intelligence in LLMs, highlighting that while models are becoming adept at parsing graph structures, true logical reasoning remains a high bar. OpenAI o1 currently leads the field, particularly in structural reasoning, while open-source models like Llama 3.1-8b and Qwen2-7b show promise but still lag in complex tasks.

Future research will focus on scaling these benchmarks to even larger graphs, exploring how Chain-of-Thought (CoT) prompting can bridge the reasoning gap for smaller models, and investigating the potential for multi-turn "agentic" reasoning to solve iterative graph problems.

Summary updated

BibTeX
@inproceedings{yuan2025gracore,
  author = {Zike Yuan and Ming Liu and Hui Wang and Bing Qin},
  title = {{GraCoRe: Benchmarking Graph Comprehension and Complex Reasoning in Large Language Models}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
}
Figure