Deepfake detectors look for tiny, pixel-level traces that generators and cameras leave behind. Examples include the periodic patterns left by upsampling layers, the 8×8 block grid of video codecs, and sensor noise. Almost every face-forgery pipeline, though, first aligns the face: it rotates, scales, and warps the crop so that eyes and mouth land at fixed positions, or, in the most elaborate case, unwraps it into a canonical texture map. Alignment requires resampling pixels onto a new grid. Resampling acts as a blur, and it tilts the axis-aligned codec grid. So the standard preprocessing step may be erasing, and partly scrambling, the very signal the detector is supposed to read. The forensics literature already shows that resizing and compression wash out these traces. Nobody has measured how much damage alignment itself does, or asked whether its benefits can be kept without paying that price.
We propose to separate the two jobs. A detector should extract its high-frequency forensic features on the image's native, untouched pixel grid. Geometry enters only afterwards, either by warping the low-resolution feature maps into canonical face coordinates or simply by tagging each native-grid feature with its canonical facial position. The idea borrows from medical imaging, where registering feature maps instead of raw voxels preserved fine detail. We pair it with a controlled study of how alignment warps degrade forensic traces. The study is designed so that a negative answer, where plain unaligned crops do just as well, is a clean and useful result too.
Core Claim
Our claim is that the cost of conventional face alignment to forgery detection grows with two things: how far the warp departs from an integer-pixel identity map, and how heavily the video is compressed. A detector that computes trace features before any resampling recovers that cost. It also keeps the main benefit of alignment, which is knowing where on the face a feature sits. That position matters because, as the canonical-template work in radiology suggests, artifacts concentrate at consistent anatomical locations.
A second, sharper prediction concerns rotation. Rotating a codec's horizontal and vertical block edges should move their energy into the diagonal wavelet sub-band. That is exactly the band that WaveRep identifies as the compression-robust carrier of generator fingerprints. Rotation-heavy alignment could therefore inject codec structure into the one band such detectors trust, which creates a shortcut that has nothing to do with whether a face is real or fake.
Why this gap is real
Several papers motivate the proposal by documenting trace erasure under geometric and codec processing. SPAN localizes manipulations with spatial-pyramid attention over noise features and reports degradation on low-resolution inputs. Face X-Ray detects the blending seam between a pasted face and its background and concedes that downsampling and heavy compression wash out the statistics across the seam. The intermediate-values mosaic analysis shows that traces of camera colour-filter interpolation vanish below JPEG quality 95. FaceForensics++ shows XceptionNet falling from 99.26% accuracy on raw video to 81.00% at heavy H.264 compression (c40).
Two other papers constrain the design. FaceForensics++ found that tracking-aligned face crops beat unaligned full frames, so we cannot simply abandon face localization. WildDeepfake reports a "3D paradox", in which 3D-aware models generalize worse than 2D ones on internet video. That argues against heavy 3D reconstruction.
The closest existing work is FD²Net. It fits a 3D face model, unwraps the facial detail into a canonical UV texture map (a flattened face image with fixed landmark positions), and classifies that map, reporting 67.70% AUC zero-shot on DFDC. It applies its canonical warp to pixels before forensic analysis and never studies the resampling the warp introduces. We reverse the order and avoid 3D fitting altogether.
Our method borrows its mechanism from registration-assisted prototypical segmentation. That work predicts affine parameters and applies them to multi-scale latent feature maps rather than to raw MRI voxels, and losing its alignment module cost at least 12% Dice. We reuse the "warp features, not pixels" idea in a domain where the pixels themselves carry the signal. CIA-Net aligns chest X-rays to a canonical template and contrasts them against healthy references, more than doubling strict localization accuracy (0.12 to 0.29). It motivates our per-location statistics. Unlike CIA-Net, we target microscopic traces rather than visible pathology.
Research Program
The first component is a measurement study. We take raw FaceForensics++ frames and apply alignment warps of controlled magnitude: rotations from 0° to 30°, scale factors including integer ones, and landmark-driven similarity transforms. Each is applied with nearest-neighbour, bilinear, bicubic, and Lanczos resampling, and the warps are applied both before and after re-encoding at c23 and c40. For each condition we measure three quantities:
- the energy of known periodic traces, namely spectral peaks from generator upsampling and peaks at the 8-pixel block frequency;
- the redistribution of wavelet energy across the low, horizontal, vertical, and diagonal sub-bands;
- the AUC of a fixed, pretrained detector.
This produces dose-response curves of detection quality against warp magnitude, interpolation kernel, and compression level. It also directly tests the diagonal-leakage prediction.
The second component is the detector. A forensic stem runs fully convolutionally on the native-resolution face region, which is cut out with an integer-pixel bounding box and receives no resizing or rotation. The stem consists of learned high-pass layers initialized from steganalysis filters, as in Luo et al., followed by early backbone stages. We get geometry from facial landmarks, which are fitted on a separate, freely resampled copy of the frame. The landmarks never touch the forensic path.
From the landmarks we estimate a similarity or thin-plate transform to a canonical face template, and we test two ways to use it. In feature warping, the stem's coarse feature maps, at stride 8 or 16, are resampled into canonical coordinates. Interpolating at that resolution blends already-extracted evidence rather than destroying fine pixel statistics. In coordinate tagging, nothing is resampled at all. Each native-grid token receives the canonical coordinates of its own pixel as a positional encoding, and a transformer head reasons over the tokens.
Both variants then allow a per-location artifact prior, in which a canonical-space map of where fake evidence concentrates is learned and used as attention. This extends the CAM-consistency constraint of FreqDebias into a pose-invariant frame. All variants train on the same FaceForensics++ data with the same blended-image augmentation used by the strongest baseline.
Baselines
The naive reference is the standard pipeline: an EfficientNet or Xception backbone trained on landmark-aligned, resized 256×256 crops, the preprocessing that FaceForensics++ popularized. For orientation, FaceForensics++ reports 99.26% accuracy on raw and 81.00% on c40 for XceptionNet. We reproduce this baseline in our own codebase rather than relying on those figures.
The strongest existing method on cross-dataset face forgery in this file is FreqBlender. It learns to split DCT spectra into semantic, structural, and noise parts and swaps the structural part between real and fake faces to synthesize training data. It reports 94.59% AUC on Celeb-DF and 74.59% AUC on DFDC when trained on FaceForensics++. It is the strongest competitor because it already addresses frequency shortcuts, but it still uses standard aligned crops. That makes it the natural host for our change: we run FreqBlender's released recipe, swap only its preprocessing and stem for our native-grid variants, and keep the training data, the number of epochs, and the hyperparameter search budget identical. Beating it means a gain on Celeb-DF and DFDC AUC larger than the seed-to-seed spread over three seeds, with the largest gains expected at c40.
FD²Net is the canonical-UV competitor, at 67.70% DFDC AUC. We cite its numbers as reported because reproducing it requires its 3D model fitting, and we compare accuracy against its per-frame cost of 0.44 s. Face X-Ray, at 80.58% on Celeb-DF, anchors the boundary-based family.
Three ablations isolate the key ingredient. The first, "native-grid, no geometry", is integer-box crops with no canonical information. The second, "aligned pixels, same head", is our architecture fed conventionally warped crops. The third, "integer-only alignment", uses translation-only, nearest-neighbour cropping plus coordinate tagging. Together they separate the value of avoiding resampling from the value of knowing canonical position.
Why not just…?
Why not just skip alignment and use plain bounding-box crops? This is the real threat. WaveRep reaches 94.3% average balanced accuracy across 15 video generators on unaligned frames, which shows that alignment is not necessary for strong detection. If the native-grid-no-geometry ablation matches our full model, the conclusion is that alignment should be dropped for trace-based detectors. That would still contradict standard practice and would be worth publishing. Our bet that position helps rests on the FaceForensics++ aligned-crop result and on the localization gains from canonical templates in CIA-Net and the pelvic work. The ablation settles the question directly.
Why not just use a better interpolation kernel, such as Lanczos or bicubic? Higher-order kernels reduce blur, but they still band-limit the image, and no kernel keeps the block grid axis-aligned under rotation. The measurement study covers all four kernels. If Lanczos-aligned pixels close the gap to the native-grid stem, we will report that as the cheap fix.
Why not just augment training with random rotations, resizing, and JPEG? Augmentation teaches tolerance to destroyed evidence; it cannot restore it. The Celeb-DF survey shows nine detectors averaging 56.9% AUC, and the winning DFDC ensembles reached 0.734 ROC-AUC, despite conventional augmentation. We nonetheless add a resampling-augmented version of the naive baseline under the same compute budget, so that the comparison is not won by omission.
Decisive Checks
We train on FaceForensics++ (raw, c23, c40) and evaluate zero-shot on Celeb-DF v2, DFDC, and WildDeepfake, reporting frame- and video-level AUC.
Three outcomes would confirm the thesis. First, the AUC gap between the aligned-pixel and native-grid variants should be near zero for identity or integer warps and should widen with rotation angle and compression level. Second, rotation should measurably raise diagonal-band energy at block-boundary frequencies in compressed real videos. To test whether this leakage misleads detectors that rely on that band, we train a WaveRep-style diagonal-only detector on GenVideo-style data with and without pre-alignment. Third, the coordinate-tagged model should beat the native-grid-no-geometry ablation, which is the evidence that canonical position adds value beyond preserving the pixels.
If the dose-response curve is flat, meaning alignment causes no measurable trace loss, the central premise is wrong. In that case the project reduces to a negative measurement result.
References
- Seeing What Matters: Generalizable AI-generated Video Detection with Forensic-Oriented Augmentation
- SPAN: Spatial Pyramid Attention Network for Image Manipulation Localization
- Face X-Ray for More General Face Forgery Detection
- Image Forgeries Detection through Mosaic Analysis: the Intermediate Values Algorithm
- FaceForensics++: Learning to Detect Manipulated Facial Images
- WildDeepfake: A Challenging Real-World Dataset for Deepfake Detection
- Face Forgery Detection by 3D Decomposition
- FEW-SHOT Image Segmentation for Cross-Institution Male Pelvic Organs Using Registration-Assisted Prototypical Learning
- Align, Attend and Locate: Chest X-Ray Diagnosis via Contrast Induced Attention Network With Limited Supervision
- Generalizing Face Forgery Detection With High-Frequency Features
- FreqDebias: Towards Generalizable Deepfake Detection via Consistency-Driven Frequency Debiasing
- FreqBlender: Enhancing DeepFake Detection by Blending Frequency Knowledge