Codec-Based Deepfake Source Tracing via Neural Audio Codec Taxonomy

Xuanjun Chen, I-Ming Lin, Lin Zhang, Jiawei Du, Haibin Wu, Hung-yi Lee, Jyh-Shing Roger Jang

Abstract

As generative speech models increasingly leverage neural audio codecs, the need for sophisticated source tracing has become paramount. This paper proposes a Neural Audio Codec Taxonomy that decomposes codecs into three core components: Vector Quantization (VQ), Auxiliary Objectives (AUX), and Decoder Types (DEC). By employing a multi-task learning framework, we demonstrate that these architectural choices serve as technical "fingerprints" for deepfake forensics. Our results show that this approach not only enables effective source tracing but also enhances the performance of traditional binary spoof detection.

Introduction

The rapid advancement of AI-generated speech has shifted the focus of deepfake detection from simple binary classification—determining if audio is real or fake—to source tracing. Identifying the specific model or algorithm used to generate a spoof is critical for accountability and forensic analysis. However, existing source tracing methods often rely on specific "System IDs," which lack generalizability to unseen models.

This research, presented at Interspeech 2025, introduces a paradigm shift by focusing on the underlying neural audio codecs. Since most modern high-quality synthesis models (e.g., Val-E, Spear-TTS) utilize codecs to compress and reconstruct audio, the specific design choices within these codecs leave unique digital signatures.

Neural Audio Codec Taxonomy

The authors categorize the technical attributes of neural codecs into a three-part taxonomy:

  1. Vector Quantization (VQ): The method of mapping continuous features to discrete tokens (e.g., Multi-codebook vs. Scalar quantization).
  2. Auxiliary Objectives (AUX): Training goals beyond reconstruction, such as semantic distillation or attribute disentanglement.
  3. Decoder Types (DEC): The domain of reconstruction, typically either the Time domain (via transposed convolutions) or the Frequency domain (via Inverse STFT).

Methodology: Multi-Task Learning Framework

To operationalize this taxonomy, a multi-task learning architecture was developed. The system utilizes a shared frontend—integrating Wav2Vec 2.0 and RawNet2—which extracts features that are then processed by four specialized backend heads.

The multi-task learning framework architecture, illustrating the shared frontend and specialized backend heads for binary detection and taxonomy classification.

Each head performs a distinct classification task: Binary Spoof Detection (distinguishing real from fake audio) and VQ/AUX/DEC Classification (identifying the specific codec attributes used during generation).

Experimental Setup and Datasets

The framework was evaluated using the CodecFake+ dataset, which consists of two primary subsets:

  • CoRS (Codec Resynthesized Speech): Real audio passed through various codecs to isolate codec-specific artifacts.
  • CoSG (Codec-based Speech Generation): Full deepfakes produced by end-to-end generative models.

To prevent the model from simply memorizing system identities, the researchers employed "taxonomy-guided sampling" to balance the training data across different codec attributes.

Results and Discussion

The experimental results highlight both the potential and the challenges of codec-based tracing. On the CoRS dataset, the model achieved near-perfect F1 scores (96%–97%) for all tracing tasks, confirming that codecs leave distinct, detectable traces.

Performance comparison (F1 scores) across different taxonomy tasks and sampling strategies, demonstrating the effectiveness of taxonomy-guided balancing.

However, performance on the CoSG dataset (fully generated speech) was lower, with VQ and AUX tracing reaching F1 scores of approximately 52% and 41%, respectively. This "generative gap" suggests that the language models used in deepfake generation add layers of complexity that can partially obscure the codec's signature. Notably, the multi-task approach improved binary spoof detection, with the M2 model reaching an Equal Error Rate (EER) of 1.05% on resynthesized audio.

Conclusion

By decomposing neural audio codecs into a structured taxonomy, this work provides a path toward more explainable and generalizable deepfake forensics. While tracing fully generated speech remains a significant challenge, the use of codec attributes as technical fingerprints offers a more robust alternative to traditional system-based identification. Future research will focus on bridging the generative gap and improving robustness against unseen codec architectures.

Summary updated

BibTeX
@inproceedings{chen2025codec,
  author = {Xuanjun Chen and I-Ming Lin and Lin Zhang and Jiawei Du and Haibin Wu and Hung-yi Lee and Jyh-Shing Roger Jang},
  title = {{Codec-Based Deepfake Source Tracing via Neural Audio Codec Taxonomy}},
  booktitle = {Interspeech},
  year = {2025},
  doi = {10.21437/interspeech.2025-1297},
}
Figure