Manuscript Offprint
arXiv:2610.11706Does an Illumination Prior Help Face-Swap Detection? A Controlled Study of Temporal Self-Blended Images
Danil Davydov*, Bader Rasheed†, Dmitriy Vatolin†
*Innopolis University, Innopolis, Russia
Laboratory of Innovative Technologies for Processing Video Content, Innopolis University, Innopolis, Russia
{d.davydov, b.rasheed, d.vatolin}@innopolis.university
Abstract—Self-blending is the dominant training-data prior in face-swap detection, but it supervises only the blending boundary. We ask whether adding a photometric prior at the same locus helps: Temporal Self-Blended Images (T-SBI) transfer the illumination statistics of one frame onto a self-blended copy of another frame from the same video, gated on a controlled luminance delta in LAB space, so that illumination inconsistency becomes a learnable training signal. We evaluate T-SBI as a controlled probe rather than as a proposed improvement. A five-regime ablation factorizes supervised, self-blended, and temporally self-blended training; a three-seed -quartile experiment isolates the illumination delta itself by training on the upper versus lower quartile of accepted pairs. The result is a consistent null on the targeted mechanism: frame-level AUC differences between high- and low- training lie within the combined seed standard deviation on all four evaluation corpora, and a failure taxonomy over 506,328 attribute-binned rows finds no preferential failure-rate reduction on harsh-illumination bins. What T-SBI does do is shift the score distribution: the optimal decision threshold moves down by on FF++ and on Celeb-DF, which reverses the apparent verdict when models are compared at the conventional threshold of 0.5. The one robust benefit lies elsewhere than intended: under heavy JPEG compression the T-SBI variant retains frame AUC 0.780 on DFDC against 0.696 for its counterpart, consistent with a shift toward low-frequency cues rather than illumination-specific robustness. We report the operating-point analysis that resolves the threshold contradiction, show that F1 is degenerate under cross-dataset imbalance, and argue that photometric training priors must be validated against the attribute they target rather than against aggregate accuracy.
Index Terms—deepfake detection, media forensics, self-blended images, illumination prior, calibration, operating point, failure analysis.
I. INTRODUCTION
Face-swap detectors that learn generator-specific texture artefacts transfer poorly to unseen manipulations [1], [7]. The most effective known remedy is a training-data prior rather than an architectural one: Face X-Ray [3] and Self-Blended Images (SBI) [2] synthesize fakes by blending an image with a perturbed copy of itself, forcing the classifier onto the blending boundary—a cue common to all compositing pipelines—and achieving strong cross-dataset transfer without labelled fakes.
The blending boundary is not, however, the only physical trace a face swap leaves. The photometric-forensics literature holds that compositing two faces recorded under different illumination produces inconsistencies that physical scene constraints would forbid [4], [5]. This suggests an obvious extension: build the self-blended training pair from two frames of the same video chosen to differ in illumination, so that the synthetic fake carries a photometric inconsistency in addition to a blending boundary. We call this Temporal Self-Blended Images (T-SBI).
The contribution of this paper is not the generator but the measurement. It is easy to add such a prior and report an aggregate accuracy delta; it is much harder to show that any observed change is caused by the mechanism the prior was designed around. We therefore treat T-SBI as a controlled probe and ask three separable questions: does the temporal-illumination component change detection performance at all; is the illumination delta of the training pairs the active ingredient; and does the model become preferentially more robust on the image attribute—illumination—that the prior targets? Our contributions are:
-
A T-SBI generator with explicit pair-level illumination gating in LAB space, and a seven-variant shortcut ablation verifying that no class-asymmetric pipeline artefact confounds the comparison against classic SBI.
-
A three-seed -quartile experiment isolating the training-pair illumination delta. High- and low- training differ by less than the combined seed standard deviation on every corpus; a video-level direction reversal on DFDC is shown to be a calibration-mediated aggregation artefact.
-
A failure taxonomy over 506,328 attribute-binned rows (nine models, four datasets, nine attribute axes) showing that T-SBI produces no preferential failure-rate reduction on harsh-illumination bins—the targeted mechanism is unsupported—and an operating-point analysis identifying a 0.30 downward shift in optimal threshold, plus a compression-robustness gain of +0.084 AUC on DFDC,
as the effects that are actually present.
Photometric forensics. Illumination direction and shadow geometry constrain plausible image formation, and mismatches indicate manipulation [4], [5]; automated lighting-inconsistency detectors follow this line [6]. These methods are typically applied at inference. T-SBI instead injects the photometric constraint at training time, which is where the blending prior already lives.
Evaluation under imbalance. Cross-dataset benchmarks are heavily imbalanced, and threshold-0.5 metrics conflate calibration with capability [7], [8]; we therefore report imbalance-robust threshold sweeps [9], which prove decisive here.
III. METHOD
A. Temporal self-blended image generation
Each T-SBI pair is built from two frames of the same source video at distinct time positions. MediaPipe FaceMesh [11] landmarks define a feathered convex-hull mask over the target face (fallback: axis-aligned ellipse). The source frame's illumination statistics—L-channel mean, L-channel standard deviation, and a low-frequency luminance term inside the mask—are transferred onto a self-blended copy of the target frame, preserving the target's geometry, identity, expression, and pose so that the training signal is differential illumination rather than incidental geometric inconsistency. We use luminance-only histogram matching with percentile trimming and envelope-based fitting, which suppresses three observed failure modes (flat unicolour faces, blowouts, band artefacts). Pairs are rejected if the source and target boxes differ by in scale or in centre offset.
B. Pair-level illumination gating
Because the hypothesis is that the illumination delta is the active ingredient, each candidate pair is gated explicitly. Let M denote the pixels inside the face box and the CIELAB lightness of frame I at pixel p, with within-box moments
(1)
The pair-level deltas between source frame and target frame are
(2)
so is the difference of the two per-frame standard deviations—a change in how spread out the shading is—not the standard deviation of a difference image. Statistics are taken over the detector's face box, and lightness is on the 8-bit OpenCV LAB scale , so the thresholds below correspond to roughly 2.4 and 1.2 units of CIE . A pair is accepted if
The dual criterion covers a global luminance offset and a regional illumination redistribution respectively. To avoid silently discarding evenly-lit videos, a relax fallback accepts the most-different available pair when no pair from a source video clears Eq. (3). Every row records , , and a relax flag, enabling the quartile decomposition below.
The realized pool is itself informative: across 7,320 accepted pairs the median is 5.62—below the design threshold—and 22.3% of pairs entered only via the relax fallback. This is not a property of the source material: over the 732 contributing videos the median per-video maximum is 10.13 and 89% contain at least one pair clearing the gate. The sampler, not the corpus, is the binding constraint.
C. Five-regime ablation
Five training regimes factorize the supervised, self-blended, and temporally self-blended components: A (real + FF++ supervised fakes); B_pure (real + classic SBI fakes); B_mix (A + SBI); C_pure (real + SBI + T-SBI); C_mix (A + SBI + T-SBI). The clean contrast for the temporal-illumination signal is B_mix vs C_mix (and B_pure vs C_pure): identical recipe, hyperparameters, real-class data, and SBI fakes, differing only by the addition of T-SBI pairs. All regimes share an EfficientNet-B4 backbone [12], AdamW with cosine warmup, input, twenty epochs, and class-balanced batch sampling. Per-image JPEG quality is randomized over [75, 98] for all real and synthetic samples in all regimes, eliminating compression history as a class-asymmetric shortcut.
D. Shortcut ablation
To verify that any B-vs-C difference reflects training data rather than a pipeline artefact, the T-SBI pipeline is decomposed into seven null variants (N0–N6) in which the active step is replaced by an identity operation, with a parallel suite (P0–P5) for classic SBI. A one-epoch classifier is trained on (real, null-output) and separability measured two-sided as ; indicates no class-asymmetric signal. The photometric-transfer variants driving the headline contrast (N3–N6) all fall inside the band. Two sit outside: N0 (JPEG round-trip, 0.428), present identically in both B and C regimes and therefore cancelling in the contrast, and N2 (adjacent-frame pairing, 0.431), unique to T-SBI and reported as a caveat.
E. Decisive diagnostic: the -quartile experiment
The ablation above changes whether T-SBI pairs are present; it does not isolate the illumination delta. We therefore split the accepted pool at its quartiles and build two C_mix-recipe training sets that are byte-identical except for the T-SBI portion: HIGHDL (upper quartile, 1,830 pairs, mean ) and LOWDL (lower quartile, 1,830 pairs, mean 1.57). Real
TABLE I FIVE-REGIME CROSS-DATASET AUC (VIDEO-LEVEL MEAN AGGREGATION; DFF FRAME-LEVEL) AND FRAME-LEVEL ECE. THE C-VS-B CONTRAST ISOLATING T-SBI HAS NO CONSISTENT SIGN. SINGLE-SEED; SEE LIMITATIONS.
| Regime | AUC | ECE | ||||
|---|---|---|---|---|---|---|
| FF++ | C-DF | DFDC | DFF | C-DF | DFDC | |
| A (supervised) | 0.991 | 0.883 | 0.824 | 0.540 | 0.382 | 0.482 |
| B_pure | 0.771 | 0.622 | 0.691 | 0.566 | 0.072 | 0.298 |
| B_mix | 0.993 | 0.825 | 0.869 | 0.566 | 0.041 | 0.281 |
| C_pure | 0.732 | 0.605 | 0.625 | 0.546 | 0.080 | 0.300 |
| C_mix | 0.990 | 0.839 | 0.866 | 0.543 | 0.030 | 0.305 |
| SBI (ref.) | 0.879 | 0.907 | 0.884 | 0.614 | — | — |
frames, supervised fakes, and classic SBI fakes (24,676 rows) are held identical. Each variant is trained for twenty epochs across three seeds (42, 123, 235) and evaluated on FF++ (indistribution) and Celeb-DF [13], DFDC [14], and DFF [15] (cross-dataset). If the illumination delta is the active ingredient, HIGHDL should separate from LOWDL by more than seed noise.
F. Failure taxonomy
For every crop in every evaluation set we compute nine image attributes (blur, illumination flatness, illumination harshness, yaw, pitch, eye state, gaze deviation, crop tightness, frame-edge contact), binned by within-dataset quantiles, yielding 506,328 rows over nine models and four datasets. For each (model, dataset, axis) we build a contingency table of failure status against attribute bin, apply Pearson's , and report Cramér's as the effect size—the meaningful summary, since at these sample sizes negligible effects are still highly significant. We adopt Cohen's conventions ( negligible) [10].
IV. RESULTS
A. Five-regime ablation: no consistent T-SBI direction
Table I reports cross-dataset AUC and calibration. Three observations follow. First, mixed regimes beat the supervised baseline on DFDC by while A retains the Celeb-DF AUC lead—the canonical SBI-family profile. Second, pure self-blend regimes collapse by 0.13–0.24 AUC, and their indistribution FF++ AUC (0.771/0.732) with ECE shows the failure is global, not cross-distributional: mixed supervision is necessary for these recipes to produce a deployable detector at all. Third, and central here, the C-vs-B contrast that isolates T-SBI has no consistent direction: C_mix exceeds B_mix by +0.014 on Celeb-DF but trails by -0.003 on DFDC, and C_pure trails B_pure on both. The ablation licenses no universal claim about T-SBI.
Calibration tells a cleaner story than AUC: baseline A is severely miscalibrated despite its Celeb-DF AUC lead (frame ECE 0.382 vs 0.030 for C_mix, for 0.044 AUC).
All regimes sit near chance on DFF (0.54–0.57): SBI and T-SBI supervise blending boundaries and illumination differences across them, neither of which exists in fully generated
TABLE II THREE-SEED -QUARTILE DIAGNOSTIC, FRAME-LEVEL AUC (MEAN SAMPLE STD OVER SEEDS 42/123/235). ALL DIFFERENCES LIE WITHIN THE COMBINED SEED STANDARD DEVIATION.
| Dataset | HIGHDL | LOWDL | Δ | |Δ|/σ |
|---|---|---|---|---|
| Celeb-DF | 0.675 ± 0.017 | 0.652 ± 0.027 | +0.022 | 0.71 |
| DFDC | 0.642 ± 0.004 | 0.637 ± 0.008 | +0.005 | 0.54 |
| DFF | 0.553 ± 0.005 | 0.554 ± 0.012 | -0.001 | 0.08 |
| FF++ | 0.784 ± 0.046 | 0.790 ± 0.015 | -0.006 | 0.12 |
TABLE III THREE-SEED -QUARTILE DIAGNOSTIC, VIDEO-LEVEL AUC BY AGGREGATION STRATEGY. CELEB-DF FAVOURS HIGHDL UNDER ALL THREE STRATEGIES AND DFDC FAVOURS LOWDL; THE DFDC GAP IS LARGEST FOR THE TWO DISTRIBUTION-DEPENDENT AGGREGATORS (MEAN, VOTE) AND COLLAPSES FOR MAX, WHICH IS THE CLOSEST TO A RANK-BASED AGGREGATOR.
| Dataset | Aggr. | HIGHDL | LOWDL | Δ | |Δ|/σ |
|---|---|---|---|---|---|
| Celeb-DF | max | 0.727 ± 0.087 | 0.708 ± 0.087 | +0.019 | 0.15 |
| mean | 0.733 ± 0.018 | 0.689 ± 0.033 | +0.044 | 1.15 | |
| vote | 0.661 ± 0.061 | 0.633 ± 0.031 | +0.028 | 0.41 | |
| DFDC | max | 0.668 ± 0.014 | 0.691 ± 0.036 | -0.023 | 0.60 |
| mean | 0.683 ± 0.009 | 0.702 ± 0.005 | -0.019 | 1.92 | |
| vote | 0.667 ± 0.009 | 0.704 ± 0.015 | -0.037 | 2.09 | |
| FF++ | max | 0.918 ± 0.015 | 0.917 ± 0.021 | +0.001 | 0.05 |
| mean | 0.903 ± 0.024 | 0.898 ± 0.019 | +0.005 | 0.17 | |
| vote | 0.903 ± 0.022 | 0.897 ± 0.032 | +0.006 | 0.16 |
diffusion faces, so our claims are scoped to the face-swap family.
B. The illumination delta is not the active ingredient
Table II reports the three-seed -quartile result. Every frame-level difference lies inside the combined seed standard deviation: the ratio is 0.71 (Celeb-DF), 0.54 (DFDC), 0.08 (DFF), and 0.12 (FF++), none approaching a defensible threshold of . The nominal sign favours HIGHDL on the two face-swap OOD corpora and is essentially zero elsewhere, but no cell supports a claim of difference. Training on pairs with an order-of-magnitude larger illumination delta (12.43 vs 1.57) does not measurably change frame-level detection.
Video-level aggregation appears to contradict this: HIGHDL wins all three strategies (max/mean/vote) on Celeb-DF, LOWDL wins all three on DFDC, with the DFDC mean and vote cells reaching ratios of 1.92 and 2.09—the study's strongest signal, pointing against HIGHDL. The mechanism is calibration, not discrimination. Both variants are severely miscalibrated on DFDC (frame ECE 0.419 and 0.430, with large seed variance), and mean and vote aggregation depend on the per-frame score distribution, so calibration differences compound across frames. Max—using only the top-scoring frame, the closest to a rank-based aggregator—shrinks the gap to 0.60, matching the frame-level near-tie. The reversal is thus a miscalibration-mediated aggregation artefact, not evidence that low- training yields better features (Fig. 1). Table III gives the video-level numbers behind this argument.

