Papers › Investigating and Simplifying Masking-based Saliency Methods for Model Interpretability

Investigating and Simplifying Masking-based Saliency Methods for Model Interpretability

19 Oct 2020arXiv:2010.09750archive 2025-07-28

Jason Phang, Jungkyu Park, Krzysztof J. Geras

Saliency maps that identify the most informative regions of an image for a classifier are valuable for model interpretability. A common approach to creating saliency maps involves generating input masks that mask out portions of an image to maximally deteriorate classification performance, or mask in an image to preserve classification performance. Many variants of this approach have been proposed in the literature, such as counterfactual generation and optimizing over a Gumbel-Softmax distribution. Using a general formulation of masking-based saliency methods, we conduct an extensive evaluation study of a number of recently proposed variants to understand which elements of these methods meaningfully improve performance. Surprisingly, we find that a well-tuned, relatively simple formulation of a masking-based saliency model outperforms many more complex approaches. We find that the most important ingredients for high quality saliency map generation are (1) using both masked-in and masked-out objectives and (2) training the classifier alongside the masking model. Strikingly, we show that a masking model can be trained with as few as 10 examples per class and still generate saliency maps with only a 0.7-point increase in localization error.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2010.09750")

Code

Syntology Ran 0 of 19 code samples harvested from 1 repository linked to this paper; 19 have no recorded run.

By repository: official repository: 19 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zphang/saliency_investigation officialmentioned in papermentioned on GitHubpytorchBSD-3-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 0 ran; 0 honoured the contract we drafted; 19 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

19unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zphang/saliency_investigation. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

accuracy zphang/saliency_investigation/casme/train_utils.py official repository unverified BSD-3-Clause (permissive) · 688c38ac8517471a · report
apply_uniform_random_value_mask_func zphang/saliency_investigation/casme/criterion.py official repository unverified BSD-3-Clause (permissive) · ca4396c9e5d986b8 · report
binary_gumbel_softmax zphang/saliency_investigation/casme/archs.py official repository unverified BSD-3-Clause (permissive) · c75a899b50d166b6 · report
default_infill_func zphang/saliency_investigation/casme/criterion.py official repository unverified BSD-3-Clause (permissive) · 8f29059810883f70 · report
get_activation zphang/saliency_investigation/casme/ext/dfnet.py official repository unverified BSD-3-Clause (permissive) · ccefd8f533a37c96 · report
get_mask zphang/saliency_investigation/casme/model_basics.py official repository unverified BSD-3-Clause (permissive) · a2f9db8c0650f2df · report
get_masked_images zphang/saliency_investigation/casme/casme_utils.py official repository unverified BSD-3-Clause (permissive) · 544506b6b4e94b6e · report
get_masked_images_v2 zphang/saliency_investigation/casme/casme_utils.py official repository unverified BSD-3-Clause (permissive) · b257e814f0b02a0e · report
get_masks_and_check_predictions zphang/saliency_investigation/casme/model_basics.py official repository unverified BSD-3-Clause (permissive) · 1eef12cb27f7130e · report
get_norm zphang/saliency_investigation/casme/ext/dfnet.py official repository unverified BSD-3-Clause (permissive) · 22f472dba4017016 · report
gram_matrix zphang/saliency_investigation/casme/ext/pytorch_inpainting_with_partial_conv.py official repository unverified BSD-3-Clause (permissive) · 1715f300a6a58899 · report
ignore_superclass_signature zphang/saliency_investigation/casme/core.py official repository unverified BSD-3-Clause (permissive) · 9c25a48e312acd33 · report
mask_to_stats zphang/saliency_investigation/casme/stats.py official repository unverified BSD-3-Clause (permissive) · a29a81ff6ff8a73e · report
random_mask zphang/saliency_investigation/casme/ext/pconv_keras.py official repository unverified BSD-3-Clause (permissive) · ab33a7e0d32b0259 · report
replace_prefix zphang/saliency_investigation/casme/archs.py official repository unverified BSD-3-Clause (permissive) · afc608bf21aa9f05 · report
resize_like zphang/saliency_investigation/casme/ext/dfnet.py official repository unverified BSD-3-Clause (permissive) · 72d2ca5c8b19b945 · report
resnet50shared zphang/saliency_investigation/casme/archs.py official repository unverified BSD-3-Clause (permissive) · f067739c23018f46 · report
total_variation_loss zphang/saliency_investigation/casme/ext/pytorch_inpainting_with_partial_conv.py official repository unverified BSD-3-Clause (permissive) · dedfa1b69056bdc7 · report
weights_init zphang/saliency_investigation/casme/ext/pytorch_inpainting_with_partial_conv.py official repository unverified BSD-3-Clause (permissive) · b0a0259ffdb9c7d8 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections