Introduction
As audio deepfakes grow in sophistication, the research community is shifting its focus from simple binary detection (is it real or fake?) to source tracing (which specific model or codec generated this?). Most existing source tracing methods operate under a "closed-set" assumption, where the model only encounters fake audio from sources it was exposed to during training.
In real-world scenarios, new neural codecs—the generative engines behind modern audio AI—are released frequently. Furthermore, "real" audio is not a monolith; it varies significantly based on recording hardware, room acoustics, and language. This paper introduces Neural Codec Source Tracing (NCST), a task designed to identify the specific neural codec used in a deepfake while remaining robust to unseen codecs and diverse real-world audio environments.
Methodology and Task Definition
The authors define NCST as a multi-class classification problem that must address three distinct challenges:
- In-Distribution (ID) Classification: Accurately identifying which of the known codecs (e.g., Mimi, SNAC) produced the audio.
- Out-of-Distribution (OOD) Detection: Flagging audio produced by a codec not seen during training.
- Unseen Real Robustness: Ensuring that real audio from unfamiliar environments is correctly classified as "real" (ID 0) rather than being misattributed to a synthetic codec.
To evaluate these capabilities, the researchers benchmarked three baseline architectures: Mel-LCNN (using handcrafted Mel-spectrograms), AASIST (operating on raw waveforms), and W2V2-AASIST (leveraging self-supervised features from a pre-trained Wav2Vec-XLS-R model). They also integrated five state-of-the-art OOD detection methods, finding that logit-based scores like Maximum Softmax Probability (MSP) were particularly effective for this task.
The ST-Codecfake Dataset
To support this research, the authors introduced ST-Codecfake, a massive bilingual (English and Chinese) dataset containing 235,736 samples. The dataset includes:
- Real Audio: Sourced from VCTK and AISHELL3.
- ID Codecs (6): Mimi, SpeechTokenizer, FunCodec, EnCodec, FACodec, and SNAC.
- OOD Codecs (5): WavTokenizer, AcademicCodec, DAC, AudioDec, and SoundStream.
- Robustness Sets: External datasets like ASVspoof2019LA, In the Wild (ITW), and NCSSD were used to test the models' ability to handle real audio from novel distributions.
Key Results and the "Unseen Real" Trap
The experimental results reveal a significant performance gap between controlled and open-set conditions. While the W2V2-AASIST model achieved a near-perfect 99.99% F1-score on known codecs, its performance plummeted when faced with real audio from unfamiliar sources.
As shown in the table above, models are prone to "overfitting" to the specific acoustic characteristics of their training "real" audio. For instance, on the "In the Wild" (ITW) real audio set, the best model's F1-score for the "real" category dropped to 77.01%, and it fell as low as 4.77% on the NCSSD set. This suggests that models often mistake environmental noise or different microphone signatures for the artifacts of a synthetic codec.
Despite these challenges, NCST proved highly effective for attributing Audio Language Models (ALMs). Because models like Moshi or Mini-omni use specific codecs (like Mimi) as their backbone, identifying the codec allows for 100% accurate attribution of the generative model, providing a vital layer of interpretability for deepfake forensics.
Conclusion
Neural Codec Source Tracing represents a significant step toward explainable deepfake detection. While current models can identify known codecs with extreme precision, the "unseen real" trap remains a major hurdle. Future work must focus on increasing the diversity of real-world audio during training to ensure that models do not mistake novel acoustic environments for synthetic generation.
Summary updated