MoG-VLM: Efficient Video Anomaly Detection through Motion-Guided Vision-Language Models
Authors: Khaled Waleed Dawoud, Muhammad Zaigham Zaheer, Khan Muhammad, Muhammad Haris Khan
Organizations: Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, United Arab Emirates · Sungkyunkwan University, Seoul 03063, South Korea
Vision-Language Models (VLMs) have shown strong potential for video anomaly detection, but dense frame-level inference makes them impractical for real-time deployment. Existing acceleration commonly relies on uniform sampling, which ignores content dynamics and can either waste computation on static segments or miss localized anomalies. We propose MoG-VLM a motion-adaptive anomaly detection framework that leverages motion purely as a lightweight control signal to decide when VLM inference is necessary. To this end, we introduce Temporal Gradient Magnitude (TGM) which performs content-aware sampling to concentrate computation on informative regions while avoiding redundant processing. We further introduce a hierarchical dual-stream design in which dense multi-frame VLM reasoning is activated only around frames with elevated anomaly likelihood, via anchor-triggered context-window expansion with early termination. A fusion module then reconciles these instantaneous semantic cues with temporal action dynamics. Across four benchmarks, our method achieves 91.91%, 84.30%, 87.88%, and 78.96% AUC-ROC on XD-Violence, UCF-Crime, MSAD, and ShanghaiTech, respectively, establishing new state of the art on three benchmarks under the zero-shot, training-free setting. On XD-Violence, we improve over the previous best result by +0.57% while delivering a 1.31x inference speedup. These results demonstrate that content-aware allocation of VLM capacity, processing fewer frames more intelligently rather than all frames uniformly, is a more effective axis of progress than uniformly densifying VLM inference across frames. Code is available on GitHub: https://github.com/kdawoud91/MoG-VLM.
Figures & tables
Figure 1: Comparison of frame sampling strategies for video anomaly detection. (a) Dense sampling, incurring prohibitively high computational cost [ 20 ] . (b) Uniform sampling, which can waste computation on static segments [ 36 , 12 ] . (c) Our motion-adaptive sampling method based on Temporal Gradient Magnitude (TGM) dynamically selects frames according to motion patterns, reducing processed frames. (d) Our introduced anchor-triggered processing selectively expands time windows around high-confidence detections.
Figure 2: Overview of the MoG-VLM framework. Motion-adaptive sampling via TGM categorizes frames into three tiers: baseline uniform (orange), TGM-triggered densification (green), and anchor-triggered (magenta). Baseline stride frames and TGM-triggered frames with high anomaly scores become anchors, initiating hierarchical lookback windows ( W1 , W2 , W3 ). Stream B conducts temporal-level Video-VLM multi-frame reasoning and LLM scoring. Tier-aware adaptive fusion combines both streams using motion-tier-inherited weights ( λbase , λmotion , λanchor ) without training.
Method
Zero-shot
Training-free
XD-Violence
UCF-Crime
MSAD
ShanghaiTech
AUC(%)
AUC(%)
AUC(%)
AUC(%)
FusedVision [ 6 ]
✗
✗
–
–
–
83.58
RTFM [ 23 ]
✗
✗
61.56
–
85.67
–
Jigsaw [ 24 ]
✗
✗
–
–
–
84.30
MGFN [ 5 ]
✗
✗
–
86.98
85.0
–
STPrompt [ 30 ]
✗
✗
–
88.08
–
–
Table 1: VAD Performance comparison across XD-Violence, UCF-Crime, MSAD and ShanghaiTech. ✓ / ✗ indicate whether a method is zero-shot and training-free. Our MoG-VLM results are mean ± std over 3 runs.
Table 4Table 5Figure 6
Table 6: Ablation of multiscale TGM window sizes W . AUC-ROC (%) is reported at the frame-level (motion-adaptive sampling only). The default configuration is shaded. W XD UCF MSAD Shang {1,2,4} 84.69 68.31 81.51 72.38 {1,3,5} 84.53 66.76 79.07 71.38 {2,4,8} 85.36 68.61 79.38 70.67
King Abdullah University of Science and Technology (KAUST), Thuwal, Saudi Arabia · African Institute for Mathematical Sciences (AIMS), Cape Town, South Africa · Independent Researcher +1