Saliency Map
A saliency map is a visual tool that highlights which parts of an input—such as the pixels in an image—most influenced a machine learning model's output. It is commonly used to help people understand why a model, such as an image classifier, produced a particular result. The term also appears in the study of human visual attention, where it describes where a person's eyes tend to focus first, so its meaning depends on context.
In machine learning, a saliency map is an input-attribution technique that assigns a relevance or contribution value to each element of an input (for example, pixels in an image or tokens in text) with respect to a model's prediction, often rendered as a heatmap overlaid on the input. As commonly defined in computer vision, it measures the spatial support for a particular predicted class, coloring or weighting pixels by the estimated effect that changing them would have on the classification. Saliency maps are typically categorized as a post-hoc explainability method for individual predictions; note that the same term is separately used in vision science to denote maps of human visual attention, and the two usages should not be conflated. As with attribution methods generally, a saliency map indicates apparent input influence rather than a guaranteed causal account of model reasoning, and specific construction methods and their reliability vary.
Why it matters
Saliency maps are among the most widely used tools for making individual predictions from image and text models more understandable to humans. In domains where a model's output feeds into consequential decisions, being able to point to which parts of an input most influenced a result supports review, challenge, and documentation of model behavior. This connects to broader explainability expectations found in many AI governance and model risk management contexts, where organizations seek to demonstrate that they can examine and account for how a model arrives at particular outputs.
Who it's relevant to
Inside Saliency Map
Common questions
Answers to the questions practitioners most commonly ask about Saliency Map.