Fig. 1. HIGHDL vs LOWDL AUC with three-seed error bars. Left: frame level, four datasets—HIGHDL is at or above LOWDL on every OOD corpus, but all margins are small relative to seed variance and both variants discriminate only weakly (0.55–0.67). Right: video level (mean aggregation), three datasets—the DFDC comparison reverses, coinciding with severe frame-level miscalibration on that corpus (ECE ≈0.42 for both).
C. A dataset-level illumination control
A natural alternative explanation for the Celeb-DF/DFDC asymmetry is that Celeb-DF is illumination-static, leaving a within-clip illumination feature nothing to act on. Measured on real crops this is false: Celeb-DF has the largest median within-video p90 (9.97, vs 8.91 FF++ and 9.76 DFDC) and the smallest static-clip fraction (0.15, vs 0.29 and 0.21). DFDC differs instead on orthogonal axes: shadow-structure variation ( p90 = 6.5 vs 4.2) and between-video diversity (p95–p05 of per-video mean L: 119.4 vs 76–82). The variable T-SBI targets does not separate these corpora, ruling out within-video illumination distribution as the mediator.
D. The mechanism is a threshold shift, not illumination robustness
Comparing B_mix and C_mix at threshold 0.5 suggests T-SBI hurts: failure rate rises from 12.8% to 15.9% (Celeb-DF), 35.1% to 42.3% (DFDC), 28.0% to 34.3% (DFF). Bootstrapped AUC says the opposite on Celeb-DF, with non-overlapping 95% CIs (0.736–0.742 vs 0.751–0.756). A full threshold sweep resolves the contradiction, and the resolution is the paper's methodological point.
First, F1 is unusable here. At 86%/14% (Celeb-DF), 80%/20% (DFDC), and 72%/28% (DFF) imbalance, a degenerate all-real classifier scores F1 ≈0.92 on Celeb-DF; empirically, argmax-F1 thresholds collapsed to the grid floor (0.01) for 23 of 31 (model, dataset) pairs. We therefore use balanced accuracy, MCC, and Youden's J over 99 thresholds in [0.01, 0.99].
Second, T-SBI moves the operating point. B_mix's argmax-MCC threshold on Celeb-DF is 0.88 while C_mix's is 0.58—a shift of ; on FF++ the shift is , i.e. (Table IV, Fig. 2). The shift attenuates to with inconsistent sign on DFDC and DFF. Where the shift is large, evaluating at 0.5 systematically penalizes B_mix (whose optimum is far above 0.5) and flatters C_mix (whose optimum sits near it). The confusion decomposition makes this concrete: on Celeb-DF at 0.5, B_mix has a false-positive and false-negative rate, C_mix and . T-SBI trades real-precision for fake-recall; it does not uniformly degrade or improve capability.
TABLE IV THRESHOLD-SWEEP OPTIMA (FRAME LEVEL). “@THR” IS THE THRESHOLD ATTAINING THE OPTIMUM. T-SBI (C_MIX) LOWERS THE OPTIMAL OPERATING POINT SUBSTANTIALLY ON FF++ AND CELEB-DF, MARGINALLY ELSEWHERE.
| Dataset | Model | bal-acc | MCC | @thr | J |
|---|---|---|---|---|---|
| FF++ | B_mix | 0.968 | 0.910 | 0.76 | 0.935 |
| C_mix | 0.961 | 0.881 | 0.42 | 0.922 | |
| Celeb-DF | B_mix | 0.664 | 0.270 | 0.88 | 0.327 |
| C_mix | 0.678 | 0.292 | 0.58 | 0.355 | |
| DFDC | B_mix | 0.727 | 0.368 | 0.38 | 0.455 |
| C_mix | 0.728 | 0.368 | 0.30 | 0.456 | |
| DFF | B_mix | 0.551 | 0.091 | 0.90 | 0.103 |
| C_mix | 0.531 | 0.060 | 0.99 | 0.061 |
E. Robustness: one condition where T-SBI helps
Restricting attention to clean-image AUC would understate T-SBI. Under the image-level perturbation grid (JPEG , Gaussian blur , denoise/sharpen, gamma, resize), the mixed T-SBI variant is the more compression-robust model, and the effect is largest exactly where compression is heaviest (Table V). On DFDC at , C_mix retains frame AUC 0.780 against B_mix's 0.696—a margin of +0.084, the largest single-condition gap in the study and an order of magnitude larger than any clean-image




