← Latest papers
💬 NLP

From Judgments to Issues: Structured Extraction of Legal Reasoning with Citation-Hallucination Control

This paper presents a cost-effective, automated pipeline that decomposes Italian tax-court judgments into structured legal issues using the IRAC framework and a general-purpose LLM, while employing a dedicated parser-based filter to detect and control citation hallucinations, thereby enabling reliable large-scale analysis of legal reasoning.

Original authors: Giovanni Piccioli, Alessia Fidelangeli, Piera Santin, Pierpaolo Vivo

Published 2026-07-07
📖 5 min read🧠 Deep dive

Original authors: Giovanni Piccioli, Alessia Fidelangeli, Piera Santin, Pierpaolo Vivo

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 Picture: Turning a Mountain of Paper into a Digital Library

Imagine the Italian tax court system as a massive, chaotic library. Every year, it produces hundreds of thousands of new books (judgments). These books are written in a very specific, sometimes messy, legal language. Lawyers and researchers want to find specific answers inside these books, but reading every single page of every book is impossible.

The authors of this paper built a robotic librarian (an automated pipeline) designed to do three things:

  1. Read these thousands of legal books.
  2. Break them down into their most important questions and answers.
  3. Check its own work to make sure it didn't invent any fake facts or fake legal references.

The Core Problem: The "One-Size-Fits-All" Mistake

Usually, when computers try to read a legal judgment, they treat the whole document as one big block of text. The authors argue this is like trying to find a specific recipe in a cookbook by reading the entire book cover-to-cover.

A single tax judgment often contains several different "stories" or legal issues. For example, a judge might first decide if a case is even allowed to be heard (admissibility), then decide if the tax was calculated correctly (merits), and finally decide who pays for the court fees.

The authors' robot doesn't just read the whole book; it slices the book into individual chapters. It treats each legal question as its own separate, self-contained unit.

The Blueprint: The "IRAC" Recipe

To organize these slices, the robot uses a famous legal recipe called IRAC (Issue, Rule, Application, Conclusion). Think of this like a standardized form that every legal answer must fill out:

  • The Question (Issue): "Did the farmer have to pay tax on a tractor he bought but hasn't used yet?"
  • The Rule (Rule): What laws say about tractors and taxes.
  • The Application (Application): How the judge applied those laws to this specific farmer's situation.
  • The Conclusion (Conclusion): The final verdict (e.g., "No tax is due").

The robot translates the messy, handwritten-style legal text into a clean, structured XML format (a digital filing system) that follows this recipe perfectly.

The "Hallucination" Problem: The Robot's Daydreams

Large Language Models (the brains behind the robot) are great at writing, but they have a bad habit: hallucination. Sometimes, when asked to list the legal references a judge used, the robot might confidently make up a legal reference that doesn't exist, just because it sounds plausible. It's like a student writing a history essay and inventing a fake treaty because they forgot the real one.

In the legal world, this is dangerous. If a lawyer relies on a fake legal reference, they could lose a case.

The Solution: The "Fact-Checker" Filter
To fix this, the authors added a second layer of security, a "Hallucination Filter."

  1. The robot extracts the legal references it thinks were used.
  2. A separate, strict tool (called Linkoln) scans the original judgment text to find the actual legal references mentioned there.
  3. The system compares the two lists. If the robot listed a legal reference that isn't in the original text, the filter deletes it immediately.

It's like a teacher grading a student's essay: "You cited a source that isn't in the reading list? That's a fake citation. Cross it out."

The Test: Did the Robot Pass the Exam?

The authors didn't just trust the robot; they put it to the test.

  • The Corpus: They processed about 330,000 real Italian tax court judgments.
  • The Cost: They chose a specific AI model (DeepSeek V3) because it was cheap enough to process that many documents without breaking the bank (about 35 cents per document).
  • The Human Check: They took 50 of these judgments and gave them to two real human experts (PhD-level tax lawyers) to grade.

The Results:

  • Finding Issues: The robot was very good at finding the right questions (high precision), though it sometimes missed a few minor ones (moderate recall). It rarely made up fake questions.
  • Finding Legal References: The robot found about 75% of the relevant legal references.
  • The Filter's Success: The "Hallucination Filter" was a hero. Before the filter, about 12% of the cited legal references were fake. After the filter, that number dropped to less than 1%. The filter caught almost all the fake legal references while accidentally deleting only 3% of the real ones.
  • Quality: The summaries and reasoning written by the robot scored very high (around 4.7 out of 5) when compared to human experts.

The Takeaway

This paper presents a cost-effective, reliable pipeline that turns thousands of messy Italian tax court judgments into a clean, structured database of legal arguments.

It proves that:

  1. You can break complex legal documents into individual "issues" automatically.
  2. You can use a cheaper AI model if you add a strict "fact-checking" step to stop it from lying about legal references.
  3. The result is a dataset that is ready for computers to search, analyze, and use to build better legal tools, all while keeping the risk of fake citations extremely low.

The authors emphasize that this is the first time such a system has been built and rigorously tested specifically for Italian tax courts, providing a solid foundation for future legal technology.

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 →