What AI Can and Cannot Do

Why AI Chatbots Invent Facts, and What Developers Call Hallucination

Why a chatbot can state false things fluently, what makes it more likely, and the habits that keep invented facts out of your work.

Key takeaways

  • A language model generates text that fits learned patterns, and no built-in step compares each claim with reality.
  • Invented details are most likely with obscure, recent, numerical or very specific questions, and with questions built on a false premise.
  • Search, document retrieval and better training reduce the problem, but none of them removes it.
  • Treat names, figures, quotations and references as unverified until you have seen them in a trustworthy source.

AI chatbots invent facts because they are built to produce likely text, and likely text is not the same thing as true text. When the patterns a model learned point firmly to the right answer, you get it. When they are weak or missing, the same process still produces a fluent sentence, complete with names, dates and numbers that fit the shape of an answer.

Developers call this hallucination: output that is presented as fact but is false or unsupported. Some researchers prefer the word confabulation, borrowed from psychology, because nothing is being seen or imagined. The system is filling a gap with something plausible.

What counts as a hallucination

The term covers several different mistakes, and telling them apart helps you catch them.

  • Invented facts. A date, a statistic or an event that never happened.
  • Invented sources. A book, article, court case or web address that does not exist.
  • False attribution. A real person or document credited with something they never said.
  • Unfaithful reporting. A summary or answer that contradicts, or goes beyond, the material you supplied.
  • Invented actions. A claim to have opened a file, run a test or sent a message when no such thing took place.

Not every wrong answer belongs here. A model may repeat a popular misconception that appeared often in its training material. It may give information that was correct once and has since changed. Those errors have different causes, although the practical remedy, checking, is the same.

How fluent text gets made without a fact check

A large language model works by predicting the next token, which is a word or a piece of a word, given everything that came before. It repeats that step until the reply is finished. There is more detail in how a model produces a sentence one token at a time.

During training, the model was rewarded for predicting real text well. That teaches a great deal about the world, because much real text is accurate. It also teaches the form of factual writing: biographies give birth years, research papers have authors and journals, product manuals list part numbers.

The form is far easier to learn than every individual fact. A model can know exactly what a plausible citation looks like while knowing nothing about whether a particular one exists. When you ask about a little-known person, it can write a convincing life story because it has absorbed thousands of life stories.

How a gap in knowledge becomes a confident claim
1 You ask A specific question about something rare 2 Weak signal Training held little or nothing solid on it 3 Pattern fills in The model picks words that fit the shape of an answer 4 Fluent reply Names and numbers read like established fact 5 No alarm Nothing in the text marks which parts are guesses You ask A specific question about something rare 1 Weak signal Training held little or nothing solid on it 2 Pattern fills in The model picks words that fit the shape of an answer 3 Fluent reply Names and numbers read like established fact 4 No alarm Nothing in the text marks which parts are guesses 5

Why guessing gets encouraged

Many tests used to compare models give credit for a correct answer and nothing for saying "I don't know". Under that scoring, a guess is always at least as good as an admission of ignorance, just as on a multiple-choice exam with no penalty for wrong answers. Some researchers argue that this has nudged systems toward guessing.

Later stages of training, in which people rate or compare replies, can add to the effect if raters favor answers that are complete and decisive. Developers also train models to decline or hedge when unsure, and many systems do this better than early ones did. The balance is awkward. A model that refuses too readily is useless, and one that never refuses will make things up.

Randomness plays a part as well. Many chat products deliberately vary word choice, so the same obscure question can bring back different dates on different tries. That variation is explained in why the same question can get different answers.

Conditions that raise the risk

You can often predict where invention is more likely before you read the reply.

Situation Why it is risky Safer move
Obscure people, places or works Little training material Search a catalog or official site
Exact figures, dates, quotations Many plausible options Find the original document
Events after the training cutoff No stored knowledge Use a search feature, then open sources
A question with a false premise The model may play along Ask whether the premise is true first
Requests for a fixed number of examples Pressure to fill every slot Ask for only those it can support
Very long documents Details get blurred or merged Ask for quoted passages and check them

The false premise deserves special care. Say you ask, "Why did the library in my town close in the spring?" when it never closed. A model may supply budget cuts and staffing problems. Asking "Did it close, and how would I confirm that?" gives it room to say it does not know.

What reduces hallucination and what does not

Developers use several methods, and each helps within limits.

  • Retrieval. The product fetches pages or document passages and asks the model to answer from them. This improves traceability, yet the model can still misread a passage or fill a hole from memory. See how retrieval works.
  • Tools. Calculators, databases and code execution replace guesses with computed results, provided the model asks the right question of the tool.
  • Further training. Models can be trained to admit uncertainty more often.
  • Extra checking. A second pass or a separate system compares claims with sources and flags mismatches.

What does not work reliably is simply telling the model "do not hallucinate" or "only say true things". An instruction cannot supply knowledge that is not there. It can make a reply more cautious, which has some value, but it is no guarantee.

As of the mid-2020s, hallucination is generally regarded as something that can be reduced and managed, not switched off.

Spotting the warning signs

No clue in the writing proves a claim is false, and clean prose proves nothing either. Still, a few patterns should slow you down:

  1. A very precise detail on a very minor topic.
  2. A quotation that says exactly what your argument needs.
  3. References you cannot find after a short, honest search.
  4. Answers that change when you ask again in a new chat.
  5. A quick reversal when you push back, without any new evidence.

The fourth sign is a useful cheap test. Matching answers do not show that something is true, because a model can repeat the same error consistently. Differing answers do show that at least some of them are wrong.

One invented detail rarely travels alone

Because each new word is chosen to fit what came before, an early mistake can shape everything after it. If a reply states that a little-known inventor was born in a particular town, later sentences may describe a childhood there, a school nearby and an influence from local industry. All of it hangs together, and all of it rests on one guess.

Internal consistency is therefore weak evidence. A made-up account can agree with itself perfectly. Follow-up questions often make things worse: ask for more about the childhood and you will probably get more, in the same assured voice. The system is continuing a story it has already committed to in the conversation.

When you find one false detail, treat its neighbors as suspect. Start a new chat if you want a second attempt, so that the earlier claim is no longer part of the input.

Working safely with a tool that can invent

Match your checking to what is at stake. A brainstormed list of party themes needs none. A dosage, a legal deadline or a figure in a report to your employer needs confirmation from an authoritative source, and often from a qualified professional.

A simple routine covers most cases. Mark the claims that would cause trouble if wrong. Find each one in a source that exists independently of the chatbot. Read enough of that source to see that it says what you think. The walk-through in fact-checking an AI answer in five minutes gives a timed version.

It also helps to give the model less room to invent. Paste in the document you care about, ask it to answer only from that text and tell it that "the document does not say" is an acceptable reply. For references, use a real catalog or database and treat any title from a chat as a lead to test, as described in how to spot a fabricated citation.

Common questions

Is the chatbot lying?

Lying usually means saying something you believe to be false in order to mislead. A hallucination does not need any such intention to occur. Separate research does study whether AI systems can behave deceptively, but ordinary invented facts are explained well enough by gap filling.

Do newer or paid models stop doing it?

Stronger models often make fewer errors on common questions. Results differ by task, and a harder question can still produce invention. Test the tool on questions you can already answer before you rely on it for ones you cannot.

Can hallucination ever be useful?

When you want fiction, names for an imaginary village or unusual combinations of ideas, free invention is the point. Trouble starts when invented material is mistaken for reporting, so label it clearly if you pass it on.

Written for 4ArtificialIntelligence with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 42 articles in What AI Can and Cannot Do →

Latest news on this topic