Use counterfactual explanations when the business need is recourse, appeal handling, or showing what would need to change for a different outcome. Use attribution when the need is model inspection, case review, or understanding which inputs most influenced the current prediction. Most programmes need both, because they answer different governance questions and support different review workflows.
Why This Matters for Security Teams
Choosing between counterfactual and attribution explanations is not a cosmetic UX decision. It changes how people contest outcomes, how reviewers assess model behaviour, and how an organisation demonstrates that decisions are explainable enough for governance. Counterfactuals support recourse by showing what would need to change for a different result. Attribution supports inspection by highlighting which inputs drove the current prediction. The distinction matters most when automated decisions affect access, fraud review, case prioritisation, or safety workflows.
Security and risk teams often misapply one explanation type as a substitute for the other. A counterfactual can be actionable without being diagnostically useful, while an attribution view can be informative without telling the subject what to do next. Current guidance suggests that explainability should be matched to the decision purpose, not treated as a single enterprise standard. For adversarially exposed systems, this also matters because explanations can be manipulated, over-relied on, or used to probe model behaviour, which is why defensive review should consider threat intelligence such as MITRE ATLAS adversarial AI threat matrix alongside internal governance.
In practice, many security teams encounter explanation failures only after an appeal, a fraud dispute, or a model incident has already exposed the gap between what the system did and what reviewers needed to know.
How It Works in Practice
Attribution answers “why did the model do this?” by assigning relative influence to features, inputs, or evidence sources. Common forms include feature importance, SHAP-style local contributions, attention summaries, and rule-based traces. Counterfactuals answer “what would need to be different for a different outcome?” by generating a plausible alternative input set that crosses the decision boundary. That makes counterfactuals especially useful for appeal handling, adverse action notices, and coaching users toward a different future outcome.
Implementation should start with the use case. If the audience is an analyst or model reviewer, attribution usually carries more diagnostic value. If the audience is a customer, employee, or case subject, counterfactuals are often more operationally useful because they express a path to recourse. Good programmes also validate that explanations are faithful to the model, not just persuasive to humans. For AI systems with security implications, teams should test for prompt injection, model manipulation, and explanation leakage using approaches aligned to Anthropic’s first AI-orchestrated cyber espionage campaign report and operational advisories from CISA cyber threat advisories.
- Use attribution for investigation, model debugging, and quality assurance.
- Use counterfactuals for recourse, disputes, and user-facing outcome explanations.
- Check whether explanations are stable across similar inputs and model versions.
- Restrict explanation detail when it could reveal sensitive thresholds or enable gaming.
- Log explanation requests, outputs, and reviewer actions for auditability.
NIST control mapping is useful here because explanations are part of a broader governance and monitoring stack, not a standalone feature; the relevant security and privacy expectations are covered in NIST SP 800-53 Rev 5 Security and Privacy Controls. These controls tend to break down when explanation generation is bolted onto a production model without versioned validation, because reviewers then trust outputs that no longer match the deployed behaviour.
Common Variations and Edge Cases
Tighter explanation controls often increase review overhead, requiring organisations to balance user transparency against model security and operational cost. That tradeoff is especially sharp when the same explanation must serve legal, technical, and customer-service audiences. Best practice is evolving, and there is no universal standard for how much detail a counterfactual should reveal before it becomes easy to game or too specific to the individual case.
Edge cases appear when a model is non-deterministic, heavily contextual, or driven by hidden features that cannot be exposed safely. In those environments, attribution may be approximate rather than definitive, and counterfactuals may be synthetically plausible but not truly attainable. That is common in LLM and agentic workflows, where the explanation can reflect a pathway through the system rather than a single model decision. Teams should treat those outputs as governance artefacts, not ground truth, and test them against adversarial techniques described in MITRE ATLAS adversarial AI threat matrix.
For high-impact or regulated decisions, the better pattern is usually layered explanation: attribution for internal review, counterfactual for external recourse, and a policy check to ensure both are consistent with the decision record. Where the explanation could surface sensitive information, teams may need to redact feature names, bucket values, or thresholds. The right answer is therefore not simply choosing one method, but aligning explanation depth to the risk, audience, and the model’s exposure to manipulation.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATLAS and OWASP Agentic AI Top 10 address the attack surface, NIST AI RMF and NIST AI 600-1 set the technical controls, and EU AI Act define the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | AI RMF governs trustworthy, accountable explanation practices for model decisions. | |
| MITRE ATLAS | T1587.001 | Attackers can probe explanation outputs to learn model behaviour and thresholds. |
| NIST AI 600-1 | GenAI guidance is relevant where explanations are generated by LLM or agentic systems. | |
| OWASP Agentic AI Top 10 | Agentic systems can misstate reasoning or expose unsafe tool-use paths. | |
| EU AI Act | High-risk AI obligations often require meaningful transparency and user recourse. |
Treat explanation content as a security surface and test for leakage and manipulation.
Related resources from NHI Mgmt Group
- How should regulated teams decide between shared SaaS and tenant-owned identity platforms?
- How should security teams decide between native ERP controls and a separate governance platform?
- How should security teams decide between a PIN and a password for authentication?
- How should security teams decide between dynamic secrets and rotation?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org