arXiv:2609.05066cs.CVSep 2026

Manuscript Offprint

arXiv:2609.05066

Adaptive Multi-Granularity Temporal Modeling for Weakly Supervised Video Anomaly Detection

Changyi Li, Yu Xiao

Changyi Li 1∗^{1*} and Yu Xiao 1^{1}

Aalto University, 02150 Espoo, Finland

{changyi.li, yu.xiao}@aalto.fi

Abstract. As the scale of video surveillance data outpaces manual annotation capacities, weakly supervised video anomaly detection (WSVAD) has emerged as a critical research frontier. Most existing approaches formulate WSVAD within a Multiple Instance Learning (MIL) framework that relies on rigid, hand-crafted temporal priors to supervise anomaly scoring. However, such formulations exhibit limited adaptability to the wide variation in anomaly durations and temporal dynamics observed in real-world videos, often leading to unstable or unreliable snippet-level predictions. To address this limitation, we propose an adaptive temporal modeling framework for WSVAD that explicitly accounts for variations in video dynamics across multiple temporal granularities. First, we introduce a Temporal Refinement Module (TRM) that leverages dynamic positional encoding and a learnable class token to model long-range temporal dependencies while distilling a stable global video-level representation. Second, to capture anomalous events with varying frequency and duration, we develop an adaptive Event Segmentation Module (ESM) that identifies event boundaries through temporal discontinuity analysis and aggregates snippet features into discriminative event-level representations. Finally, for snippet-level and event-level predictions, we propose an adaptive similarity-based fusion strategy that dynamically integrates anomaly scores into video-level predictions, replacing fixed top-k aggregation heuristics with global semantic relevance. Extensive experiments on two benchmarks demonstrate that the proposed framework consistently outperforms state-of-the-art methods.

Keywords: Video Anomaly Detection · Weakly Supervised Learning · Event Segmentation.

1 Introduction

Driven by the rapid proliferation of large-scale surveillance infrastructure, video anomaly detection (VAD) has become increasingly critical in a wide range of real-world applications, including industrial automation [8], intelligent transportation [10], and public security [15]. The goal of VAD is to identify abnormal events or behaviors that deviate from established normal patterns in long,

∗^{*} Corresponding author.

C. Li and Y. Xiao

untrimmed videos. As surveillance systems scale in both volume and duration, relying on manual monitoring becomes increasingly impractical due to its labor-intensive nature, susceptibility to human error, and limited ability to provide continuous coverage. These challenges motivate the development of automated VAD systems that are both scalable and reliable.

To alleviate the prohibitive cost of fine-grained temporal annotation, weakly supervised video anomaly detection has emerged as a practical and widely adopted paradigm [15,11,21,12]. In this setting, videos are annotated only with coarse video-level labels indicating whether an anomaly occurs, without specifying its temporal location. Multiple Instance Learning (MIL) [3] naturally underpins most weakly supervised VAD approaches by treating each video as a bag of temporal snippets and inferring anomaly scores through snippet aggregation. Early works, such as Sultani et al. [15], formulate anomalous videos as positive bags and introduce ranking-based losses to distinguish them from normal ones. Subsequent studies enhance this framework by modeling temporal dynamics [11] or incorporating memory mechanisms to improve robustness [21]. A more recent method further captures both long-term and short-term temporal dependencies for better performance in anomaly detection [12].

Despite notable progress, existing weakly supervised VAD methods share a fundamental limitation: they rely on fixed temporal assumptions that are poorly aligned with the diverse and variable temporal structures of real-world videos. For instance, Pu et al. [12] employ a fixed-length window to compute short-term temporal dependencies. Additionally, under weak supervision, snippet-level predictions must be inferred implicitly, yet their reliability is often low—particularly during training stages when discriminative representations have not yet emerged [6]. As a result, video-level optimization can be dominated by noisy or erroneous snippets. More critically, most MIL-based frameworks assume a canonical anomaly pattern and typically adopt fixed aggregation heuristics such as top-k pooling [11,21]. These assumptions significantly restrict adaptability to anomalies with diverse durations, frequencies, and temporal organizations.

We argue that addressing the inherent variability of video dynamics requires adaptive temporal modeling across multiple granularities, rather than relying on fixed heuristics. Motivated by this insight, we propose an adaptive weakly supervised VAD framework that explicitly models temporal structure at the snippet, event, and video levels. First, we introduce a Temporal Refinement Module (TRM) to enable adaptive long-range temporal reasoning and stable global supervision. By prepending a learnable class token to the snippet sequence and updating it through self-attention, the TRM distills a robust video-level representation that captures global semantics independent of individual snippet predictions. To further enhance temporal expressiveness, we incorporate Dynamic Position Encoding (DPE), which adaptively models temporal ordering and long-range dependencies beyond fixed positional assumptions.

Second, to explicitly handle anomalies with highly variable temporal extents, we propose an Event Segmentation Module (ESM) that elevates modeling from snippets to events. The ESM identifies event boundaries by detecting temporal discontinuities in feature evolution and aggregates snippets within each segment into discriminative event-level representations. This adaptive event-centric modeling enables the framework to capture both short-lived and long-duration anomalies effectively.

Finally, instead of relying on fixed top-kk aggregation for video-level prediction, we introduce an adaptive similarity-based fusion strategy. By measuring semantic similarity between snippet- or event-level features and the global video representation, our method dynamically weights contributions from different temporal positions, providing a principled alternative to heuristic aggregation.

Extensive experiments on two benchmark datasets, UCF-Crime and XD-Violence, demonstrate that the proposed framework consistently outperforms state-of-the-art (SOTA) methods. Comprehensive ablation studies further validate the effectiveness of each component and highlight its complementary roles in addressing the core challenges of weakly supervised video anomaly detection.

The contributions of this work can be summarized as:

  • We propose an adaptive weakly supervised VAD framework that explicitly models temporal variability across snippet, event, and video levels.
  • A Temporal Refinement Module with a class token and Dynamic Position Encoding is introduced to capture long-range temporal dependencies and stabilize video-level supervision.
  • An Event Segmentation Module is introduced to adaptively capture anomalies with varying temporal durations via event-level representation learning.
  • An adaptive similarity-based fusion strategy replaces fixed top-kk aggregation by dynamically weighting anomaly scores from different temporal positions.

References (21)