Suppressing Forgery-Specific Shortcuts for Generalizable Deepfake Detection

Yihui Wang, Yonghui Yang, Jilong Liu, Fengbin Zhu, Le Wu, Tat-Seng ChuaarXiv 2026

TL;DR

Deepfake detectors often fail on unseen manipulation methods because they overfit to generator-specific "shortcuts" rather than learning universal forensic cues. This paper introduces the Shortcut Subspace Suppression ($S^3$) framework, which isolates these shortcut directions using a linear probe and Singular Value Decomposition (SVD). By suppressing this subspace during training or editing neuron activations at inference, $S^3$ dramatically improves cross-method generalization with minimal computational overhead.

What Problem Does This Paper Address?

As deep generative models like GANs and diffusion models advance, deepfakes are becoming increasingly realistic. While modern deepfake detectors achieve excellent accuracy on the specific forgery methods they were trained on, their performance often collapses when encountering new, unseen manipulation techniques.

This generalization failure happens because neural networks are inherently "lazy" optimizer pipelines: they latch onto easy, method-specific shortcuts (such as distinct texture artifacts unique to a specific generator) rather than learning robust, universal concepts of what makes an image "real" versus "fake." Standard approaches try to fix this implicitly via data augmentation or adversarial invariance. However, they don't explicitly identify which parts of the learned representations are causing the failure, leaving models vulnerable to embedding new shortcuts.

Methods

The authors propose the Shortcut Subspace Suppression ($S^3$) framework to explicitly isolate and neutralize these shortcut representations through two distinct, complementary strategies:

  1. Shortcut Subspace Extraction: To find where the shortcuts live, the authors train a lightweight linear probe on top of the feature extractor to classify the forgery method (e.g., StyleGAN vs. VQGAN). They then perform Singular Value Decomposition (SVD) on the probe's weight matrix. The top singular vectors define a low-dimensional method-sensitive subspace that explicitly captures the shortcut directions.

  2. Null Space Projection (NSP) [Training-Time]: During training, NSP alters the optimization trajectory. It projects the loss gradients onto the null space of the identified shortcut subspace. This mathematically prevents the model from updating its weights along shortcut-aligned directions, forcing it to look for more transferable forensic cues.

  3. Neuron Activation Editing (NAE) [Inference-Time]: For already-trained models, the authors introduce a post-hoc, training-free intervention. By analyzing neuron roles, they identify "shortcut neurons"—units that are both highly critical to the final real/fake decision and highly sensitive to the forgery method. At inference time, NAE simply scales down the activations of these offending neurons.

Overview of the proposed S³ framework showing training-time Null Space Projection (NSP) and inference-time Neuron Activation Editing (NAE).

Datasets

The framework was evaluated using the following data setups:

  • DF40: A large-scale benchmark containing 40 deepfake manipulation techniques across four broad categories: Face Swapping (FS), Face Reenactment (FR), Entire Face Synthesis (EFS), and Face Editing (FE).
  • FaceForensics++ (FF++): Used as the source for authentic (real) video data to ensure a reliable baseline.

The authors explicitly structured their experiments to evaluate cross-method generalization by training on a single forgery category (e.g., Face Reenactment) and testing on entirely different categories (e.g., Face Editing).

Key Insights and Ideas

  • Shortcuts are Low-Rank: SVD analysis reveals that method-specific biases concentrate heavily within the first few singular components. This means shortcuts occupy a very low-dimensional subspace within the high-dimensional feature space.
  • The Subspace Proof: When features are projected only onto the method-sensitive subspace, the model maintains high performance on the training domain but completely collapses on unseen domains. This explicitly confirms that this subspace is the root cause of generalization failure.
Figure 2: (a) Singular value energy distribution: the first few components concentrate most energy, indicating a low-rank method-sensitive subspace. (b) AUC comparison between the original and subspace-projected features input. On the training domain (FR), the projected features retains most performance; on unseen domains (FS, EFS, FE), its AUC col- lapses, confirming that the subspace encodes the shortcut directions in the feature space.
  • Surgical Disruption: Standard models naturally cluster fake samples by their generation method (e.g., grouping all StyleGAN images together). Suppressing the shortcut subspace effectively dissolves these method-specific clusters while preserving the clean separation between real and fake samples.
Figure 1: t-SNE visualization on DF40 (EFS). (a) Xception Base- line: real (red) and fake (other colors) are clearly separable; fake samples colored by forgery method form distinct clus- ters, revealing method-specific representation patterns. (b) After projecting features onto the nullspace of the method- sensitive subspace, method-specific clusters dissolve while real/fake separation persists.

Key Results

  • Massive Generalization Gains: On severe distribution shifts, the improvements are stark. For an Xception model trained on Face Reenactment (FR) and tested on Face Editing (FE), the baseline AUC is a disastrous 0.3774. Applying inference-time NAE boosts the AUC to 0.9066—a 140% relative improvement.
  • Architecture Agnostic: The framework consistently improves cross-domain performance across diverse backbones, including Xception, ResNet50, EfficientNet-B4, and CLIP (ViT-B/16). For instance, NSP improves a ResNet50 model's cross-domain AUC on EFS from 0.6767 to 0.7604.
  • High Efficiency: Unlike heavy adversarial training methods, $S^3$ is incredibly lightweight. NSP adds only about 30 seconds per training epoch, while the inference-time NAE requires zero backbone retraining and adds less than 0.12 ms of latency per image.

Limitations and Future Work

  • In-Domain Trade-off: The authors note a minor penalty on in-domain performance (typically a $\le 0.3\%$ decrease in AUC). This is an expected trade-off: barring the model from using easy, domain-specific shortcuts slightly limits its capacity on its native training distribution.
  • Non-Additive Combinations: Interestingly, combining NSP (training-time) and NAE (inference-time) does not always yield cumulative improvements. In some settings, they can over-attenuate overlapping feature directions, suggesting that future work is needed to better calibrate joint optimization and inference interventions.

Summary updated

Abstract

Deepfake detection suffers from poor generalization across forgery methods, as existing models tend to rely on spurious method-specific shortcuts that fail to transfer to unseen manipulations. While recent approaches attempt to improve generalization, they lack an explicit mechanism to identify and suppress such shortcuts in learned representations. In this work, we propose Shortcut Subspace Suppression (S^3) framework that explicitly characterizes and suppresses method-specific shortcuts via subspace modeling. Our key insight is that variations distinguishing different forgery methods capture method-specific artifacts and thus serve as an effective proxy for method-specific shortcuts. To this end, we train a lightweight linear probe for forgery method classification and perform Singular Value Decomposition (SVD) to extract the dominant shortcut subspace. Building on this formulation, we develop two complementary strategies to reduce shortcut reliance. During training, we softly suppress the shortcut subspace in feature representations, encouraging the model to rely on more generalizable cues for real/fake discrimination. At inference time, we introduce a training-free counterpart that attenuates neurons aligned with the identified shortcut directions, enabling plug-and-play generalization enhancement with improved interpretability. Extensive experiments on multiple benchmarks demonstrate that our method significantly improves cross-method generalization while maintaining strong in-domain performance. The code will be released upon acceptance of the submission.
BibTeX
@misc{wang2026suppressing,
  author = {Yihui Wang and Yonghui Yang and Jilong Liu and Fengbin Zhu and Le Wu and Tat-Seng Chua},
  title = {{Suppressing Forgery-Specific Shortcuts for Generalizable Deepfake Detection}},
  year = {2026},
  eprint = {2606.01843},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.01843},
}

Loading related content...

Figure