构建分层法律图谱与多智能体验证系统,提升法律推理的准确性与可解释性。
LegalGraphRAG: Multi-Agent Graph Retrieval-Augmented Generation for Reliable Legal Reasoning

- 分层法律图谱按事实、规则、原则组织知识,支持精准检索。
- 多智能体协作实现证据检索、验证与判决合成,准确率显著领先基准。
- 适合法律AI研究者与司法智能化系统开发者参考应用。
基于图的检索增强生成(GraphRAG)通过结构化关系知识,提升了传统文档检索的连贯性与有效性。然而在法律推理等特定领域面临挑战:(i)法律文献异质性强,包含案例、条文、解释等多种粒度信息,平面知识图谱难以区分事实细节、适用规则与抽象原则,影响检索精度;(ii)可靠法律判断需透明、有据的推理过程,传统RAG直接将检索内容输入大模型,缺乏验证,导致推理不透明且易出错。为此,我们提出LegalGraphRAG框架,核心包含两部分:一是分层法律图谱,层级组织法律源以支持不同抽象层次的检索;二是多智能体系统,包括研究者(检索候选证据)、审计员(严格比对原文验证证据有效性)、裁判者(整合已验证证据生成最终判决)。大量实验表明,LegalGraphRAG在准确性和可信度上均优于现有GraphRAG基线,达到当前最先进水平。代码、数据集与实现细节见https://github.com/XMUDeepLIT/LegalGraphRAG。
原文摘要 · Abstract (English)
Graph-based Retrieval-Augmented Generation (GraphRAG) advances flat document retrieval by structuring knowledge as relational graphs, enabling more coherent and effective reasoning. However, applying it to specific domains like legal reasoning faces critical challenges. (i) Legal corpora are heterogeneous, containing multi-granular knowledge from cases, articles and interpretations. A flat knowledge graph cannot adequately differentiate between factual details, applied rules, and abstract principles, limiting accurate retrieval. (ii) Reliable legal judgment demands transparent, evidence-based reasoning. Traditional RAG passes retrieved context directly to an LLM without verification, resulting in opaque, error-prone reasoning. To this end, we propose LegalGraphRAG, a framework designed for reliable legal reasoning. Our approach introduces two core components: a hierarchical legal graph that hierarchically organizes legal sources to enable retrieval at appropriate abstraction levels, and a multi-agent system for reliable legal reasoning, where a Researcher retrieves candidate evidence, an Auditor rigorously verifies its validity against source documents, and an Adjudicator synthesizes the set of verified evidence to render a final judgment. Extensive experiments show that LegalGraphRAG achieves the state-of-the-art performance, outperforming existing GraphRAG baselines in accurate and trustworthy legal analysis. Our code, datasets and implementation details are available at https://github.com/XMUDeepLIT/LegalGraphRAG.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。