Abstract
With the rapid advancement of neural audio codecs, codec-based speech generation (CoSG) systems have become highly powerful. Unfortunately, CoSG also enables the creation of highly realistic deepfake speech, making it easier to mimic an individual's voice and spread misinformation. We refer to this emerging deepfake speech generated by CoSG systems as CodecFake. Detecting such CodecFake is an urgent challenge, yet most existing systems primarily focus on detecting fake speech generated by traditional speech synthesis models. In this paper, we introduce CodecFake+, a large-scale dataset designed to advance CodecFake detection. To our knowledge, CodecFake+ is the largest dataset encompassing the most diverse range of codec architectures. The training set is generated through re-synthesis using 31 publicly available open-source codec models, while the evaluation set includes web-sourced data from 17 advanced CoSG models. We also propose a comprehensive taxonomy that categorizes codecs by their root components: vector quantizer, auxiliary objectives, and decoder types. Our proposed dataset and taxonomy enable detailed analysis at multiple levels to discern the key factors for successful CodecFake detection. At the individual codec level, we validate the effectiveness of using codec re-synthesized speech (CoRS) as training data for large-scale CodecFake detection. At the taxonomy level, we show that detection performance is strongest when the re-synthesis model incorporates disentanglement auxiliary objectives or a frequency-domain decoder. Furthermore, from the perspective of using all the CoRS training data, we show that our proposed taxonomy can be used to select better training data for improving detection performance. Overall, we envision that CodecFake+ will be a valuable resource for both general and fine-grained exploration to develop better anti-spoofing models against CodecFake.
Introduction: The Rise of Codec-Based Speech Generation
The "cat and mouse" game of deepfake detection has entered a new era. Traditional synthetic speech was built using vocoders—algorithms that turn acoustic features into sound. However, the latest state-of-the-art systems, such as VALL-E and NaturalSpeech, utilize Neural Audio Codecs (NACs). These codecs compress audio into discrete "tokens" (similar to how Large Language Models treat text), allowing for incredibly realistic voice cloning from just a three-second sample.
Current anti-spoofing models, often trained on older vocoder-based datasets like ASVspoof, struggle to identify these codec-based fakes. There is a critical lack of large-scale, diverse data specifically targeting the unique "fingerprints" left behind by neural codecs. Furthermore, the community lacked a systematic way to categorize these codecs to understand which architectural features make a deepfake easier or harder to detect.
Methodology: Re-Synthesis and Taxonomy
To address the scarcity of high-quality training data, the researchers focused on Codec Re-Synthesized Speech (CoRS). Since many high-end CoSG models are private or computationally expensive, the team simulated "fake" data by passing real speech through a codec's encoder and decoder. This re-synthesized audio contains the same artifacts as a fully generated deepfake, providing a highly effective proxy for training.
A core contribution of this work is the Neural Audio Codec Taxonomy, which categorizes codecs by three primary attributes:
- Vector Quantizer (VQ): How audio is turned into discrete tokens (e.g., Multi-codebook vs. Scalar quantization).
- Auxiliary Objectives: Extra training goals like "disentanglement" (separating speaker identity from content).
- Decoder Type: Whether the model reconstructs audio in the Time-domain (raw waveforms) or Frequency-domain (spectrograms).
By using this taxonomy, the researchers developed "Taxonomy-Guided Balancing" strategies to select training data that prevents the model from overfitting to one specific type of codec.
The CodecFake+ Dataset
CodecFake+ is currently the largest and most diverse dataset for detecting codec-based deepfakes. It significantly expands the scope of previous efforts by incorporating a wider variety of codec architectures and generative models.
- Training Set: Generated via re-synthesis (CoRS) using 31 different neural codec models (including EnCodec, DAC, and HiFi-Codec).
- Evaluation Set: Includes web-sourced samples from 17 advanced CoSG models (like VioLA, UniAudio, and RALL-E) to test real-world performance against unseen threats.
- Bona Fide Data: The researchers utilized the VCTK corpus for real speech samples to ensure a robust baseline for comparison.
Key Results and Insights
The performance was measured using the Equal Error Rate (EER), where a lower percentage indicates better detection accuracy:
- Traditional Models Fail: A state-of-the-art model trained on the standard ASVspoof2019 dataset (vocoder-based) had an EER of 18.92% when trying to detect codec-based fakes.
- CodecFake+ Success: Models trained on the new dataset using "DEC Balance" (balancing by decoder type) achieved a significantly improved EER of 11.91%.
- Architectural Fingerprints: The research found that detection is strongest when the codec uses disentanglement objectives or a frequency-domain decoder. These components leave distinct traces that act as a "tell" for detection models.
- Generalization: The CodecFake+ models successfully detected fakes from codecs not included in the training set (e.g., CLaM-TTS and NaturalSpeech 2), proving that taxonomy-based training captures fundamental "fake" characteristics rather than just memorizing specific models.
Conclusion
CodecFake+ provides a vital resource for developing the next generation of anti-spoofing models. While the current dataset focuses primarily on English, it establishes a framework for multi-level analysis that can be expanded to multilingual contexts and more complex source-tracing challenges. As neural audio codecs continue to evolve, the taxonomy-guided approach will be essential for staying ahead of increasingly sophisticated synthetic speech.
Summary updated