defense 2025

A Novel Local Focusing Mechanism for Deepfake Detection Generalization

Mingliang Li 1, Lin Yuanbo Wu 2, Changhong Liu 1, Hanxi Li 1

0 citations

α

Published on arXiv

2508.17029

Output Integrity Attack

OWASP ML Top 10 — ML09

Key Finding

LFM achieves 3.7% accuracy and 2.8% average precision improvement over state-of-the-art NPR baseline while running at 1789 FPS on a single A6000 GPU.

LFM (Local Focus Mechanism)

Novel technique introduced


The rapid advancement of deepfake generation techniques has intensified the need for robust and generalizable detection methods. Existing approaches based on reconstruction learning typically leverage deep convolutional networks to extract differential features. However, these methods show poor generalization across object categories (e.g., from faces to cars) and generation domains (e.g., from GANs to Stable Diffusion), due to intrinsic limitations of deep CNNs. First, models trained on a specific category tend to overfit to semantic feature distributions, making them less transferable to other categories, especially as network depth increases. Second, Global Average Pooling (GAP) compresses critical local forgery cues into a single vector, thus discarding discriminative patterns vital for real-fake classification. To address these issues, we propose a novel Local Focus Mechanism (LFM) that explicitly attends to discriminative local features for differentiating fake from real images. LFM integrates a Salience Network (SNet) with a task-specific Top-K Pooling (TKP) module to select the K most informative local patterns. To mitigate potential overfitting introduced by Top-K pooling, we introduce two regularization techniques: Rank-Based Linear Dropout (RBLD) and Random-K Sampling (RKS), which enhance the model's robustness. LFM achieves a 3.7 improvement in accuracy and a 2.8 increase in average precision over the state-of-the-art Neighboring Pixel Relationships (NPR) method, while maintaining exceptional efficiency at 1789 FPS on a single NVIDIA A6000 GPU. Our approach sets a new benchmark for cross-domain deepfake detection. The source code are available in https://github.com/lmlpy/LFM.git


Key Contributions

  • Local Focus Mechanism (LFM) combining a Salience Network (SNet) with Top-K Pooling (TKP) to capture discriminative local forgery cues discarded by Global Average Pooling
  • Two regularization techniques — Rank-Based Linear Dropout (RBLD) and Random-K Sampling (RKS) — to prevent overfitting introduced by Top-K selection
  • Cross-domain generalization across object categories (faces, cars) and generation methods (GANs, Stable Diffusion) with 3.7% accuracy and 2.8% AP gains over SOTA NPR at 1789 FPS

🛡️ Threat Analysis

Output Integrity Attack

Proposes a novel deepfake detection architecture (LFM with SNet + TKP) for identifying AI-generated images across generation domains (GANs, Stable Diffusion) and object categories — directly addresses AI-generated content detection, a core ML09 concern.


Details

Domains
vision
Model Types
cnn
Threat Tags
inference_timedigital
Applications
deepfake detectionai-generated image detection