Fig. 2. MCC versus decision threshold for B_mix and C_mix, per dataset. Stars mark each model's argmax; crosses mark threshold 0.5. The T-SBI variant's optimum sits lower on FF++ and Celeb-DF, which is what makes threshold-0.5 comparisons misleading.
TABLE V FRAME-LEVEL AUC UNDER JPEG COMPRESSION AND GAUSSIAN BLUR. C_MIX (T-SBI) IS MARKEDLY MORE ROBUST TO HEAVY COMPRESSION ON DFDC AND DEGRADES MORE GRACEFULLY UNDER BLUR ON THE FACE-SWAP CORPORA. SINGLE-SEED.
| Dataset | Model | q95 | q40 | σ=0.5 | σ=3 |
|---|---|---|---|---|---|
| FF++ | A | 0.991 | 0.984 | 0.990 | 0.925 |
| B_mix | 0.993 | 0.977 | 0.993 | 0.843 | |
| C_mix | 0.990 | 0.980 | 0.990 | 0.875 | |
| Celeb-DF | A | 0.824 | 0.793 | 0.822 | 0.705 |
| B_mix | 0.747 | 0.757 | 0.745 | 0.608 | |
| C_mix | 0.758 | 0.760 | 0.762 | 0.627 | |
| DFDC | A | 0.752 | 0.730 | 0.748 | 0.610 |
| B_mix | 0.785 | 0.696 | 0.796 | 0.575 | |
| C_mix | 0.793 | 0.780 | 0.800 | 0.606 |
difference. C_mix also degrades more gracefully under heavy blur on all three face-swap corpora (+0.02–0.03 at ).
This is consistent with the score-distribution account rather than in tension with it. Illumination-varied training pairs push the model toward low-frequency global cues, which are precisely the cues that survive aggressive quantisation, whereas blending-boundary evidence is high-frequency and is destroyed first. T-SBI therefore changes which evidence the model weights, which shows up as compression robustness rather than as clean-image accuracy or as illumination-specific robustness. We note that these runs share the single-seed limitation of the headline ablation.
F. The targeted attribute shows no effect
If T-SBI worked through illumination robustness, C_mix should show either stronger illumination structure in its failures than B_mix, or a reduced failure rate on harsh- illumination bins. Neither occurs. Across the taxonomy, C_mix's illumination-harshness Cramér's V is lower than B_mix's on every dataset (Celeb-DF 0.035 vs 0.060; DFDC 0.031 vs 0.050; FF++ 0.017 vs 0.019), all below 0.05—negligible—with per-bin failure-rate spreads of only 1–5 percentage points and no monotonic ordering (Fig. 3).

