Manuscript Offprint
arXiv:2610.31478MoG-VLM: Efficient Video Anomaly Detection through Motion-Guided Vision-Language Models
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 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 or analyzing entire videos exhaustively 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 and parameter-efficient fine-tuning approaches 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 , 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 between frame-level and temporal-level streams is not learned but inherited from the TGM motion tier of each frame, with 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.
3 Methodology
Our framework introduces motion-adaptive sampling with hierarchical VLM-based processing through a dual-stream architecture that balances computational efficiency with detection

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 ( , , ). 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 ( , , ) without training.
accuracy. Fig. 2 illustrates the complete pipeline.
3.1 Frame-Level Anomaly Detection via Motion-Adaptive Sampling
We propose a motion-adaptive sampling strategy that dynamically adjusts processing density based on temporal dynamics, enabling efficient allocation of computational resources to informative regions while maintaining detection accuracy.
3.1.1 Temporal Gradient Magnitude Analysis
Given a video sequence , we extract frames at a baseline sampling rate to establish coarse temporal coverage. For each sampled frame , we compute the Temporal Gradient Magnitude (TGM) at multiple temporal scales to capture motion patterns ranging from instantaneous changes to sustained activities. At each scale , we form per-pixel velocity and acceleration , and reduce the resulting TGM map to a scalar via its percentile:
where controls the relative contribution of acceleration to the combined motion signal. The per-scale summaries are aggregated by magnitude-weighted averaging,
Scales exhibiting stronger response contribute proportionally more to the aggregated signal.
3.1.2 Adaptive Z-Score Anomaly Detection
To identify temporal regions exhibiting anomalous motion patterns, we employ adaptive z-score normalization over a sliding exponential moving average (EMA) of TGM statistics. This approach enables context-aware anomaly detection that adapts to scene-specific activity levels while remaining sensitive to deviations from normal behavior.
For each frame t, we compute the adaptive z-score:
where and are the running mean and standard deviation maintained via EMA updates with decay factor . Critically, we implement a freezing mechanism during anomaly detection windows: when (where is the anomaly threshold), we freeze updates to and to prevent contamination of the reference distribution by anomalous behavior. This ensures that detected anomalies do not erroneously recalibrate, which would reduce sensitivity to sustained anomalous activities.
3.1.3 Motion-Guided Adaptive Sampling
Upon detecting motion anomalies via z-score thresholding, we trigger adaptive refinement of the temporal sampling rate in the identified region. Specifically, when , we extend the detection window to and increase the sampling rate to within this temporal neighborhood, while maintaining the baseline rate elsewhere. This produces a non-uniform sampling schedule:
This adaptive sampling strategy concentrates computational resources on temporally dynamic regions while avoiding redundant processing of static or slowly-changing segments.
3.2 Vision Language Frame-Level Captioning
For each adaptively sampled frame, we employ a vision–language model to generate descriptions of the visual content. Given a sampled frame , frame-level captioning is formulated as:
denotes the vision–language model and is a task-specific prompt designed to emphasize anomaly-relevant attributes such as objects, persons, and spatial relationships. For exact prompts please see Supplementary Section C.3.1
3.3 Language-Based Anomaly Scoring
Given a frame caption , we prompt the language model to assess the anomaly likelihood through structured reasoning. The prompt template is designed to emphasize instantaneous anomaly indicators, instructing the model to identify unusual actions, dangerous situations, suspicious behaviors, violence, accidents, or any visual patterns that deviate from typical video footage. (see Supplementary C.3.2 for the full prompts) The frame-level anomaly score at time t is computed as:
denotes the language model and represents the frame-level anomaly score.
3.4 Anchor-Triggered Multi-Frame Analysis
While the frame-level analysis provides efficient anomaly detection through motion-adaptive sampling at an elevated rate in dynamic regions, certain anomalous activities require even denser temporal coverage to fully capture their fine-grained dynamics. Rather than indiscriminately escalating the sampling rate across all dynamic segments, we introduce an anchor-triggered multi-window mechanism that selectively activates dense multi-frame processing only around adaptively sampled frames that exhibit high anomaly likelihood.
3.4.1 Anchor-Based Processing
From the motion-adaptive sampling pipeline (Section 3.1), we obtain frame-level anomaly scores at non-uniform positions determined by the adaptive sampling rate (Eq. 4). The full set of adaptively sampled frames is , where contains frames sampled at the baseline stride rate and contains additional frames densified at within motion-gated regions. Each frame serves as a potential anchor for triggering fine-grained window analysis.
A frame qualifies as a trigger anchor when its frame-level anomaly score exceeds an activation threshold . We define the set of trigger anchors as:
Since inherits the non-uniform structure of , anchor candidates emerge naturally from motion dynamics rather than fixed intervals. Dynamic regions (where ) yield denser anchor candidates, while static regions (where ) yield anchor candidates at the baseline uniform sampling density. For each , we initiate a hierarchical temporal analysis that progressively examines preceding frames at the native video frame rate to capture fine-grained dynamics.
3.4.2 Hierarchical Window Processing
For each anchor frame , we apply a three-stage hierarchical processing strategy that progressively expands the amount of pre-anchor context examined at full resolution. We define three non-overlapping lookback windows of increasing duration, parameterized by : , , and . At each stage , we run the same frame-level pipeline on frames in to obtain scores , and compute the mean score over that window:
Stage progression is conditioned on for , so additional high-resolution is only processed when earlier evidence suggests sustained anomalous activity.
3.5 Temporal-Level Anomaly Detection via Multi-Frame Context
While frame-level analysis captures fine-grained semantic understanding of individual moments, many anomalous activities exhibit temporal dependencies spanning multiple frames. To capture these dynamics, we introduce a complementary temporal-level stream that processes multi-frame sequences through a video-language model.
3.5.1 Temporal Window Construction
We construct temporal windows at regular intervals along the video to capture local motion patterns and activity evolution. For a video sequence , target frames are selected at a stride , and around each target we form a window of duration seconds by sampling frames:
where the sample positions are spaced across the interval. This ensures the video-language model receives a fixed-size input that spans the full window duration.
3.5.2 Video-Language Temporal Captioning and Scoring
For each window , we employ a video-language model that incorporates spatio-temporal attention to capture motion patterns, action progressions, and inter-frame dependencies across the sequence. The temporal caption is generated as:
where denotes the video-language model and is a prompt template designed to elicit descriptions of activities, motion dynamics, and behavioral patterns. (see Supplementary C.3.3 for the full prompts). Following the frame-level scoring procedure, the temporal anomaly score for window i is then obtained via the same language model:
with . Window-level scores are propagated forward in time until the next window, so every frame in the evaluation timeline inherits the most recent window-level score, mirroring the forward-fill rule used for frame-level scores.
3.6 Tier-Aware Adaptive Fusion
The frame and temporal streams provide complementary evidence: captures instantaneous semantics from adaptively sampled frames, while encodes action dynamics over multi-frame windows. We fuse them per frame through a combination with a time-varying weight :
Rather than treating as a global hyperparameter, we condition it on the sampling tier inherited from the motion-adaptive pipeline: base , baseline rate , motion ( , TGM-densified to ), and anchor ( , hierarchical refinement at full resolution). Tier membership maps to through three scalars:
Each frame’s fusion coefficient corresponds to its tier, and trust in increases monotonically with tier level. Base-tier frames are uniformly sampled and receive the smallest coefficient, which shifts emphasis to the temporal stream. Motion-tier frames are densified by TGM and receive an intermediate coefficient. Anchor-tier frames are refined hierarchically, receive the largest coefficient, and dominate the fused score. A frame’s tier reflects the highest level of processing it receives, baseline-stride and TGM-densified frames are upgraded to when they qualify as anchors (Eq. 7). We smooth with a 1-D Gaussian and clip to before applying Eq. 12 to avoid discontinuities at tier boundaries, then apply a second Gaussian to for evaluation stability.
4 Experiments
4.1 Datasets & Evaluation Metrics
XD-Violence Dataset [2]. XD-Violence (XD) is a large-scale anomaly detection benchmark that contains 800 videos for testing, covering six violence categories. UCF-Crime Dataset [2]. UCF is a large-scale anomaly detection benchmark with 290 untrimmed videos for testing across 13 categories. MSAD [3] is a recent multi-scenario benchmark offering 360 test videos across 14 scene types with varied camera perspectives. ShanghaiTech Dataset [4]. ShanghaiTech contains 107 testing videos with abnormal events captured from fixed cameras. Given its scale and category diversity, we anchor our ablation and efficiency analysis on XD-Violence and report supporting numbers on the remaining benchmarks. Evaluation Metrics. We report frame-level AUC-ROC, the standard threshold-independent metric for video anomaly detection.
4.2 Implementation Details
Motion-Adaptive Sampling. We extract frames at a baseline rate of 1 FPS to establish coarse temporal coverage. For TGM computation, we employ multiscale temporal analysis with window sizes frames to capture motion patterns at different temporal scales. Adaptive z-score anomaly detection uses an exponential moving average (EMA) decay factor of for baseline statistics tracking, with anomaly threshold standard deviations. When motion anomalies are detected, we increase sampling density to FPS within a temporal window of seconds around the detected frame. Vision-Language Models. We employ Qwen3-VL-8B-Instruct for frame-level captioning and VideoLLaMA3-7B for temporal-level processing, where each input consists of frames uniformly sampled from a non-overlapping 64-frame window at the video frame rate. Language-Based Anomaly Scoring. For both frame-level and temporal-level, we employ Qwen3-4B-Instruct-2507. The scoring prompts employ chain-of-thought reasoning, instructing the model to first analyze the caption content, then assess anomaly likelihood on a
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.
| Method | Zero-shot | Training-free | XD-ViolenceAUC(%) | UCF-CrimeAUC(%) | MSADAUC(%) | ShanghaiTechAUC(%) |
|---|---|---|---|---|---|---|
| FusedVision [0] | ✕ | ✕ | - | - | - | 83.58 |
| RTFM [2] | ✕ | ✕ | 61.56 | - | 85.67 | - |
| Jigsaw [2] | ✕ | ✕ | - | - | - | 84.30 |
| MGFN [0] | ✕ | ✕ | - | 86.98 | 85.0 | - |
| STPrompt [0] | ✕ | ✕ | - | 88.08 | - | - |
| OVVAD [2] | ✕ | ✕ | - | 86.40 | - | - |
| Holmes-VAU [3] | ✕ | ✕ | - | 88.96 | - | - |
| MULDE [4] | ✕ | ✕ | - | - | - | 86.70 |
| LEC-VAD [5] | ✕ | ✕ | 88.47 | 89.97 | - | - |
| Yu Wang et al. [6] | ✕ | ✕ | 88.53 | 89.75 | - | 98.13 |
| LAS-VAD [7] | ✕ | ✕ | 89.96 | 91.05 | - | - |
| AnomalyRuler [8] | ✕ | ✓ | - | - | - | 85.20 |
| VERA [9] | ✕ | ✓ | 88.26 | 86.55 | - | - |
| LLAVA-1.5 [10] (ZS) | ✓ | ✓ | 79.62 | 72.84 | - | - |
| UR-DMU [11] | ✓ | ✓ | - | - | 74.30 | - |
| Eventvad [12] | ✓ | ✓ | 87.51 | 82.30 | - | - |
| AnyAnomaly [13] | ✓ | ✓ | - | 80.70 | - | 79.70 |
| LAVAD [14] | ✓ | ✓ | 85.36 | 80.28 | - | - |
| Unified-reasoning [15] | ✓ | ✓ | 91.34 | 84.28 | 85.90 | - |
| MoG-VLM (adaptive) | ✓ | ✓ | 91.91 ± .10 | 84.30 ± .08 | 87.88 ± .17 | 78.96 ± .14 |
scale from 0 (completely normal) to 1 (highly anomalous). Run-to-run AUC variation across three reruns remains below on all benchmarks (variance attributable to LLM temperature sampling). Anchor-Triggered Multi-Frame Analysis. When a frame's anomaly score exceeds , we initiate hierarchical lookback windows of , , and frames at dense FPS. Progressive expansion to each subsequent window is conditioned on the preceding window's mean score exceeding . For tier-aware fusion (Eq. 13), we set , , and across all datasets. These values reflect a monotonically increasing trust in the frame-level stream as the sampling tier rises. We smooth with a 1-D Gaussian () and clip to before applying Eq. 12 to avoid discontinuities at tier boundaries. The fused score is then post-processed with a second 1-D Gaussian filter () for evaluation stability.
4.3 Results
4.3.1 Comparison to State-of-the-Art Methods and Discussion
Table 1 compares MoG-VLM against representative weakly-supervised, one-class, and zero-shot training-free baselines on four standard benchmarks. Among methods that are simultaneously zero-shot and training-free the regime in which our method operates, MoG-VLM establishes new state of the art on three of the four benchmarks. On XD-Violence, we reach AUC-ROC, improving over the previous best zero-shot training-free method, Unified-reasoning [□], by while simultaneously delivering a end-to-end in-
Table 2: Breakdown of AUC-ROC (%) across datasets under different components.
| Dataset | Uniform baseline (Eq. 4) | + (TGM) (Eq. 4) | +Frame anchor (Eq. 8) | Temporal only (Eq. 11) | Fusion (Eq. 12) | Refinement |
|---|---|---|---|---|---|---|
| XD | 84.00 | 84.69 | 87.29 | 85.17 | 88.60 | 91.91 |
| UCF | 65.02 | 68.31 | 70.07 | 74.48 | 77.99 | 84.30 |
| MSAD | 78.41 | 81.51 | 82.31 | 79.06 | 84.84 | 87.88 |
| Shang | 71.54 | 72.38 | 73.10 | 61.64 | 75.87 | 78.96 |
Table 3: Per-component computational cost.
| Component | Bat | s/b |
|---|---|---|
| Stream A — Frame-Level | ||
| VLM Cap. (Qwen3VL-8B) | 24 | 8.19 |
| LLM Score (Qwen3-4B) | 24 | 0.64 |
| Stream B — Temporal-Level | ||
| Vid-VLM (VideoLLaMA3) | 4 | 2.04 |
| LLM Score (Qwen3-4B) | 24 | 0.64 |
ference speedup (Sec. 4.5). On MSAD, we obtain , a absolute gain over Unified-reasoning and a gain over the strongest non-zero-shot method, MGFN [☐]. On UCF-Crime, MoG-VLM reaches , marginally surpassing Unified-reasoning . It also exceeds other zero-shot, training-free baselines such as LAVAD , AnyAnomaly , and EventVAD by a clear margin.
These gains are particularly notable given the constraints of our setting. Methods such as Holmes-VAU [68] (88.96% on UCF-Crime) and STPrompt [69] (88.08%) rely on weak supervision with video-level labels and dataset-specific tuning, while VERA [69] performs verbalized learning that adapts prompts to each benchmark. On XD-Violence, our zero-shot training-free result of 91.91% in fact exceeds all supervised baselines we are aware of, suggesting that motion-adaptive sampling and anchor-triggered refinement provide a complementary inductive bias that learned representations alone do not capture.
Fig.3 disaggregates detection performance by anomaly category. On MSAD and XD, most categories exceed AUC-ROC, with near-perfect scores on high-motion events such as Fighting and Abuse. UCF exhibits greater variance, visually distinctive events like Assault are detected reliably, while categories involving minimal distinguishing motion (e.g., Shoplifting, ) remain challenging, as the anomalous action is often brief or subtle. The results suggest that detection is most reliable when anomalies manifest as clearly dynamic events. Shang is omitted as its abnormal events are not annotated by category.
4.3.2 Progressive Pipeline Component Analysis
Table 2 decomposes the contribution of each component by progressively activating them on top of a uniform-sampling baseline, tracing the full path to the final MoG-VLM.
Motion-adaptive sampling (TGM). The TGM gate improves AUC-ROC by to across all datasets relative to the uniform baseline. These consistent gains confirm that motion gating successfully concentrates VLM computation on informative intervals without sacrificing detection quality. Anchor-triggered hierarchical refinement. Adding anchor refinement produces strongly dataset-dependent effects. On UCF , XD and MSAD , hierarchical lookback contributes substantially, as many anomalies in these benchmarks (assault, accidents) unfold over multi-second pre-event contexts that benefit from denser temporal evidence. Temporal stream. The temporal column reveals notably different behavior across datasets. On UCF, the video stream alone surpasses the frame stream by , suggesting that action-level dynamics carry strong discriminative signal for the diverse activity categories in this benchmark. On Shang, in contrast, the temporal stream trails the uniform baseline , consistent with a domain gap between VideoLLaMA3's pretraining distribution and the subtle
Table 4: Cumulative timing breakdown (hours) across datasets.
| Configuration | XD | UCF | MSAD | Shang |
|---|---|---|---|---|
| Uniform (1 FPS) | 7.96 | 3.51 | 0.78 | 0.13 |
| + (TGM) | 8.42 | 4.12 | 0.85 | 0.14 |
| + Frame anchor | 9.60 | 5.21 | 0.96 | 0.17 |
| Temporal only | 5.20 | 2.59 | 0.66 | 0.11 |
| Final | 14.80 | 7.80 | 1.62 | 0.28 |
Table 5: Throughput across datasets.
| Dataset | Method | Time (h) | FPS | Speedup |
|---|---|---|---|---|
| XD | LAVAD [■] | 71.40 | 9.1 | 1.0× |
| Unified [■] | 19.40 | 33.4 | 3.7× | |
| Ours | 14.80 | 43.84 | 4.82× | |
| UCF | LAVAD [■] | 33.93 | 9.1 | 1.0× |
| Unified [■] | 9.24 | 33.40 | 3.7× | |
| Ours | 7.80 | 39.25 | 4.35× | |
| MSAD | LAVAD [■] | 6.95 | 9.1 | 1.0× |
| Unified [■] | 1.90 | 33.40 | 3.7× | |
| Ours | 1.62 | 39.01 | 4.30× | |
| Shang | LAVAD [■] | 1.24 | 9.1 | 1.0× |
| Unified [■] | 0.34 | 33.40 | 3.7× | |
| Ours | 0.28 | 40.46 | 4.45× |
pedestrian-scene anomalies (skating, wrong-direction walking) that characterize this dataset. Tier-aware fusion is designed to accommodate precisely this kind of cross-dataset variation, allowing each stream to contribute where it is most reliable. Tier-aware dual-stream fusion. Fusing the two streams via the tier-conditioned coefficient (Eq. 12) yields the largest single improvement at any stage on two of four datasets: on UCF, and on Shang, with a smaller on XD where anchor refinement contributes more. The same mechanism, with identical scalars (, , ), accommodates both directions of complementarity. On UCF the temporal stream rescues the frame stream, while on Shang the frame stream rescues a temporal stream that performed below baseline. Because inherits from the motion sampling tier rather than being tuned per dataset, anchor-tier frames automatically receive the largest frame-stream weight while base-tier frames defer to the temporal stream. Score refinement. Following standard VAD post-processing practice [8, 10, 15], the fused score and the tier coefficient are passed through a 1D Gaussian filter to suppress high-frequency noise from VLM caption variability and tier transitions. This step introduces no new evidence and is applied identically by our zero-shot baselines, but is required for fair comparison.
4.4 Qualitative Results
Figure 4 presents per-frame anomaly score trajectories for six videos spanning distinct anomaly regimes. MSAD—Assault (1). Both streams correctly elevate scores during the annotated anomaly window. Notably, the fused output sustains elevated scores beyond the ground-truth boundary, capturing the post-impact interval in which the victim remains prone on the ground after frame #150, a behaviorally meaningful detection that extends beyond the ground truth. XD-Violence—Multi-category violence (2). Across six concatenated anomaly types interspersed with normal intervals, both streams suppress their outputs during the normal segment (frames 300–1000) and re-elevate in close temporal alignment with each subsequent event, confirming that tier-aware fusion generalizes across heterogeneous anomaly semantics without category-specific tuning. UCF-Normal Videos-453-264 (3) The score remains consistently near zero throughout, demonstrating stable false-positive suppression under normal conditions. MSAD—Fire09 (4) TGM gating remains robust to photometric perturbations: a flickering television and ambient illumination shifts in the normal interval stay below the z-score threshold, while the propagating flame and smoke sustain a coherent multiscale gradient signal that recruits additional VLM inference, improving AUC-ROC from 0.648 (1 FPS) to 0.675 (Sec. 3.1.3). ShanghaiTech—08_0080 (5) The anomalous skating behavior blends visually with surrounding pedestrian activity, and TGM fails to intensify
(a) MSAD Dataset

