Addressing Gradient Misalignment in Data-Augmented Training for Robust Speech Deepfake Detection

Duc-Tuan Truong, Tianchi Liu, Junjie Li, Ruijie Tao, Kong Aik Lee, Eng Siong ChngarXiv 2025 · DOI

TL;DR

Data augmentation is essential for robust speech deepfake detection (SDD), but it often introduces "gradient conflicts" where original and noisy samples pull the model in opposite directions during training. This paper proposes a Dual-Path Data-Augmented (DPDA) framework that identifies and aligns these conflicting gradients, resulting in up to an 18.69% relative improvement in detection accuracy and 43% faster convergence.

What Problem Does This Paper Address?

In Speech Deepfake Detection (SDD), models often perform perfectly on "clean" lab data but fail in real-world scenarios involving compression, background noise, or new spoofing attacks. To address this, researchers use Data Augmentation (DA)—artificially adding noise or reverb to training samples to increase robustness.

However, the authors identify a hidden cost: DA makes the optimization process messy. When a model processes an original sample and its noisy counterpart, the mathematical update directions (gradients) often conflict. One path might suggest focusing on speech artifacts, while the other might be distracted by the added noise. This misalignment slows training and can lead the model to suboptimal solutions that overfit to the augmentation itself rather than the underlying signs of a deepfake.

Methods

The authors introduce the Dual-Path Data-Augmented (DPDA) training framework. Instead of the standard approach of feeding the model a mix of original and augmented data, DPDA processes both the original utterance ($x$) and its augmented version ($\tilde{x}$) in parallel through the same model.

Overview of the DPDA training pipeline and the gradient alignment methods (PCGrad, GradVac, CAGrad) used to resolve conflicts.

The core innovation is the application of Gradient Alignment techniques to resolve conflicts between these two paths:

  1. Conflict Detection: The system checks if the gradients from the original and augmented paths are pointing in opposing directions (indicated by a negative inner product).
  2. Gradient Surgery: If a conflict is found, the framework applies an alignment algorithm. The authors tested three: PCGrad (Projected Conflicting Gradient), GradVac, and CAGrad.

Surprisingly, the simplest method, PCGrad, yielded the best results for the SDD task.

Datasets

The models were trained on the ASVspoof2019 Logical Access (LA) dataset. To test real-world robustness, they evaluated the models on three challenging benchmarks:

  • ASVspoof2021 DF (21DF): Focuses on audio that has undergone various codec compressions (like MP3 or OGG).
  • In-the-Wild (ITW): Real-world deepfakes sourced from online media and podcasts.
  • Fake-or-Real (FoR): A diverse dataset of synthetic and authentic speech.

Key Insights and Ideas

  • Conflicts are Frequent: The authors found that in standard training with RawBoost augmentation, approximately 25% of all training iterations suffer from gradient conflicts.
  • Loss Landscape Mismatch: Visualization of the "loss surface" showed that augmented data creates a much more jagged, complex landscape with sharp valleys compared to the relatively smooth landscape of original data. This explains why the gradients often point in different directions.
Visualization of the training loss surfaces for original vs. augmented speech, highlighting the increased complexity introduced by data augmentation.
  • Focus on "Spoof-Related Cues": By aligning the gradients, the model is forced to ignore the "noise" of the augmentation and focus on the underlying features that are consistent between the clean and noisy versions—namely, the artifacts of the deepfake itself.
  • Efficiency Gains: Beyond accuracy, gradient alignment acted as a stabilizer. The model reached its peak performance in just 4 epochs, compared to 14 epochs for the baseline—a 43% speedup in convergence.

Key Results

The DPDA framework with PCGrad consistently outperformed standard training across multiple state-of-the-art architectures (AASIST, Conformer, and Mamba):

  • Accuracy: Achieved a relative reduction in Equal Error Rate (EER) of 18.69% on the In-the-Wild dataset compared to the baseline.
  • Generalization: On the 21DF dataset, the XLSR-Mamba model with gradient alignment achieved an EER of 1.74%, outperforming several recent state-of-the-art models.
  • Robustness: The method showed significant gains even when combining multiple heavy augmentations (MUSAN noise + RIR + RawBoost), proving its versatility.

Limitations and Future Work

  • Computational Overhead: Because the framework processes two versions of every sample, it roughly doubles the memory and computation required per training iteration.
  • Theoretical Gap: While PCGrad worked best, it is not entirely clear why the simplest alignment method outperformed more sophisticated ones like CAGrad in this specific context.
  • Future Directions: The authors suggest developing alignment methods specifically tailored for speech data and exploring how this approach scales to even larger foundation models.

Summary updated

BibTeX
@misc{truong2025addressing,
  author = {Duc-Tuan Truong and Tianchi Liu and Junjie Li and Ruijie Tao and Kong Aik Lee and Eng Siong Chng},
  title = {{Addressing Gradient Misalignment in Data-Augmented Training for Robust Speech Deepfake Detection}},
  year = {2025},
  eprint = {2509.20682},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.20682},
}
Figure