Saliency Maps
A classifier calls an image “house.” A saliency map asks which pixels would change that class score most if they moved slightly.
Input gradient
For class score , vanilla saliency uses:
A large magnitude means the score is locally sensitive to pixel or feature . It does not mean that feature is sufficient or semantically meaningful.
Mask Pixels, Watch the Score
Paint over pixels to gray them out. The model re-scores without that information. Then toggle the saliency overlay to see whether the bright regions predicted by gradients actually drive the decision.
Click or drag to mask · drag again to restore · toggle overlay to compare
P(house)
0.910
Score drop
—
Pixels masked
—
Paint over pixels, then toggle the saliency overlay to compare what the gradient predicted.
Use saliency maps to inspect a model during development, then pair them with perturbation tests. If removing the brightest pixels does not affect the score, the map is not doing the explanatory work you hoped.
What does a bright saliency pixel establish?