Falkor-IRAC: Graph-Constrained Generation for Verified Legal Reasoning in Indian Judicial AI
This paper introduces Falkor-IRAC, a graph-constrained generation framework for Indian legal AI that ensures verified reasoning by grounding LLM outputs in structured IRAC knowledge graphs and utilizing a Verifier Agent to validate citations and detect doctrinal conflicts, thereby addressing the hallucination and accuracy limitations of traditional vector-based retrieval systems.
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
The Big Problem: Why Current Legal AI is Like a "Confident Liar"
Imagine you ask a very smart, well-read student (an AI) for legal advice. The student has read thousands of books, but they are terrible at checking their facts.
- Current AI (Vector RAG): This student tries to answer by finding words that sound similar to your question. If you ask about "bail," they might pull up a story about "bail" from a novel or a fake news article because the words match. They might even invent a fake court case that sounds real but doesn't exist. In the legal world, this isn't just a mistake; it's dangerous. If a lawyer relies on a fake case, they could lose a client's freedom.
- The Paper's Goal: The authors want to stop the AI from making things up. They want an AI that says, "I don't know," rather than making up a fake answer.
The Solution: Falkor-IRAC (The "Librarian + Examiner" System)
The paper proposes a new system called Falkor-IRAC. Think of it not as a search engine, but as a two-person team: a Writer and a Strict Examiner.
1. The Map (The Knowledge Graph)
Instead of just a pile of books, the system builds a giant, detailed map of Indian law.
- Nodes (The Stops): Every court case, every law, every judge, and every step in a legal process (like "Bail Denied") is a stop on the map.
- Edges (The Roads): The roads connect these stops. They show how one case led to another, which laws apply, and if two judges disagreed.
- The Special Feature: This map tracks the story of a legal case, not just the text. It knows that if you are at "Bail Denied," the next step is usually "Apply to High Court," but only if you have "new reasons." It's like a GPS that knows the traffic rules, not just the road names.
2. The Writer (The LLM)
When you ask a question (e.g., "Can I apply for bail again?"), the Writer looks at the map and drafts an answer. It tries to use the real stops (cases) and roads (laws) it found.
3. The Examiner (The Verifier Agent)
This is the most important part. Before the answer is shown to you, the Examiner checks the Writer's work.
- The Check: The Examiner looks at the map and asks: "Does the road the Writer described actually exist?"
- The Veto: If the Writer says, "See Case X," but Case X isn't on the map (or is a fake one the Writer invented), the Examiner stops the answer.
- The Result: The answer is only released if the Examiner gives a "Green Light." If the Writer can't find a real path on the map, the system says, "I cannot verify this answer," and stays silent.
Key Features in Plain English
1. "Hallucination" is a Hard No
In normal AI, if the model isn't sure, it might guess. In Falkor-IRAC, guessing is forbidden. If the path on the map doesn't exist, the answer is rejected. It's like a teacher who won't let you hand in a test if you can't show your work.
2. Spotting Disagreements (Conflict Detection)
Sometimes, two different judges (of the same rank) might disagree on a law.
- Old AI: Would pick one side and pretend the disagreement doesn't exist.
- Falkor-IRAC: The Examiner sees the disagreement on the map. It tells you: "There is a conflict. Judge A says X, Judge B says Y. We don't know which one is right yet." It treats uncertainty as a useful answer, not a failure.
3. Tracking the "State" of the Case
Legal cases are like a game with levels. You can't jump from Level 1 to Level 5.
- The system tracks where you are in the game (e.g., "Bail Denied").
- It only suggests moves that are legal from that specific spot. It won't tell you to appeal to the Supreme Court if you haven't even tried the High Court yet.
How They Tested It
The researchers didn't test this on the whole internet. They built a small "proof-of-concept" version:
- The Data: They fed the system 51 real Supreme Court judgments from India.
- The Test: They asked 10 questions (mostly about bail and employment law).
- The Result:
- The system successfully found real cases and checked them.
- When they tried to trick the system with fake case names, the Examiner caught them 100% of the time.
- The Catch: The system is currently slow because it's running on regular computer chips (CPUs) instead of powerful graphics cards (GPUs). Many questions timed out because the "Examiner" took too long to check the map.
The Bottom Line
The paper argues that law is not about finding similar words; it's about following a logical path.
- Current AI is like a tourist guessing directions based on how words sound.
- Falkor-IRAC is like a tour guide who must hold a physical map and prove every step of the route before letting you walk.
The authors conclude that for legal AI to be trustworthy, it needs to be constrained by a map (the graph) and checked by a verifier, rather than just being a smart guesser. They have made their code public so others can try to build better maps and faster examiners.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.