Methods, Tools and Accountability, from Credit Scores to Language Models
Every serious use of AI ends with a question the system cannot answer by itself: why? Why was this loan declined, why was this patient flagged, why did the language model say what it said, and can we trust the answer we are given?
Explainable AI in Practice is a complete textbook on explaining machine learning systems and on testing whether those explanations deserve to be believed. It follows one working method, the Explanation Loop (Ask, Scope, Choose, Test, Tell, Record), from credit scores to large language models, and judges every explanation by three criteria: is it faithful to the model, is it stable, and is it useful to the person who receives it.
What is inside
- Part I, Why Explain? : who asks for explanations, and what counts as one.
- Part II, The Machinery You Need: the machine learning, deep networks and transformers behind the methods.
- Part III, Explaining Any Model: glass-box models, global explanations, LIME and anchors, Shapley values and SHAP, counterfactuals and recourse, and explaining with examples and data.
- Part IV, Deep Networks, Images and Other Data: saliency and attribution, concepts inside networks, time series, graphs and agents.
- Part V, Inside Large Language Models: probing and the logit lens, circuits and causal interventions, sparse autoencoders, steering and monitoring, and explaining LLM applications.
- Part VI, Is the Explanation Any Good? : evaluating explanations, the hermeneutic circle, and explanations for people.
- Part VII, Explainability at Work: choosing and measuring tools with equal distance to all of them, law, standards and audits, explainability in production, a casebook across industries, and the explanation audit.
Built for teaching and for work
- 27 chapters in seven parts, 147 original figures, 43 tables and 705 references.
- Real stories and 25 case studies from finance, insurance, banking, healthcare, the public sector, logistics, retail and airlines.
- 289 quiz questions with answers, review and discussion questions, and an Explanation Dossier portfolio assignment in every chapter.
- The main narrative needs no programming; 91 labs and 59 notebooks live in a free companion repository.
- Suitable for fourth-year university courses and executive education. An Instructor's Companion and slide decks are available to adopting instructors.