Back to AI Research

AI Research

Enabling Knowledge Graph Understanding at Scale wit... | AI Research

Key Takeaways

  • Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN) The EXYGEN framework is designed to make large-scale knowledge g...
  • We present EXYGEN (EXplore Your Graphs ENgine), a framework for knowledge graph (KG) understanding that enables conversational access to KGs at scale.
  • First, how effectively can LLMs perform text-to-SPARQL generation given only automatically derived structured metadata and small graph samples, rather than task-specific fine-tuning?
  • We integrate VoID descriptions and ShEx schemas into a retrieval-augmented generation (RAG) pipeline and ablate KG-derived context on the SciQA benchmark.
  • Our best configuration -- combining ShEx schemas, retrieved triples, and example question-query pairs -- reaches an exact match of 0.419 on execution results without any LLM fine-tuning.
Paper AbstractExpand

We present EXYGEN (EXplore Your Graphs ENgine), a framework for knowledge graph (KG) understanding that enables conversational access to KGs at scale. We address two questions in sequence. First, how effectively can LLMs perform text-to-SPARQL generation given only automatically derived structured metadata and small graph samples, rather than task-specific fine-tuning? We integrate VoID descriptions and ShEx schemas into a retrieval-augmented generation (RAG) pipeline and ablate KG-derived context on the SciQA benchmark. Our best configuration -- combining ShEx schemas, retrieved triples, and example question-query pairs -- reaches an exact match of 0.419 on execution results without any LLM fine-tuning. We further find that lexical metrics such as F1 poorly predict query correctness, and that larger general-purpose LLMs can outperform smaller code-specialized ones once given sufficient context. Second, we ask how to generate the structured metadata that this method relies on from very large KGs, where KG metadata generation becomes computationally intractable. We introduce a predicate-coverage-aware parallel graph sampling strategy that preserves structural diversity while remaining computationally tractable. On OpenCitations Meta and GESIS, it retains high predicate coverage with minimal triple loss and reduces runtime by over 80x; on ORKG, sampling is not just faster but the only tractable path to obtain complete metadata. Together, these results show that structured schema context and lightweight prompting can substantially reduce reliance on fine-tuning for scalable conversational access to KGs, though closing the remaining gap to fully fine-tuned approaches will likely require reducing dependence on curated question-query exemplars -- whether through synthetic generation or an execution-feedback-driven approach -- and validating these findings beyond a single benchmark.

Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)
The EXYGEN framework is designed to make large-scale knowledge graphs (KGs) accessible through natural language, allowing users to ask questions without needing to write complex SPARQL code. Traditionally, teaching Large Language Models (LLMs) to query these graphs required expensive, task-specific fine-tuning. EXYGEN replaces this with a more flexible approach: it automatically extracts structural metadata from the graph and uses a retrieval-augmented generation (RAG) pipeline to provide the LLM with the necessary context to generate accurate queries on the fly. To see meta in practice, How to Make Cinematic Commercials walks through a concrete example.

How EXYGEN Works

The framework functions by building a "map" of the knowledge graph that the LLM can reference. It generates two key types of documentation: VoID descriptions, which provide statistical summaries of the data, and ShEx schemas, which define the specific structure, properties, and constraints of the data. When a user asks a question, the system retrieves the most relevant pieces of this metadata—along with a few examples of previous question-query pairs—and feeds them to the LLM. This provides the model with the "rules of the road" for the specific graph it is querying, enabling it to construct valid SPARQL queries without needing to be retrained for every new dataset.

Scaling to Massive Graphs

A significant challenge in this field is that generating metadata for massive knowledge graphs is often computationally impossible, as it requires running heavy, time-consuming queries across the entire dataset. To solve this, the researchers introduced a "predicate-coverage-aware" sampling strategy. Instead of scanning every single triple in a massive graph, this method intelligently samples the data to maintain a high level of structural diversity. This approach allows the system to generate accurate metadata for massive datasets—such as OpenCitations Meta—up to 80 times faster than traditional methods, making it possible to work with graphs that were previously too large to process. The meta story also surfaces in Meta Unveils Muse Generative Models for..., adding another angle.

Key Findings and Performance

The study found that providing LLMs with structured schema context significantly improves their ability to generate correct queries. Using the SciQA benchmark, the researchers achieved an exact match rate of 0.419 on execution results without any fine-tuning. The results also highlighted that larger, general-purpose LLMs often perform better than smaller, code-specialized models when they are given sufficient context. Additionally, the researchers noted that common text-based metrics (like F1 scores) are poor predictors of whether a query will actually work; they argue that evaluating success based on whether the query executes correctly and returns the right data is a much more reliable measure of performance.

Future Considerations

While EXYGEN demonstrates that structured context and lightweight prompting can largely replace the need for fine-tuning, there is still a performance gap compared to fully fine-tuned models. The authors suggest that closing this gap will likely require reducing the system's reliance on manually curated examples. Future improvements could involve using synthetic data generation or iterative feedback loops, where the system learns from its own execution errors to improve future queries. Furthermore, the researchers emphasize the need to validate these findings across a wider variety of benchmarks to ensure the framework remains robust in different domains. To see meta in practice, Stop Using Shopify! This AI Does... walks through a concrete example. as detailed in the full paper on Arxiv

Comments (0)

No comments yet

Be the first to share your thoughts!