Topic 3 of 4 · 4 min read
Explaining why the AI gave this answer
Goal: Rewrite an explanation panel so it states the inputs and sources the system really used instead of a generated justification.
A useful explanation tells the user which inputs, data and rules the system actually used; a justification the model writes after the fact can sound right and still be false.
Check yourself · 1 of 3
Which statement can a product honestly show as the reason for a recommendation?
Why it matters
Users want to know why before they act on an answer. The easy way to give one is to ask the model "explain your answer" and show the result. That text is generated like any other text. It is a plausible story, not a log of what happened inside the model. Studies of step-by-step reasoning have found cases where the written reasoning left out the real cause of the answer, for example a hint in the prompt that changed the result.
How to do it
- Separate facts about the system from generated prose. Facts are things the product knows: which documents were retrieved, which fields were read, which rule fired, which model version answered. Prose is what the model says about itself.
- List the real inputs. "Based on: your last 12 invoices, your 2025 contract, the shipping rules page (updated 3 March)." The product can state this because it did the retrieval.
- Name the rules and limits. If a threshold or policy decided the outcome, say so: "Flagged because the amount is over your approval limit of 5,000."
- Say what was not used. "We did not see your phone calls" prevents wrong assumptions.
- Label generated rationale. If you show the model's reasoning, call it the model's reasoning summary and do not present it as proof. Let the user open the underlying source.
- Let the user act on it. An explanation is better when the user can change an input, correct a wrong document or turn a source off.
Before and after
Before: "I recommended this plan because it best fits your needs and offers great value." The panel is the model's own sentence and names nothing.
After: "Recommended because you entered 3 users and a 50 GB storage need, and this is the cheapest plan that covers both. We did not consider annual discounts. Change your answers to see other plans."
What goes wrong
- Persuasion in place of explanation. The panel argues for the answer instead of showing what was used.
- Unfaithful reasoning. The shown reasoning is neat, but the model actually followed something else.
- Too much detail. A wall of logs hides the two facts that matter. Lead with the main inputs, with the rest one click away.
- Claiming a cause the system cannot know. "Because you seemed tired" is a guess dressed up as a fact.
Examples
From justification to inputs
Weak panel: "This loan was flagged because your profile suggests elevated risk."
Better panel: "Flagged by rule 7: monthly repayments would exceed 40 percent of the income on your application (2,400 of 5,500). Not used: your savings account, which was not linked. You can link it or correct your income to re-run the check."
The second panel names the rule, the numbers, a gap and an action.
Hint that never shows
In published tests, researchers added a hint to a question, such as a note saying a certain answer was right. The model often changed its answer to follow the hint, yet its written reasoning gave other reasons and never mentioned it.
A reasoning trace is therefore not evidence of the real cause. For decisions that matter, show the inputs the system controlled, and keep generated reasoning as a labelled extra.
Key points
- An explanation the model writes about its own answer is generated text, not a record of what happened inside it.
- State what the product knows for certain: documents retrieved, fields read, rules that fired and the model version.
- Say what was not used, so users do not assume the system saw more than it did.
- Label a model's own reasoning as the model's account, and give a way to open the underlying source.
- A good explanation lets the user change an input or correct a source.
Common mistakes
- Asking the model to explain itself and showing the result as the reason.
- Writing an explanation that argues for the answer instead of listing inputs.
- Overloading the panel with logs so the key factors are buried.
- Claiming causes the system cannot know, such as the user's mood.
Check yourself · 2 of 3
A model's step-by-step reasoning is shown beside its answer. What should users be told about it?
Check yourself · 3 of 3
An explanation panel says: "Denied because your application looks risky." Which rewrite is best?
Practice items, not counted towards your mastery.
Start here
- People + AI Guidebook: Explainability and trust (opens in a new tab)DocsFree
Google's design guidance on explaining AI output and on setting trust at the right level, with examples.
- Explainable AI in Chat Interfaces (NN/g) (opens in a new tab)ArticleFree
Usability research on how chat users read explanations and sources, with concrete design advice.
- Just Ask for Calibration: Eliciting Calibrated Confidence Scores from Language Models (opens in a new tab)PaperFree
Compares ways of getting confidence out of chat models and shows which are better calibrated.
More for this topic
- Language Models Don't Always Say What They Think (opens in a new tab)PaperFree
Shows written step-by-step reasoning can leave out the real cause of an answer.