Explainable AI (XAI)
Explainable AI is the field of methods and tools that make the outputs of AI models understandable to people, typically by showing which inputs or features drove a particular result.
Explainable AI, often shortened to XAI, is the research field and toolkit that tries to answer the question a black-box model cannot: why did it give that answer? Where explainability is the property, XAI is the set of techniques for producing it. Most methods work after the fact on a model that already exists, probing it to estimate which parts of the input mattered.
An influential early effort was a US defence research programme. DARPA's Explainable Artificial Intelligence programme set out to create machine learning techniques that produce more explainable models while keeping prediction accuracy high, so that users could understand, appropriately trust and manage AI systems. Its teams presented early Phase 1 results in May 2018, and the programme has since concluded, leaving a software toolkit for building explainable systems behind.
Two methods are especially widely used. LIME, introduced in 2016 by Marco Tulio Ribeiro, Sameer Singh and Carlos Guestrin, explains a single prediction by fitting a simple, readable model to the complex model's behaviour in the neighbourhood of that one input. SHAP, introduced in 2017 by Scott Lundberg and Su-In Lee, assigns each input feature an importance value for a particular prediction, drawing on Shapley values from game theory. For a credit model, either method might report that a low income and a short credit history pushed this applicant's score down, while their savings pushed it up. For image models, saliency maps highlight the pixels that most influenced a classification.
These tools have limits that matter in practice. They approximate the model rather than read it directly, so two methods can give different explanations for the same prediction, and a convincing chart can still misrepresent what the model did. Cynthia Rudin's widely cited 2019 paper argued that for high-stakes decisions it is better to use models that are interpretable by design than to explain black boxes after the fact.
Large language models have pushed the field in a new direction. Feature attribution says little about a model with billions of parameters writing a paragraph, so research has moved towards mechanistic interpretability, which tries to identify the internal circuits and features a model uses. A chatbot's own account of its reasoning is not reliable XAI either, since the model can produce a fluent explanation that does not reflect how the answer was actually generated.
Explainable AI is the set of methods that help people understand why an AI model produced a particular output. Common techniques estimate how much each input feature contributed to a prediction, highlight the parts of an image that mattered, or replace an opaque model with one that is readable by design. They are two of the most widely used explanation methods. LIME, from 2016, explains one prediction by fitting a simple model around that input. SHAP, from 2017, gives each feature an importance score for a prediction based on Shapley values from game theory. Only partly. Feature attribution methods built for smaller models say little about how a large language model produces text, so researchers use mechanistic interpretability to study internal features and circuits. A model's own written explanation of its answer should not be taken as an accurate account of its internal process. No. Most methods approximate the model's behaviour, so different methods can disagree and an explanation can look convincing while misrepresenting what the model relied on. That is why some researchers recommend inherently interpretable models for high-stakes decisions.Common questions
What is explainable AI (XAI)?
What are LIME and SHAP?
Can explainable AI explain large language models?
Are XAI explanations always accurate?
Search for "explainable AI LIME SHAP", "post hoc explanation" or "DARPA XAI" to find the core methods and their history. The original papers on arXiv and documentation for open-source libraries such as SHAP are the most reliable starting points, along with survey papers that compare methods. Be sceptical of products marketed as explainable without saying which method they use or how its explanations were validated.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.