A supervisory data request lands eighteen months after a policy application was declined, asking the insurer to explain why. The risk officer who opens it faces two separate tasks: locating the original decision record, and reconstructing what the model was working from for that applicant at that moment.
Finding the decision record is usually manageable. Application systems and CRM records keep the outcome, the date and the handler. Reconstructing the inputs is where institutions stall. The model may have been retrained twice in the interim. The feature values that drove the decision were never written down next to the output. SHAP values, if the team computed them at all, lived in monitoring dashboards aggregated across thousands of cases, not at the level of a single prediction.
Audit Logs and Explainability Records: Two Different Things
An audit log is a system-of-record entry. It captures what happened, when, which model version ran, what input arrived and what output left. A compliance-grade log holds enough to recreate the input state the model saw, even after the model itself has been replaced.
An explainability record answers a different question: why this output, in terms a human reviewer can follow. Usually that means feature attributions showing which variables moved the prediction most, or a counterfactual describing what would have had to differ for another answer to come out.
A complete audit capability needs both. The log covers what happened and which inputs were present; the explanation covers why the model landed where it did. Article 86 of the EU AI Act, GDPR Recital 71 and a growing stack of national supervisory guidance all point at the pair.
SHAP Values as Audit Records
SHAP, which stands for SHapley Additive exPlanations, is the default framework for attributing predictions in tabular models. For each prediction it assigns every input feature a value reflecting its contribution relative to the average output across the population. Positive values pushed the prediction up; negative values pulled it down.
For audit use, SHAP values have to be written at inference time, beside the inputs and the output. They cannot be rebuilt reliably afterwards once the model has been retrained, because the values depend on the weights of that particular version. An explanation generated today from a retrained model describes a different model from the one that made the original call.
This is where production systems commonly fall short. ML infrastructure is built to keep predictions and inputs for monitoring. Persisting SHAP vectors at inference adds latency and storage, so teams push it to a later sprint that never arrives. The cost surfaces when a supervisor asks about one decision from eighteen months ago.
Limitations of SHAP for Regulatory Communication
SHAP explains a decision well to an engineer. A risk officer taking the same explanation to a non-technical regulator or to the applicant has more work to do. "The debt-to-income ratio contributed -0.23 to the credit score" needs translating before anyone can act on it.
There is a structural limit too. SHAP values are additive contributions to the model output, not causal statements about the world. They describe how the model behaves, not why default happens. When two features are correlated, attribution can split between them in ways that hide which one is actually driving the prediction.
Counterfactual Explanations for Decision-Level Audit
A counterfactual answers the question a reviewer usually has: what is the smallest change to the input that would have produced a different outcome? For a declined credit application, it might say approval would have followed had the debt-to-income ratio been below 42% instead of 51%, with other factors held constant.
That form gets closer to what regulators mean by the basis of a decision. GDPR Recital 71 names the right to an explanation and the right to challenge the result. A counterfactual gives the person something usable: the conditions under which the answer would change.
The cost is computational. A good counterfactual has to sit close to the original input, remain plausible within the feature space and be actionable for the individual, which makes it an optimisation problem solved at inference. At insurance quote volumes that is often too expensive to run naively. Approximate methods and pre-computation can bring the cost down, but only with deliberate infrastructure work.
Storing Explanation Artifacts at Inference Time
The architecture choice with the largest effect on audit capability is whether explanations are computed and stored at inference or generated later on request. Post-hoc generation is simpler to operate and fails the moment the model has moved on. Inference-time storage adds latency and disk, and leaves a permanent record tied to the version that made the call.
Where Article 72 post-market monitoring or GDPR explanation rights apply, inference-time storage is effectively the requirement. The record has to reflect the model's reasoning at the moment of the decision, not a reconstruction built afterwards with a different version.
A tiered approach works in practice: full SHAP vectors for every decision in regulated product lines, with counterfactuals generated on request for cases flagged for review, complaint or supervision. Counterfactual compute stays bounded while the audit record holds where it matters most.
What Explainability Records Cannot Do
None of this makes an explainability record a substitute for process documentation or model governance. A SHAP vector stored against a decision shows the model behaved consistently with its weights on that input. It says nothing about whether the model was properly validated before release, whether the training data represented the population, or whether the version went through approval.
Those questions belong to a second track: validation reports, approval records and change logs that trace the model's lifecycle. The two tracks complement each other, and a regulated model needs both stored and retrievable. One without the other leaves a hole a supervisor will find.