cs.CVFeb 21, 2026

MaskDiME: Adaptive Masked Diffusion for Precise and Efficient Visual Counterfactual Explanations

Authors: Changlu Guo, Anders Nymark Christensen, Anders Bjorholm Dahl, Morten Rieger Hannemose

Organizations: Technical University of Denmark, Denmark

Abstract

Visual counterfactual explanations aim to reveal the minimal semantic modifications that can alter a model's prediction, providing causal and interpretable insights into deep neural networks. However, existing diffusion-based counterfactual generation methods are often computationally expensive, slow to sample, and imprecise in localizing the modified regions. To address these limitations, we propose MaskDiME, a simple, fast, yet effective diffusion framework that unifies semantic consistency and spatial precision through localized sampling. Our approach adaptively focuses on decision-relevant regions to achieve localized and semantically consistent counterfactual generation while preserving high image fidelity. Our training-free framework, MaskDiME, performs inference over 30x faster than the baseline and achieves comparable or state-of-the-art performance across five benchmark datasets spanning diverse visual domains, establishing a practical and generalizable solution for efficient counterfactual explanation.

Figures & tables

Explore similar work

CardsList
  1. MedDiME: Efficient Latent Diffusion with Adaptive Masking for Medical Counterfactual Generation

    Sep 14, 2026Yan Zeng, Changlu Guo, Anders Nymark Christensen +2Counterfactual ExplanationsLatent Diffusion Models

  2. FiRe: Fixed-Noise Refinement for Visual Counterfactual Explanations

    Aug 9, 2026Yan Zeng, Changlu Guo, Oskar Kristoffersen +3Counterfactual ExplanationsDiffusion Guidance

  3. SCE-LITE-HQ: Smooth visual counterfactual explanations with generative foundation models

    Mar 17, 2026Ahmed Zeid, Sidney BenderCounterfactual Explanations