Explainable AI (XAI)
Explainable AI (XAI) is a set of methods and techniques that enable humans to understand, question and predict the basis of a model's decisions. It sits between model capability and human trust, and is the precondition for turning AI from a "black-box tool" into an "accountable system" in high-risk scenarios.
Core principles
XAI generally follows two routes. Intrinsically interpretable models are transparent in structure, such as linear regression, generalized additive models, decision trees and rule lists; their decision paths can be read directly, at the cost of limited expressive power. Post-hoc explanation performs reverse attribution on a trained black-box model, with representative methods including SHAP (Shapley-value-based feature contribution allocation), LIME (local linear approximation around a sample), saliency maps and attention visualization.
Explanation granularity also has two levels: global explanation describes which features the model depends on overall and in which ranges it is sensitive; local explanation explains why a particular decision came out as it did. SHAP satisfies the axioms of local accuracy, missingness and consistency, decomposing a single prediction into the sum of feature contributions, and is therefore widely used on tabular data; but its computational cost rises exponentially with the number of features, so sampling approximations are common in practice.
Key points
The core tension is the trade-off between interpretability and accuracy: high-dimensional nonlinear models are usually more accurate but harder to explain. This is not absolute; in businesses with small samples and strong priors, additive models often perform on par with complex models.
Practice should focus on three things. First, an explanation must be faithful to the model, not a story humans like to hear; LIME's local approximation can distort when features are correlated, and attention weights need not equal true importance. Second, explanations must target the audience: show engineers a ranking of feature importance, show patients which indicators pushed up the risk, show regulators the decision boundary and the reason for rejection. Third, counterfactual explanations are often more practical than attribution, for example "if income rose 15% and the debt ratio fell to 30%, the application would be approved".
On the regulatory side, the automated decision provisions of the EU General Data Protection Regulation and the AI Act impose an obligation on high-risk systems to provide meaningful information, turning XAI from a research topic into a compliance requirement. But be clear: an explanation is not correctness; a clear explanation can also mask a wrong model.
For deployment, a two-layer design is recommended: the main business model pursues accuracy, while a structurally simple surrogate model is trained to explain the output, with regular checks that the two reach consistent conclusions; if the gap grows too large, the surrogate has become unfaithful and must be refitted rather than reused.
Common misconceptions
Common errors include: assuming a model with attention mechanisms is thereby explainable; treating feature importance as causal effect, misreading it as "raising income will cause approval"; using explanations to endorse a model, equating "can be explained" with "trustworthy". Greater vigilance is needed against explanations used for post-hoc rationalization, a form of explanatory whitewashing.
Application scenarios
Stating reasons for credit rejection, presenting the basis for diagnostic assistance, attributing industrial equipment failures, model tuning and data quality troubleshooting, regulatory reporting, and user appeals and dispute handling.