Library

Volume 1 · Security, Compliance & Responsible AI

Notebook
Sign in

Section 43

Explainable AI (XAI) & Auditable Decision-Making

226 words · about 1 min

43.1 Explainability Techniques

Technique How It Works Best For
SHAP Game-theoretic feature importance “Why was this flagged?”
LIME Local perturbation-based explanation Individual prediction explanation
Attention maps Visualize transformer attention Which input tokens mattered?
Chain-of-thought LLM shows reasoning steps Agent decision transparency
Counterfactuals “If X had been different, outcome changes” “What would have avoided this outcome?”
Feature importance Global model feature ranking Overall model understanding

43.2 Explainability by Stakeholder

Stakeholder What They Need Format
Front-line user Why this suggestion was made Highlighted text + reasoning
Analyst Why this case is high-risk Top 3 risk factors + scores
Manager Overall model performance Dashboard + metrics
Compliance officer Full audit trail Detailed log + decision chain
End customer/patient Why their case was processed this way Plain-language explanation
Regulator Model validation documentation Technical report

43.3 Q&A

Q: How do you build an auditable decision trail for an agentic AI system? Persist every step of the agent’s reasoning (tool calls, retrieved documents, intermediate conclusions, final decision) with a trace_id linking back to the OTel trace of the underlying infrastructure call. Store this as structured, immutable, append-only records (write-once storage) tied to the input, model version, and prompt version used. This lets you answer “why did the system do X” months later for both regulators and internal post-mortems, and lets you replay a decision against a newer model version to detect regression.