Accent colour
 
Shortcuts: press ?
 

Why Explainable AI Matters: Opening the Black Box for Business

Muhammad Tahir December 05, 2026

A loan denied, and no one can say why

A bakery owner in Ohio applies for a small business loan. Her shop has been open for six years, the books are clean, and she has never missed a payment on anything. The bank's system takes two days and says no. The letter she gets back mentions "insufficient credit history" and nothing else. She calls the bank, and the person on the phone is sympathetic and useless in equal measure: the decision came from the model, and the model does not give reasons.

She is left with a problem she cannot fix, because she cannot see it. Was it the two months in 2023 when her card payments dipped? Was it the address? Was it something in her application that the model read the wrong way? There is no way to know, and no way to argue. The refusal stands, and the reason stays locked inside a system nobody at the bank can open up and read.

This is the everyday shape of the problem explainable AI is trying to solve. Machine learning models now decide who gets a loan, whose CV reaches a human, which insurance claims get paid, and which patients get flagged for follow-up care. Those decisions carry real consequences, and they are made by systems that are very good at finding patterns and very bad at saying why they did what they did. A model can be right nine times out of ten and still be unusable in the tenth case if nobody can check its reasoning.

Explainable AI, usually shortened to XAI, is the collection of methods that try to close that gap. It is not one product or one technique. It is a set of tools for opening up a model's decisions far enough that a person can understand them, challenge them, and take responsibility for them. The goal is not to make every model simple. It is to make the important ones answerable.

What explainable AI actually is

At its simplest, an explanation is an answer to a question a person would naturally ask about a decision. Why was this application refused? What would have to change for the answer to be yes? Which piece of information mattered most? A good explanation speaks in the terms of the decision itself — income, payment history, the number of open accounts — not in the internal language of the model, like weights and gradients.

There are two broad kinds. A global explanation describes how a model behaves in general: which factors it leans on, and how much. A local explanation deals with a single decision: why this applicant, this claim, this patient, got this result. Most of the time, the local kind is the one people actually need. A bank customer does not want a lecture on how the lending model works in general. She wants to know what happened with her application.

Explanations also serve different people, and they need different things from them. The person affected by a decision needs a reason they can act on. The developer who built the model needs enough detail to find a bug or a biased training set. A regulator needs evidence that the system follows the law. A doctor using a diagnostic model needs to know whether to trust this particular recommendation for this particular patient. One explanation rarely satisfies all four, which is why explainability is a design problem, not just a technical one.

The other distinction that matters is between models that are transparent by design and models that get explained after the fact. A small decision tree or a simple scoring rule can be read directly: you can follow the branches and see exactly how the answer was reached. A deep neural network cannot. It has millions of parameters, and no human can trace a decision through them by hand. For those models, explanation means building a second tool that probes the model from the outside and reports back in human terms.

The main ways to explain a model

There is no single best method. Each one answers a slightly different question, and each one has a blind spot. In practice, teams that take this seriously use more than one, and they check the answers against each other.

Feature attribution: SHAP and LIME

The most common approach starts from a simple idea: for one decision, work out how much each input contributed to the result. If a loan was refused, was it mostly the short credit history, mostly the high number of recent applications, or a bit of both? Feature attribution methods produce exactly that breakdown, usually as a short list with numbers attached.

The best-known method is SHAP, short for Shapley Additive Explanations, introduced by Scott Lundberg and Su-In Lee in a 2017 paper. It borrows an idea from game theory: imagine each input feature is a player in a team, and the model's prediction is the prize. SHAP works out each player's fair share of the prize by trying every combination of players and measuring how the result changes. The result is a set of values that add up to the model's actual prediction, so the explanation is at least consistent with what the model did. (See the original paper, A Unified Approach to Interpreting Model Predictions.)

LIME, short for Local Interpretable Model-agnostic Explanations, takes a different route. It was introduced in 2016 by Marco Tulio Ribeiro, Sameer Singh and Carlos Guestrin. Instead of trying to explain the whole model, LIME builds a tiny, simple model that behaves like the big one in the neighbourhood of one particular decision, then reads the explanation off the simple model. It is faster and more flexible than SHAP, and it works on almost any model, but the explanation is only as good as the local approximation, and the approximation can be wrong. (See Why Should I Trust You?.)

Both methods have the same weakness, and it is worth stating plainly. They tell you which inputs moved the result, not whether the model is right. A model can lean heavily on a sensible-looking factor for a bad reason — a postcode that stands in for race, a job title that stands in for gender. Feature attribution will faithfully report that the postcode mattered. It will not tell you that it should not have.

Counterfactuals: what would have changed the answer

A counterfactual explanation answers a different question: what is the smallest change that would flip the decision? For the bakery owner, that might be "if your monthly card revenue had been $400 higher, the loan would have been approved." That is a far more useful answer than a list of feature weights, because it tells her what to do next.

