Deep Convolutional Pooling Transformer for Deepfake Detection

Tianyi Wang, Harry Cheng, Kam-Pui Chow, Liqiang Nie

TL;DR

Researchers have developed a novel Deep Convolutional Pooling Transformer (DCPT) that significantly improves Deepfake detection by combining the local texture-spotting power of CNNs with the global consistency-checking of Transformers. A key innovation is their focus on video keyframes (I-frames), which contain more original data and fewer compression artifacts than standard frames, leading to state-of-the-art performance in both within-dataset and cross-dataset evaluations.

What Problem Does This Paper Address?

As Deepfake technology evolves, fakes are becoming increasingly difficult to distinguish from reality. Most current detection methods rely on Convolutional Neural Networks (CNNs). While CNNs are excellent at finding local "artifacts" (like weird textures around the eyes), they often fail to grasp global inconsistencies—for instance, whether the movement of the mouth matches the expression of the eyes across the whole face.

Furthermore, most researchers ignore the impact of video compression. Standard video formats (like H.264) save space by only storing full data for "keyframes" and just recording the changes for the frames in between. This process introduces noise and loses fine-grained details in the majority of video frames, making it harder for models to learn the subtle cues that give away a Deepfake.

Methods

The authors propose a hybrid architecture called the Deep Convolutional Pooling Transformer (DCPT). The workflow consists of three main stages:

  1. Local Feature Extraction: A 17-layer CNN stack processes the input face images to capture fine-grained local textures.
  2. Depth-wise Separable Convolutional Projection: Instead of standard linear projections used in vanilla Transformers, the authors use depth-wise convolutions to project features into the Transformer space. This reduces parameters and helps prevent overfitting.
  3. The Pooling Transformer: This is the "brain" of the model. It uses two specific techniques to enhance performance:
  4. Convolutional Pooling: Between Transformer phases, the model uses pooling layers to reduce feature dimensions while refining the most "decisive" features.
  5. Re-attention: To prevent "attention collapse" (where different attention heads start looking at the same thing in deep models), they use a learnable transformation matrix to keep the attention maps diverse.

Crucially, the authors specifically target keyframes (I-frames) for training. They argue that because keyframes haven't been "guessed" by a compression algorithm, they provide a much cleaner signal for the model to learn from.

Datasets

The model was evaluated on four major Deepfake benchmarks:

  • FaceForensics++ (FF++): The industry standard, containing four different manipulation methods.
  • Deepfake Detection Challenge (DFDC): A massive, diverse dataset from Facebook/Meta.
  • Celeb-DF: Known for its high-quality, realistic fakes that are notoriously difficult to detect.
  • DeeperForensics-1.0 (DF-1.0): A dataset featuring professional-grade fakes with added real-world distortions.

Key Insights and Ideas

  • The "Keyframe Advantage": Using Grad-CAM heatmaps, the authors visualized that keyframes are "hotter"—meaning the model finds significantly more decisive features in them compared to normal, compressed frames.
  • Hybrid is King: By combining CNNs (for local detail) and Transformers (for global relations), the model can spot fakes that look perfect locally but are "off" globally.
  • Solving Attention Collapse: Deep Transformers often suffer from diminishing returns. The "Re-attention" mechanism allows the model to go deeper (24 blocks) while still learning new, useful information at every layer.
  • Cross-Dataset Robustness: One of the biggest hurdles in Deepfake detection is "generalization"—a model trained on one type of fake often fails on another. DCPT showed significantly better transferability than previous SOTA models.

Key Results

The DCPT model consistently outperformed top-tier baselines like Xception and MAT:

  • Within-Dataset (FF++): Achieved 92.11% Accuracy and 97.66% AUC, surpassing the previous best (Xception) by a healthy margin.
  • Cross-Dataset Performance: When trained on FF++ and tested on the difficult Celeb-DF dataset, DCPT achieved 72.43% AUC. For comparison, the widely used Xception model only managed 65.86% in the same test.
  • Ablation Success: The authors proved that adding keyframes to the training set boosted AUC by 6% to 10% across different datasets, confirming that data quality (via keyframe selection) is just as important as model architecture.

Limitations and Future Work

While the results are impressive, the authors acknowledge a few hurdles:

  • Intentional Deception: If a highly sophisticated attacker intentionally creates fakes that mimic the high-quality properties of keyframes, the model might be more easily fooled.
  • Preprocessing Dependency: The model relies on the DLIB library for face cropping; errors in initial face detection could propagate through the system.
  • Future Directions: The researchers suggest exploring even more robust ways to handle diverse video compression formats and potentially integrating temporal (time-based) analysis across multiple keyframes to further boost accuracy.

Summary updated

BibTeX
@article{wang2023deep,
  author = {Tianyi Wang and Harry Cheng and Kam-Pui Chow and Liqiang Nie},
  title = {{Deep Convolutional Pooling Transformer for Deepfake Detection}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2023},
  doi = {10.1145/3588574},
}
Figure