CLEAR: Cooperative Latent Flow for Visual Counterfactual Explanations with Accurate Region Preservation

Yan Zeng, Changlu Guo, Oskar Kristoffersen, Anders Nymark Christensen, Morten Rieger Hannemose +1 more
10/16/2026
cs.CV
diffusion-flow

No official code found. Best implementation: Yan-Zen9/CLEAR (3 stars, Python, last commit 2026-10-19).

Abstract

Visual counterfactual explanations (VCEs) should alter a classifier's prediction while remaining realistic and preserving decision-irrelevant content. Image-space methods provide high-quality counterfactuals but are computationally costly, whereas latent-space methods are more efficient but often less faithful.

Show full abstract

We identify two sources responsible for this gap. First, latent generation recovers a natural sample from a perturbed representation, whereas classifier guidance pushes it toward a target class, so their update directions may oppose. Second, VAE reconstruction can alter regions that should remain unchanged. We introduce CLEAR, a latent Flow Matching framework for VCEs. CLEAR uses Flow Matching's explicit instantaneous velocity as a reference for the generative direction to decompose classifier guidance into cooperative and conflicting components. It preserves the cooperative component and adaptively attenuates only the conflicting one according to conflict strength. We further analyze conflict frequency and strength throughout generation to reveal how classifier guidance interacts with the generative process. CLEAR also dynamically identifies editable regions, constrains latent modifications, and directly preserves factual content outside them to reduce VAE-induced changes. Across five bidirectional tasks on two datasets, CLEAR retains latent-space efficiency while achieving counterfactual quality comparable to or better than strong image-space baselines, with a 2.5x speedup over the strongest baseline. Project page: https://yan-zen9.github.io/CLEAR/

View on arXivView PDF

Code Implementations(1)

Yan-Zen9/CLEARCommunity25%

Official PyTorch implementation of "CLEAR: Cooperative Latent Flow for Visual Counterfactual Explanations with Accurate Region Preservation (WACV 2027)"

30PythonOct 16, 20261 months agoNOASSERTION

Similar Papers

Cite this paper

@article{zeng2026clear,
  title  = {CLEAR: Cooperative Latent Flow for Visual Counterfactual Explanations with Accurate Region Preservation},
  author = {Yan Zeng and Changlu Guo and Oskar Kristoffersen and Anders Nymark Christensen and Morten Rieger Hannemose and Anders Bjorholm Dahl},
  year   = {2026},
  eprint = {2610.23577},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.23577v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.23577.svg)](https://codeofpaper.com/paper/2610.23577)

Discussion