Explainability and Post-hoc Attribution
Explainability refers to the property that humans can understand and trace why an artificial intelligence system made a particular decision; post-hoc attribution is the use of analytical methods, after a model output has already occurred, to infer which input features and which intermediate computations played a role in the result. Together they form the basis for humans and machines to be able to explain things clearly, and are preconditions for whether a model in high-risk scenarios can be trusted, held accountable and corrected.
Core principles
Explainability falls broadly into two categories. One is intrinsic explainability, where the model structure itself is simple and transparent, such as linear regression, decision trees and generalized additive models, whose weights and split paths map directly to real-world variables and can be read by humans. The other is post-hoc explanation, where the model itself is a black box and explanations are produced by external tools. Common post-hoc attribution methods include: gradient-based saliency methods, computing the partial derivative of the output with respect to each input dimension to obtain a heat map; perturbation-based methods such as occlusion, deletion and permutation importance, observing how much the output changes when a feature is removed; Shapley values based on game theory, fairly allocating the prediction contribution across features; surrogate model methods that locally fit a simple model to black-box behavior, the line of thinking behind LIME; and attention weight visualization and counterfactual explanations.
It should be emphasized that these methods answer what the model looked at, not why the world is the way it is. Attribution results are evidence about the model's internal behavior, not causal conclusions. A feature being highlighted only shows the model relies on it, not that it truly causes the result. Getting closer to causality requires intervention experiments, domain knowledge and causal graph methods. Moreover, attribution results are quite sensitive to hyperparameters, baseline choices and random seeds, and the same model may produce contradictory maps under a different explanation method, which is the current technical boundary.
Key points
Technical level: local explanation is not the same as global explanation, and the attribution of a single sample cannot be generalized into a model rule; explanation methods need robustness checks, such as observing whether the explanation stays stable after randomly perturbing the input; for high-dimensional sparse inputs (text, images) a baseline consistent with the data manifold should be used, avoiding a baseline that itself falls outside the distribution and therefore misleads.
Regulatory level: the automated decision-making provisions in the EU General Data Protection Regulation grant data subjects the right to meaningful information, commonly interpreted as requiring an explanation of the decision logic; the Artificial Intelligence Act imposes transparency, human oversight and record-keeping requirements on high-risk systems, but does not mandate precise item-by-item attribution, and in practice this is mostly implemented through model cards, technical documentation and impact assessments. China's Provisions on the Administration of Algorithmic Recommendations for Internet Information Services require algorithmic recommendation service providers to inform users about the recommendation situation and offer an opt-out; the Interim Measures for the Administration of Generative Artificial Intelligence Services require labeling of generated content. The landing point of these obligations is being understandable and appealable, not disclosing model weights.
Practical level: embed explanations in the business process rather than adding a report afterward. In scenarios such as credit denial, insurance underwriting, medical assisted diagnosis and recruitment screening, the contribution of key features should be translated into language people can understand, and a log trail for review should be retained, forming a loop of decision, explanation, appeal and review.
Common misconceptions
First, treating heat maps as truth. Saliency maps are often noisy and unstable, and pixel-level highlighting cannot be equated with a doctor's diagnostic basis. Second, treating explainability as a substitute for accuracy. Explainable models are not necessarily fairer, and simple models can equally learn bias. Third, believing that more detailed explanations are always better. Different audiences need explanations at different granularity; piling up feature weights for ordinary users only increases confusion and may even be used to evade scrutiny.
Application scenarios
Explaining credit approval denials, review of medical assisted diagnosis, appeals against recruitment resume screening, handling insurance underwriting disputes, locating anomalies in industrial quality inspection, compliance audits before model launch, regulatory sandbox testing, and tuning internal risk control models.