Hallucination

A hallucination is an answer from a language model that sounds fluent and convincing but is factually wrong or invented. Think of a section of law that does not exist, an incorrect amount or a source that cannot be found anywhere. The model itself does not know it is mistaken.

A hallucination is an answer from a language model that sounds fluent and convincing but is factually wrong or invented. Think of a section of law that does not exist, an incorrect amount or a source that cannot be found anywhere. The model itself does not know it is mistaken.

Why it happens

A language model does not look facts up. It writes the most likely continuation of a text each time. Most of the time, likely and correct coincide, but not always. If you ask about something that is not in its training data or in the text you supplied, the model fills the gap with something that sounds plausible. The more specific the question, such as a section number, a date or an amount, the greater the chance of an invented detail. The model gives no sign that it is unsure.

Examples from practice

  • A summary of a contract that mentions a notice period which is not in it.
  • A reply to a customer quoting a delivery time or discount you never offered.
  • An overview of grants or legal provisions, some of which do not exist.
  • An invoice read with the wrong VAT number because the real one was illegible.

The problem is not that the model is sometimes wrong, people are too. The problem is that the error looks every bit as certain as a correct answer.

How to limit the risk

Give the model the source instead of relying on its memory: that is the core of RAG. Explicitly ask it to answer "I don’t know" when information is missing, and to cite the source for each statement. Let software check what can be checked, such as a VAT number or an invoice total. And have a person review whatever goes to a customer, supplier or public authority. The greater the consequences of a mistake, the stricter the check needs to be.

How SBC works with it

SBC’s systems are built on the assumption that the model will sometimes be wrong. Amounts and numbers are recalculated, doubtful cases are raised rather than filled in, and nothing goes out without human approval. Within AI Engineering we build the same checks for clients, matched to what a mistake would cost them.

Also known as: AI hallucination, hallucinating, confabulation, made-⁠up answer

Frequently asked questions

What you want to know.

Short answers to what business owners ask most often here.

Can hallucinations be avoided completely?

No. You can reduce them considerably with sources, clear instructions and automated checks, but a person is still needed for important decisions.

Do newer models hallucinate less?

Generally yes, but even the best models make mistakes. Do not build your way of working on the assumption that the model is always right.

How do I spot a hallucination?

Check names, figures, dates and sources. Ask the model for the exact passage it relied on and verify it yourself.

Next step

What can AI do for you?

Start with the free AI Opportunity Scan, or request an AI project straight away. A short intake, then a concrete proposal at a fixed price.