Papers › Decoupling Pixel Flipping and Occlusion Strategy for Consistent XAI Benchmarks

Decoupling Pixel Flipping and Occlusion Strategy for Consistent XAI Benchmarks

12 Jan 2024arXiv:2401.06654archive 2025-07-28

Stefan Blücher, Johanna Vielhaben, Nils Strodthoff

Feature removal is a central building block for eXplainable AI (XAI), both for occlusion-based explanations (Shapley values) as well as their evaluation (pixel flipping, PF). However, occlusion strategies can vary significantly from simple mean replacement up to inpainting with state-of-the-art diffusion models. This ambiguity limits the usefulness of occlusion-based approaches. For example, PF benchmarks lead to contradicting rankings. This is amplified by competing PF measures: Features are either removed starting with most influential first (MIF) or least influential first (LIF). This study proposes two complementary perspectives to resolve this disagreement problem. Firstly, we address the common criticism of occlusion-based XAI, that artificial samples lead to unreliable model evaluations. We propose to measure the reliability by the R(eference)-Out-of-Model-Scope (OMS) score. The R-OMS score enables a systematic comparison of occlusion strategies and resolves the disagreement problem by grouping consistent PF rankings. Secondly, we show that the insightfulness of MIF and LIF is conversely dependent on the R-OMS score. To leverage this, we combine the MIF and LIF measures into the symmetric relevance gain (SRG) measure. This breaks the inherent connection to the underlying occlusion strategy and leads to consistent rankings. This resolves the disagreement problem, which we verify for a set of 40 different occlusion strategies.

PaperPDFCodeCode 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="2401.06654")

Code

Syntology Ran 15 of 18 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 15 ran with no contract checked.

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

bluecher31/pixel-flipping officialmentioned in paperjaxLGPL-2.1 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

18 samples harvested; 15 ran; 0 honoured the contract we drafted; 3 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.

15ran
3unverified

Licence: 18 of the 18 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 bluecher31/pixel-flipping. “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.

calc_n_interactions bluecher31/pixel-flipping/conditional_explainer/helper_methods.py official repository ran fingerprinted LGPL-2.1 (copyleft) · pointer only · 91b9e7125ceb0cf4 · report
calculate_auc bluecher31/pixel-flipping/src/plotting.py official repository ran LGPL-2.1 (copyleft) · pointer only · d09d3325aee96b41 · report
calculate_fig_size_in_inches bluecher31/pixel-flipping/src/config_matplotlib.py official repository ran LGPL-2.1 (copyleft) · pointer only · ff9025c47e8c0500 · report
convert_heatmap_to_superpixels bluecher31/pixel-flipping/src/experiments/pixel_flipping.py official repository ran LGPL-2.1 (copyleft) · pointer only · 9985fb8a9aa23137 · report
convert_images_to_array bluecher31/pixel-flipping/src/interface.py official repository ran LGPL-2.1 (copyleft) · pointer only · d3a250b3a06ee085 · report
generate_feature_interaction_algebra bluecher31/pixel-flipping/conditional_explainer/helper_methods.py official repository ran LGPL-2.1 (copyleft) · pointer only · 7b87d4d8f34d0f7e · report
generate_footprints bluecher31/pixel-flipping/conditional_explainer/helper_methods.py official repository ran LGPL-2.1 (copyleft) · pointer only · fdf5b2bff88d4d30 · report
get_and_check_shapes bluecher31/pixel-flipping/conditional_explainer/helper_base.py official repository ran LGPL-2.1 (copyleft) · pointer only · 97206f44efbf5255 · report
laplace_smoothing bluecher31/pixel-flipping/conditional_explainer/helper_base.py official repository ran LGPL-2.1 (copyleft) · pointer only · 5d6f5c141b36c5f5 · report
line_with_shaded_errorband bluecher31/pixel-flipping/src/config_matplotlib.py official repository ran LGPL-2.1 (copyleft) · pointer only · 1f27b7255efddbe4 · report
root_pixel_flipping bluecher31/pixel-flipping/src/experiments/pixel_flipping.py official repository ran LGPL-2.1 (copyleft) · pointer only · 9d7dfa1a06f1cd38 · report
select_label bluecher31/pixel-flipping/src/experiments/pixel_flipping.py official repository ran LGPL-2.1 (copyleft) · pointer only · c6a5d61af67dff46 · report
shap_kernel_weight bluecher31/pixel-flipping/conditional_explainer/helper_kernelshap.py official repository ran fingerprinted LGPL-2.1 (copyleft) · pointer only · eb30d71d3bb813b8 · report
shapley_normalization bluecher31/pixel-flipping/conditional_explainer/approximate_shapley_values.py official repository ran fingerprinted LGPL-2.1 (copyleft) · pointer only · 0731bd35bbdec170 · report
summarize_rgb_channels bluecher31/pixel-flipping/src/plotting.py official repository ran LGPL-2.1 (copyleft) · pointer only · 2a6d7f87e2880716 · report
organize_key bluecher31/pixel-flipping/conditional_explainer/helper_base.py official repository unverified LGPL-2.1 (copyleft) · pointer only · c8d48ee3f9addbbf · report
power_set_coalitions bluecher31/pixel-flipping/conditional_explainer/helper_kernelshap.py official repository unverified LGPL-2.1 (copyleft) · pointer only · e39eec6fdb523290 · report
random_coalitions bluecher31/pixel-flipping/conditional_explainer/helper_kernelshap.py official repository unverified LGPL-2.1 (copyleft) · pointer only · 4f993179ee2018b8 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DiffusionInpaintingSET

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