cs.LGOct 26, 2026

CounterFlow: Target-Conditioned Flow Matching for Visual Counterfactuals

Authors: Paul Sevellec, Elisa Fromont, Romaric Gaudel, Laurence Roze, Paul Viallard, Laetitia Houeix

Organizations: Univ Rennes, CNRS, Inria, IRISA - UMR 6074, F35000 Rennes, France · Stellantis Inc. 78300 Poissy, France · Univ Rennes, INSA Rennes, CNRS, Inria, IRISA - UMR 6074, F35000 Rennes, France

Abstract

In eXplainable AI, counterfactual explanations have gained significant traction by offering users direct, intuitive, and actionable insights into model decisions. We introduce CounterFlow, a novel framework based on Conditional Flow Matching that generates visual counterfactual explanations by directly steering a source image toward a user-specified target class. By leveraging target-conditioned vector fields, CounterFlow identifies highly realistic semantic modifications while requiring substantially lower computational overhead than traditional GAN- or diffusion-based architectures. Empirical evaluations on standard benchmarks demonstrate that CounterFlow achieves state-of-the-art performance in both visual realism and target class switching. By working directly in the raw pixel space, CounterFlow offers a more practical solution for real-world deployment.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CounterFlowNet: From Minimal Changes to Meaningful Counterfactual Explanations

    Feb 19, 2026Oleksii Furman, Patryk Marszałek, Jan Masłowski +3Counterfactual ExplanationsConstrained Generative Modeling

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

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