OA-RAG: Ontology-based Agentic RAG for Faithful LLM Reasoning
Abstract
Large language models (LLMs) perform well across many real-world tasks but remain prone to hallucination, limiting their reliability in domains such as biomedicine and healthcare, where answers must be grounded in established knowledge. Retrieval-augmented generation (RAG) mitigates this problem by incorporating external information, but often overlooks logical relationships and relies heavily on the LLM's own reasoning, which can compromise answer faithfulness. We propose OA-RAG, an agent that integrates formal reasoning with LLM reasoning, drawing on both the logical structure and informal annotations of domain ontologies. For each answer, OA-RAG reports the ontology observations used as evidence and a model-assessed grounding level (entailed, supported, related, or unrelated) that characterises the strength of that evidence. Across benchmarks derived from three large-scale ontologies and six real-world medical question-answering tasks, OA-RAG achieves the best overall performance among the evaluated ontology-fine-tuned and popular RAG methods, with particularly strong results on reasoning-intensive tasks. The reported grounding levels also offer a useful indication of answer reliability, with stronger grounding generally associated with higher accuracy. Finally, our results demonstrate the value of ontologies as knowledge sources: OA-RAG is competitive with, and sometimes outperforms, domain-specific RAG systems that draw on sources such as textbooks.
Create a lesson
Related papers
Ontology-guided multi-agent reasoning for explainable differential diagnosis
Shared title terminologycs.AIRoxana Ramona Szomiu, George Ursu, Adrian Groza
Can LLMs Faithfully Solve Ontology Engineering Tasks? A Mechanistic Interpretability Study
Shared title terminologycs.AIBohui Zhang, Albert Meroño-Peñuela, Elena Simperl
SkillMem: Compact External Skill Memory for Latent Multi-Agent Reasoning
Shared title terminologycs.AIYuxuan Zhu, Mohammad Mohammadi Amiri, Pin-Yu Chen et al.
What Does an Ontology Catch? Curated, LLM-Generated and Data-Derived Ontologies as Checkers of LLM Agents over Knowledge Graphs
Shared title terminologycs.AIMichal Orzechowski, Rund Tawfiq, Tomasz Kosciolek
Agent-Conditioned Routing: Diverse Reasoning Paths Within One Frozen Model
Shared title terminologycs.AIAnanth Kalyanasundaram, Ankush Kadu, Athira Gopal et al.
Free to Look, Free to Reason: Simple LLM Harnesses Outdiagnose Hand-Crafted Root Cause Analysis Agents
Shared title terminologycs.AITingzhu Bi, Xun Zhang, Jinglin Li et al.