AI Glossary / AI foundations / Intermediate
Saliency map
Definition
A saliency map is a visual or numeric overlay that shows which parts of an input, such as pixels in an image or words in a text, most influenced a model's output. It is a technique for explaining a model's behavior, not a proof of how the model reasons. Methods differ in how they compute importance, so two saliency maps for the same prediction can disagree.
What it means
When a model gives an answer, a saliency map answers a narrow question: if this part of the input changed a little, how much would the answer change? Parts that would shift the answer a lot are shown as important, usually as a heat-map laid over the original image or as shaded words in a sentence.
For a business reader, it is a debugging and review tool. It can reveal that a model is looking at something sensible, or that it has latched onto something irrelevant, such as a watermark, a background pattern or a form field that happens to correlate with the label. It does not tell you whether the model is right, and it does not give a full explanation of the decision.
How it works
The simplest approach is gradient-based. The model's output score is treated as a function of the input. Using the same calculus that trains the model, the method measures how sensitive that score is to each input value, for example each pixel. Large sensitivity means high saliency. The sensitivities are scaled to a common range and drawn as colors.
Other methods avoid gradients. Occlusion methods hide or blur one region at a time and record how much the output score drops. Perturbation and attribution methods change many parts at once and estimate each part's share of the effect. Text versions do the same with words or tokens. Each method makes different assumptions, so results vary in sharpness and reliability.
The raw result is a grid of importance values the same shape as the input. It is then smoothed, normalized and overlaid for human review. Because the map describes one prediction on one input, it explains a single case. To learn about the model overall, a team has to review many maps and look for patterns.
Three practical examples
- Retail returns: A retailer uses an image model to flag damaged items in returned-goods photos. A reviewer opens saliency maps for a sample of flags and sees that the model often highlights the shipping label rather than the item. That points to a data problem to fix before trusting the flags.
- Finance team: An analyst uses a text classifier that tags invoice emails as urgent. Word-level saliency shading shows the model reacts mostly to the phrase 'final notice' and ignores amounts and due dates. The team adds examples where that phrase appears in routine messages.
- Support desk: A support team uses a model that routes tickets by topic. Saliency on a misrouted ticket shows the model keyed on the customer's product name instead of the described problem. Support leads use the finding to rebalance the training examples.
Think of it this way
Think of a teacher marking up a student's essay with a highlighter to show which sentences most shaped the grade. The highlighting shows where the grader's attention went. The analogy stops working because a saliency map is computed by a formula, not reported by the model, and it can highlight regions that look convincing without reflecting the real cause of the answer.
Worked example
A model scores a product photo for 'cracked screen' at 0.90 out of 1. A reviewer uses an occlusion method on a photo divided into 4 regions. Each region is blurred in turn and the score is recorded again.
Top-left blurred: score 0.88, drop of 0.90 - 0.88 = 0.02. Top-right blurred: score 0.45, drop of 0.90 - 0.45 = 0.45. Bottom-left blurred: score 0.87, drop of 0.03. Bottom-right blurred: score 0.86, drop of 0.04.
The drops add up to 0.02 + 0.45 + 0.03 + 0.04 = 0.54. Each region's share of the total is its drop divided by 0.54. For top-right that is 0.45 / 0.54 = 0.83, or 83 percent. The saliency map shades top-right strongly, so the reviewer opens the photo and checks that region. If the crack is there, the model is looking in the right place. If top-right only shows a sticker, the model is relying on the wrong cue.
Illustrative case study
Fictional case: Harbor Lane Insurance, a made-up regional insurer, trained an image model to sort vehicle damage photos into minor and major claims. Accuracy in testing was high, and the team planned to use it for first-pass triage.
Before launch, an analyst generated saliency maps for 60 correct predictions. In 21 of them the strongest highlight sat on the repair shop's logo stamped in the corner of the photo, not on the damage. Photos from one shop that handled mostly major repairs had taught the model a shortcut.
The team removed the logo areas from training images, added minor-damage photos from that shop, and retrained. They reviewed another 60 maps and found the logo highlight in only 2. They also set a rule that every new model version gets a saliency review on a fixed sample before release, alongside the accuracy report.
Common misconceptions and mistakes
A saliency map shows why the model made its decision. It shows which inputs the model's output is sensitive to, which is related to the reason but not the same thing, and it can look plausible while missing the real driver.
If the highlighted area looks sensible, the model is correct. Highlights can land on the right region for a wrong answer, so accuracy still has to be measured separately.
Different saliency methods give the same picture. They often disagree, and some maps change very little when the model itself is scrambled, so teams should compare methods and sanity-check them.
Saliency maps only work for images. The same idea applies to text, tables and audio, where importance is assigned to words, columns or time segments.
Business use
To start, pick one model whose errors matter, such as a document classifier or an image check. Generate saliency maps for a fixed sample of correct and incorrect predictions, and have a domain expert review them against a short checklist: does the highlight fall on the relevant content, or on logos, borders, templates or other shortcuts. Record findings and feed them back into data cleaning and retraining.
Useful measures include the share of reviewed cases where the highlight sits on the relevant region, how that share changes between model versions, and how often two methods agree. Costs are mostly reviewer time and some engineering effort. The main risk is false comfort: a clean-looking map can be mistaken for validation. Treat it as one piece of evidence next to testing, monitoring and human oversight, especially where decisions affect customers.
People also ask
Is a saliency map the same as explainable AI?
No. It is one technique within explainable AI. Explainability also includes feature importance tables, example-based explanations and plain-language documentation of how a model was built and tested.
Can a saliency map prove a model is not biased?
No. It can show that a model leans on an irrelevant or sensitive cue in specific cases, which is useful evidence. Absence of such a cue in a sample does not prove fairness, so separate bias testing is still needed.
Do I need a data scientist to use saliency maps?
Generating them usually needs technical help, since tools differ by model type. Reviewing them does not. Domain experts such as claims adjusters or analysts are often best placed to say whether a highlight makes sense.
Check your understanding
What question does a saliency map answer?
Answer: Which parts of an input most influenced the model's output for that one prediction.
In the worked example, why was the top-right region shaded most strongly?
Answer: Blurring it dropped the score by 0.45, the largest drop, which is 0.45 / 0.54 or about 83 percent of the total change.
What did Harbor Lane's saliency review reveal?
Answer: The model was highlighting repair-shop logos instead of vehicle damage, a shortcut learned from unbalanced training photos.
Why should a saliency map not be treated as proof the model is correct?
Answer: It shows sensitivity, not correctness or true reasoning, and it can look sensible for a wrong answer, so accuracy must be tested separately.
Related terms
- Explainable AI
- Interpretability
- Attention
- Overfitting
- Model evaluation
- Human oversight
- Feature importance
- Model bias
Learn next
Try this on a small scale: pick one model you use, pull 20 predictions, and ask a subject expert to mark whether the highlighted evidence is relevant. Then read about explainable AI and interpretability for the wider set of methods, and model evaluation for how to pair explanations with measured accuracy.
More in AI foundations
- Prediction - A prediction is a model's answer for a case it was not told the answer to: the estimated price of a house, the class of an email, the demand for next month...
- Proprietary model - A proprietary model is an AI model owned and controlled by a company, which sells or licenses access to it without publishing the model's weights, the...
- Reinforcement learning from AI feedback (RLAIF) - Reinforcement learning from AI feedback (RLAIF) is a training method in which one AI model judges or ranks the outputs of another, and those judgments are...
- Self-supervised learning - Self-supervised learning is training where the data itself provides the labels: the model is asked to predict a hidden or rearranged part of the input, so...
- Semi-supervised learning - Semi-supervised learning is training that combines a small amount of labeled data with a large amount of unlabeled data, using the structure of the...
- Serverless inference - Serverless inference is a way of running a trained AI model in which a cloud provider starts, scales and stops the computing resources for you, and you pay...
Sources
Google, Machine Learning Glossary: https://developers.google.com/machine-learning/glossary NIST, AI 100-1 Artificial Intelligence Risk Management Framework: https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf Goodfellow, Bengio and Courville, Deep Learning: https://www.deeplearningbook.org/ The sources were consulted for the definition of saliency and related explanation methods and for guidance on interpretability and risk; the examples, analogy, worked example and case are original educational illustrations. Checked 5 Nov 2026.
Previous: Saliency Next: Salt-and-pepper noise