Face BenchmarkHow face recognition and deepfake detection are measured, from the papers.

Explainable deepfake detection: what heat maps and masks show

The Face Benchmark editorsPublishedFigures checked

Explainable deepfake detection means a detector shows where it looked or what it found, not only a score. A heat map such as Grad-CAM marks the image regions that drove a decision, and Face X-ray predicts a mask of the blending boundary. Face X-ray reaches an AUC of 0.9872 on FaceForensics++ Face2Face but 0.5531 on DeeperForensics-1.0 in DeepfakeBench Table 3, so an explanation does not certify a score.

This page belongs to the deepfake detection hub. It reads the explanation side of a detection paper; the method itself has its own Face X-ray page, and the benchmark behind the numbers is described under DeepfakeBench.

01What counts as an explanation in deepfake detection?

Three kinds appear in papers. A saliency or class activation map highlights the pixels or regions a model relied on. A predicted mask or boundary map is an output the network is trained to produce, so it is part of the detector rather than a view of it. And a ground-truth mask, which some datasets ship, marks the manipulated region so detectors can be trained or scored on where the fake is.

Grad-CAM, first posted in 2016, belongs to the first kind. It uses "the gradients of any target concept" flowing into the final convolutional layer "to produce a coarse localization map highlighting the important regions in the image for predicting the concept". DeepfakeBench applies it "to highlight the potential forgery regions detected by the models". The FaceForensics++ and DFD datasets provide masks of the manipulated regions, and DeepfakeBench extracts them for methods that use mask supervision.

02What does Face X-ray predict?

Face X-ray defines its output as a greyscale image "that reveals whether the input image can be decomposed into the blending of two images from different sources". Where the input is a real image, the mask is all zeros. Where it is a manipulated image, the paper writes the value at each pixel as 4 times M times (1 minus M), with M the blending mask, so values are largest where the soft mask is half way between face and background, which is the boundary, and zero deep inside or outside the pasted region.

The idea rests on one assumption: "it only assumes the existence of a blending step". Because most face swaps and reenactments paste an altered face into a background, the boundary is a trace many methods share. The authors build blended images from real photographs, so the network can be trained without fakes from any manipulation method, and a classifier reads the predicted boundary to decide real or fake. The paper's own Table 2 reports an AUC of 95.40 percent on DFD for the version trained on FaceForensics++ plus blended images, against 87.86 for an Xception baseline.

03How well does it score, and why do sources differ?

DeepfakeBench Table 3 trains Face X-ray on FaceForensics++ c23 and reports frame-level AUC. It is the best detector in the table on FaceForensics++ Face2Face at 0.9872 and lower on the rest: 0.9290 on NeuralTextures, 0.8989 on UADFV, 0.7655 on DFD, 0.6786 on Celeb-DF v2 and 0.5531 on DeeperForensics-1.0. The published AUC scores page sets these beside the other detectors.

The original paper reports higher numbers on shared test sets. The two sources do not describe the same experiment, as the table shows.

Test set Face X-ray paper, Table 2 (FF++ plus blended images) DeepfakeBench Table 3 (FF++ c23)
DFD 0.9540 0.7655
Celeb-DF, 795 fake videos (v1) 0.8058 0.7093

The paper prints percentages, converted here to the same scale. DeepfakeBench states that "the official code for Face X-ray is not available", so it re-implemented the data generation and training "carefully following the instructions of the original paper". It also fixes its own preprocessing and a frame-level protocol. Training data, code and protocol all differ, and neither source reports which one explains the gap, so the safe reading is that a Face X-ray score depends on who trained it and how it was scored.

