|
Download implementation-notes.md from SpeechAntiSpoofingBenchmarks/XLS-R-1B-AntiDeepfake-NDA: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/SpeechAntiSpoofingBenchmarks/XLS-R-1B-AntiDeepfake-NDA/resolve/main/implementation-notes.md
- Command line
-
hf download hf://SpeechAntiSpoofingBenchmarks/XLS-R-1B-AntiDeepfake-NDA/implementation-notes.md
-
curl -L -o implementation-notes.md https://huggingface.co/SpeechAntiSpoofingBenchmarks/XLS-R-1B-AntiDeepfake-NDA/resolve/main/implementation-notes.md
1.42 kB
| # Implementation notes — XLS-R-1B-AntiDeepfake-NDA | |
| - **Source:** nii-yamagishilab/AntiDeepfake (arXiv:2506.21090). Backbone `xlsr_1b`. | |
| - **Load path:** `_net.Model("xlsr_1b")` builds the fairseq SSL frontend from the | |
| vendored config, then `model.safetensors` (from our org copy, commit-pinned) | |
| is loaded with `strict=True`. Key match verified family-wide (e.g. w2v_small: | |
| 220/220 keys, 0 missing/unexpected). | |
| - **Score:** `logits[:, 1]` = real logit = bona fide (source `main.py`: | |
| `scores = preds[:, 1]`; `evaluation.py`: Score=[fake, real], label 1=real). | |
| - **Preprocessing deviation:** the paper evaluates on the *whole* utterance with | |
| per-utterance `layer_norm` and **no trim**. We instead take the **first 4 s | |
| (64 000 samples)**, tile-repeat if shorter, `layer_norm` over that window, and | |
| batch. Reason: the whole-utterance, batch-1 path is far too slow across 14 | |
| models. The window makes every clip uniform length so batching introduces no | |
| adaptive-pool padding artifact. **EER will not match the paper.** | |
| - **Precision:** forward under CUDA autocast fp16 (matches the fp16 training | |
| regime; keeps activation memory low for the large backbones); input layer_norm | |
| computed in fp32. | |
| - **GPUs:** RTX 4070 Ti Super only (idx 1 & 3, `CUDA_DEVICE_ORDER=PCI_BUS_ID`). | |
| - **Restriction:** STRICTLY PROHIBITED on the model's in-domain corpora — see | |
| README. Arena runs ArAD + In-the-Wild only. | |