Knowledge Graph Analysis of Legal Understanding and Violations in LLMs
Abha Jha, Abel Salinas, Fred Morstatter

TL;DR
This paper evaluates how well large language models understand and interpret complex legal laws, especially in sensitive areas like biological weapons, using knowledge graphs and retrieval-augmented generation to identify strengths and vulnerabilities.
Contribution
It introduces a novel methodology combining knowledge graphs and RAG to systematically assess LLMs' legal understanding and safety in sensitive legal contexts.
Findings
LLMs show limitations in legal reasoning and safety mechanisms.
Structured evaluation reveals vulnerabilities in generating unsafe outputs.
Proposes safety enhancements and legal reasoning improvements for LLMs.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEthics and Social Impacts of AI · Artificial Intelligence in Law · Artificial Intelligence in Healthcare and Education
