FakeTracer: Proactively Defending Against Face-swap DeepFakes via Implanting Traces in Training

Pu Sun, Honggang Qi, Yuezun Li, Siwei Lyu · DOI

Abstract

FakeTracer is a proactive defense framework designed to protect facial images from face-swap DeepFakes by embedding imperceptible digital traces before they are potentially misused. Unlike reactive detection methods that search for artifacts in finished videos, FakeTracer "vaccinates" photos using two distinct types of traces: a Sustainable Trace (STrace) that survives the DeepFake creation process and an Erasable Trace (ETrace) that is intentionally removed by the model's inherent denoising behavior. This dual-trace approach allows researchers to definitively identify forged content by the specific "fingerprint" left behind by the AI model itself. Evaluation on major benchmarks like Celeb-DF and DFDC demonstrates high detection accuracy (up to 95%) and significant robustness against common image processing attacks while maintaining high visual fidelity.

Introduction

Most current DeepFake defenses are reactive, attempting to identify artifacts in a video after it has already been created and disseminated. This approach often leads to a constant cat-and-mouse game where forgers improve their models to hide those specific artifacts.

Proactive defense aims to break this cycle by modifying source images—the "target" identity—so that any model trained on them will inadvertently reveal its own handiwork. Face-swap DeepFakes present a unique challenge; they typically utilize unsupervised auto-encoder architectures to swap one identity onto another. Because these models are trained on specific sets of faces scraped from the web, they are susceptible to "poisoning" or "tracing" during the training phase. The challenge lies in creating a trace that is subtle enough to maintain image quality but robust enough to survive the "bottleneck" of an AI's encoding-decoding process.

Overview of the proactive defense framework (c, d) compared to the standard DeepFake pipeline (a, b).

Methodology

The core of FakeTracer is the implantation of two distinct types of digital watermarks:

  1. Sustainable Trace (STrace): An imperceptible perturbation designed to be "learned" by the DeepFake model as a facial feature. It is engineered to be robust enough to survive the auto-encoder's compression bottleneck.
  2. Erasable Trace (ETrace): A fragile perturbation (e.g., specific pixel values in the blue channel) that the DeepFake model perceives as noise. Because the model aims to reconstruct a clean face, it naturally wipes out the ETrace during training.

The Logic of Detection

By analyzing the presence of these traces, defenders can categorize images:

  • Real Image (Protected): Contains both STrace and ETrace.
  • Real Image (Unprotected): Contains neither.
  • DeepFake Image: Contains only STrace. The model successfully cloned the STrace (perceiving it as a feature) but cleaned the ETrace (perceiving it as noise).
The FakeTracer pipeline showing trace implantation, the training reconstruction process, and the final generation where only the STrace remains.

To implement this, the authors developed an STrace Generator and a DeepFake Simulator. The simulator mimics the general behavior of face-swap architectures, allowing the STrace to be trained for maximum survivability across various potential attacker models.

Evaluation and Results

The researchers evaluated FakeTracer using three major DeepFake benchmarks: Celeb-DF, DFDC (DeepFake Detection Challenge), and FaceForensics++. They also tested against popular model architectures like DeepFaceLab.

  • High Detection Accuracy: On the Celeb-DF dataset, FakeTracer achieved a detection accuracy (D-Acc) of 95%, significantly outperforming passive detectors like CNND and RFM in this specific proactive context.
  • Robustness: The STrace proved highly resilient, maintaining over 90% bit accuracy even after the generated video underwent JPEG compression, blurring, or Gaussian noise.
  • Visual Fidelity: The traces are nearly invisible. In a user study, participants could barely distinguish between clean images and protected ones, with a mean score difference of only 0.29 on a 10-point scale.

Discussion and Future Work

FakeTracer exploits the auto-encoder's greatest strength—its ability to denoise and generalize—and turns it into a weakness. Because face-swapping is often unsupervised, the model is forced to learn the STrace if it appears consistently across the training data.

However, limitations remain. The detection reliability can drop if the model is trained on frontal faces but generates faces at extreme profile angles. Additionally, while global traces are effective, localizing them (e.g., around the nose) can sometimes degrade visual quality if the trace density becomes too high. Future research may explore Vision Transformers (ViTs) for the STrace generator to increase the information capacity of the hidden traces without impacting visual quality.

Summary updated

BibTeX
@article{sun2025faketracer,
  author = {Pu Sun and Honggang Qi and Yuezun Li and Siwei Lyu},
  title = {{FakeTracer: Proactively Defending Against Face-swap DeepFakes via Implanting Traces in Training}},
  journal = {IEEE Trans. Emerg. Top. Comput.},
  year = {2025},
  doi = {10.1109/tetc.2024.3386960},
}
Figure