Manuscript Offprint

arXiv:2610.31478

MoG-VLM: Efficient Video Anomaly Detection through Motion-Guided Vision-Language Models

Khaled Waleed Dawoud, Muhammad Zaigham Zaheer, Khan Muhammad, Muhammad Haris Khan

Abstract

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.31× 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.

1 INTRODUCTION

The proliferation of camera systems has generated unprecedented volumes of video data, creating an urgent need for automated anomaly detection systems capable of identifying rare

© 2026. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.

Figure

Figure 1: Comparison of frame sampling strategies for video anomaly detection. (a) Dense sampling, incurring prohibitively high computational cost [2]. (b) Uniform sampling, which can waste computation on static segments [1, 3]. (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.

and unpredictable events in real-time [6, 2]. Traditional approaches [6, 2, 6] that process every frame with equal computational intensity or uniform stride are fundamentally misaligned with the nature of video footage, where anomalous events are sparse and localized. This inefficiency becomes particularly pronounced when deploying computationally expensive Vision-Language Models (VLMs), which offer unprecedented semantic understanding but impose prohibitive inference costs for continuous real-time processing [6, 2]. Modern video-capable architectures such as Video-LLaMA [6] and the Qwen-VL family [6] demonstrate remarkable improvements in temporal coherence and semantic depth compared to earlier contrastive models [2, 2], making them particularly well-suited for applications where abnormality is often defined by context. However, this representational power comes at a substantial computational cost. Without mechanisms to adapt inference effort to content dynamics in video anomaly detection (VAD), this representational power remains largely inaccessible under the computational and memory constraints of real-time deployment [6].

Current VLM-based anomaly detection methods overwhelmingly adopt uniform processing paradigms, sampling frames at fixed strides [1,5,6][1, 5, 6] or analyzing entire videos exhaustively [1][1] regardless of content dynamics. This is wasteful: many video intervals are static or low-activity yet incur the same per-frame VLM cost as dynamic, anomaly-rich segments. Recent zero-shot extensions [1,6][1, 6] and parameter-efficient fine-tuning approaches [6,5][6, 5] have advanced reasoning quality, but inherit this uniform-sampling assumption and overlook the spatial and temporal sparsity inherent to surveillance footage.

In contrast, our framework operates from a deliberately coarse baseline sampling rate and selectively densifies only where motion dynamics indicate informative content. As illustrated in Fig. 1, dense (Fig. 1a) and uniform (Fig. 1b) sampling process frames indiscriminately, while our motion-adaptive approach (Fig. 1c-d) concentrates computation on temporally dynamic segments intervals exhibiting high or sudden motion changes characteristic of fights, explosions, or vehicle collisions and suppresses redundant inference on static footage.

This gap between semantic capability and computational tractability motivates a fun-damental question: Starting from a coarse uniform sampling baseline, can we adaptively allocate additional computation only when video dynamics demand it to achieve real-time VLM-based anomaly detection? Addressing this question requires moving beyond accuracy-centric evaluation toward a holistic framework that explicitly balances detection performance with computational efficiency. Specifically, there exists no prior work that systematically investigates adaptive mechanisms for content-aware resource allocation in vision-language-based anomaly detection, nor sufficient analysis of the trade-offs between computational cost and video anomaly detection performance.

In this work, we introduce a motion-adaptive anomaly detection framework that fundamentally reimagines how computational resources are allocated across video content. Unlike classical approaches that employ motion as a direct classification feature [0,8,17,19][0, 8, 17, 19], we take advantage of motion purely as a lightweight control mechanism, a semantic activation signal that determines when VLM inference is necessary. We introduce TGM analysis to establish a motion quantification mechanism, thereby dynamically adjusting the sampling density based on detected temporal dynamics. We further introduce an anchor-triggered hierarchical refinement mechanism that preserves computational efficiency while recovering fine-grained temporal context. Adaptively sampled frames that exhibit high anomaly confidence serve as anchor points, triggering progressive multi-window analysis, ensuring that dense coverage is applied exclusively where anomalous patterns emerge. In parallel, we introduce a complementary temporal stream that captures action dynamics through video-language modeling. This branch processes non-overlapping temporal windows, generating video-level semantic descriptions that encode motion trajectories and behavioral sequences. The two pathways converge through adaptive scoring, combining frame-level instantaneous detections with temporal-level behavioral context into unified predictions.

Contributions. We summarize our key contributions as follows: Motion-Adaptive Sampling Framework: A novel motion quantification mechanism using multiscale TGM analysis and adaptive z-score that dynamically adjusts sampling density based on temporal dynamics, achieving substantial computational savings. Anchor-Triggered Hierarchical Refinement: A progressive multi-window expansion mechanism where adaptively sampled frames exhibiting high anomaly trigger conditional retrospective analysis, examining preceding context with early termination to prevent unnecessary computation on low-confidence detections. Tier-Aware Adaptive Fusion: A fusion mechanism in which the mixing weight λ\lambda between frame-level and temporal-level streams is not learned but inherited from the TGM motion tier of each frame, with λ\lambda taking a piecewise-constant value determined by whether the frame is unflagged, motion-flagged, or anchor-triggered. This tier-driven weighting is agnostic to dataset specifics and scene dynamics. Comprehensive Efficiency-Accuracy Analysis: A systematic study of the compute-accuracy trade-off in zero-shot VLM-based anomaly detection, a dimension largely absent from prior work. MoG-VLM attains 84.30%, 91.91%, 87.88% and 78.96% AUC-ROC on UCF-Crime, XD-Violence, MSAD and Shang setting a new zero-shot training-free state of the art on three benchmarks.

References (39)

  • Anyanomaly: Zero-shot customizable video anomaly detection with lvlm
  • a visual language model for few-shot learning
  • Qwen Technical Report
  • Tevad: Improved video anomaly detection with captions
  • Mgfn: Magnitude-contrastive glance-and-focus network for weakly-supervised video anomaly detection
  • Fusedvision: A knowledge-infusing approach for practical anomaly detection in real-world surveillance videos
  • Convolutional two-stream network fusion for video action recognition
  • Anomaly detection in video via self-supervised and multi-task learning
  • Frame-exit: Conditional early exiting for efficient video recognition
  • Scsampler: Sampling salient clips from video for efficient action recognition
  • Video-llava: Learning united visual representation by alignment before projection
  • A unified reasoning framework for holistic zero-shot video anomaly analysis
  • Improved baselines with visual instruction tuning
  • Future frame prediction for anomaly detection—a new baseline
  • Ar-net: Adaptive frame resolution for efficient action recognition
  • Mulde: Multiscale log-density estimation via denoising score matching for video anomaly detection
  • Learning memory-guided normality for anomaly detection
  • A 3-dimensional sift descriptor and its application to action recognition
  • Training-free event-aware video anomaly detection
  • Real-world anomaly detection in surveillance videos
  • Hawk: Learning to understand open-world video anomalies
  • Weakly-supervised video anomaly detection with robust temporal feature magnitude learning
  • Video anomaly detection by solving decoupled spatio-temporal jigsaw puzzles
  • Learning event completeness for weakly supervised video anomaly detection (opens arXiv in a new tab)
  • Weakly supervised video anomaly detection with anomaly-connected components and intention reasoning
  • Learning local semantic signals and inter-class discrepancy for weakly supervised video anomaly detection (opens the publisher in a new tab)
  • Not only look, but also listen: Learning multimodal violence detection under weak supervision
  • Open-vocabulary video anomaly detection
  • Weakly supervised video anomaly detection and localization with spatio-temporal prompts
  • Liteeval: A coarse-to-fine framework for resource efficient video recognition
  • Adaframe: Adaptive frame selection for fast video recognition
  • Follow the rules: Reasoning for video anomaly detection with large language models (opens arXiv in a new tab)
  • Text prompt with normality guidance for weakly supervised video anomaly detection
  • Vera: Explainable video anomaly detection via verbalized learning of vision-language models
  • Harnessing large language models for training-free video anomaly detection
  • Video-LLaMA: An Instruction-tuned Audio-Visual Language Model for Video Understanding
  • Holmes-vau: Towards long-term video anomaly understanding at any granularity
  • Dual memory units with uncertainty regulation for weakly supervised video anomaly detection
  • Advancing video anomaly detection: A concise review and a new dataset