Understand
Attribution
Why did the system recommend this?
Shows the top factors behind the system’s assessment in plain language, and whether each one helped or hurt it.
Version 2.0 · Published · Updated
Serves EU AI Act: Article 13 · Article 86
In practice · Who is looking?
In practice
Without the pattern: “Application declined” and nothing else.
Credit application #4821 · Your decision
Application declined
Decided by a caseworker on 29 September: declined because employment records were not received by the deadline.
Why the system recommended a decline
← Toward decline · Toward approval →
- Debt compared to income Hurt
- Time in current job Hurt
- Payment history Helped3
Missing Employment records. Requested 22 September, not received. Not counted as a factor.
Data Provenance & LineageThese factors were most strongly associated with the system’s recommendation. They are not proven causes.
Some of these factors can change.
Credit application #4821 · Your decision
Application declined
We are unable to approve your application at this time.
Without the pattern: Case header, “System recommendation: Decline”, “Risk score 0.71”, Approve and Decline buttons, nothing else.
Case #4821 · Caseworker review
System recommendation: Decline
Generated 18 September · Risk score 0.71 · Decline threshold 0.65
Why the system recommends a decline
Average applicant scores 0.52. These factors move this case to 0.71.
← Toward decline · approval →
- Debt compared to income +0.14 · hurt 46% typical 31%
- Time in current job +0.09 · hurt 8 months typical 3.5 years
- Payment history −0.07 · helped 0 late in 24 months typical 13
- Recent credit checks +0.05 · hurt 3 in 30 days typical 1
3 credit checks between 9 and 14 September.
All three came from one mortgage search.
- Length of credit history −0.02 · helped 11 years typical 9 years
These factors were most strongly associated with the system’s recommendation. They are not proven causes. Effects are estimates.
Your decision
Reason (required)
Credit checks count one mortgage search three times. Requesting employment records before deciding.
Your reason is saved with the case.
Save and request recordsCase #4821 · Caseworker review
System recommendation: Decline
Risk score 0.71
What the applicant can’t tell
One line, no reasons.
- What counted against me?
- Did anything count for me?
- Is this the real reason?
- Can I do anything about it?
What the applicant can tell now
Enough to judge whether it was fair, and what to do next.
- “Debt compared to income”, not debt_to_income_ratio_12mo.
- Each factor says whether it hurt or helped.
- Payment history helped, so it’s shown too.
- Three factors first. All eight are one click away.
- “Associated with”, not “caused”.
- A next step, not a dead end.
What the caseworker can’t tell
A score and two buttons.
- What does 0.71 rest on?
- What should I check before I decide?
- How much can I trust this?
What the caseworker can check now
Enough to tell whether the recommendation holds up, and to overrule it on record.
- The same plain labels the applicant sees, starting from the average applicant.
- Direction and size for every factor, next to this case’s value and a typical approved one. Numbers here, not in the applicant’s view, where they invite gaming.
- Two factors helped. Both are shown.
- Five factors, because she’s checking, not just reading. One opens to the data behind it.
- The same caveat the applicant sees, plus a note that the effects are estimates.
- That’s the applicant’s step. Here, her recorded reason takes its place.
Mock data. Credit case #4821 also appears in other pattern examples.
Overview
Without reasons, decisions can look arbitrary.
After a declined application, a flagged post or a risk score, the first question is usually why. Without an answer, people can’t judge whether the reasoning was sound, whether their data was read correctly, or whether they could do anything about it.
Attribution is the foundational pattern. It doesn’t expose model internals. It answers a human question in human terms: these are the things that mattered most.
Use it when
- The system makes or supports a consequential decision about a person
- People need to judge whether the reasoning fits their situation
- Several factors contributed and their weight matters
Skip it when
- The model is too unstable to attribute reliably
- The factors include sensitive attributes or close proxies: review the model first instead of hiding the explanation
- The system is generative: use Retrieved Source Attribution or Grounding indicators instead
Design
How do I apply it?
Six rules for showing the factors behind a decision. The example above uses all of them.
-
Use plain language.
The model says debt_to_income_ratio_12mo. The interface says “Debt compared to income”.
-
Show direction, not just weight.
Did it help or hurt?
-
Show what helped, too.
After a bad outcome, people need the full picture.
-
Start with the top three to five.
Keep the full list one step away.
-
Never present it as cause.
“Associated with” is honest. “Caused” is not.
-
Pair it with a way forward.
Alone, it reads like a verdict. Link to Actionable Recourse or Counterfactual Explanation.
For your technical team
SHAP and LIME estimate how much each factor contributed to the model’s output. LIME is always an approximation; SHAP values can be computed exactly for tree models, and for linear models if features are assumed independent; for other models they are estimated. The values depend on the method and its settings, such as the reference data, and they are not causes in the world. Check that attributions stay stable across repeated runs and for similar inputs.
How can I show it?
-
Used above
Inline Signal / Microcopy
Caveat microcopy
A short note: associations, not proven causes.
A short, non-dismissive note explaining that factors shown are the most influential associations the model identified, not confirmed causes. Helps reduce misreading. Test whether people notice it.
-
Used above
Content Block / Summary
Top 3 summary
The three strongest factors, with “see all”.
A compact default state showing only the top 3 contributing factors with a “see all factors” expansion. Reduces cognitive load for users who need a quick read.
-
Content Block / List
Ranked factor list
An ordered list of factors in plain words.
A simpler alternative to a chart: a numbered or ordered list of factors with brief plain-language descriptions. Appropriate when the number of factors is small (3 to 5) and the audience needs speed over precision.
-
Used above
Content Block / Card
Factor cards
One card per factor, with direction and detail.
Individual cards per factor, each containing: a plain-language label, a short explanation of what it means, the direction of influence (helped / hurt), and an optional “learn more” expansion. Supports progressive disclosure.
-
Data Visualization / Highlight
Input highlight
Marks the fields in the person’s own data that mattered.
For interfaces where the original input is visible (a form, a document, an image), highlight or annotate the specific fields or regions that were most influential. Grounds the explanation in the user’s own data.
-
Content Block / Explanation Card
Contrastive explanation (“why not X?”)
Why this outcome instead of another one.
A variant of attribution that answers not “why did this happen?” but “why did this happen instead of a specific alternative?” For example: “Why did the system recommend a decline rather than further review?” Show only the factors that distinguish the actual outcome from the named alternative, not every factor that influenced it. Connect to Counterfactual Explanation for the inverse question: what would have changed the outcome.
-
Used above
Data Visualization / Chart
Contribution bar chart (diverging)
Bars to the left hurt, bars to the right helped.
A common format; readable when there are few bars with plain-language labels. Factors are shown as horizontal bars extending left (hurt the outcome) or right (helped). Bar length represents relative contribution. Labels use plain language, not feature variable names.
Caveat microcopy goes with any of the others.
What are the trade-offs?
-
Clarity vs. accuracy
A clean bar chart looks precise, but the values are estimates that depend on the method and its settings. The simpler the display, the more certain it looks.
So: pair every chart with the caveat, and drop numbers the model can’t back up.
-
Transparency vs. gaming
Once people see which factors count, some will optimize them without changing anything real, for example by paying down a card just before applying and running it up again after.
So: where gaming is a risk, show direction and plain-language factors, not exact weights.
-
Model vs. human reasoning
When a caseworker decides, the factors on screen explain the system’s recommendation, not the outcome. The applicant can see one reason and have been decided by another.
So: say whose reasoning is shown, and show the caseworker’s reason next to it.
Connections
Works with other patterns
-
Counterfactual Explanation
What would have changed the outcome?
Attribution answers “what mattered.” Counterfactuals answer “what would have changed it.” Together they answer two of the main questions.
-
Actionable Recourse
What can I do to change this outcome?
Attribution without recourse is a verdict. Recourse tells users what they can do about the factors that hurt them.
-
Example-Based Explanation
How did similar cases turn out?
Some users understand attribution better through comparison to similar cases than through abstract factor lists.
-
Role-Based Explanations
Does this explanation fit who I am and what I can do?
The appropriate depth and format of attribution varies by user role. A caseworker needs more detail than an applicant; an auditor needs version-specific details.
-
Confidence & Uncertainty
How certain is the system?
When the model is unsure, its attributions can be unreliable too. Show both.
Sources (4)
Sources (4)
-
Doshi-Velez & Kim (2017)
Towards a Rigorous Science of Interpretable Machine Learning
-
Lundberg & Lee (2017)
-
Ribeiro et al. (2016)
“Why Should I Trust You?”: Explaining the Predictions of Any Classifier
-
Haque et al. (2023)
People say your decisions feel arbitrary.
Or a regulator has asked what drove a specific outcome. That’s where this pattern starts. Let’s look at your interface together.
Work with me