Texture-aware and Shape-guided Transformer for Sequential DeepFake Detection

Yunfei Li, Yuezun Li, Xin Wang, Jiaran Zhou, Junyu Dong · DOI

Introduction

In the rapidly evolving landscape of generative AI, DeepFake detection has moved beyond simple binary classification. While traditional detectors focus on determining whether an image is "Real" or "Fake," modern facial manipulation tools allow for complex, multi-step edits. This gives rise to the need for Sequential DeepFake Detection (SDD), a task aimed at identifying not just the presence of manipulation, but the specific sequence of edits applied to a face.

Example of sequential facial manipulation where multiple features (eyes, nose) are edited iteratively.

The Challenge of Sequential DeepFake Detection

SDD is significantly more complex than standard detection due to several factors. First, generative models often leave subtle, fine-grained artifacts that are easily overlooked by global self-attention mechanisms. Second, the "layering effect" of sequential edits means that later manipulations (e.g., changing skin tone) can partially obscure the traces of earlier ones (e.g., modifying the nose shape). Finally, manipulations follow irregular biological contours rather than neat geometric boxes, requiring models to be spatially aware.

Methodology: The TSOM++ Framework

To address these challenges, researchers introduced TSOM (Texture, Shape, and Order of Manipulations) and its enhanced version, TSOM++. This architecture moves away from standard forward-prediction models, opting instead for a more forensic approach.

Comparison of DeepFake detection paradigms and the proposed TSOM/TSOM++ architecture.

Key Architectural Innovations

  • Diversiform Pixel Difference Attention (DPDA): Rather than processing raw pixels, DPDA calculates differences between adjacent pixels in central, angular, and radial directions. This allows the model to capture the high-frequency "fingerprints" left by generative processes.
  • Shape-guided Gaussian Mapping (SGM): Utilizing a Variational Auto-encoder (VAE), the model estimates the likely spatial "shape" of a manipulation. This provides a spatial prior that guides the attention mechanism toward relevant facial regions.
  • Inverted Order Prediction (IOP): A core insight of the paper is the "onion" analogy. The most recent manipulation is the most visible "outer layer." By predicting the sequence in reverse order (e.g., 3 → 2 → 1), the model effectively "peels" away the most obvious traces first, making it easier to uncover earlier, obscured edits.
  • Sequential Manipulations Contrastive Learning (SMCL): In the TSOM++ extension, contrastive loss is used to ensure that representations of specific edit types (e.g., "lip edits") remain consistent across different images while staying distinct from other manipulation types.

Experimental Evaluation

The framework was evaluated on the Sequential DeepFake Dataset, which includes tracks for facial components (28 manipulation types) and facial attributes (26 types). TSOM++ achieved a state-of-the-art Fixed Accuracy (FACC) of 75.94% on the components track, significantly outperforming previous benchmarks like SeqFake-Former.

Furthermore, the model demonstrated high robustness against common image distortions such as noise, compression, and color jittering. The inclusion of the texture-aware DPDA branch was found to be particularly effective in maintaining performance under these challenging conditions.

Conclusion

TSOM++ represents a significant step forward in digital forensics. By combining texture-aware attention with shape-guided priors and an inverted prediction strategy, the model provides a more granular understanding of how DeepFakes are constructed. While challenges remain in perfectly modeling temporal correlations and handling one-step detections, the "onion peeling" approach sets a new standard for traceability in facial manipulation detection.

Summary updated

BibTeX
@misc{li2024texture,
  author = {Yunfei Li and Yuezun Li and Xin Wang and Jiaran Zhou and Junyu Dong},
  title = {{Texture-aware and Shape-guided Transformer for Sequential DeepFake Detection}},
  year = {2024},
  eprint = {2404.13873},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.13873},
}
Figure