Fast Diffusion-Based Counterfactuals for Shortcut Removal and Generation

Nina Weng*, Paraskevas Pegios, Eike Petersen, Aasa Feragen, Siavash Bigdeli

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingArticle in proceedingsResearchpeer-review

Abstract

Shortcut learning is when a model – e.g. a cardiac disease classifier – exploits correlations between the target label and a spurious shortcut feature, e.g. a pacemaker, to predict the target label based on the shortcut rather than real discriminative features. This is common in medical imaging, where treatment and clinical annotations correlate with disease labels, making them easy shortcuts to predict disease. We propose a novel detection and quantification of the impact of potential shortcut features via a fast diffusion-based counterfactual image generation that can synthetically remove or add shortcuts. Via a novel self-optimized masking scheme we spatially limit the changes made with no extra inference step, encouraging the removal of spatially constrained shortcut features while ensuring that the shortcut-free counterfactuals preserve their remaining image features to a high degree. Using these, we assess how shortcut features influence model predictions. This is enabled by our second contribution: An efficient diffusion-based counterfactual explanation method with significant inference speed-up at comparable image quality as state-of-the-art. We confirm this on two large chest X-ray datasets, a skin lesion dataset, and CelebA. Our code is publicly available at https://fastdime.compute.dtu.dk.
Original languageEnglish
Title of host publicationProceedings of the 18th European Conference Computer Vision – ECCV 2024
PublisherSpringer
Publication date2025
Pages338-357
ISBN (Print)978-3-031-73015-3
ISBN (Electronic)978-3-031-73016-0
DOIs
Publication statusPublished - 2025
EventThe 18th European Conference on Computer Vision - Milano, Italy
Duration: 29 Sept 20244 Oct 2024

Conference

ConferenceThe 18th European Conference on Computer Vision
Country/TerritoryItaly
CityMilano
Period29/09/202404/10/2024
SeriesLecture Notes in Computer Science
Volume15144
ISSN0302-9743

Fingerprint

Dive into the research topics of 'Fast Diffusion-Based Counterfactuals for Shortcut Removal and Generation'. Together they form a unique fingerprint.

Cite this