Fig. 3. Per-model failure rate on DFDC by blur quartile (left) and illumination-harshness bin (right). B_mix and C_mix—the T-SBI contrast—are near-flat on the illumination axis, with no preferential reduction on the harsh bin.
The wider taxonomy corroborates this. Of 216 (model, dataset, axis) triples, only 23 reach , just 2 exceed 0.20, and none exceed 0.30: there are no medium or large effects anywhere. The strongest illumination-related sensitivity belongs not to any T-SBI variant but to the off-the-shelf SBI reference on DFDC (), and it peaks on the flat-illumination bin—the opposite of the T-SBI hypothesis. The only clean monotonic effect in the predicted direction on any axis is head pose on FF++ (frontal 3.4–3.8% vs profile 15.2–16.7%).
Failure-set overlap agrees: the B_mix↔C_mix Jaccard is 0.29 on FF++ and 0.46–0.64 on OOD corpora, so T-SBI changes which samples fail at nearly unchanged failure counts.
V. DISCUSSION
Our three questions resolve negatively. The C-vs-B contrast changes sign across corpora; an eightfold difference in training-pair produces frame-level differences within seed noise on all four corpora; and the taxonomy shows no preferential harsh-illumination improvement, with the T-SBI variant's illumination effect sizes uniformly smaller than its counterpart's.
What T-SBI reliably does is shift the score distribution, lowering the optimal decision threshold by where its effect is largest, and—relatedly—reweight the evidence toward low-frequency cues, which is visible as a substantial compression-robustness gain on DFDC. Both are real effects; neither is the illumination mechanism the prior was designed around. This is not nothing: it changes the false-positive/false-negative balance in a direction that favours fake-recall, which some deployments want. But it is a calibration-level effect, and it would have been easy to mistake for a capability gain—or, read at threshold 0.5, for a capability loss. Both readings appear in our own data, and only the threshold sweep distinguishes them.
The generalizable lesson concerns validation practice. A prior motivated by a physical attribute should be validated against that attribute, not against aggregate accuracy. An attribute-binned failure taxonomy costs one inference pass over data already collected and would have falsified the illumination mechanism immediately, whereas the aggregate AUC deltas—+0.014 here, -0.003 there—invited over-interpretation in both directions. The sampler diagnostic makes a related point: our gate admitted a median pair below its own threshold while the corpus held far larger deltas, so a prior can be much weaker in the realized training data than its design implies—reporting the realized distribution of the gated quantity should be routine.
Limitations. The five-regime ablation is single-seed; only the -quartile diagnostic is repeated over three seeds, and small cross-regime AUC deltas should be read with that in mind. The HIGHDL pool over-represents DeepFakeDetection content while LOWDL over-represents FF++ YouTube footage, so pair is partially confounded with source style. Our illumination descriptor collapses spatial structure to two scalars and cannot distinguish side-lit from front-lit faces at equal mean luminance—though it is the same descriptor the gate uses, so the analysis is internally consistent. Finally, the taxonomy is computed at threshold 0.5; the operating-point analysis mitigates but does not remove this.
VI. CONCLUSION
We built a temporal self-blending generator injecting a photometric prior into face-swap detector training, then tried hard to detect its effect. Across a five-regime ablation, a three-seed illumination-delta experiment, a dataset-level illumination control, and a 506,328-row failure taxonomy, the targeted mechanism is unsupported: training-pair illumination delta does not measurably change frame-level detection, and no preferential robustness appears on harsh-illumination bins. The effects that are present are a downward shift in the optimal decision threshold—which inverts the apparent verdict depending on whether models are compared at 0.5 or at their own optima—and improved robustness to heavy compression, neither of which is the mechanism the prior targeted. We therefore report T-SBI as a controlled probe rather than an improvement, and offer its diagnostics—realized-gate reporting, imbalance-robust threshold sweeps, and attribute-binned failure taxonomies—as reusable instruments for evaluating any physically motivated training prior.
APPENDIX A
TRAINING AND EVALUATION PROTOCOL
Table VI consolidates the configuration shared by all five regimes and both -quartile variants, for reproducibility.
REFERENCES
[1] A. Rössler, D. Cozzolino, L. Verdoliva, C. Riess, J. Thies, and M. Nießner, “FaceForensics++: Learning to detect manipulated facial images,” in Proc. IEEE/CVF ICCV, 2019.
TABLE VI T-SBI PIPELINE, TRAINING, AND EVALUATION CONFIGURATION. ALL REGIMES SHARE THE BACKBONE, SCHEDULE, AND AUGMENTATION; REGIMES DIFFER ONLY IN THE COMPOSITION OF THE FAKE CLASS.
| Item | Setting |
|---|---|
| T-SBI generation | |
| Landmarks | MediaPipe FaceMesh (ellipse fallback) |
| Mask | Feathered convex hull over target face |
| Transfer | Luminance-only histogram matching |
| Pair rejection | >1.3× scale or >35% centre offset |
| Gate | or , relax fallback |
| Accepted pairs | 7,320 from 732 source videos |
| Training | |
| Backbone | EfficientNet-B4 |
| Optimizer | AdamW, cosine warmup |
| Input resolution | 380 × 380 |
| Epochs / batch | 20 / 32 |
| Sampling | Class-balanced within batch |
| JPEG randomization | q ∈ [75, 98], all classes, all regimes |
| Seeds | 42 (headline); 42/123/235 ( quartile) |
| Evaluation | |
| Corpora | FF++ (in-dist.); Celeb-DF, DFDC, DFF (OOD) |
| Metrics | AUC, ECE, balanced acc., MCC, Youden's J |
| Threshold sweep | 99 points in [0.01, 0.99] |
| Aggregation | Frame; video max / mean / vote |
| Taxonomy | 9 attributes, within-dataset quantile bins |
[2] K. Shiohara and T. Yamasaki, “Detecting deepfakes with self-blended images,” in Proc. IEEE/CVF CVPR, 2022.
[3] L. Li, J. Bao, T. Zhang, H. Yang, D. Chen, F. Wen, and B. Guo, “Face X-ray for more general face forgery detection,” in Proc. IEEE/CVF CVPR, 2020.
[4] M. K. Johnson and H. Farid, “Exposing digital forgeries in complex lighting environments,” IEEE Trans. Inf. Forensics Security, vol. 2, no. 3, pp. 450–461, 2007.
[5] E. Kee, J. F. O'Brien, and H. Farid, "Exposing photo manipulation with inconsistent shadows," ACM Trans. Graphics, vol. 32, no. 3, pp. 28:1–28:12, 2013.
[6] W. Wu, W. Zhou, W. Zhang, H. Fang, and N. Yu, “Capturing the lighting inconsistency for deepfake detection,” in Artificial Intelligence and Security (ICAIS), LNCS vol. 13339. Springer, 2022, pp. 637–647.
[7] A. V. Nadimpalli and A. Rattani, “On improving cross-dataset generalization of deepfake detectors,” in Proc. IEEE/CVF CVPR Workshops, 2022, pp. 91–99.
[8] C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger, “On calibration of modern neural networks,” in Proc. ICML, 2017.
[9] B. W. Matthews, “Comparison of the predicted and observed secondary structure of T4 phage lysozyme,” Biochim. Biophys. Acta, vol. 405, no. 2, pp. 442–451, 1975.
[10] J. Cohen, Statistical Power Analysis for the Behavioral Sciences, 2nd ed. Lawrence Erlbaum, 1988.
[11] C. Lugaresi et al., “MediaPipe: A framework for building perception pipelines,” arXiv:1906.08172, 2019.
[12] M. Tan and Q. V. Le, “EfficientNet: Rethinking model scaling for convolutional neural networks,” in Proc. ICML, 2019.
[13] Y. Li, X. Yang, P. Sun, H. Qi, and S. Lyu, “Celeb-DF: A large-scale challenging dataset for DeepFake forensics,” in Proc. IEEE/CVF CVPR, 2020.
[14] B. Dolhansky, J. Bitton, B. Pflaum, J. Lu, R. Howes, M. Wang, and C. C. Ferrer, “The DeepFake Detection Challenge (DFDC) dataset,” arXiv:2006.07397, 2020.
[15] H. Song, S. Huang, Y. Dong, and W.-W. Tu, “Robustness and generalizability of deepfake detection: A study with diffusion models,” arXiv:2309.02218, 2023.