Abstract
AI-generated videos have achieved near-perfect visual realism, urgently necessitating reliable detection mechanisms. However, detecting such videos faces significant challenges in modeling high-dimensional spatiotemporal dynamics and identifying subtle anomalies that violate physical laws. We propose a physics-driven AI-generated video detection paradigm based on probability flow conservation principles. Specifically, we introduce the Normalized Spatiotemporal Gradient (NSG), a statistic that quantifies the ratio of spatial probability gradients to temporal density changes, explicitly capturing deviations from natural video dynamics. Leveraging pre-trained diffusion models, we develop an NSG-based video detection method (NSG-VD) that computes the Maximum Mean Discrepancy (MMD) between NSG features of test and real videos. Extensive experiments confirm that NSG-VD outperforms state-of-the-art baselines by 16.00% in Recall and 10.75% in F1-Score, demonstrating superior performance even against advanced models like Sora.
Introduction
The rapid advancement of generative AI, exemplified by models like OpenAI’s Sora, has made it increasingly difficult to distinguish synthetic videos from reality. Traditional detection methods typically rely on identifying visual artifacts—glitches, unnatural textures, or temporal flickering. However, as generative models become more sophisticated, these "low-level" artifacts are disappearing, rendering conventional detectors less effective.
The core limitation of existing approaches is their focus on appearance and motion as separate, often heuristic, features. In contrast, natural videos are governed by underlying physical constraints, such as motion coherence and texture continuity. AI models, despite their visual polish, often struggle to perfectly replicate these complex spatiotemporal dynamics. This paper addresses the challenge by modeling the "intrinsic physics" of videos through the lens of probability flow conservation.
The Physics-Driven Approach
The fundamental premise of our work is that video evolution can be modeled as a fluid of probability mass. In natural videos, this mass should be conserved, following a continuity equation derived from fluid mechanics. While traditional modeling treats appearance and motion as distinct components, our physics-driven paradigm integrates them into a unified framework based on probability density $p(x, t)$ and velocity $v(x, t)$.
By treating the video as a probability flow, we can identify inconsistencies where the generated content violates the conservation law: $$\frac{\partial p(x, t)}{\partial t} + \nabla_x \cdot (p(x, t) \cdot v(x, t)) = 0$$ Synthetic videos often exhibit subtle deviations from this equation, providing a robust signal for detection that is independent of visual resolution or texture quality.
The NSG-VD Framework
To operationalize this physical principle, we introduce the Normalized Spatiotemporal Gradient (NSG). The NSG statistic quantifies the relationship between spatial probability gradients and temporal density changes.
NSG Estimation via Diffusion Models
Calculating the NSG requires knowing the probability distribution of natural videos, which is unknown. We overcome this by leveraging pre-trained diffusion models. Diffusion models are trained to learn the "score function"—the gradient of the log-probability density ($\nabla_x \log p(x, t)$). This provides the spatial component of our statistic. For the temporal component, we utilize the "brightness constancy assumption" from optical flow to approximate temporal derivatives without the need for complex motion decomposition.
Detection via Maximum Mean Discrepancy
The complete detection pipeline, termed NSG-VD, involves extracting NSG features from a test video and comparing them to a reference set of real videos. We use the Maximum Mean Discrepancy (MMD) as a distance metric. A high MMD value indicates that the test video's spatiotemporal dynamics significantly differ from the natural distribution, flagging it as AI-generated.
One of the key theoretical strengths of this approach is "distribution shift amplification." We prove that even minor discrepancies in the generative model's output are amplified in the NSG feature space, making subtle fakes much easier to identify than with standard visual features.
Experimental Results
We evaluated NSG-VD using the GenVideo benchmark, which includes real videos and synthetic content from 19 different generators, including Sora, Pika, and Stable Video Diffusion.
Performance and Generalization
NSG-VD demonstrates significant improvements over state-of-the-art baselines like Demamba. On average, it achieved a 16.00% increase in Recall and a 10.75% increase in F1-Score. Notably, when tested on Sora—one of the most advanced generative models—NSG-VD achieved a 94.64% Recall, while the best baseline detectors struggled to reach 43%.
The method also shows excellent generalization. In "cross-generator" tests, where the detector is trained on one model (e.g., Pika) and tested on others (e.g., Sora), NSG-VD remained robust. This suggests that the model is learning universal physical inconsistencies rather than over-fitting to specific model-dependent artifacts.
Efficiency
Despite its reliance on diffusion models, NSG-VD is remarkably parameter-efficient. The detection head requires only 0.25 million trainable parameters, as it leverages the vast "knowledge" already embedded in the pre-trained diffusion weights.
Conclusion and Future Work
NSG-VD represents a shift from artifact-based detection to physics-driven modeling. By enforcing probability flow conservation, we can expose the subtle physical flaws inherent in current AI-generated videos.
While highly effective, the current framework assumes relatively smooth, incompressible flow, which may be challenged by highly chaotic scenes or rapid cuts. Future work will explore more complex physical models, such as compressible flow, and investigate the use of lightweight diffusion models to reduce inference latency for real-time applications.
The source code for NSG-VD is available at https://github.com/ZSHsh98/NSG-VD.
Summary updated