用领域本体增强检索,让大模型回答更准更可信。
OG-RAG: Ontology-Grounded Retrieval-Augmented Generation For Large Language Models
- 基于本体构建超图结构,精准捕捉知识间关系
- 事实召回率提升55%,回答正确率提高40%
- 适合医疗、法律等需严格遵循流程的领域
本文提出OG-RAG,一种基于本体的检索增强生成方法,通过将检索过程锚定在领域本体上,提升大模型生成结果的准确性。尽管大模型广泛应用于问答与搜索任务,但在工业流程或知识工作等专业领域中缺乏适应性,现有RAG方法因未考虑结构化知识而表现不佳。本体以实体及其关系的形式组织领域知识,填补此空白。OG-RAG将领域文档构建为超图,每个超边代表一组由本体支撑的事实集群,通过优化算法检索最小超边集,生成概念严谨的上下文。该方法在保持复杂实体关系的同时实现高效检索。适用于需基于事实推理的任务,如医疗、法律、农业等行业的流程执行,以及新闻写作、调查研究、咨询等知识密集型场景。实验表明,OG-RAG使准确事实召回率提升55%,响应正确率提高40%,相比基线方法,响应溯源速度加快30%,基于事实的推理准确率提升27%。
原文摘要 · Abstract (English)
This paper presents OG-RAG, an Ontology-Grounded Retrieval Augmented Generation method designed to enhance LLM-generated responses by anchoring retrieval processes in domain-specific ontologies. While LLMs are widely used for tasks like question answering and search, they struggle to adapt to specialized knowledge, such as industrial workflows or knowledge work, without expensive fine-tuning or sub-optimal retrieval methods. Existing retrieval-augmented models, such as RAG, offer improvements but fail to account for structured domain knowledge, leading to suboptimal context generation. Ontologies, which conceptually organize domain knowledge by defining entities and their interrelationships, offer a structured representation to address this gap. OG-RAG constructs a hypergraph representation of domain documents, where each hyperedge encapsulates clusters of factual knowledge grounded using domain-specific ontology. An optimization algorithm then retrieves the minimal set of hyperedges that constructs a precise, conceptually grounded context for the LLM. This method enables efficient retrieval while preserving the complex relationships between entities. OG-RAG applies to domains where fact-based reasoning is essential, particularly in tasks that require workflows or decision-making steps to follow predefined rules and procedures. These include industrial workflows in healthcare, legal, and agricultural sectors, as well as knowledge-driven tasks such as news journalism, investigative research, consulting and more. Our evaluations demonstrate that OG-RAG increases the recall of accurate facts by 55% and improves response correctness by 40% across four different LLMs. Additionally, OG-RAG enables 30% faster attribution of responses to context and boosts fact-based reasoning accuracy by 27% compared to baseline methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。