Add model card for the source tracing checkpoints
Browse files
README.md
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
pipeline_tag: audio-classification
|
| 5 |
+
datasets:
|
| 6 |
+
- CodecFake/CodecFake_Plus_Dataset
|
| 7 |
+
tags:
|
| 8 |
+
- audio
|
| 9 |
+
- speech
|
| 10 |
+
- deepfake-detection
|
| 11 |
+
- audio-deepfake-detection
|
| 12 |
+
- anti-spoofing
|
| 13 |
+
- source-tracing
|
| 14 |
+
- neural-audio-codec
|
| 15 |
+
- codecfake
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# CodecFake Source Tracing Checkpoints
|
| 19 |
+
|
| 20 |
+
[](https://arxiv.org/abs/2505.12994)
|
| 21 |
+
[](https://arxiv.org/abs/2506.07294)
|
| 22 |
+
[](https://github.com/ResponsibleGenAI/CodecFake-Source-Tracing)
|
| 23 |
+
[](https://huggingface.co/datasets/CodecFake/CodecFake_Plus_Dataset)
|
| 24 |
+
[](https://responsiblegenai.github.io/CodecFake-Plus-Dataset/)
|
| 25 |
+
|
| 26 |
+
Pretrained model checkpoints for our source tracing work on codec-based deepfake speech. Training and inference code is on [GitHub](https://github.com/ResponsibleGenAI/CodecFake-Source-Tracing).
|
| 27 |
+
|
| 28 |
+
🏆 [Towards Generalized Source Tracing for Codec-Based Deepfake Speech](https://arxiv.org/abs/2506.07294) received a **Best Student Paper Nomination (Top 2.5%)** at IEEE ASRU 2025.
|
| 29 |
+
|
| 30 |
+
## Tasks and Training Subsets
|
| 31 |
+
|
| 32 |
+
| Task | Meaning |
|
| 33 |
+
|---|---|
|
| 34 |
+
| `BIN` | Binary spoof detection |
|
| 35 |
+
| `VQ` | Vector quantization source tracing |
|
| 36 |
+
| `AUX` | Auxiliary objective source tracing |
|
| 37 |
+
| `DEC` | Decoder type source tracing |
|
| 38 |
+
|
| 39 |
+
| Subset | Sampling in the training data |
|
| 40 |
+
|---|---|
|
| 41 |
+
| `vq` | MVQ : SVQ : SQ = 1 : 1 : 1 |
|
| 42 |
+
| `aux` | None : Semantic Distillation : Disentanglement = 1 : 1 : 1 |
|
| 43 |
+
| `dec` | Time : Frequency = 1 : 1 |
|
| 44 |
+
|
| 45 |
+
## Checkpoints
|
| 46 |
+
|
| 47 |
+
### Wav2Vec2-AASIST
|
| 48 |
+
|
| 49 |
+
Files are in `model_checkpoints/Wav2Vec2_baseline/`.
|
| 50 |
+
|
| 51 |
+
| Model | Learning | Task | Trained on | Files |
|
| 52 |
+
|---|---|---|---|---|
|
| 53 |
+
| `S_BIN` | Single-task | BIN | vq / aux / dec | `S_BIN_VQ_bal.pth`, `S_BIN_AUX_bal.pth`, `S_BIN_DEC_bal.pth` |
|
| 54 |
+
| `S_VQ` | Single-task | VQ | vq | `S_VQ.pth` |
|
| 55 |
+
| `S_AUX` | Single-task | AUX | aux | `S_AUX.pth` |
|
| 56 |
+
| `S_DEC` | Single-task | DEC | dec | `S_DEC.pth` |
|
| 57 |
+
| `D_VQ` | Dual-task | BIN / VQ | vq | `D_VQ.pth` |
|
| 58 |
+
| `D_AUX` | Dual-task | BIN / AUX | aux | `D_AUX.pth` |
|
| 59 |
+
| `D_DEC` | Dual-task | BIN / DEC | dec | `D_DEC.pth` |
|
| 60 |
+
| `M1` | Multi-task | BIN / VQ / AUX / DEC | vq / aux / dec | `M1_VQ_bal.pth`, `M1_AUX_bal.pth`, `M1_DEC_bal.pth` |
|
| 61 |
+
| `M2` | Multi-task | VQ / AUX / DEC | vq / aux / dec | `M2_VQ_bal.pth`, `M2_AUX_bal.pth`, `M2_DEC_bal.pth` |
|
| 62 |
+
|
| 63 |
+
### SAST Net
|
| 64 |
+
|
| 65 |
+
Files are in `model_checkpoints/SAST_Net/`.
|
| 66 |
+
|
| 67 |
+
| Task | Trained on | Files |
|
| 68 |
+
|---|---|---|
|
| 69 |
+
| BIN | vq / aux / dec | `SAST_Net_BIN_VQ_bal.pth`, `SAST_Net_BIN_AUX_bal.pth`, `SAST_Net_BIN_DEC_bal.pth` |
|
| 70 |
+
| VQ | vq | `SAST_Net_VQ.pth` |
|
| 71 |
+
| AUX | aux | `SAST_Net_AUX.pth` |
|
| 72 |
+
| DEC | dec | `SAST_Net_DEC.pth` |
|
| 73 |
+
|
| 74 |
+
### Pretrained weights
|
| 75 |
+
|
| 76 |
+
Files are in `model_checkpoints/Pretrain_weight/`.
|
| 77 |
+
|
| 78 |
+
| File | Description | Used by |
|
| 79 |
+
|---|---|---|
|
| 80 |
+
| `xlsr2_300m.pt` | Wav2Vec2 pretrained weight | Wav2Vec2-AASIST, SAST Net |
|
| 81 |
+
| `mae_pretrained_base.pth` | AudioMAE pretrained on AudioSet | SAST Net |
|
| 82 |
+
| `tuned_weight.pth` | Wav2Vec2-AASIST on CodecFake+ | SAST Net |
|
| 83 |
+
|
| 84 |
+
## Usage
|
| 85 |
+
|
| 86 |
+
Download a checkpoint:
|
| 87 |
+
|
| 88 |
+
```python
|
| 89 |
+
from huggingface_hub import hf_hub_download
|
| 90 |
+
|
| 91 |
+
checkpoint = hf_hub_download(
|
| 92 |
+
repo_id="CodecFake/CodecFake_Source_Tracing",
|
| 93 |
+
filename="model_checkpoints/SAST_Net/SAST_Net_VQ.pth",
|
| 94 |
+
)
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
Setup, inference, and training commands are in the [GitHub README](https://github.com/ResponsibleGenAI/CodecFake-Source-Tracing).
|
| 98 |
+
|
| 99 |
+
> **Note:** The `metadata/` files in the GitHub repository use the file names from our internal copy of the dataset. The public [CodecFake+ release](https://huggingface.co/datasets/CodecFake/CodecFake_Plus_Dataset) uses a different layout and different CoSG file names, so the paths need to be adapted before running the scripts.
|
| 100 |
+
|
| 101 |
+
## Citation
|
| 102 |
+
|
| 103 |
+
```bibtex
|
| 104 |
+
@inproceedings{chen2025towards,
|
| 105 |
+
title = {Towards Generalized Source Tracing for Codec-Based Deepfake Speech},
|
| 106 |
+
author = {Chen, Xuanjun and Lin, I-Ming and Zhang, Lin and Wu, Haibin and Lee, Hung-yi and Jang, Jyh-Shing Roger},
|
| 107 |
+
booktitle = {2025 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU)},
|
| 108 |
+
pages = {1--8},
|
| 109 |
+
year = {2025},
|
| 110 |
+
doi = {10.1109/ASRU65441.2025.11434771}
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
@inproceedings{chen2025codec,
|
| 114 |
+
title = {Codec-Based Deepfake Source Tracing via Neural Audio Codec Taxonomy},
|
| 115 |
+
author = {Chen, Xuanjun and Lin, I-Ming and Zhang, Lin and Du, Jiawei and Wu, Haibin and Lee, Hung-yi and Jang, Jyh-Shing Roger},
|
| 116 |
+
booktitle = {{INTERSPEECH 2025}},
|
| 117 |
+
pages = {1538--1542},
|
| 118 |
+
year = {2025},
|
| 119 |
+
doi = {10.21437/Interspeech.2025-1297}
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
@article{chen2026codecfake+,
|
| 123 |
+
title = {{CodecFake+}: Codec-Based Resynthesized Data as a Proxy for Detecting {CodecFake} Speech},
|
| 124 |
+
author = {Chen, Xuanjun and Du, Jiawei and Wu, Haibin and Zhang, Lin and Lin, I-Ming and Chiu, I-Hsiang and Ren, Wenze and Tseng, Yuan and Tsao, Yu and Jang, Jyh-Shing Roger and Lee, Hung-yi},
|
| 125 |
+
journal = {IEEE Transactions on Audio, Speech and Language Processing},
|
| 126 |
+
volume = {34},
|
| 127 |
+
pages = {2929--2944},
|
| 128 |
+
year = {2026},
|
| 129 |
+
doi = {10.1109/TASLPRO.2026.3692291}
|
| 130 |
+
}
|
| 131 |
+
```
|