Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)
Harshdeep Singh, Yurui Zhu, Giovanni Colavizza, Matteo Romanello
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
Related papers
From Queries to Narratives: Cultural Heritage Data Stories for Knowledge Graph Exploration and Quality Assessment
Shared title terminologycs.AITabea Tietz, Torsten Schrade, Etienne Posthumus et al.
Cost Characterization of Vertically Partitioned Federated Knowledge Graphs
Shared title terminologycs.AIMd Saikat Islam Khan Bappy, Oshani Seneviratne
Enabling and Understanding Personalization in AI-Generated Advertising Imagery
Shared title terminologycs.AIVictor Kolominsky-Rabas, Leopold Müller, Claudius Budcke et al.
When Successful Knowledge Graph Edits Displace Correct Answers: Rank-Level Locality beyond Parameter Support
Shared title terminologycs.AIYi-Cheng Lai, Jerry Wang, Hsin-Ling Hsu et al.
From Document Silos to Process Intelligence: A Multi-Layer Knowledge Graph for CMC Process Development
Shared title terminologycs.AIReza Amirmoshiri, Faryad Sahneh, Yasser Jangjou
Safe Autoformalization: Sufficiency and Necessity with Entailment Graphs
Shared title terminologycs.AIUmut A. Acar, Eli Goldweber