← Latest papers
🤖 AI

Knowledge Graph Representations for LLM-Based Policy Compliance Reasoning

This paper presents an agentic framework that constructs knowledge graphs from AI policy documents to enhance LLM-based reasoning and compliance verification, demonstrating that KG augmentation improves performance across various reasoning tasks and that LLM-discovered schemas can match or exceed formal ontologies.

Original authors: Wilder Baldwin, Sepideh Ghanavati

Published 2026-05-01
📖 4 min read☕ Coffee break read

Original authors: Wilder Baldwin, Sepideh Ghanavati

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a massive, confusing puzzle where the pieces are rules written in three different languages (the EU AI Act, NIST guidelines, and OWASP standards). You have a very smart assistant (a Large Language Model, or LLM) who has read a lot of books but doesn't have these specific rulebooks memorized perfectly. If you ask the assistant a question, it might guess the answer based on what it "thinks" it knows, but it could get the details wrong or make things up (hallucinate).

This paper introduces a new way to help that smart assistant. Instead of just asking the assistant to remember, the researchers built a digital filing cabinet (a Knowledge Graph) specifically for these AI rules.

Here is how the system works, broken down into simple steps:

1. The "Scan and Sort" Team (Construction)

First, the system takes the long, boring policy documents and breaks them into small, manageable chunks. It then uses an AI agent to read each chunk and pull out the important "facts" (like specific risks, rules, or obligations) and the connections between them.

Think of this like a librarian who reads a 500-page rulebook and creates a set of index cards.

  • The "Strict" Librarian (AIRO Schema): This librarian follows a very strict, pre-made list of categories (like "Risk," "Threat," "Consequence"). They force every fact into these specific boxes.
  • The "Creative" Librarian (Open Schema): This librarian doesn't use a pre-made list. Instead, they look at the text and create their own descriptive labels (like "Data Poisoning Risk" or "Transparency Rule") that fit the content best.

2. The "Detective" (Retrieval)

When you ask a question (e.g., "Does this code violate the EU AI Act?"), the system doesn't just ask the assistant to guess. It acts like a detective:

  • The Direct Path: For simple questions (like "What is a high-risk AI system?"), the detective quickly finds the exact index card and reads the quote.
  • The Agent Path: For complex questions (like "How do the EU rules and NIST rules work together?"), the detective walks through the filing cabinet, following the connections between cards to gather all the evidence needed to build a complete answer.

3. The "Judge" (Evaluation)

The researchers tested this system with five different AI models (from very powerful ones to smaller, cheaper ones). They asked 42 different types of questions, ranging from simple lookups to complex cross-rule reasoning.

They compared three scenarios:

  1. No Help: The AI answers from its own memory.
  2. Strict Filing Cabinet: The AI uses the "Strict" librarian's cards.
  3. Creative Filing Cabinet: The AI uses the "Creative" librarian's cards.

What They Found (The Results)

  • The Filing Cabinet Always Helps: Adding the knowledge graph improved the answers for every AI model tested. The AI became more accurate and, crucially, could provide exact quotes from the rules to prove its answer, rather than just guessing.
  • The "Creative" Librarian Was Surprisingly Good: You might think a strict, pre-made list (the formal ontology) would be better. However, the "Creative" librarian, who made up their own labels on the fly, performed just as well, and sometimes even better, than the strict one. This suggests that letting the AI describe things in its own words can be more effective than forcing it into rigid boxes.
  • Size Matters (For the Detective): The system worked great for the "big brain" AI models. However, for the smaller, less powerful models, the "Agent Path" (where the detective walks through the graph) actually made things worse. It was like giving a complex map to a child who doesn't know how to read; they got lost. For smaller models, it was better to just give them the direct answer without the complex walking-around step.

The Big Takeaway

The paper proves that if you want an AI to follow complex safety rules, you shouldn't just rely on its memory. You need to give it a structured, searchable map of those rules. Interestingly, you don't need a perfectly pre-planned map; a map that the AI builds itself based on the text works just as well. However, you have to match the complexity of the map-reading task to the intelligence of the AI doing the reading.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →