arXiv:2608.28685cs.CVAug 2026

Manuscript Offprint

arXiv:2608.28685

Data Diversity, Not Frequency Invariance: A Controlled and Self-Audited Study of Compression-Robust Deepfake Detection

Abbas Aliyev, Samir Rustamov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Frequency features and compression-invariant representation learning are widely assumed to be key to deepfake detection that survives video compression. We test this with CAFRL — block-DCT and FFT-phase streams, compression-level-conditioned band attention, and adversarial (gradient-reversal) compression invariance — and report a controlled negative. Under a pre-registered protocol with capacity- and augmentation-matched controls, a plain EfficientNet-B0 on multi-quality data beat CAFRL as specified at every compression level on the FaceForensics++ test split, by 3.66 AUC points at CRF 40 (paired, single seed). A self-audit of our own negative found four defects biased against the frequency hypothesis, and pre-specified re-tests repairing all four showed the deficit to be a recipe artifact, not an architecture failure: the baseline recipe recovered 3.96 points over the matching shipped-recipe variant. The frequency path made no detectable difference: discriminative alone (standalone validation AUC 0.91–0.98 late in training) but of no marginal value under this fusion, at two feature widths of one 4.0 M trunk, every seed-pooled interval for the intra-dataset compression contrasts including zero (3-seed pooled Δ=−0.10/+0.22\Delta = -0.10 / +0.22 AUC points at CRF 40, and equivalent within a post-hoc ±1\pm 1-point margin given these three seeds per arm, unadjusted); on the single held-out manipulation tested, the fair variants sat below the plain backbone. The adversarial branch, as specified, added nothing and degraded its own conditioning estimator; at the fair recipe it is untested. Robustness under single-pass H.264 re-encoding came instead from data diversity: real constant-rate-factor variants beat synthetic JPEG augmentation by 7.3 points (single runs, non-overlapping intervals). The evidence is FaceForensics++-family, GAN-era and single-codec. Match controls on training recipe as well as capacity, and buy compression robustness with codec diversity before architecture.

Keywords: benchmark testing · deepfakes · discrete cosine transforms · frequency-domain analysis · machine learning · reproducibility · robustness · video compression

1 Introduction

Detecting manipulated face video in the wild means detecting it after social platforms have re-encoded it. H.264 compression at high constant-rate-factor (CRF) settings destroys exactly the high-frequency residue that many detectors rely on, and published detectors routinely lose 5–15 AUC points between lightly compressed (c23) and heavily compressed (c40) versions of the same content — a collapse documented by the standard benchmark protocols [1, 2] and reproduced here for three published detectors (Appendix C). A large body of work responds with a common prescription: extract frequency-domain features (DCT spectra, FFT phase, band statistics), and make the representation invariant to compression, typically with adversarial objectives borrowed from domain adaptation [3–6]. The intuition is compelling — generative pipelines leave spectral fingerprints [7, 8], and invariance should preserve what survives re-encoding.

This paper reports what happened when we built a strong instance of that prescription and evaluated it under unusually strict controls. CAFRL (Compression-Aware Frequency Representation Learning) combines a block-DCT stream and an FFT-phase stream with an ImageNet-pretrained spatial backbone; a learned compression-level estimator conditions an adaptive frequency-band attention gate (FiLM-style [9]); and a gradient-reversal discriminator enforces compression invariance on the frequency representation. The design was assembled from a 69-paper implementation-gap review of the compression-robust detection literature, and every ingredient in it is individually prescribed there: DCT-band mining [10], phase rather than amplitude under compression [11], FiLM-style conditioning [9], cross-modal attention fusion [12, 13], and gradient-reversal compression invariance [3–6]. Their combination, and the training recipe that carries it — loss weights, curriculum, per-group learning rates — is a plausible assembly we constructed from common ingredients, not a configuration any prior work prescribes.

CAFRL lost — and what it lost to is the contribution: its own training recipe and its training data, not frequency. Three properties distinguish this negative from an anecdote:

  1. The comparison was pre-registered and controlled. Before any ablation ran, we froze a paired-bootstrap win-rule and a STOP-gate — the two rules this paper calls pre-registered; the later audit re-tests are pre-specified, a distinction Section 4 keeps throughout: the full model had to beat capacity-matched, augmentation-matched baselines before a 38-run ablation campaign would be spent. The gate fired in the negative direction: a plain EfficientNet-B0 (4.0 M parameters, CAFRL's own backbone family, no frequency machinery) trained on the same multi-CRF data beat full CAFRL at every compression level (video-AUC .9590 vs .9224 at c40, both at seed 42, a paired Δ\Delta of +0.0366). Two confounds — augmentation policy and backbone capacity — were caught and explicitly ruled out with matched controls.

  2. We audited our own negative before believing it. A structured post-hoc audit (Section 6) found the measurement clean but the causal story overclaimed, identifying eight defects (D1–D8), four of which were biased against the frequency hypothesis: an uncalibrated consistency loss that dominated the classification gradient 40–120× in every arm (we call each trained model configuration an arm); a 20× backbone learning-rate mismatch inherited from the progressive curriculum; a bottlenecked spatial trunk; and a structural gradient deadlock in the probe used to conclude that the model “chooses” to discard frequency.

  3. The hypothesis was then re-tested at its best. Four pre-specified re-tests repaired every defect, and the result narrowed but did not reverse the negative. The STOP-gate's +3.66 pt deficit at c40 proved to be a recipe artifact: CAFRL's own components at the baseline's training recipe recovered +3.96 pt (Fair-N vs. CAFRL–adv, seed 42; significant). At that recipe the frequency path shows no detectable difference from the plain backbone at two spatial-feature widths, 3v3 (pooled Δ\Delta at c40 −0.10 and +0.22 pt, both 95% CIs including zero, both equivalent within a post-hoc ±\pm1 pt margin given these three seeds per arm, against a resolution floor of ≈\approx0.9 pt at the video level). The sub-network is demonstrably discriminative alone — a standalone head plateaus at validation AUC 0.91–0.98 — yet adds no marginal value under this fusion: redundant here, not shown to be absent from the trunk (Section 7).

The constructive finding survives all of it: robustness to single-pass H.264 CRF re-encoding is bought by data diversity. Every fairly trained model on multi-CRF data — with or without frequency streams — shows the same flat degradation curve across the compression range it was trained on, and training on real H.264 CRF variants beats the common synthetic JPEG-augmentation shortcut by +7.3 AUC points at real c40 (significant) — the one comparison here in which the test distribution differs in kind from the training distribution.

References (22)