FOUNDINT.AI
TRIHELIX AI team Published

Article

Beginner

Why an AI Tool Can Sound Sure About a Tax Rule and Still Be Wrong

What two 2024 research papers on legal hallucinations found about chatbots and specialized legal AI tools, why a confident answer with a section number is not proof, and the checking habit foundation staff can use before acting on an AI answer about a legal or tax rule. Invented example. General information, not legal or tax advice.

Responsible Practice AI Literacy

A program officer at the Oakhollow Foundation, a private foundation invented for this article, types a question into a chatbot: can the foundation pay a trustee’s daughter for consulting work? The answer comes back in seconds. It is fluent, it is confident, and it cites a section of the tax code with a paragraph number. It reads like something a lawyer wrote. The program officer has no way to tell, from the answer alone, whether any of it is true.

That gap between how sure an answer sounds and whether it is right is something researchers have measured. Two 2024 papers on legal “hallucinations” are a good place to start, because they measured the problem directly.

What you will be able to do: explain what researchers mean by a legal hallucination, describe what two studies found and what their numbers do and don’t cover, and use a simple checking habit before acting on an AI answer about a legal or tax rule. Prerequisites: none. Time: about 15 minutes. This is general information, not legal or tax advice.

The first paper, “Large Legal Fictions,” published in the Journal of Legal Analysis in 2024, defines the problem in its abstract as “hallucinations — textual output that is not consistent with legal facts.”

That definition is useful because it is about the output, not about intent. A tool doesn’t have to be broken or malicious to hallucinate. It only has to produce text that doesn’t match the law. A made-up section number, a real section with the wrong words, or a rule stated with the wrong condition all fit.

What the first study found

The authors asked general-purpose chatbots questions they could check against real records. Their abstract reports: “we find that legal hallucinations are alarmingly prevalent, occurring between 58% of the time with ChatGPT 4 and 88% with Llama 2, when these models are asked specific, verifiable questions about random federal court cases.”

Keep that finding in its lane. It is about questions on random federal court cases, asked of the model versions the paper names. It is not a measurement of tax questions, foundation rules or the tools your staff use today. What it does show is that fluent, specific legal answers from general chatbots were often wrong in that study.

Two more findings matter for anyone asking a chatbot a compliance question.

First, the way you ask can steer the answer. The abstract says “LLMs often fail to correct a user’s incorrect legal assumptions in a contra-factual question setup.” If Oakhollow’s program officer had asked “Since paying a trustee’s family is fine as long as the price is fair, how should we document it?”, the question itself carries a premise. A tool that accepts the premise will build a tidy answer on top of it.

Second, the tool’s confidence isn’t a reliable signal. The paper reports that “LLMs cannot always predict, or do not always know, when they are producing legal hallucinations.” A hedge-free answer is not evidence of a correct one.

The authors also point to who is most exposed: “the risks are highest for those who stand to benefit from LLMs the most — pro se litigants or those without access to traditional legal resources.” Small foundations without in-house counsel are not the group the paper studied, but the logic is familiar. The less access you have to an expert, the more weight an AI answer tends to carry, and the more a wrong one can cost.

What the second study found about specialized tools

A reasonable response is to use a legal research tool built for the job rather than a general chatbot. The second paper, “Hallucination-Free?”, tested exactly that. Its abstract reports: “While hallucinations are reduced relative to general-purpose chatbots (GPT-4), we find that the AI research tools made by LexisNexis (Lexis+ AI) and Thomson Reuters (Westlaw AI-Assisted Research and Ask Practical Law AI) each hallucinate between 17% and 33% of the time.”

Again, keep the scope: those are the specific commercial legal research tools the paper evaluated, in a 2024 paper. The finding isn’t that those tools are bad or that general chatbots are worse at everything. It is that better tools reduced the problem without removing it.

The same abstract frames what that means for people who use these tools: “it provides evidence to inform the responsibilities of legal professionals in supervising and verifying AI outputs, which remains a central open question for the responsible integration of AI into law.” If verification is an open question for lawyers, it is a live one for foundation staff too.

The habit: treat citations as leads

None of this means staff should stop asking AI tools questions. It means the answer is where the work starts, not where it ends. A practical habit for any legal or tax answer:

  1. Ask for the exact words. Ask the tool to quote the rule word for word and name the section.
  2. Open the primary source. Go to the regulation or the agency’s own page, not a summary or a blog post.
  3. Find the words. Search the source for the exact quote, and check that it sits in the section the tool named.
  4. Read the small words. “Only if,” “exclusively,” “and” versus “or” and “insubstantial” change what a rule means.
  5. Ask a professional before acting. For anything with money or exemption at stake, the foundation’s tax adviser or counsel makes the call.

An AI answer is a lead, not a ruling: ask for the exact words, open the primary source, find the words in the section named, read the small words, then ask a professional before acting.

A worked example, invented

Oakhollow’s program officer goes back to the chatbot answer:

  1. The answer cites a section and paraphrases it. The officer asks for the exact words; the tool produces a sentence in quotation marks.
  2. The officer opens the regulation the tool named and searches for the sentence. It isn’t there. A similar idea appears, but the condition is different.
  3. The officer writes down what the regulation actually says and sends both versions to the foundation’s tax adviser with the question.

The chatbot saved time on finding where to look. It did not answer the question.

Check your work, and a common mistake

Verification: for any AI answer you plan to act on, you should be able to point to the primary source, the section and the exact words that support it. If you can’t, the answer is unverified.

The common mistake: “It gave a section number, so it must be right.” A real section number with the wrong words, or with words from somewhere else, is one of the ways these answers go wrong.

Try it: the companion tutorial, check an AI answer against the 501(c)(3) regulation, turns the habit into a quote-by-quote check with an interactive lab. For a broader routine, see keeping unsupported claims out of the executive update and asking two models the same question.

Limitations

This article relies on the two papers’ abstracts only; the full papers weren’t reviewed for it. Their numbers describe the questions, models and tools those studies tested and shouldn’t be read as rates for any tool today or for tax questions. It is general information, not legal or tax advice.

Sources (2)