Face X-ray frame-level AUC on six test sets in DeepfakeBench, trained on FaceForensics++ c23Horizontal bars, AUC. FaceForensics++ Face2Face 0.9872; FaceForensics++ NeuralTextures 0.9290; UADFV 0.8989; DFD 0.7655; Celeb-DF v2 0.6786; DeeperForensics-1.0 0.5531. Source: DeepfakeBench, arXiv 2307.01426, Table 3, read 10 Nov 2026.0.00000.25000.50000.75001.0000FF++ Face2Face0.9872FF++ NeuralTextures0.9290UADFV0.8989DFD0.7655Celeb-DF v20.6786DeeperForensics-1.00.5531frame-level AUC, trained on FF++ c23
Figure 1One detector that predicts a blending mask, six test sets. The AUC falls from 0.9872 on a method it was trained among to 0.5531 on DeeperForensics-1.0. Source: DeepfakeBench Table 3 (arXiv 2307.01426), read 10 Nov 2026.

04What can a heat map or mask not show?

A heat map shows where a model attended, not whether that region is forged. The sanity checks paper tested saliency methods by randomising model parameters and found that "some existing saliency methods are independent both of the model and of the data generating process", and that "reliance, solely, on visual assessment can be misleading". It found that Gradients and Grad-CAM passed its checks, while Guided Backpropagation and Guided Grad-CAM did not. So a pleasing picture is not evidence, and the method behind it matters.

A predicted mask has its own limits. Face X-ray says it "relies on the existence of a blending step", so an entirely synthetic image may defeat it. Compression matters too: on FaceForensics++ its overall AUC was 87.35 percent on the lightly compressed version and 61.6 percent on the heavily compressed one, because "the heavier the compression, the less significant the forgery evidence". The cross-dataset generalisation page documents the same pattern for other detectors.

05How should an explanation figure be read?

Ask four questions of any figure showing a heat map or predicted mask. Is it a view of the model, such as Grad-CAM, or an output the model was trained to produce, such as a boundary map? Does the paper show failures as well as successes? Does the mask match a ground-truth mask where one exists? And does the score on a dataset the method never saw match the picture?

The last question is the one the Face X-ray numbers answer: a clean boundary on a training-like fake and an AUC near 0.55 on DeeperForensics-1.0 can come from the same detector. The checklist in how to read a detection paper extends the questions to the evaluation protocol.

SRCSources

  1. S1
    Face X-ray for More General Face Forgery Detection(external)Li, Bao, Zhang, Yang, Chen, Wen, Guo. CVPR 2020
    Checked
  2. S2
    DeepfakeBench: A Comprehensive Benchmark of Deepfake Detection(external)Yan, Zhang, Yuan, Lyu, Wu. NeurIPS 2023 Datasets and Benchmarks
    Checked
  3. S3
    Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization(external)Selvaraju, Cogswell, Das, Vedantam, Parikh, Batra. arXiv v4, December 2019
    Checked
  4. S4
    Sanity Checks for Saliency Maps(external)Adebayo, Gilmer, Muelly, Goodfellow, Hardt, Kim. NeurIPS 2018
    Checked

FAQQuestions

What is explainable deepfake detection?

Detection that shows where a detector looked or what it found, such as a Grad-CAM heat map or a predicted blending mask, alongside the real or fake score. Grad-CAM produces "a coarse localization map highlighting the important regions in the image".

What does a Face X-ray show?

A greyscale mask of the blending boundary between a pasted face and its background. For a real image the mask is zero everywhere. The detector trains on blended real photographs and needs no output from any manipulation method.

How accurate is Face X-ray?

In DeepfakeBench Table 3, trained on FaceForensics++ c23, it scores an AUC of 0.9872 on FaceForensics++ Face2Face and 0.5531 on DeeperForensics-1.0. The original paper reports 95.40 percent on DFD, higher than the 0.7655 DeepfakeBench measures.

Can a heat map prove a video is fake?

No. A heat map shows where a model attended, not that the region was manipulated. The sanity checks paper found that reliance on visual assessment alone "can be misleading" and that some saliency methods ignore the model.

Why do papers and benchmarks report different scores for the same detector?

They differ in training data, code, preprocessing and evaluation protocol. DeepfakeBench re-implemented Face X-ray because official code was not available, and its DFD AUC of 0.7655 is lower than the paper's 0.9540.