Fake Motion Hides in the Next Derivative
Generated video can keep average velocity perfectly plausible while making tiny alternating corrections from frame to frame. First-order motion sees the speed and misses the wobble.
d3video builds matched real and synthetic trajectories. Both share smooth global motion, and the generated clips carry a small alternating correction designed to leave the obvious statistics alone.
Difference of Differences
The detector takes frame-to-frame displacement, then differences those displacements again, and classifies with one threshold on the mean second-order magnitude. No model, no training split, no feature extractor.
Two honest caveats. The threshold is the mean score of the clips being classified. It never looks at a label, but it does assume roughly half of them are fake. And compression robustness is a separate question this benchmark doesn't answer.
The Number
On 200 trajectories, first-order motion scores 46%, no better than a coin. Second-order discrepancy scores 100%, a 54-point gain. It's a controlled forensic benchmark, not a guarantee on arbitrary internet video.
100% Was Close to a Best Case, Not a Typical One
The injected artifact flips sign on every frame at full amplitude: a perfect square wave at the highest frequency a frame sequence can carry. A second-difference filter is most sensitive to exactly that frequency, so the published artifact is close to the textbook best-case input for this detector, not a stand-in for what a real generator does.
So I made it less convenient but just as plausible: 40% of the amplitude, and a random sign on each frame instead of a perfect alternation, since real generator noise has no reason to march in lockstep. Second-order accuracy drops to 72.5% across 40 tuning seeds and 73.4% on a disjoint 30-seed holdout, evaluated once. The gain over first-order falls to 22.9 and 23.9 points, never below 12.5.
The core claim survives: second-order features clearly beat first-order on a harder artifact. But 100% and 54 points are near the ceiling of one hand-built construction, not the typical case. The original module is untouched, and 9 tests pass on GitHub Actions across Python 3.9 through 3.13.
Research Basis
Inspired by ICCV 2025's D3 video detector, which reports results across four real datasets. Every number on this page comes from this repository's own controlled benchmark, not from the paper.
Try It
Standard library only:
git clone https://github.com/ahmeddoghri/d3video && cd d3video
python d3video.py # the square-wave artifact: 46% → 100%
python eval_v2.py # random-sign artifact at 40% amplitude: ~23-point gain over 70 seeds