GraphSeek: Next-Generation Graph Analytics with LLMs

Maciej Besta, Łukasz Jarmocik, Orest Hrycyna, Shachar Klaiman, Konrad Mączka, Robert Gerstenberger, Jürgen Müller, Piotr Nyczyk, Hubert Niewiadomski, Torsten HoeflerarXiv 2026

TL;DR

GraphSeek is a novel framework that enables accurate, natural language-driven graph analytics on industry-scale property graphs by decoupling LLM reasoning from query execution. By introducing a "Semantic Catalog" abstraction, it replaces brittle text-to-query generation with robust multi-step planning, achieving up to an 86% higher success rate over standard LangChain baselines while maintaining low token costs and interactive latencies.

What Problem Does This Paper Address?

While Large Language Models (LLMs) excel at translating natural language into code or SQL, doing the same for industry-scale property graphs (e.g., using graph query languages like Cypher or Gremlin) remains a major challenge. Production-grade graphs are massive (millions of nodes and edges), highly heterogeneous, and governed by complex, evolving schemas.

Injecting the entire graph structure into an LLM prompt is impossible due to context window limits. Furthermore, directly translating natural language into graph queries is notoriously brittle; LLMs frequently struggle with precise graph pattern matching, schema-aware query formulation, and multi-hop traversals. The challenge is to build a system that allows non-experts to query massive graphs using natural language effectively, efficiently, and under tight token and latency budgets.

Methods

The authors introduce GraphSeek, a framework built on a clean architectural separation between two planes:

  1. The Semantic Plane: Where the LLM agent handles high-level planning, intent disambiguation, and result interpretation.
  2. The Execution Plane: Where a deterministic, non-LLM executor compiles abstract plans into precise backend database queries (e.g., Cypher) and runs them directly on the graph database.
Figure 1: Overview of the key idea and architectural pillars behind GraphSeek: Semantic Catalog makes in-house graph data, graph operations, and other elements legible to the LLM without fine-tuning or long prompts; separation of Semantic and Execution Planes allows the LLM to focus on high-level analytic reasoning and enables both effective and efficient data reasoning.

The core engine powering this separation is the Semantic Catalog, which consists of:

  • Schema Descriptors: Concise natural language annotations for schema elements that ground domain terminology.
  • Operator Descriptors: A library of intermediate graph operators (e.g., $k$-hop traversal, neighborhood aggregation) with explicit annotations clarifying their behavior.

GraphSeek extends the Table-Augmented Generation (TAG) model into a multi-step loop consisting of four stages: Synthesis (mapping natural language to typed operator calls), Execution (running calls on the non-LLM runtime), Generation (producing answers from compact intermediate views), and Decision (determining whether to halt or continue for self-correction). This keeps the LLM's context size $O(1)$ relative to the total graph size because full data payloads are cached out-of-context, and only compact summaries are returned to the agent.

Datasets

The framework was evaluated on two distinct graph datasets:

  1. An In-House EV Manufacturing Graph: A real-world, highly heterogeneous industrial dataset representing an electric vehicle manufacturing pipeline, containing approximately 230,000 vertices and 314,000 edges.
  2. WikiDataSets–Countries: A standardized, topic-specific knowledge graph subgraph from Wikidata containing 3,324 nodes and 10,198 edges, used to test cross-domain generalization and handling of schema heterogeneity.

Key Insights and Ideas

  • Planning Over Operators > Query Generation: Instead of forcing the LLM to write complex database queries from scratch, it is far more reliable to have the LLM act as an orchestrator that selects and chains pre-defined, schema-validated tools.
  • Token-Bounded Self-Correction: By passing only compact summaries back to the LLM, GraphSeek can run iterative loops to self-correct from execution errors (such as floating-point mismatches during filtering) without blowing up the token budget or context window.
  • The "Less Context Wins" Phenomenon: For simple lookup tasks, excessive semantic detail can occasionally over-constrain the LLM agent. GraphSeek addresses this by implementing a fallback path that allows the agent to bypass operator compilation and generate direct queries when uncertainty is low.

Key Results

  • Higher Success Rates: GraphSeek achieved a 86% higher success rate compared to enhanced LangChain baselines on complex, multi-hop, and schema-heavy industrial queries.
  • Low and Stable Token Costs: Unlike baseline approaches that suffer from massive token spikes due to long in-context error traces, GraphSeek maintains a consistently low token footprint.
  • Interactive Latency: The median per-query latency for GraphSeek dropped to the low single-digit seconds (~2–3 seconds), making it highly practical for interactive, real-time use cases.
Detailed workflow of the task lifecycle and tool adaptation within GraphSeek.

Limitations and Future Work

While GraphSeek demonstrates excellent performance on property graphs, the authors note several areas for future development:

  • Broader Generalization: Extending the Semantic Catalog abstraction to handle time-series pipelines, streaming/dynamic graphs, and heterogeneous multi-modal datasets (logs, documents).
  • Cost-Aware Compilation: Integrating more deeply with underlying database query planners to optimize the generated tool chains based on execution cost.
  • Automated Catalog Construction: Developing more principled, automated policies for constructing and updating the Semantic Catalog as underlying enterprise schemas drift over time.

Summary updated

BibTeX
@misc{besta2026graphseek,
  author = {Maciej Besta and Łukasz Jarmocik and Orest Hrycyna and Shachar Klaiman and Konrad Mączka and Robert Gerstenberger and Jürgen Müller and Piotr Nyczyk and Hubert Niewiadomski and Torsten Hoefler},
  title = {{GraphSeek: Next-Generation Graph Analytics with LLMs}},
  year = {2026},
  eprint = {2602.11052},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.11052},
}
Figure