Integrated gradients explains a prediction relative to a baseline
Attribution depends on the comparison you choose.

Trace a change in the input
Integrated gradients attributes a model’s output to input features by accumulating gradients along a path from a baseline input to the example being explained. The baseline is therefore part of the explanation. The result describes the model’s behavior under a specific calculation, not the full causal story of the real-world event or a direct account of human-like reasoning.
An image-inspection example
Imagine explaining why a classifier labels a photograph as damaged packaging. An attribution map may highlight a torn corner. That is useful, but the choice of baseline and representation affects the map. A black image, a blurred image and another reference can pose different comparisons. The team should not treat the most visually persuasive result as automatically the most meaningful one.
Attribution has limits
Features can interact, and local sensitivities may not capture every dependency relevant to a prediction. A model can also be confidently wrong while producing a plausible explanation. Evaluation should therefore include incorrect predictions and controlled changes to suspected features. The explanation is evidence about the model, not a substitute for testing whether the model is reliable.
Ask a specific inspection question
For packaging review, use attribution to investigate whether the classifier relies on damage or on a recurring warehouse background. Then test images that separate those cues. Document the baseline and method settings so that others can reproduce the analysis. Integrated gradients is most useful when it supports a concrete investigation, helping a team challenge assumptions instead of adding a colorful assurance layer to every prediction. If a different baseline produces a different story, report that sensitivity rather than selecting only the explanation that best matches the reviewer’s expectations.
Sources & further reading
keras.io — integrated gradients ↗
AI-assisted editorial explainer. Sources are provided for verification.
Continue reading
The quiet power of a straight line ↗
Probability is not a verdict ↗