[Paper Review] LatentForensics: Towards frugal deepfake detection in the StyleGAN latent space
This paper proposes LatentForensics, a lightweight deepfake detection method that operates in the StyleGAN latent space by projecting cropped, aligned face images into a 512-dimensional latent code and classifying them using simple models like Random Forest or MLP. It achieves state-of-the-art accuracy with significantly fewer training examples than existing methods, outperforming MesoNet, XCeptionNet, and EfficientNet on standard benchmarks.
The classification of forged videos has been a challenge for the past few years. Deepfake classifiers can now reliably predict whether or not video frames have been tampered with. However, their performance is tied to both the dataset used for training and the analyst's computational power. We propose a deepfake detection method that operates in the latent space of a state-of-the-art generative adversarial network (GAN) trained on high-quality face images. The proposed method leverages the structure of the latent space of StyleGAN to learn a lightweight binary classification model. Experimental results on standard datasets reveal that the proposed approach outperforms other state-of-the-art deepfake classification methods, especially in contexts where the data available to train the models is rare, such as when a new manipulation method is introduced. To the best of our knowledge, this is the first study showing the interest of the latent space of StyleGAN for deepfake classification. Combined with other recent studies on the interpretation and manipulation of this latent space, we believe that the proposed approach can further help in developing frugal deepfake classification methods based on interpretable high-level properties of face images.
Motivation & Objective
- Address the growing challenge of deepfake detection with computationally efficient and scalable methods.
- Overcome limitations of artifact-based detection that degrade on unseen or compressed data.
- Explore the potential of latent space representations from generative models like StyleGAN for robust, interpretable deepfake classification.
- Develop a method that requires minimal labeled data and training resources, suitable for real-world deployment in low-data scenarios.
- Investigate the interpretability of deepfake detection by analyzing feature importance across StyleGAN's latent space channels.
Proposed method
- Project cropped and aligned face images from video frames into the latent space of a pre-trained StyleGAN using a pseudo-inversion method (Zhu et al., 2021).
- Use a 14-channel latent code representation where each channel corresponds to different levels of facial feature abstraction (coarse to fine).
- Train lightweight classifiers—Random Forest, Logistic Regression, or Multi-Layer Perceptron—on the latent codes for binary deepfake classification.
- Optimize the latent code using stochastic gradient descent with a learning rate of 5×10⁻⁴ and L2 regularization.
- Evaluate performance using standard benchmarks such as DFDC and FaceForensics++ with cross-validation on test splits.
- Analyze channel-wise importance by training separate models on individual latent channels to assess feature relevance.
Experimental results
Research questions
- RQ1Can the latent space of StyleGAN be leveraged to build a lightweight yet accurate deepfake detector without training complex CNNs?
- RQ2How does the performance of latent-space-based detection compare to state-of-the-art CNN-based methods like MesoNet and XCeptionNet?
- RQ3To what extent can the proposed method generalize with significantly fewer training examples than existing models?
- RQ4Which channels in the StyleGAN latent code are most informative for distinguishing genuine from manipulated faces?
- RQ5Can the interpretability of the latent space improve explainability in deepfake detection?
Key findings
- The proposed method with a Multi-Layer Perceptron (MLP-5) classifier achieved 94% accuracy on the DFDC dataset, outperforming XCeptionNet (91%) and EfficientNet (91%).
- The Random Forest classifier on StyleGAN latent codes achieved 88% accuracy, a 4 percentage point improvement over MesoNet (84%).
- Using a logistic regression on the StyleGAN latent code improved accuracy to 92%, demonstrating that simple models can outperform complex ones when data is well-represented in latent space.
- The method required only 5,000 training videos (vs. 124,000 for DFDC-pretrained models), showing a 25x reduction in data demand.
- Mid-to-late layers of the StyleGAN latent code (channels 8–11) were most informative for detection, with MLPs and Random Forests showing distinct optimal channel patterns (6–9 and 9–11, respectively).
- The approach demonstrates that high-level, interpretable facial attributes (e.g., head shape, skin texture) encoded in the latent space are effective for detecting deepfake manipulations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.