Citation Grounding: Detecting and Reducing LLM Citation Hallucinations via Legal Citation Graphs
This paper introduces "Citation Grounding," a novel metric and framework for detecting and reducing legal citation hallucinations in large language models by leveraging a massive Ukrainian court decision graph to evaluate citation accuracy and employing a preference learning method (CG-DPO) to train models to distinguish valid citations from corrupted ones.
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 hiring a very smart, fast-talking legal assistant to write a report for you. This assistant has read millions of books and knows a lot of facts. However, there's a catch: when asked to cite specific laws to back up their arguments, this assistant sometimes makes them up. They might invent a law that doesn't exist, quote a law that was cancelled years ago, or quote a law from a different country entirely. In the legal world, this is called a "hallucination," and it can get people in serious trouble.
This paper introduces a new way to catch these lies and a method to teach the assistant not to tell them.
The Problem: The "Fake Law" Generator
The authors found that even the most advanced AI models, when asked to write about Ukrainian law, invent fake legal citations about 13% to 21% of the time. It's like a student writing an essay and making up page numbers for a textbook that doesn't exist.
The Solution: The "Citation Grounding" Test
To fix this, the researchers built a massive digital map called a Citation Graph. Think of this graph as a giant, super-accurate library catalog built from 100 million real court decisions. It contains every single time a real judge has ever cited a specific law in a real case.
They created a test called Citation Grounding (CG). Here is how it works:
- The Map: They have the "truth map" (the graph of real court cases).
- The Test: They ask an AI to write a legal answer.
- The Check: They look at every law the AI mentions and check the map.
- Did the law exist? (Precision)
- Was it the right law for this specific situation? (Relevance)
- Was the law actually in effect on that specific date? (Temporality)
If the AI cites a law that isn't on the map, or cites it in the wrong context, the test flags it as a hallucination.
What They Found
They tested five different AI systems on 100 legal questions.
- The Results: Most AIs got about 80% of their citations right. The rest were fake.
- The "RAG" Winner: One system used a special trick called RAG (Retrieval-Augmented Generation). Imagine this AI doesn't just rely on its memory; it actually goes to the library, finds the real books, and reads them before answering. This system made the fewest mistakes and cited the fewest laws overall, proving that "less is more" when you are actually looking up the facts.
- The Surprising Pattern: They expected that AI models that cited more laws would make more mistakes. But that wasn't true. Some models cited many laws and were still accurate; others cited fewer laws and were still wrong. It depends entirely on how the AI is built, not just how much it talks.
The "Self-Teaching" Method (CG-DPO)
The biggest breakthrough in the paper is how they plan to fix the AI without hiring a team of expensive human lawyers to check every answer.
Usually, to teach an AI to be honest, humans have to read its answers and say, "This is good," or "This is bad." This is slow and expensive.
The researchers realized their Citation Graph could do the human's job. They created a game:
- Take a real court decision with correct citations.
- Corrupt it: They used a computer program to swap laws, invent fake articles, or use outdated laws (like changing a 2020 law to a 2025 law that didn't exist yet).
- The Lesson: They showed the AI two versions: the "Real" one and the "Corrupted" one. The AI learned to prefer the Real one.
Because the "truth" was already in the graph, they didn't need humans to label the data. They just let the graph do the grading. They trained a model using this method, and it became 98.5% accurate at spotting the difference between a real citation and a fake one.
The Bottom Line
This paper shows that:
- AI lies about laws often, but we can catch it by comparing its answers to a massive map of real court history.
- RAG systems (which look up facts before answering) are currently the best at avoiding these lies.
- We can teach AI to stop lying by using the map itself to generate "correct vs. incorrect" examples, removing the need for human lawyers to do the tedious work of checking every single citation.
The authors have made their "map," their testing tools, and their training data available for anyone to use, hoping to make legal AI more reliable for everyone.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.