Deepfake detectors score near-perfectly on the benchmark they were trained on and collapse to near chance on new ones. Detectors trained on one FaceForensics++ subset average 56.9% AUC on Celeb-DF (Celeb-DF). The usual explanation is that they latch onto generator-specific shortcuts. We propose a more measurable account, borrowed from atmospheric physics. In polluted cities, new aerosol particles form only when freshly produced vapor outpaces the rate at which existing background particles soak it up. In the same way, a faint local forgery artifact survives into a detector's final decision only when its signal outpaces the rate at which dominant image content soaks up the network's capacity. That content includes face identity, scene, lighting and compression. Our claim is that this ratio can be measured inside a trained network using only training-domain data, that it predicts cross-dataset accuracy better than in-domain accuracy does, and that raising it at the network layer where it is lowest improves transfer.
The atmospheric side supplies the organizing idea rather than equations to copy. Field studies at a biomass-burning site in the Pearl River Delta find that nucleation switches on when the ratio of precursor vapor to "condensation sink" crosses a critical threshold. The condensation sink is the scavenging surface of pre-existing particles (New particle formation in the presence of a strong biomass burning episode). Campaigns in Beijing and across thirteen Chinese sites show that heavy pollution does not prevent particle formation. Vapor production overpowers the sink, and the small surviving fraction grows quickly past the size where it would be scavenged (Evaluation on the role of sulfuric acid in the mechanisms of new particle formation for Beijing case; Submicron aerosols at thirteen diversified sites in China). Three ideas carry over: a ratio rather than either quantity alone, a threshold, and survival through successive growth stages. These map onto a local artifact that must persist through the stages of a convolutional backbone before it reaches the pooled embedding.
Core Claim
For a detector backbone with stages $s = 2,\dots,5$ (ResNet or Xception blocks), define two quantities measured on held-out training-domain data.
The source $S_s$ is how well stage-$s$ patch features separate a manipulated patch from the co-located patch of its pristine source frame. It is measured as the AUC of a linear probe minus 0.5, restricted to the manipulated region.
The sink $K_s$ is how much of stage-$s$ feature variance is explained by nuisance factors. It is the ridge-regression $R^2$ for predicting source-video identity plus compression level from pooled stage-$s$ features.
The survival ratio is
$$R = \min_s \frac{S_s}{K_s},$$
the weakest link along the path from shallow features to the output. We hypothesize that cross-dataset AUC depends on $R$ in a threshold-like way, flat below a critical value and rising above it, with no comparable dependence on in-domain AUC. This is a falsifiable statement about many detectors, not about one model.
The measurement relies on a property of FaceForensics++ (FaceForensics++). Every manipulated video is derived from a known original. The pixel difference between a fake frame and its aligned source frame therefore gives a free, approximate manipulation mask. The pair also shares scene and much of the identity, so the only systematic difference between them is the artifact. This removes the pixel-mask annotation that Locality-aware AutoEncoder needed, even at its reduced cost of masks on under 3% of samples.
Research Program
The work has three parts, and the diagnostic comes first.
Part one: a model zoo and a correlation study. We train roughly forty detectors that differ in the ways the literature says matter. The zoo varies the loss (binary cross-entropy, SimCLR-style pretraining as in DeepfakeUCL, DetCo-style multi-stage contrast), the truncation depth (as in Chai et al.), the augmentation including compression, and the seed. For each detector we compute $S_s$, $K_s$ and $R$ from FF++ alone, and we measure transfer AUC on Celeb-DF, WildDeepfake and DFDC. This tests whether the source–sink picture has predictive content at all.
Part two: an intervention. We then define a training objective that raises $R$ where it is lowest.
The objective adds a paired patch-level InfoNCE loss (a contrastive loss that pulls matched examples together and pushes others apart) at intermediate stages. The anchor and positive are the same manipulated patch under two augmentations, including different compression codecs. The negatives are the co-located patches of the pristine source frame and patches from the same fake's unmanipulated region.
This differs from DetCo's global-to-local contrast (DetCo) in one essential way. DetCo's local views come from the same image. They are pulled together regardless of content, which drives the network to encode the shared nuisance factors, the very sink we want to shrink. Our pairing holds identity and scene fixed, so the only way to lower the loss is to encode the artifact.
The per-stage loss weight is set in proportion to $1/R_s$, recomputed every epoch from a held-out FF++ split. Effort therefore goes to the bottleneck stage rather than being spread uniformly.
Part three: compression as a separate sink. Compression gets its own sink term, because it strips the high-frequency evidence local detectors rely on. XceptionNet on FF++ falls from 99.26% accuracy on raw video to 81.00% on the low-quality setting (FaceForensics++). Separating identity-driven from codec-driven sink tells us which one sets the bottleneck on WildDeepfake, where compression is arbitrary.
Relation to Prior Work
Three lines of work motivate the gap. Each changes where detectors look without measuring whether local evidence reaches the output.
Chai et al. truncate the network so its receptive field covers roughly 30-pixel patches. This removes the sink by removing global content altogether, which also blinds the detector to structural inconsistencies. Semantic reenactment such as NeuralTextures is the hardest FF++ manipulation, and this is where that blindness costs most. HCIL contrasts video snippets against whole videos with a hand-weighted NCE loss that down-weights pristine snippets. Our stage weights play the same role, but they are derived from a measured ratio and act on spatial scale rather than time. SD² fuses all CLIP ViT layers and separates facial-attribute from environment semantics using text from a vision-language model. In effect it tries to split source from sink through language, at the cost of 8×RTX 3090 training and dependence on the quality of that model's captions.
The multi-scale self-supervised methods supply the machinery. From DetCo we take per-stage contrastive heads, and from MimCo the observation that a strong teacher bounds a student's biases. UniVIP and PatchContrast show that intermediate-level structure helps, but both obtain their proposals from handcrafted heuristics. FF++ source pairs let us skip proposal heuristics entirely.
One paper constrains the design. DeepfakeUCL shows that global self-supervision improves transfer from UADFV to Celeb-DF (64.8% versus 52.2% AUC for Xception). It also shows that global self-supervision loses in-domain accuracy (93.0% versus 99.7% AUC on FF++). We therefore keep a supervised global head rather than replacing it.
Baselines
The naive reference point is supervised XceptionNet trained on FF++ with binary cross-entropy. The file reports only related figures for it: 69.25% accuracy on WildDeepfake (WildDeepfake), 52.2% AUC on Celeb-DF when trained on UADFV (DeepfakeUCL), and an average of 56.9% AUC for detectors trained on the FF++ DeepFakes subset and tested on Celeb-DF (Celeb-DF). We retrain it ourselves under the common protocol described below.
The first strong baseline is patch truncation after Chai et al., cut at Block 2. It is the strongest argument that the sink should simply be amputated. No reported result was found on Lacuna for this method on FF++-to-Celeb-DF or WildDeepfake, so we run it ourselves.
The second is DetCo-style uniform multi-stage contrast applied to face crops. It isolates whether any multi-scale contrast helps, or specifically our identity-controlled pairing with ratio-set weights. No reported result was found on Lacuna for DetCo on deepfake benchmarks.
The strongest published systems are HCIL, with 85.86% accuracy on WildDeepfake (HCIL), and SD², with 87.79% mAUC in its cross-domain WildDeepFake test after training on the 3.6-million-image MMI-DD collection (SD²). Both use different training data and backbones. We report their numbers as external references rather than claiming a head-to-head win. For a controlled comparison, we also apply our paired loss as a fine-tuning objective on CLIP ViT features and train SD²'s cross-layer fusion on FF++ alone.
The key ablations remove one ingredient each. The first replaces pristine-source negatives with random real negatives, which restores the sink. The second replaces ratio-set stage weights with uniform weights. The third drops the compression term from $K_s$.
For fairness, all retrained methods share the same FF++ c23 and c40 training frames, the same face alignment, the same backbone size and GPU-hour budget, and the same number of hyperparameter trials (twenty) chosen on an FF++ validation split only. We count the method as beating a baseline only if frame-level AUC improves by at least 3 points averaged over Celeb-DF, WildDeepfake and DFDC across three seeds, with no more than a 1-point loss in-domain.
Why not just…?
Why not just truncate the network, as Chai et al. did? Truncation sets the sink to zero, but it also caps the source. Any artifact that requires more than a 30-pixel context disappears, including reenactment inconsistencies such as NeuralTextures. The zoo study settles this directly. If truncated models already sit at the top of the $R$ distribution and match our transfer AUC, the intervention adds nothing and the contribution reduces to the diagnostic. We state that outcome in advance.
Why not just use DetCo-style multi-stage contrast with well-tuned weights? This is the most serious threat. A grid search over stage weights might find what our ratio finds. Two experiments address it. First, the random-negative ablation tests whether the pairing matters independently of the weights. Second, we give the uniform-weight and grid-searched DetCo variants the same tuning budget. If the grid search matches us, the ratio's remaining value is that it selects weights without any target data and without the search. That is a smaller but still useful result.
Why not just add heavy compression and color augmentation? Augmentation helps. DeepfakeUCL raised UADFV AUC from about 65% to 85.6% by adding color jitter and grayscale. Yet training directly on compressed FF++ still leaves Xception at 81.00%. Augmentation also lowers only the codec part of the sink, not the identity part. Our compression-only arm tests this: it reduces $K_s$ through augmentation alone, and we measure how much of the transfer gain it explains.
Why not just adversarially remove identity information? An identity-adversarial head lowers the sink without targeting the source. It may also strip facial structure that reenactment detection needs. We include it in the zoo. If the source–sink hypothesis is right, it should raise $R$ only modestly and transfer only modestly, because $S_s$ does not rise.
Proposed Experiments and Decisive Checks
We train on FF++ at c23 and c40 and test frame-level AUC on Celeb-DF, WildDeepfake and DFDC. We add per-manipulation leave-one-out splits within FF++ (train on three methods, test on the fourth).
The first decisive check is the zoo correlation. We compare the Spearman correlation between $R$ and mean transfer AUC across the roughly forty detectors with that of in-domain AUC and of the unscaled source $\min_s S_s$. We also fit a two-segment (threshold) curve and test whether it beats a straight line.
The hypothesis fails if $R$ predicts no better than $S$ alone. That result would mean the sink adds nothing, and the atmospheric framing is decoration.
The second check is causal. Setting stage weights from $1/R_s$ should raise $R$ at the bottleneck stage, and the gain in transfer AUC should follow the gain in $R$. Ablations that raise in-domain AUC without raising $R$ should not transfer.
The third check identifies the dominant sink per target dataset. We expect compression to set the bottleneck on WildDeepfake and identity to set it on Celeb-DF, whose quality control removed the crude artifacts of earlier generation pipelines.
References
- Celeb-DF: A Large-Scale Challenging Dataset for DeepFake Forensics
- New particle formation in the presence of a strong biomass burning episode at a downwind rural site in PRD, China
- Evaluation on the role of sulfuric acid in the mechanisms of new particle formation for Beijing case
- Submicron aerosols at thirteen diversified sites in China: size distribution, new particle formation and corresponding contribution to cloud condensation nuclei production
- FaceForensics++: Learning to Detect Manipulated Facial Images
- Towards Generalizable Deepfake Detection with Locality-aware AutoEncoder
- DeepfakeUCL: Deepfake Detection via Unsupervised Contrastive Learning
- What Makes Fake Images Detectable? Understanding Properties that Generalize
- DetCo: Unsupervised Contrastive Learning for Object Detection
- Hierarchical Contrastive Inconsistency Learning for Deepfake Video Detection
- A Rich Knowledge Space for Scalable Deepfake Detection
- MimCo: Masked Image Modeling Pre-training with Contrastive Teacher
- UniVIP: A Unified Framework for Self-Supervised Visual Pre-training
- PatchContrast: Self-Supervised Pre-Training for 3D Object Detection
- WildDeepfake: A Challenging Real-World Dataset for Deepfake Detection