Counter-DECEIVR: Counterfactual Explanations for Deepfake Detectors using Detector-Guided Rectified Flow Inversion
Mariano V. Ntrougkas, Vasileios Mezaris, Ioannis Patras
Key points
From the paper's conclusion- Across two deepfake detectors and two widely used forensics datasets, Counter-DECEIVR outperforms prior counterfactual generation methods, including training-based ones.
Abstract
Deep-learning-generated media are increasingly passed off as real, driving an arms race between image generators and deepfake detectors. Trust in the latter is limited by their often black-box nature; and, while region-based explanations can sometimes be extracted, these become less useful as generation quality improves. Counterfactual examples, which show the minimal change that flips a detector's decision, reveal what evidence drives a verdict, helping analysts decide whether to trust it. This work introduces Counter-DECEIVR (DEtector-guided reCtifiEd flow InVeRsion for counterfactuals), a novel training-free framework that generates counterfactual examples. Counter-DECEIVR steers latents in the velocity field of a rectified flow model using gradients from off-the-shelf deepfake detectors, without training a generator or adapting the detector; unlike prior methods, it requires no per-instance or per-detector fitting and no diffusion training on the target data. It also leverages the detector's explanation maps to concentrate editing to salient regions, turning low-level feature importance into localised counterfactual edits. A single parameter controls the strength of the edits. Across two deepfake detectors and two widely used forensics datasets, Counter-DECEIVR outperforms prior counterfactual generation methods, including training-based ones. Code will be made available upon acceptance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Deepfake Generation and Detection Algorithms: A Comprehensive Survey of Multimodal Learning, Robustness, Explainability, and Trustworthy Synthetic Media ForensicsAlgorithms · 2026
- CLEAR: Cooperative Latent Flow for Visual Counterfactual Explanations with Accurate Region PreservationarXiv · 2026
- Can a World Model Predict a Deepfake Video? A Consistency Margin Prior for Deepfake DetectionarXiv · 2026
- CounterFlow: Target-Conditioned Flow Matching for Visual CounterfactualsarXiv · 2026
- Antiphony: A Dual-Process Agent for Deepfake Video Detection with Real-Video CalibrationarXiv · 2026
- ViT-Xplain: A Transparent Deepfake Detector for Consumer Electronics Based on Attention and Explainable AIIEEE Transactions on Consumer Electronics · 2025