# Replaydf Eval

> Evaluates the robustness of audio deepfake detection models against replay attacks where deepfake audio is played back and re-recorded through real-world hardware, introducing acoustic distortions and room impulse responses. Use when the user wants to benchmark on ReplayDF, or asks about evaluating this task. Reports EER (%).

- Skill: `qhjqhj00/replaydf-eval` (Agent Skill)
- Install (CLI): `npx skillmds add qhjqhj00/replaydf-eval`
- Raw SKILL.md: https://api.skillmd.com/api/skills/qhjqhj00/replaydf-eval/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: qhjqhj00 (https://skillmd.com/u/qhjqhj00)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/qhjqhj00/replaydf-eval

---


# replaydf-eval

> Replay Attacks Against Audio Deepfake Detection — Müller et al. (2025) (arXiv:2505.14862, 2025)

## What this evaluates

Evaluates the robustness of audio deepfake detection models against replay attacks where deepfake audio is played back and re-recorded through real-world hardware, introducing acoustic distortions and room impulse responses.

## Datasets

- **ReplayDF** — total ?; splits: test (-1)

## Metrics

- `EER (%)` **(primary)** — range: percent
  - Equal Error Rate: the operating point where the false acceptance rate (FAR) equals the false rejection rate (FRR).
- `Accuracy (%)` — range: percent
  - Percentage of correctly classified instances (bona fide vs. spoofed).

## Input / output format

**Input**: Raw audio files containing either bona fide speech or TTS-generated spoofed speech.

**Output**: Binary classification label indicating whether the audio is bona fide or spoofed.

## Scoring recipe

```python
def compute_metrics(predictions, labels):
    accuracy = np.mean(predictions == labels) * 100
    # EER is the threshold where FAR = FRR
    thresholds = np.linspace(0, 1, 1000)
    best_eer = 1.0
    for t in thresholds:
        far = np.mean((predictions >= t) & (labels == 0))
        frr = np.mean((predictions < t) & (labels == 1))
        if abs(far - frr) < best_eer:
            best_eer = (far + frr) / 2
    return accuracy, best_eer
```

## Common pitfalls

- Models trained on datasets with differing noise patterns between genuine and spoofed audio learn shortcuts equating poor quality with spoofing, leading to misclassification of replayed audio.
- Performance degradation from replay attacks is not merely due to added noise but rather the loss of distinctive deepfake-specific characteristics caused by the physical air-gap.
- RIR augmentation improves resilience but does not fully mitigate the vulnerability, often leaving EER significantly higher than baseline.

## Evidence (verbatim from paper)

> We evaluate ReplayDF across multiple scenarios to assess the impact of replay attacks on audio deepfake detection models. We define two key data partitions: first, ReplayDF (set  $R$ ): All audio files generated as in Section 3, containing equal amounts of bona fide and spoofed instances. Second, the Baseline dataset (set  $O$ ): the original input instances from MLAAD v5 and M-AILABS, serving as a comparative baseline against ReplayDF. Table 2: Performance of Open-Source models with publicly available checkpoints in mean accuracy and EER over ReplayDF, as well as the original audio files (Baseline).

## Citation

```bibtex
@misc{muller2025replay,
  title={Replay Attacks Against Audio Deepfake Detection},
  author={Müller et al. (2025)},
  year={2025},
  note={arXiv:2505.14862}
}
```

- arXiv: 2505.14862

