Citation-Enforced RAG for Fiscal Document Intelligence: Cited, Explainable Knowledge Retrieval in Tax Compliance
This paper introduces a multimodal, citation-enforced Retrieval-Augmented Generation (RAG) framework designed to enhance explainability and auditability in tax compliance by prioritizing source fidelity, page-level provenance, and evidence-based abstention to minimize hallucinations in fiscal document analysis.
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: The "Strict Librarian" vs. The "Chatty Storyteller"
Imagine you are trying to figure out a very complicated tax rule. You have a massive library of government documents (forms, instructions, laws) that are often messy, full of tables, and written in confusing language.
- The Old Way (Standard AI): Imagine asking a very smart, chatty storyteller to answer your question. They know a lot, but they sometimes make things up to sound confident. If they don't know the answer, they might just invent a plausible-sounding story. In tax law, this is dangerous because a made-up rule could get you in trouble.
- The New Way (This Paper's Solution): This paper introduces a "Strict Librarian" AI. This AI is not allowed to speak unless it can point to the exact page in the library where the answer is written. If the library doesn't have the answer, the Librarian says, "I don't know," instead of guessing.
The Core Problem: Why Current AI Fails at Taxes
Current AI tools are great at writing essays or summarizing news. But when you ask them about taxes, they tend to hallucinate.
Think of it like this: If you ask a standard AI, "Can I deduct my pet hamster as a business expense?", it might say, "Yes, if you use it for deliveries," because it's trying to be helpful and sounds confident. But in reality, the tax code says "No."
In the real world, tax authorities need proof. They need to know exactly which sentence in which document supports the answer. Standard AI often gives you the answer but forgets to show its homework.
The Solution: The "Source-First" System
The authors built a system with three main rules to fix this. Here is how they work, using a Detective analogy:
1. Source-First Ingestion (The "Raw Evidence" Rule)
Most AI systems take a document, summarize it, and then store the summary.
- The Flaw: If the AI summarizes a table wrong, the summary is wrong forever. It's like a detective writing down a witness's story in their own words and then forgetting what the witness actually said.
- The Fix: This system acts like a detective who only stores photocopies of the original evidence. It doesn't summarize the documents first. It breaks the documents into small chunks (like individual pages or paragraphs) and keeps the original text intact. This ensures that if the AI makes a claim, it can point to the exact photocopy where that claim came from.
2. Citation Enforcement (The "Show Your Work" Rule)
When the AI answers a question, it isn't allowed to just say "Yes" or "No."
- The Rule: Every single sentence the AI writes must come with a footnote, like: "According to IRS Form 1040, Page 12, Section B."
- The Analogy: Imagine a student taking a test. If they write an answer without showing their math work, they get zero points. This system forces the AI to "show its work" for every single claim. If it can't find a source for a sentence, it's not allowed to write that sentence.
3. The "Abstention" Mechanism (The "I Don't Know" Button)
This is the most important part for safety.
- The Problem: Standard AI feels pressure to answer everything. If you ask a question the documents don't cover, it will still try to guess.
- The Fix: This system has a built-in "Stop" button. If the AI looks through the library and the documents don't clearly answer the question, it refuses to answer.
- The Analogy: Imagine a judge in a courtroom. If the evidence isn't there, a good judge doesn't guess the verdict; they declare a mistrial or say the case is dismissed. This AI does the same. It would rather say, "I cannot answer this because the documents don't say," than give a wrong answer.
How It Works in Real Life
The researchers tested this system using real tax documents from the IRS (federal) and tax boards in California and New York.
- The Input: They fed the system 298 real tax documents (forms, instructions, guides).
- The Test: They asked it 55 realistic questions a tax analyst might ask, like "What are the residency rules for California?"
- The Result:
- Accuracy: 94.5% of the time, the AI's answer was perfectly supported by the documents it cited.
- Hallucinations: It almost never made things up (only 1.8% of the time).
- Knowing when to stop: When the answer wasn't in the documents, the system correctly said "I don't know" 88% of the time.
- Usefulness: Human experts rated the answers as very helpful (4.2 out of 5 stars) because they could easily verify the sources.
Why This Matters
This paper isn't just about making a "smarter" AI; it's about making a responsible AI.
In fields like medicine, law, and taxes, being "mostly right" isn't good enough. You need to be provable. This system proves that we can use powerful AI to read complex documents, but we must force it to be a "strict librarian" that never speaks without a source and never guesses when it's unsure.
In short: It turns AI from a "confident guesser" into a "careful researcher" that always shows its receipts.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.