arXiv:2505.00039cs.CLcs.AI2025-05被引 6

用结构化图谱让法律AI理解法规的层级、时间与因果关系,避免错误回答。

An Ontology-Driven Graph RAG for Legal Norms: A Structural, Temporal, and Deterministic Approach

  • 基于本体构建法律知识图谱,显式建模法规的版本与演变过程。
  • 支持时间点查询、影响分析和溯源重建,结果可验证且无事实错误。
  • 适合需要高可信度的法律AI系统,如司法辅助或合规审查。

法律领域的检索增强生成(RAG)系统面临核心挑战:标准的平面文本检索无法捕捉法律规范的层级性、历时性和因果结构,导致回答存在时序错乱与不可靠问题。本文提出结构感知的时间图RAG(SAT-Graph RAG),一种基于本体的框架,通过显式建模法律规范的形式结构与历时特性来克服上述局限。我们以LRMoo启发的正式模型为基础,区分抽象法律作品与其版本化的表达形式;将时间状态建模为对未变更组件的版本化表达(CTVs)的高效聚合,并将立法事件作为一级动作节点,使因果关系显式可查。该结构化基础支持统一的规划引导查询策略,应用明确规则以确定性方式处理三类复杂请求:(i) 时间点检索,(ii) 层级影响分析,(iii) 可审计的溯源重构。在巴西宪法案例研究中,验证了该方法能为大语言模型提供可验证、时序正确的基础,显著提升高阶分析能力并大幅降低事实错误风险。成果为构建更可信、可解释的法律AI系统提供了实用框架。

原文摘要 · Abstract (English)

Retrieval-Augmented Generation (RAG) systems in the legal domain face a critical challenge: standard, flat-text retrieval is blind to the hierarchical, diachronic, and causal structure of law, leading to anachronistic and unreliable answers. This paper introduces the Structure-Aware Temporal Graph RAG (SAT-Graph RAG), an ontology-driven framework designed to overcome these limitations by explicitly modeling the formal structure and diachronic nature of legal norms. We ground our knowledge graph in a formal, LRMoo-inspired model that distinguishes abstract legal Works from their versioned Expressions. We model temporal states as efficient aggregations that reuse the versioned expressions (CTVs) of unchanged components, and we reify legislative events as first-class Action nodes to make causality explicit and queryable. This structured backbone enables a unified, planner-guided query strategy that applies explicit policies to deterministically resolve complex requests for (i) point-in-time retrieval, (ii) hierarchical impact analysis, and (iii) auditable provenance reconstruction. Through a case study on the Brazilian Constitution, we demonstrate how this approach provides a verifiable, temporally-correct substrate for LLMs, enabling higher-order analytical capabilities while drastically reducing the risk of factual errors. The result is a practical framework for building more trustworthy and explainable legal AI systems.

法律AI知识图谱RAG因果推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。