(b) UCF-Crime Dataset

(c) XD-Violence Dataset
Figure 3: Per-category AUC-ROC breakdown across three benchmarks.
1 MSAD Assault 15

2 XD Casino.Royale.2006 00-51-16 00-52-41 label B1-B6
3 UCF Normal Videos 453 x264
4 MSAD Fire09
5 ShanghaiTech 08 0080
6 RoadAccidents001 x264
Figure 4: Qualitative results. Pink regions denote ground-truth anomalous intervals.
on a motion pattern that is kinematically indistinguishable from normal walking, with AUC-ROC plateauing at the 1 FPS baseline of 72.9% and showing that brief, subtle ShanghaiTech anomalies remain challenging. UCF—RoadAccidents001 (6). The brief hit is missed, but the model sustains an elevated score throughout the prolonged post-impact interval in which the victim remains prone, indicating that sudden short-lived anomalies can evade detection while their behavioral post-event manifestation is more reliably captured.
4.5 Computational Efficiency Analysis
We report timing across XD, UCF, MSAD and Shang on a single NVIDIA A100 40 GB GPU. Table 3 gives per-component latency, Table 4 traces cumulative timing cost as each stage is activated, and Table 5 compares end-to-end throughput against prior zero-shot training-free methods. Where time is spent. Frame-level VLM captioning dominates at 8.19 s/batch (Qwen3-VL-8B), followed by VideoLLaMA3 at 2.04 s/batch; LLM scoring is negligible (0.64 s/batch). Pipeline cost is therefore governed by how often the visual encoders are invoked. Cost attribution per stage. The 1 FPS uniform baseline consumes 7.96, 3.51, 0.78 and .13 h on XD, UCF, MSAD and Shang. TGM gating adds 6–17%, anchor refinement adds a further 13–26%, and the temporal stream contributes roughly half the frame-stream cost. The final dual configuration totals 14.80, 7.80, 1.62 and .28 h. Throughput. Following the convention of stride-based methods [☐], we report amortized effective throughput . MoG-VLM reaches 43.84, 36.25, 39.01 and 40.46 FPS, yielding 4.30–4.82× speedups over LAVAD and 1.17–1.31× over Unified-reasoning. On XD-Violence, it saves 4.60 h of GPU inference time while improving AUC-ROC by +0.57%. Where the savings originate. Three mechanisms: a coarser 1 FPS baseline stride (vs. stride-
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 |
Table 7: Effect of on AUC-ROC (%) across datasets. Default conf. is shaded.
| XD | UCF | MSAD | Shang | |
|---|---|---|---|---|
| 0.4 | 87.56 | 70.21 | 82.92 | 73.44 |
| 0.5 | 87.29 | 70.07 | 82.31 | 73.10 |
| 0.6 | 85.84 | 68.46 | 82.22 | 73.09 |
| 0.7 | 85.29 | 67.95 | 82.14 | 73.16 |
| 0.8 | 84.80 | 67.61 | 82.07 | 73.16 |
16 in prior work) nearly halves the candidate pool before any content-aware filtering; TGM gating suppresses VLM inference on static intervals; and anchor expansion triggers denser lookback only when frame-level scores exceed , with early termination.
Crucially, motion-adaptive allocation improves both axes of the efficiency and accuracy trade-off jointly: a speedup over Unified-reasoning is achieved alongside AUC-ROC gains on every benchmark where direct comparison is reported, indicating that the savings originate from where compute is spent rather than how much. The resulting 36–44 FPS throughput on a single A100 enters the operating regime of standard surveillance camera framerates, suggesting that content-aware allocation is a more deployable axis of scaling for VLM-based VAD than uniformly densifying inference.
4.6 Ablation
Multiscale Window Size Sensitivity. We ablate the temporal window sizes used for multiscale TGM computation by comparing three configurations: , , and . Our default was fixed before this sensitivity study. Table 6 reports frame-level AUC-ROC on all benchmarks (TGM only). Performance is stable across configurations, with the largest gap being on MSAD. The wider performs best on UCF and XD, while MSAD and Shang favors , suggesting that aggregating motion over longer horizons benefits scene-diverse benchmarks while finer granularity captures short pedestrian-scene events. The robustness across configurations indicates that the framework is not sensitive to this hyperparameter choice. Anchor Trigger Threshold Sensitivity. Table 7 shows that performance peaks at lower thresholds () across all datasets, with AUC-ROC degrading as increases beyond 0.5. Most notably a drop of on XD and on UCF when raising the threshold from 0.4 to 0.8. This indicates that permissive anchor activation is preferable, as overly conservative thresholds suppress hierarchical refinement. See Supplementary for more ablation studies. We include ablations on tier-aware fusion weights, EMA freezing during anomaly windows, sensitivity, and Gaussian smoothing strength in Supplementary Section A.
5 Conclusion
We presented MoG-VLM, a zero-shot training-free framework that treats motion as a lightweight control signal governing when VLM inference is invoked. MoG-VLM sets state of the art on UCF-Crime, XD-Violence, and MSAD, remains competitive on ShanghaiTech, and achieves a speedup over the strongest zero-shot baseline, demonstrating that content-aware allocation of model capacity is a more productive axis of progress than scaling uniform VLM inference.
Acknowledgement
This work is supported by MBZUAI Base funds BF0008 and by the BK21 FOUR Project (Bigdata Research and Education Group for Enhancing Social Connectedness Through Advanced Data Technology and Interaction Science Research, 5199990913845), funded by the Ministry of Education (MOE, Korea) and the National Research Foundation of Korea (NRF).
References
[1] Sunghyun Ahn, Youngwan Jo, Kijung Lee, Sein Kwon, Inpyo Hong, and Sanghyun Park. Anyanomaly: Zero-shot customizable video anomaly detection with lvlm. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 3026–3035, 2026.
[2] Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hasson, Karel Lenc, Arthur Mensch, Katherine Millican, Malcolm Reynolds, et al. Flamingo: a visual language model for few-shot learning. Advances in neural information processing systems, 35:23716–23736, 2022.
[3] Jinze Bai, Shuai Bai, Yunfei Chu, Zeyu Cui, Kai Dang, Xiaodong Deng, Yang Fan, Wenbin Ge, Yu Han, Fei Huang, et al. Qwen technical report. arXiv preprint arXiv:2309.16609, 2023.
[4] Weiling Chen, Keng Teck Ma, Zi Jian Yew, Minhoe Hur, and David Aik-Aun Khoo. Tevad: Improved video anomaly detection with captions. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5549–5559, 2023.
[5] Yingxian Chen, Zhengzhe Liu, Baoheng Zhang, Wilton Fok, Xiaojuan Qi, and Yik-Chung Wu. Mgfn: Magnitude-contrastive glance-and-focus network for weakly-supervised video anomaly detection. In Proceedings of the AAAI conference on artificial intelligence, volume 37, pages 387–395, 2023.
[6] Khaled Dawoud, Zaigham Zaheer, Mustaqeem Khan, Karthik Nandakumar, Abdulmotaleb Elsaddik, and Muhammad Haris Khan. Fusedvision: A knowledge-infusing approach for practical anomaly detection in real-world surveillance videos. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 4036–4046, 2025.
[7] Christoph Feichtenhofer, Axel Pinz, and Andrew Zisserman. Convolutional two-stream network fusion for video action recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1933–1941, 2016.
[8] Mariana-Iuliana Georgescu, Antonio Barbalau, Radu Tudor Ionescu, Fahad Shahbaz Khan, Marius Popescu, and Mubarak Shah. Anomaly detection in video via self-supervised and multi-task learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 12742–12752, 2021.
[9] Amir Ghodrati, Babak Ehteshami Bejnordi, and Amirhossein Habibian. Frame-exit: Conditional early exiting for efficient video recognition. In Proceedings of the
IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15608–15618, 2021.
[10] Bruno Korbar, Du Tran, and Lorenzo Torresani. Scsampler: Sampling salient clips from video for efficient action recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6232–6242, 2019.
[11] Bin Lin, Yang Ye, Bin Zhu, Jiaxi Cui, Munan Ning, Peng Jin, and Li Yuan. Video-llava: Learning united visual representation by alignment before projection. In Proceedings of the 2024 conference on empirical methods in natural language processing, pages 5971–5984, 2024.
[12] Dongheng Lin, Mengxue Qu, Kunyang Han, Jianbo Jiao, Xiaojie Jin, and Yunchao Wei. A unified reasoning framework for holistic zero-shot video anomaly analysis. Advances in Neural Information Processing Systems, 38:29713–29744, 2026.
[13] Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 26296–26306, 2024.
[14] Wen Liu, Weixin Luo, Dongze Lian, and Shenghua Gao. Future frame prediction for anomaly detection—a new baseline. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6536–6545, 2018.
[15] Yue Meng, Chung-Ching Lin, Rameswar Panda, Prasanna Sattigeri, Leonid Karlinsky, Aude Oliva, Kate Saenko, and Rogerio Feris. Ar-net: Adaptive frame resolution for efficient action recognition. In European conference on computer vision, pages 86–104. Springer, 2020.
[16] Jakub Micorek, Horst Possegger, Dominik Narnhofer, Horst Bischof, and Mateusz Kozinski. Mulde: Multiscale log-density estimation via denoising score matching for video anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18868–18877, 2024.
[17] Hyunjong Park, Jongyoun Noh, and Bumsub Ham. Learning memory-guided normality for anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14372–14381, 2020.
[18] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021.
[19] Paul Scovanner, Saad Ali, and Mubarak Shah. A 3-dimensional sift descriptor and its application to action recognition. In Proceedings of the 15th ACM international conference on Multimedia, pages 357–360, 2007.
[20] Yihua Shao, Haojin He, Sijie Li, Siyu Chen, Xinwei Long, Fanhu Zeng, Yuxuan Fan, Muyang Zhang, Ziyang Yan, Ao Ma, et al. Eventvad: Training-free event-aware video anomaly detection. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 2586–2595, 2025.
[21] Waqas Sultani, Chen Chen, and Mubarak Shah. Real-world anomaly detection in surveillance videos. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6479–6488, 2018.
[22] Jiaqi Tang, Hao Lu, Ruizheng Wu, Xiaogang Xu, Ke Ma, Cheng Fang, Bin Guo, Jiangbo Lu, Qifeng Chen, and Ying-Cong Chen. Hawk: Learning to understand open-world video anomalies. Advances in Neural Information Processing Systems, 37:139751–139785, 2024.
[23] Yu Tian, Guansong Pang, Yuanhong Chen, Rajvinder Singh, Johan W Verjans, and Gustavo Carneiro. Weakly-supervised video anomaly detection with robust temporal feature magnitude learning. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4975–4986, 2021.
[24] Guodong Wang, Yunhong Wang, Jie Qin, Dongming Zhang, Xiuguo Bao, and Di Huang. Video anomaly detection by solving decoupled spatio-temporal jigsaw puzzles. In European Conference on Computer Vision, pages 494–511. Springer, 2022.
[25] Yu Wang and Shiwei Chen. Learning event completeness for weakly supervised video anomaly detection. arXiv preprint arXiv:2506.13095, 2025.
[26] Yu Wang and Shengjie Zhao. Weakly supervised video anomaly detection with anomaly-connected components and intention reasoning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 28545–28556, June 2026.
[27] Yu Wang, Shengjie Zhao, Jianyu Wang, and Xutao Chu. Learning local semantic signals and inter-class discrepancy for weakly supervised video anomaly detection. IEEE Transactions on Multimedia, 28:6088–6099, 2026. doi: 10.1109/TMM.2026.3668562.
[28] Peng Wu, Jing Liu, Yujia Shi, Yujia Sun, Fangtao Shao, Zhaoyang Wu, and Zhiwei Yang. Not only look, but also listen: Learning multimodal violence detection under weak supervision. In European conference on computer vision, pages 322–339. Springer, 2020.
[29] Peng Wu, Xuerong Zhou, Guansong Pang, Yujia Sun, Jing Liu, Peng Wang, and Yanning Zhang. Open-vocabulary video anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18297–18307, 2024.
[30] Peng Wu, Xuerong Zhou, Guansong Pang, Zhiwei Yang, Qingsen Yan, Peng Wang, and Yanning Zhang. Weakly supervised video anomaly detection and localization with spatio-temporal prompts. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 9301–9310, 2024.
[31] Zuxuan Wu, Caiming Xiong, Yu-Gang Jiang, and Larry S Davis. Liteeval: A coarse-to-fine framework for resource efficient video recognition. Advances in neural information processing systems, 32, 2019.
[32] Zuxuan Wu, Caiming Xiong, Chih-Yao Ma, Richard Socher, and Larry S Davis. Adaframe: Adaptive frame selection for fast video recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1278–1287, 2019.
[33] Yuchen Yang, Kwonjoon Lee, Behzad Dariush, Yinzhi Cao, and Shao-Yuan Lo. Follow the rules: Reasoning for video anomaly detection with large language models. arXiv preprint arXiv:2407.10299, 2024.
[34] Zhiwei Yang, Jing Liu, and Peng Wu. Text prompt with normality guidance for weakly supervised video anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 18899–18908, 2024.
[35] Muchao Ye, Weiyang Liu, and Pan He. Vera: Explainable video anomaly detection via verbalized learning of vision-language models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 8679–8688, 2025.
[36] Luca Zanella, Willi Menapace, Massimiliano Mancini, Yiming Wang, and Elisa Ricci. Harnessing large language models for training-free video anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18527–18536, 2024.
[37] Hang Zhang, Xin Li, and Lidong Bing. Video-llama: An instruction-tuned audio-visual language model for video understanding. arXiv preprint arXiv:2306.02858, 2023.
[38] Huaxin Zhang, Xiaohao Xu, Xiang Wang, Jialong Zuo, Xiaonan Huang, Changxin Gao, Shanjun Zhang, Li Yu, and Nong Sang. Holmes-vau: Towards long-term video anomaly understanding at any granularity. In Proceedings of the computer vision and pattern recognition conference, pages 13843–13853, 2025.
[39] Hang Zhou, Junqing Yu, and Wei Yang. Dual memory units with uncertainty regulation for weakly supervised video anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 3769–3777, 2023.
[40] Liyun Zhu, Lei Wang, Arjun Raj, Tom Gedeon, and Chen Chen. Advancing video anomaly detection: A concise review and a new dataset. Advances in Neural Information Processing Systems, 37:89943–89977, 2024.
Appendix Roadmap
In this appendix, we cover the following materials:
A Extended ablations
A.1 Tier-aware fusion weight sensitivity ..... S1
A.2 EMA freezing during anomaly windows ..... S2
A.3 Anomaly threshold sensitivity ..... S2
A.4 Gaussian smoothing strength ..... S2
A.5 Prompt sensitivity ..... S2
A.6 Isolating the sampling contribution ..... S2
B Additional qualitative results ..... S3
C Prompts ..... S4
C.1 Frame-level captioning prompt ..... S4
C.2 Frame-level anomaly scoring prompt ..... S5
C.3 Temporal multi-frame captioning prompt ..... S5
D Limitations ..... S6
A Extended Ablations
A.1 Tier-Aware Fusion Weight Sensitivity
We sweep each tier weight in independently while holding the other two at the paper configuration . Results are reported in Tables 8–9.
dominates the trade-off. Raising it from 0.2 to 0.7 lifts mean AUC by 0.63% driven by a 2.31% gain on ShanghaiTech against a 0.28% drop on UCF-Crime, XD-Violence is invariant and MSAD gains 0.50%. Anchor-triggered frames thus carry stronger localization signal on sparse-anomaly scenes, but over-commit on the denser, more ambiguous UCF-Crime distribution. exhibits the same asymmetry more sharply. Increasing it from 0.3 to 0.6 raises mean AUC to 86.31% (+0.46%), with ShanghaiTech gaining 1.54% and UCF-Crime losing 0.55%. We retain because higher values inflate the mean at UCF-Crime's expense, where motion-gated triggering is the primary contributor.
is the least sensitive: the full sweep spans only 0.19% in mean AUC, with per-dataset variation under 1.2%. We keep as the inflection point where ShanghaiTech and UCF-Crime trends cross.
A.2 Ablation: EMA Freezing during Anomaly Windows
The adaptive z-score in manuscript Eq. 3 maintains running statistics and via EMA updates. Updating these at every frame allows sustained anomalous motion to be absorbed into the baseline: as the EMA tracks elevated TGM values during an ongoing event, the z-score decays below and suppresses motion-gated densification mid-event. We prevent this
Table 8: sweep (, ).
| MSAD | UCF | XD | Shang. | |
|---|---|---|---|---|
| 0.2 | 87.43 | 84.76 | 91.97 | 76.71 |
| 0.3 | 87.59 | 84.71 | 91.97 | 77.58 |
| 0.4 | 87.72 | 84.66 | 91.97 | 78.16 |
| 0.5 | 87.82 | 84.60 | 91.97 | 78.58 |
| 0.6 | 87.89 | 84.54 | 91.97 | 78.86 |
| 0.7* | 87.93 | 84.48 | 91.97 | 79.02 |
Table 9: sweep (, ).
| MSAD | UCF | XD | Shang. | |
|---|---|---|---|---|
| 0.2 | 87.92 | 84.61 | 91.96 | 78.25 |
| 0.3 | 87.94 | 84.55 | 91.97 | 78.64 |
| 0.4* | 87.93 | 84.48 | 91.97 | 79.02 |
| 0.5 | 87.90 | 84.38 | 91.97 | 79.26 |
| 0.6 | 87.85 | 84.23 | 91.97 | 79.42 |
Table 10: Sensitivity to (, ). AUC (%). *: paper configuration.
| MSAD | UCF | XD | Shang. | |
|---|---|---|---|---|
| 0.2 | 87.57 | 84.47 | 91.79 | 77.99 |
| 0.3* | 87.93 | 84.48 | 91.97 | 79.02 |
| 0.4 | 88.20 | 84.39 | 92.10 | 79.79 |
| 0.5 | 88.40 | 84.20 | 92.17 | 80.35 |
| 0.6 | 88.56 | 83.90 | 92.18 | 80.56 |
self-suppression by freezing and whenever , so the reference distribution reflects only normal background dynamics. Table 11 reports frame-level AUC-ROC with and without freezing. The mechanism yields consistent gains, largest on MSAD (+2.01 pp) and UCF-Crime (+1.95 pp) where anomalies unfold over multi-second intervals, and smaller on XD-Violence (+0.44 pp) where punctate events (gunshots, explosions) complete before the EMA can adapt. The mechanism adds no inference cost and no hyperparameters.
A.3 Ablation: Anomaly Threshold Sensitivity
The motion gate in manuscript Eq. 3 triggers when the adaptive z-score exceeds . We fix across all datasets without per-dataset tuning. This value was selected prior to running the sensitivity analysis below and was not chosen to maximize performance on any dataset. Table 12 reports sensitivity over the range [1.5, 2.3]. Frame-level AUC-ROC varies by less than across this range on every benchmark, confirming that the framework is insensitive to this hyperparameter. All four datasets favor lower thresholds that admit more candidates.
A.4 Ablation: Gaussian Smoothing Strength
The fused score is passed through a 1-D Gaussian filter to suppress high-frequency noise from caption variability and tier transitions. We sweep the filter width over [0.5, 3.0] s with all other settings fixed; Fig. 5 reports frame-level AUC-ROC. The optimal width is anomaly-density dependent. Sparse-anomaly ShanghaiTech degrades monotonically beyond , falling to at as brief events are blurred into the normal baseline. Dense-anomaly benchmarks are robust and mildly benefit from wider kernels: XD-Violence plateaus near , MSAD peaks at , and UCF-Crime at , their multi-second intervals surviving while single-frame noise is removed. We fix across all datasets, as it preserves the temporal precision sparse-anomaly detection requires.
A.5 Ablation: Prompt Sensitivity
The framework is insensitive to prompt wording. We evaluate four variants of the frame-level pipeline prompts on XD dataset (Table 13): the paper default (full structured prompt),
Table 11: Effect of EMA freezing during anomaly windows on frame-level AUC-ROC (%). Default config (Sec. 4.2).
| Dataset | With freeze | No freeze | Δ (%) |
|---|---|---|---|
| XD-Violence | 84.69 | 84.25 | +0.44 |
| UCF-Crime | 68.31 | 66.36 | +1.95 |
| MSAD | 81.51 | 79.50 | +2.01 |
Table 12: Sensitivity to (Eq. 3). Frame-level AUC-ROC (%). Default shaded.
| XD. | UCF | MSAD | Shang. | |
|---|---|---|---|---|
| 1.5 | 85.64 | 68.41 | 81.68 | 72.50 |
| 1.8 | 85.14 | 68.35 | 81.67 | 72.50 |
| 2.0 | 85.01 | 68.26 | 81.61 | 72.50 |
| 2.3 (default) | 84.69 | 68.31 | 81.51 | 72.38 |

