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.
Figures & tables
Figure 1: Counter-DECEIVR inverts a query image to noise with a rectified flow, then guides the reverse trajectory with the detector’s own gradient, steering the image across the detector’s decision boundary by affecting only the regions the detector relies on. Y1∗∼N(0,1) is a sampled Gaussian noise that acts as the target of the inversion path, and X1∗≡Y0 is the original image latent that acts as the target of the reverse path, keeping the counterfactual X1 close to the query image.
Figure 2: Overview of the proposed Counter-DECEIVR method displaying the inversion and editing stages of the rectified flow method, combined with the classifier guidance phase, and the use of the explanation map.
Dataset
Detector
Method
FR↑
COUT↑
FID
LPIPS
SSIM
FF++ [ 17 ]
EfficientNet
DISC [ 22 ]
1.000
0.189
14.34
0.018
0.963
ACE [ 5 ]
0.550
-0.095
27.96
0.033
0.960
Stable Diffusion V1.4 [ 25 ]
0.983
0.437
18.73
0.053
0.913
Counter-DECEIVR
0.998
0.815
18.65
0.036
0.963
Swin V2
ACE [ 5 ]
0.500
-0.089
18.81
0.020
0.971
Stable Diffusion V1.4 [ 25 ]
0.955
0.729
19.37
0.043
0.939
Table 1: Comparison of our method with SoA methods using the FR, COUT, FID, LPIPS, and SSIM metrics. For each method, we select the point on its curve with the highest COUT within FID=20±10 as can be observed from Fig. 3 .
Figure 3: COUT as a function of FID for each method, obtained by sweeping editing strength. Higher is better. Each marker is one operating point; the shaded region marks FID=20±10 , from which the operating point reported in Table 1 is selected. The inset shows the full range of FID values attained by each method, including methods whose entire curve lies above FID=50 .
Figure 4: Qualitative comparison of Counter-DECEIVR and the baselines on the same queries. Each row shows the query and the counterfactual produced by each method, with the difference between query and counterfactual as an inset.
Masking
FR↑
COUT↑
FID
LPIPS
SSIM
No Masking
1.000
0.617
21.25
0.057
0.866
Proposed Grad-CAM-based Masking
0.998
0.815
18.65
0.036
0.963
Table 2: Ablation study of explanation map masking (Grad-CAM) with no masking.
Figure 5: Effect of τ on Counter-DECEIVR’s counterfactuals for a fixed query. As τ decreases, the edit becomes more drastic, while the background remains intact. For small τ the masked region is largely resampled from the flow prior, so changes such as the removed glasses reflect the prior rather than detector evidence. The sweep traces the trade-off quantified in Figure 3 .
Counterfactual explanations show how changing an input could alter a model’s prediction, supporting model understanding, auditing, and actionable recourse.
Current generative models, including GANs and diffusion models, have reached an outstanding level of photorealism, posing significant risks to privacy and security. To ensure real-world applicability, deepfake detectors must generalise effectively to unseen generators. However, most existing approaches rely on supervised training with both real and fake images, which limits their generalisation especially across generators categories (e.g. GANs vs DMs). In this work, we introduce μFlow, a one-class deepfake detector trained only on real images without relying on pseudo-deepfakes or synthetic artifacts. Our approach builds on the observation that averaging multiple images amplifies consistent generative traces, producing highly discriminative feature representations. We leverage this property by modelling the distribution of features extracted from averaged images and training a normalizing flow to align the feature space of individual images with this distribution. This alignment yields a likelihood-based criterion that separates real and fake samples while promoting strong generalisation. We evaluate μFlow on a fully out-of-distribution setting, where both real and fake datasets are unseen during training. Experimental results show that our method significantly outperforms SOTA detectors. Project page: https://opontorno.github.io/MuFlow.
Orazio Pontorno, Mattia Litrico, Luca Guarnera +2
University of Catania, Catania, Italy · University of Nottingham, Nottingham, UK
Recent advances in generative image models have made many manipulated images highly realistic, raising the need for detectors that are not only accurate but also able to provide visual evidence for their decisions. In this paper, we present our solution to the Explainable Deepfake Detection Challenge [2] on the XPlainVerse dataset [1], where systems are required to predict whether an image is real or fake and generate both complex and simple explanations grounded in visible forensic cues. Our method follows a modular detection-and-explanation design. For the real/fake decision, we build a multi-backbone detector that combines several DINOv3 models with Mesorch manipulation-localization features, bringing together pretrained visual representations, DCT-aware cues, and multi-scale forensic information. To inject explanation evidence into the detector, we use a Grounding-DINO-based pseudo-mask generation pipeline that converts local artifact descriptions from training explanations into weak patch- level supervision for an Artifact Evidence Map. We further introduce a local patch-level contrastive objective that separates artifact and authenticity evidence in the detector feature space without requiring paired images or pixel-level manipulation masks. For language output, we use class-conditional Qwen3-VL models to generate complex explanations for fake and real predictions, followed by a GRPO-optimized text simplification model. The proposed methods were trained and evaluated on the challenge subset of XPlainVerse. On the full test split, our submission achieves 0.9349 detection accuracy, 0.5571 explanation score, and a 0.7456 final challenge score.
Artem Filippov, Aleksandr Gushchin, Kirill Koltsov +2
Lomonosov Moscow State University Moscow, Russia · MSU Institute for Artificial Intelligence Moscow, Russia
Deepfake detection models often generate natural-language explanations, yet their reasoning is frequently ungrounded in visual evidence, limiting reliability. Existing evaluations measure classification accuracy but overlook reasoning fidelity. We propose DeepfakeJudge, a framework for scalable reasoning supervision and evaluation, that integrates an out-of-distribution benchmark containing recent generative and editing forgeries, a human-annotated subset with visual reasoning labels, and a suite of evaluation models, that specialize in evaluating reasoning rationales without the need for explicit ground truth reasoning rationales. The Judge is optimized through a bootstrapped generator-evaluator process that scales human feedback into structured reasoning supervision and supports both pointwise and pairwise evaluation. On the proposed meta-evaluation benchmark, our reasoning-bootstrapped model achieves an accuracy of 96.2%, outperforming 30x larger baselines. The reasoning judge attains very high correlation with human ratings and 98.9% percent pairwise agreement on the human-annotated meta-evaluation subset. These results establish reasoning fidelity as a quantifiable dimension of deepfake detection and demonstrate scalable supervision for interpretable deepfake reasoning. Our user study shows that participants preferred the reasonings generated by our framework 70% of the time, in terms of faithfulness, groundedness, and usefulness, compared to those produced by other models and datasets. All of our datasets, models, and codebase are open-sourced.
Kartik Kuckreja, Parul Gupta, Muhammad Haris Khan +1