arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.08593cs.CL
收藏

大型语言模型(LLMs)中法律理解与违规行为的知识图谱分析

Knowledge Graph Analysis of Legal Understanding and Violations in LLMs

Abha Jha, Abel Salinas, Fred Morstatter

AI总结:

针对LLMs能分析法律却易生成生物武器制造等不安全输出的矛盾,提出知识图谱与RAG结合的方法评估其法律理解、意图评估能力及安全漏洞,为开发合规LLMs奠定基础。

摘要:

大型语言模型(LLMs)的兴起为解读复杂法律框架提供了变革性潜力,例如管辖生物武器的《美国法典》第18篇第175节。这些系统有望推进敏感领域的法律分析和合规监测。然而,这种能力存在一个令人不安的矛盾:尽管LLMs配备了安全措施,但它们在分析和解释法律的同时,也表现出在生成不安全输出方面的惊人漏洞,例如制造生物武器的可操作步骤。为应对这一挑战,我们提出一种将知识图谱构建与检索增强生成(RAG)相结合的方法,以系统评估LLMs对该法律的理解、评估法律意图(mens rea)的能力及其不安全应用的潜力。通过结构化实验,我们评估了它们在生物武器相关场景中识别法律违规、生成禁止指令和检测非法意图的准确性。我们的研究结果揭示了LLMs在推理和安全机制方面的重大局限性,但也指明了前进方向。通过将增强的安全协议与更强大的法律推理框架相结合,本研究为开发能够在敏感法律领域中进行道德且安全协助的LLMs奠定了基础——确保它们成为法律的保护者,而非无意中促成法律违规的推手。

英文摘要:

The rise of Large Language Models (LLMs) offers transformative potential for interpreting complex legal frameworks, such as Title 18 Section 175 of the US Code, which governs biological weapons. These systems hold promise for advancing legal analysis and compliance monitoring in sensitive domains. However, this capability comes with a troubling contradiction: while LLMs can analyze and interpret laws, they also demonstrate alarming vulnerabilities in generating unsafe outputs, such as actionable steps for bioweapon creation, despite their safeguards. To address this challenge, we propose a methodology that integrates knowledge graph construction with Retrieval-Augmented Generation (RAG) to systematically evaluate LLMs' understanding of this law, their capacity to assess legal intent (mens rea), and their potential for unsafe applications. Through structured experiments, we assess their accuracy in identifying legal violations, generating prohibited instructions, and detecting unlawful intent in bioweapons-related scenarios. Our findings reveal significant limitations in LLMs' reasoning and safety mechanisms, but they also point the way forward. By combining enhanced safety protocols with more robust legal reasoning frameworks, this research lays the groundwork for developing LLMs that can ethically and securely assist in sensitive legal domains - ensuring they act as protectors of the law rather than inadvertent enablers of its violation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