XenonStack Glossary: AI, Data and Cloud Terms Explained

Explainable AI (XAI): Principles and Methods

Written by Dr. Jagreet Kaur | 17 Mar 2023

Explainable AI (XAI) is a set of processes and methods that lets people understand and trust the results a machine learning system produces. It answers the "black box" problem, where a model returns an output but gives little insight into how it reached it.

This page is for leaders and practitioners who need AI decisions they can justify to customers, auditors and colleagues. It covers what XAI is, the four principles published by NIST, common techniques, how it differs from black-box models, and where it matters for AI agents.

What is explainable AI?

IBM describes explainable AI as "a set of processes and methods that allows human users to comprehend and trust the results and output created by machine learning algorithms" (IBM explainable AI). The aim is to build models that people can inspect, without giving up the predictive performance that made the model useful in the first place.

IBM also separates two ideas. Interpretability is the degree to which an observer can understand the cause of a decision. Explainability goes further and looks at how the AI arrived at the result.

Why does explainable AI matter?

According to IBM, explainability helps developers check that a system is working as expected, may be needed to meet regulatory standards, and lets people affected by a decision challenge or change the outcome. It also helps teams catch risks such as bias and drift, because model performance can degrade when production data differs from training data. AI that is accountable and transparent is more likely to earn the confidence needed for wider adoption of machine learning and deep learning.

What are the four principles of explainable AI?

The US National Institute of Standards and Technology set out four principles in NISTIR 8312, Four Principles of Explainable Artificial Intelligence.

PrincipleWhat NIST says in short
ExplanationA system delivers or contains evidence or reasons for its outputs and processes
MeaningfulThe explanations are understandable to the intended consumer
Explanation accuracyThe explanation correctly reflects the reason for the output or the system's process
Knowledge limitsThe system operates only under conditions it was designed for, and when it reaches sufficient confidence in its output

Note that explanation accuracy is separate from output accuracy. An explanation can be clear and still be wrong about why the model decided what it did.

Which techniques make a model explainable?

IBM groups techniques into prediction accuracy, traceability and decision understanding. LIME (Local Interpretable Model-Agnostic Explanations) explains the predictions of a classifier. DeepLIFT compares the activation of each neuron with a reference neuron and shows traceable links between them. Traceability can also mean limiting how decisions are made and narrowing the scope of rules and features. Decision understanding is the human side: educating the teams who work with the system on how and why it decides.

How does explainable AI differ from black-box AI?

QuestionBlack-box modelExplainable approach
Can a reviewer see why an output was produced?Little or no insightEvidence or reasons accompany the output
Can an affected person challenge the result?Hard to do without reasonsReasons give them something to question
How are bias and drift found?Often after harm appearsMonitored through traceable behaviour
Who is the explanation for?Not definedThe intended consumer, per the Meaningful principle

How does explainable AI relate to AI agents?

An agent that acts on a decision, not just recommends it, raises the stakes for explanation. Reviewers need to see what an agent used, why it chose an action and when it should have stopped, which maps closely onto the NIST knowledge limits principle. Platforms such as ElixirClaw, XenonStack's AI agents computing platform, sit in this part of the stack.

What should you do first?

  1. List the decisions in your organisation that a customer, regulator or colleague may ask you to explain.
  2. Name the intended consumer of each explanation, as the Meaningful principle asks.
  3. Choose a technique, such as LIME, and test whether its explanations match how the model really behaves.
  4. Define the conditions and confidence level under which each model is allowed to act.
  5. Monitor for bias and drift, and review explanations when production data changes.

To map one decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.

Frequently asked questions

What is the difference between interpretability and explainability?

Interpretability is the degree to which an observer can understand the cause of a decision. Explainability goes further and looks at how the AI arrived at the result.

What are the four principles of explainable AI?

NIST names them as explanation, meaningful, explanation accuracy and knowledge limits.

What is LIME?

LIME stands for Local Interpretable Model-Agnostic Explanations. IBM describes it as a popular technique that explains the predictions of a classifier.

Why do regulators and customers care about explainability?

Explainability may be needed to meet regulatory standards, and it lets people affected by a decision challenge or change the outcome.

Does explainable AI mean a less accurate model?

Not by definition. The goal of explainable AI is to produce more explainable models while maintaining prediction performance, so the two should be tested together.