Figure 5: Sensitivity of frame-level AUC-ROC to the Gaussian smoothing width across datasets.
V1 (indicator lists removed), V2 (lists and rules cut, no structure), and V3 (default content reworded). AUC-ROC spans only across all four prompts, confirming that results do not depend on a hand-tuned prompt.
| Prompt variant | Final |
|---|---|
| Default (paper — full prompt) | 91.91 |
| V1 (minimal — indicator lists removed) | 91.98 |
| V2 (no structure — lists + rules cut) | 91.34 |
| V3 (rephrased — same content, reworded) | 92.05 |
Table 13: Prompt sensitivity on XD (AUC-ROC, %).
A.6 Ablation: Isolating the Sampling Contribution
To isolate motion-adaptive allocation, we hold the pipeline fixed and vary only the sampling schedule, replacing it with uniform sampling at 3 FPS (, MoG-VLM's densest rate). Under this setting (Table 14), MoG-VLM is faster. Accuracy does not suffer: frame-level AUC-ROC improves on XD-Violence, UCF-Crime, and MSAD, with a small ShanghaiTech drop the full pipeline recovers. The gains thus stem from where compute is spent.
| Sampling (AUC%/h) | XD | UCF | MSAD | Shang |
|---|---|---|---|---|
| Uniform 1 FPS | 84.00/7.96 | 65.02/3.51 | 77.57/0.78 | 71.54/0.13 |
| Uniform 3 FPS | 84.44/23.9 | 65.18/10.5 | 77.99/2.3 | 73.67/0.4 |
| Ours (adaptive 1→3 FPS) | 84.69/8.42 | 68.31/4.12 | 81.51/0.85 | 72.38/0.14 |
Table 14: Sampling Schedule Ablation.
B Additional Qualitative Results
Successful Cases: Fig. 6 illustrates two successful detections on MSAD dataset. In Robbery_016, forced entry through a glass door generates sustained high-magnitude motion that continuously identifies the weapon, structural damage, and intruder context, yielding a score of 0.96 that closely tracks the ground-truth anomaly boundary. Traffic_accident_12 presents a semantically anomalous event with comparatively modest motion, a vehicle driven into a retail interior. The score ramps gradually before stabilizing at a high-confidence plateau. Despite the absence of conventional violence cues, the scene-level caption resolves the anomaly through contextual incongruity, a vehicle inside a non-vehicular space, producing a score of 0.92. Together, these cases demonstrate MoG capacity to handle both kinematically and semantically driven anomalies.
Failure Cases. Fig. 6 shows two failure cases. In Shang_03_0036, the anomaly is a person walking in circles, a subtle behavioral irregularity that generates indistinguishable from normal pedestrian activity the VLM caption interprets the scene as routine behavior, producing a score of only 0.1. This reflects a known limitation of VLMs in distinguishing trajectory-level semantics from appearance alone, rather than a failure of MOG. In Shang_01_0140, the VLM correctly perceives a motorcycle in a pedestrian plaza yet assigns a score of only 0.2, as the LLM fails to flag it as anomalous without explicit pedestrian-only context, a limitation of zero-shot semantic grounding rather than visual recognition.

Robbery_016
Caption: The surveillance footage captures the interior of a jewelry store during a break-in. A single individual, appearing as a blurred silhouette due to motion, is seen entering through a shattered glass door. The person is holding a long, dark object resembling a crowbar or similar tool, which they are using to break the glass. The scene is chaotic: glass shards are scattered across the floor, and display cases are overturned or broken, with jewelry visibly spilled or damaged. The presence of broken glass, damaged displays, and the armed intruder poses a significant safety and security concern. # Frame 210
Anomaly_score": 0.96
Traffic accident_12
Caption: The scene is an indoor retail store with bright orange and white decor, featuring product shelves, a display of portable generators, and a white car parked inside the store near the right side. In the background, several other people are visible near the far end of the store, some standing and others walking. The white car is parked in an unusual location, inside the store, with its front end near a display area that appears to have been damaged or disrupted, with debris scattered on the floor. There are no visible weapons, bags, or suspicious items. The environment is a retail store, not a pedestrian area or parking lot, and the crowd density is low. The presence of a vehicle inside a retail store is highly unusual and poses a significant safety. Frame#250.
Anomaly_score": 0.92
Shang_03_0036
Caption: The scene depicts five young males walking across a paved pedestrian crosswalk. The individuals are casually dressed in t-shirts and shorts, and one carries a green backpack. They are walking in different directions, not interacting with each other, and appear to be crossing the street independently. No vehicles are visible in the frame, and the area is not pedestrian-only as it includes a crosswalk and adjacent road. There are no weapons, abandoned objects, or signs of distress or unusual behavior. The environment includes a fence and some greenery, suggesting a suburban or institutional setting. Crowd density is low, with only five individuals visible.
Anomaly_score": 0.1
Shang_01_0140
Caption: "original_caption": "The scene depicts a wide, paved pedestrian plaza or walkway with light-colored stone tiles. There are five individuals visible: three are walking in a loose group. The pedestrians are casually dressed, carrying backpacks, and appear to be walking normally without interaction or unusual behavior. The scooter is on the paved area, which appears to be designated for pedestrians and vehicles alike (no clear barrier or signage indicating pedestrian-only). No weapons, abandoned objects, or suspicious items are visible. Crowd density is low. No vehicles other than the scooter are present, and it is not in a clearly restricted pedestrian zone.
Anomaly_score": 0.2
Figure 6: Qualitative examples of successful detections and failure cases.
C Prompts
The effectiveness of our motion-adaptive video anomaly detection framework relies on designed prompts that guide the Vision-Language Models (VLMs) to extract relevant information. This section details the specific prompts used at different stages of our pipeline and the rationale behind their design.
C.1 Frame-Level Captioning Prompt
For the frame-level analysis using Qwen/Qwen3-VL-8B-Instruct, we employ a structured prompt designed to extract comprehensive scene understanding while maintaining focus on security-relevant elements. The complete prompt is:
Frame Captioning Prompt
Analyze this surveillance footage frame and provide:
- SCENE DESCRIPTION:
-
All people present: their count, positions, activities, and interactions
-
Any unusual behaviors or events
-
Objects of interest: bags, weapons, vehicles, or suspicious items
-
Environmental context: location type (street, pedestrian area, parking lot, etc.), crowd density
-
Vehicles in pedestrian areas: note any cars, bicycles, skateboards, or carts in pedestrian-only zones
-
Any safety or security concerns
Design Rationale. This prompt is structured to elicit detailed, security-focused descriptions from the VLM through several key design principles:
• Explicit Entity Enumeration: By explicitly requesting "count, positions, activities, and interactions" for people, we ensure quantitative information that is crucial for anomaly detection (e.g., crowd formation, group behaviors).
• Open-Ended Safety Assessment: The final request for "safety or security concerns" allows the model to identify potential anomalies that may not fit predefined categories, leveraging the VLM's general knowledge of unsafe situations.
Prompt Considerations
Zero-Shot Generalization: The prompt avoids dataset-specific terminology, enabling the same prompt to work across different surveillance scenarios (street scenes, campus footage, traffic monitoring) without modification.
C.2 Frame-Level Anomaly Scoring Prompt
Following the frame captioning stage, we employ Qwen/Qwen3-4B-Instruct as a specialized text-based classifier to determine whether the generated descriptions indicate normal or anomalous behavior. The system prompt is designed to provide clear classification criteria while ensuring robust, independent assessments:
Anomaly Classification System Prompt
You are an expert AI system specialized in video surveillance anomaly detection. Analyze scene descriptions and classify them as NORMAL or ANOMALY. ANOMALY INDICATORS:
-
Violence: fighting, assault, weapons, threatening behavior
-
Explosions: fire, smoke, blast effects, debris, damaged structures
-
Accidents: car collisions, crashes, overturned vehicles
-
Theft: shoplifting, robbery, stealing, grabbing items and fleeing
-
Medical emergencies: injuries, falls, people on ground needing help
-
Suspicious behavior: inappropriate running, chasing, panic, fleeing
-
Property damage: vandalism, destruction, breaking
-
Abandoned objects: unattended bags, suspicious packages
-
Crowd anomalies: panic, stampede, unusual mass movements
-
Fire or smoke visible
-
Trespassing in restricted areas
NORMAL INDICATORS:
-
Routine activities: walking, standing, sitting, talking normally
-
Shopping, browsing, work, recreational activities
-
Vehicles in designated areas: roads, parking lots, bike lanes
-
Regular traffic flow
-
Appropriate social interactions
-
Empty/quiet scenes with no damage or suspicious objects
Design Rationale. We provide exhaustive lists of both anomalous and normal behaviors to reduce ambiguity and ensure consistent classification across diverse scenarios, rather than relying on the model’s implicit understanding of "anomaly."
Integration with Motion-Adaptive Sampling. This frame-level classification prompt operates on selectively sampled frames identified by our TGM-based motion detection. The design ensures that when expensive VLM inference is triggered by motion, the subsequent classification is both accurate and informative, maximizing the value extracted from each processed frame.
C.3 Temporal-Level Multi-Frame Captioning Prompt
We employ Video-LLaMA 8B to process non-overlapping temporal windows for capturing action dynamics across multiple frames. The temporal captioning prompt is designed to elicit video-level descriptions that encode motion trajectories and sequential activities.
Temporal Multi-Frame Captioning Prompt
Describe the actions, movements, and events visible in this sequence.
Specifically identify any suspicious, unusual, or anomalous behavior such as: theft, shoplifting, violence, fighting, accidents, burglary, or other criminal activities.
Design Rationale. This prompt architecture addresses the unique requirements of temporal video understanding:
• Motion-Centric Language: The emphasis on "actions, movements, and events" guides the model to focus on temporal dynamics rather than static scene elements, ensuring descriptions capture the behavioral evolution across frames.
• Anomaly-Focused: While maintaining open-ended description capabilities, the explicit listing of suspicious behaviors (theft, violence, fighting, etc.) ensures the model remains vigilant for security-relevant patterns that might be subtle or easily overlooked.
These carefully designed prompts enable our framework to extract security-relevant information at both frame and temporal levels while maintaining zero-shot generalization across diverse surveillance scenarios.
D Limitations
Because TGM operates on raw temporal gradients, abrupt illumination changes (e.g., lights switching on/off) and camera jitter can produce spurious activations that erode efficiency gains. The adaptive EMA baseline ( ) and z-score normalization absorb gradual drift but cannot distinguish a true motion burst from a global photometric spike within a single window. Our multiscale design ( ) partially mitigates this, a brief photometric spike elevates the response but is diluted at and , so the aggregated signal is less likely to exceed the z-score threshold than a sustained physical motion event would.