Counterfactuals are also the kind of explanation regulators and lawyers tend to like, because they resemble how humans explain decisions to each other. When a person is refused something, the natural follow-up is "what would I have to do differently?" A counterfactual gives that answer in concrete terms, without revealing the model's internals or anyone else's data.

The catch is that there are usually many possible counterfactuals, and picking a sensible one takes judgement. A system that suggests changing your age or your home address is technically correct and practically useless. Good counterfactual tools only suggest changes a person can actually make, and they avoid recommending anything that would push someone towards gaming the system rather than improving their real situation.

Models that explain themselves

The third route is to skip the after-the-fact explanation entirely and use a model that is readable from the start. Decision trees, rule lists and simple scoring systems all belong here. A credit score built from five visible rules can be printed on a page and argued about in a meeting. Nobody needs a second tool to explain it.

The trade-off is accuracy, and it is smaller than most people assume. For many problems with structured data — tables of numbers and categories, which covers most lending, insurance and hiring decisions — a well-built simple model performs about as well as a complex one. The research community has been making this point for years, and it is one of the reasons regulators in finance and healthcare often prefer transparent models for high-stakes decisions. The complex model wins clearly on images, audio and free text. On a spreadsheet, it often wins by a margin too small to justify losing the ability to explain the result.

That is not an argument against deep learning. It is an argument for matching the tool to the stakes. When a decision changes someone's life, being able to read the reasoning matters more than squeezing out the last fraction of a percent of accuracy.

Where explanations are now a legal expectation

For a long time, explainability was a nice-to-have. That has changed, and the change came from law rather than from the technology. In Europe, the General Data Protection Regulation has since 2018 given people a right not to be subject to a purely automated decision with significant effects, and its Recital 71 says they should be able to obtain human intervention and an explanation of the decision. The wording is narrower than the headlines sometimes suggest, but the direction is clear: a fully automated refusal with no reason attached is on thin legal ice.

The EU AI Act, Regulation (EU) 2024/1689, which entered into force in August 2024, goes further. It sorts AI systems by risk and puts the heaviest duties on high-risk ones — credit scoring, recruitment, and certain uses in law enforcement and education among them. For those systems, providers must keep technical documentation, log what the system does, and make sure a human can oversee it properly. The obligations for high-risk systems phase in over the following years, but the message to anyone building one is already settled: if your system affects people's livelihoods, you will need to show your working.

The United States has taken a different path, with sector rules rather than one big law. The Equal Credit Opportunity Act has required lenders to give specific reasons for adverse credit decisions since the 1970s, long before machine learning existed. The Federal Reserve's SR 11-7 guidance from 2011 requires banks to validate their models and understand their limitations, which is hard to do with a model nobody can inspect. In 2019, a viral complaint about the Apple Card — a tech entrepreneur reported his wife receiving a far lower credit limit than he did — led to a two-year investigation by the New York Department of Financial Services. The investigation, which closed in March 2021, found no unlawful discrimination, but it showed how quickly an unexplained algorithmic decision can become a public and regulatory problem. Goldman Sachs, which issued the card, had to explain a model it had not built to be explained.

None of this means every model needs a full explanation. A recommendation engine suggesting a film does not carry the same burden as a model deciding a mortgage. The law, in practice, follows the stakes. But the trend points one way, and teams building high-stakes systems now treat explainability as part of compliance, not as a research luxury.

What explanations can and cannot do

The honest version of this story is that explanations are useful and limited at the same time, and the limits are easy to miss. An explanation can show that a model relied on a sensible factor. It cannot prove the model is fair. A hiring model might weigh "years of experience" heavily, which looks reasonable, while the experience measure itself carries a bias — for example, if it counts only continuous employment and penalises career breaks. The explanation will show the weight. It will not show the bias hiding inside the feature.

Explanations can also be plausible and wrong. Some methods produce neat, confident stories about why a model did something, even when the story does not match the model's real reasoning. Researchers call this the faithfulness problem: an explanation can look convincing while being a poor description of what actually happened inside the model. A team that treats a plausible explanation as proof has learned nothing; it has just bought itself a comforting story.

There is also a newer worry, sometimes called explanation washing. A company under pressure can publish impressive-looking explanation dashboards while changing nothing about how decisions are made. The explanations become a shield: the system looks transparent, and the underlying model keeps making the same decisions for the same unexplained reasons. An explanation is only worth something if it can change the decision, or at least trigger a review that can. If the person reading it has no power to act, it is decoration.

None of this makes explainability pointless. It makes it a tool with a job to do, and the job is narrower than the marketing suggests. Explanations help developers catch bugs and biases they would otherwise miss. They help the people affected by decisions understand what happened and what to do next. They help organisations show a regulator that they are in control of their systems. What they do not do, on their own, is make a system fair, safe, or trustworthy. Those qualities come from the data, the design, and the decisions around the model — the explanation just makes them visible.

