mlsanityData to 14 Oct 2026

Increasing the LLM Accuracy for Question Answering: Ontologies to the Rescue!

arXiv 2405.11706 ↗First posted 20 May 2024cs.AI cs.DB cs.IRcited by 18

Not on the map. Why?

Abstract (arXiv)

There is increasing evidence that question-answering (QA) systems with Large Language Models (LLMs), which employ a knowledge graph/semantic representation of an enterprise SQL database (i.e. Text-to-SPARQL), achieve higher accuracy compared to systems that answer questions directly on SQL databases (i.e. Text-to-SQL). Our previous benchmark research showed that by using a knowledge graph, the accuracy improved from 16% to 54%. The question remains: how can we further improve the accuracy and reduce the error rate? Building on the observations of our previous research where the inaccurate LLM-generated SPARQL queries followed incorrect paths, we present an approach that consists of 1) Ontology-based Query Check (OBQC): detects errors by leveraging the ontology of the knowledge graph to check if the LLM-generated SPARQL query matches the semantic of ontology and 2) LLM Repair: use the error explanations with an LLM to repair the SPARQL query. Using the chat with the data benchmark, our primary finding is that our approach increases the overall accuracy to 72% including an additional 8% of "I don't know" unknown results. Thus, the overall error rate is 20%. These results provide further evidence that investing knowledge graphs, namely the ontology, provides higher accuracy for LLM powered question answering systems.

Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 5 of its 16 references that are in the map. First posted on arXiv 20 May 2024.

Builds on

5 of 16 references.

References · 5

  1. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
  2. 2020Knowledge Graphscited by 621
  3. 2023InferFix: End-to-End Program Repair with LLMscited by 114
  4. 2023A Survey of Learning-based Automated Program Repaircited by 55
  5. 2023A Benchmark to Understand the Role of Knowledge Graphs on Large Language Model's Accuracy for Question Answering on Enterprise SQL Databasescited by 25

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 4; 2025: 12; 2026: 2.

18 papers.

Sort:

By area:

  1. 2025Authenticated Delegation and Authorized AI Agentscited by 65
  2. 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQLcited by 30
  3. 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approachescited by 18
  4. 2025Causal Sufficiency and Necessity Improves Chain-of-Thought Reasoningcited by 17
  5. 2025Beyond the Surface: Enhancing LLM-as-a-Judge Alignment with Human via Internal Representationscited by 15
  6. 2025Improving LLM Reasoning through Interpretable Role-Playing Steeringcited by 12
  7. 2025HuggingGraph: Understanding the Supply Chain of LLM Ecosystemcited by 8
  8. 2024Exploring Prompt Engineering: A Systematic Review with SWOT Analysiscited by 5
  9. 2025Mining for Species, Locations, Habitats, and Ecosystems from Scientific Papers in Invasion Biology: A Large-Scale Exploratory Study with Large Language Modelscited by 4
  10. 2025Enhancing Large Language Models through Neuro-Symbolic Integration and Ontological Reasoningcited by 4
  11. 2024Towards Ontology-Enhanced Representation Learning for Large Language Modelscited by 3
  12. 2026Semantic Layers for Reliable LLM-Powered Data Analytics: A Paired Benchmark of Accuracy and Hallucination Across Three Frontier Modelscited by 3
6 more
  1. 2025AraTable: Benchmarking LLMs' Reasoning and Understanding of Arabic Tabular Datacited by 2
  2. 2024KNOW: A Real-World Ontology for Knowledge Capture with Large Language Modelscited by 1
  3. 2024MaxMind: A Memory Loop Network to Enhance Software Productivity based on Large Language Modelscited by 1
  4. 2025Benchmarking the rationality of AI decision making using the transitivity axiomcited by 1
  5. 2025Open-DeBias: Toward Mitigating Open-Set Bias in Language Modelscited by 0
  6. 2026Bounded Semantic Planning and Deterministic Compilation for Reliable Enterprise Text-to-SQLcited by 0