Towards Generalized Source Tracing for Codec-Based Deepfake Speech

Xuanjun Chen, I-Ming Lin, Lin Zhang, Haibin Wu, Hung-yi Lee, Jyh-Shing Roger JangarXiv 2025 · DOI

Abstract

Tracing the exact generative model behind a deepfake audio clip is notoriously difficult, especially for modern neural codec-based speech. This paper introduces SASTNet, a novel architecture that combines semantic features (via Whisper) with acoustic fingerprints (via Wav2vec 2.0 and AudioMAE) to prevent models from overfitting to silence and unseen words. The result is a state-of-the-art method for tracing the source of codec-based deepfakes that generalizes significantly better to unseen generative models.

Introduction

The field of audio deepfake detection is moving beyond simple binary classification (real vs. fake) toward source tracing—identifying the specific architecture, attributes, or algorithm used to generate the fake audio. This is crucial for understanding the origin of synthetic threats in the wild.

Recently, neural audio codec-based speech generation (CoSG) models have become the standard. While these codecs leave distinct "fingerprints" (like specific vector quantization schemes or decoder types), tracing models struggle to find them in real-world scenarios. Specifically, models trained on simulated data (codec-resynthesized speech) often fail when tested on actual CoSG-generated audio. The authors identify two main culprits for this generalization failure: silence variability, where models overfit to background noise in pauses, and unseen content, where models confuse natural acoustic variations from new words with actual codec artifacts.

Methodology: SASTNet

To address these challenges, the authors propose the Semantic-Acoustic Source Tracing Network (SASTNet). The core idea is that effective source tracing requires understanding what is being said (semantics) to isolate the unnatural distortions in how it sounds (acoustics).

SASTNet Architecture: The system comprises a Semantic Encoder (Whisper) and a multi-stage Acoustic Encoder (Wav2Vec 2.0 and AudioMAE) fused via cross-attention.

SASTNet consists of three main components:

  • Semantic Encoder: Uses a frozen, pre-trained Whisper model to extract high-level linguistic embeddings. This acts as a stable "anchor," ensuring the network ignores natural acoustic variations caused by different pronunciations.
  • Coarse-to-Fine Acoustic Encoder: First, a fine-tuned Wav2vec 2.0 (W2V2) model captures broad codec anomalies. These features are then passed into a multi-decoder AudioMAE (Masked Autoencoder). Each decoder is specialized to reconstruct a specific codec class; the one with the lowest reconstruction error helps identify the source.
  • Semantic-Acoustic Fusion: A cross-attention Transformer module where semantic queries attend to acoustic keys/values (and vice versa). This explicitly highlights the mismatch between the expected pronunciation and the actual audio, isolating the codec distortions before passing the data to a final classifier.

Experimental Setup and Datasets

The paper utilizes the CodecFake+ dataset, a large-scale benchmark specifically designed for neural audio codec-based deepfakes.

Waveform comparison between resynthesized (CoRS) and fully generated (CoSG) speech across different models.
  • Training (CoRS): The model is trained on the CoRS subset, which consists of bona fide speech resynthesized through pre-trained neural audio codecs.
  • Evaluation (CoSG): The model is tested on the CoSG subset, featuring speech fully generated by codec-based text-to-speech or voice conversion models. This setup explicitly tests how well models handle unfamiliar spoken content and generative artifacts.

Key Insights

  • Silence is a Trap: Baseline models were found to be "cheating" by analyzing silent segments. When silence was removed, baseline performance dropped by ~27%. SASTNet's design significantly reduces this vulnerability.
  • Semantics as an Anchor: By providing linguistic content via Whisper, the model learns to look for acoustic distortions on top of the words, rather than being fooled by the phonemes of newly introduced words.
  • SSL Feature Robustness: Self-supervised learning features (like W2V2) proved much more invariant to spoken content than traditional Mel-spectrograms, helping close the performance gap between seen and unseen speech.

Results and Conclusion

SASTNet achieved state-of-the-art results across three source tracing tasks: Auxiliary Objective (AUX), Vector Quantization (VQ), and Decoder Type (DEC). On the challenging CoSG test set, SASTNet reached F1 scores of 43.47% (AUX), 48.17% (VQ), and 40.71% (DEC), significantly outperforming baselines.

While SASTNet represents a major step forward, the absolute performance on fully generated data remains a challenge. Future work will focus on modeling generative artifacts more robustly to improve tracing fidelity in real-world, open-set scenarios.

Summary updated

BibTeX
@misc{chen2025towards,
  author = {Xuanjun Chen and I-Ming Lin and Lin Zhang and Haibin Wu and Hung-yi Lee and Jyh-Shing Roger Jang},
  title = {{Towards Generalized Source Tracing for Codec-Based Deepfake Speech}},
  year = {2025},
  eprint = {2506.07294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07294},
}
Figure