Putting explanations to work in a real team

The teams that do this well treat explainability as part of building the system, not as a report written at the end. A few habits show up again and again.

  • Start with the decision, not the method. Write down who is affected, what they need to know, and what they can do with the answer. A loan applicant needs a counterfactual. A developer debugging a model needs feature attribution. A regulator needs documentation. Pick the method that fits the audience.
  • Prefer a transparent model where the stakes are high and the data is tabular. If a simple model performs nearly as well, take the simple one. You lose a little accuracy and gain the ability to read every decision.
  • Check explanations against reality. Take a sample of decisions, generate explanations, and ask a person who knows the domain whether the reasons make sense. If the explanation says a loan was refused because of a factor that should not matter, you have found a problem in the model, not a success in explaining it.
  • Log explanations alongside decisions. When a complaint arrives six months later, the team should be able to pull up the decision, the inputs, and the explanation that was generated at the time. Memory fades; logs do not.
  • Give the explanation to someone who can act on it. A front-line worker who can override a decision with a documented reason is worth more than a dashboard nobody opens. Build the override into the workflow, and track how often it is used.
  • Test for bias directly. Explanations alone will not catch discrimination, so run the model on test cases that differ only in a protected characteristic and see whether the outcomes change. AI ethics is a separate discipline from explainability, and it needs its own checks.

There is one more habit that matters, and it is the least technical. When a model makes a mistake, say so in plain language. "The system gave this application the wrong score because it had never seen a seasonal business like yours" is a better answer than a page of feature weights. People accept that systems make mistakes. What they do not accept is being told a mistake is impossible because a machine made it.

Questions people ask about explainable AI

Is explainable AI the same thing as AI ethics?

No, though they overlap. Explainability is about understanding a model's decisions. Ethics is about whether those decisions are right — fair, lawful, and aligned with the values of the people affected. An explanation can reveal an unfair decision, but it cannot fix it. A model can be fully explainable and still discriminate, if the rules it follows are themselves unfair. The two fields need each other: ethics sets the standard, and explainability provides the evidence.

Does making a model explainable make it less accurate?

Sometimes, slightly. A simple, readable model can lose a little accuracy compared with a large neural network on the same data. On structured, tabular data — the kind behind most lending, insurance and hiring decisions — the gap is often small, and many teams decide the trade is worth it. On images, speech and free text, the gap is usually large, which is why those systems rely on after-the-fact explanation tools like SHAP rather than on simple models.

Can an explanation tell me if a model is biased?

It can point you in the right direction, but it is not a bias test. An explanation might show that a model leans on a postcode or a school name, which is a hint worth following. But bias can hide inside a feature that looks innocent, and it can also hide in the data the model was trained on, which no explanation of a single decision will reveal. Proper bias testing means running controlled comparisons across groups, not just reading explanations.

What is the difference between SHAP and LIME?

Both explain individual decisions by showing which inputs mattered most. SHAP is grounded in game theory and gives results that add up exactly to the model's prediction, which makes it consistent but slower. LIME builds a small, simple model around one decision and reads the explanation off that, which makes it fast and flexible but approximate. Many teams use SHAP when they need a defensible explanation for a regulator, and LIME when they are debugging during development.

Do small companies need to worry about this?

Only where the stakes justify it. If your model recommends products or ranks search results, a basic level of transparency is enough. If it decides who gets hired, who gets credit, or who gets a medical referral, you need explanations whether you are a startup or a bank. The law increasingly agrees, and so do customers: people who are refused something by a machine they cannot question are far more likely to complain, appeal, or leave. The same hallucination problem that affects language models applies here too — a system that cannot show its reasoning cannot be checked, and a system that cannot be checked should not be trusted with important decisions.

What to do next

If your organisation uses models that affect people, start small and start with the decisions that matter most. Pick one high-stakes model and write down, in one page, who is affected by its decisions and what each of them needs to know. Then check whether your current system can produce that information. If it cannot, that gap is your first project.

  • Audit the model's most consequential decisions, not just its average accuracy.
  • Add explanations for the top five reasons a decision goes against someone, and test them with real users.
  • Put a human review step on the decisions with the highest stakes, and give the reviewer the power to override.
  • Keep a log of every explanation you generate, so a complaint six months later can be answered from evidence, not memory.
  • Revisit the explanations every time the model is retrained, because a new model can change its reasons without changing its accuracy.

The models are not going away, and neither is the expectation that they answer for themselves. The teams that will be comfortable in that world are the ones that can alre

Was this article helpful?

Muhammad Tahir

Author

 

Get new articles by email

 

Comments