cs.CVOct 21, 2026

MS2CAST: A Video Anomaly Detection Framework via Multi-Scale Spatial Cross-Attention and Efficient Spatiotemporal Networks

Authors: Ali Safaei, Mohammad Kazemi

Organizations: Department of Computer Science, University of Milan, Milan, Italy · Department of Electrical Engineering, University of Isfahan, Isfahan, Iran

Abstract

Video anomaly detection (VAD) is a challenging task for surveillance systems due to the scarcity and diversity of anomalous events. While semi-supervised VAD approaches have advanced the field, many rely on computationally intensive optical flow networks to capture motion dynamics. Convolutional neural networks (CNNs) are also widely used for spatial encoding, but their effective receptive field is highly local. To address these limitations, we introduce MS2CAST, an end-to-end semi-supervised predictive VAD framework. For spatial encoding, we employ a multi-scale cross-attention encoder that fuses the hierarchical feature representations from a vision transformer (MViTv2-S) and a CNN (ConvNeXt-T) to exploit their distinct receptive fields. To model spatiotemporal dynamics without optical flow estimation, we integrate two interchangeable spatiotemporal modules in the latent space. One module (SwinLSTM) incorporates a Swin Transformer, while the other (VMRNN) integrates Vision Mamba blocks. Our objective function combines L1 loss, Gradient Difference Loss (GDL), and Multi-Scale Structural Similarity Index Measure (MS-SSIM) to ensure pixel-wise accuracy, sharpness, and structural integrity. Evaluations across the UCSD Ped2, CUHK Avenue, and ShanghaiTech datasets demonstrate frame-level Receiver Operating Characteristic (ROC) Area Under the Curve (AUC) scores that are competitive with top-tier techniques while maintaining a peak GPU memory usage of under 1 GB.

Explore similar work

CardsList
  1. VigilFormer: Deformable Attention for Video Anomaly Detection with Causal Risk Inference

    May 31, 2026Xinze ZhangTransformer AttentionDeformable Attention

  2. A Unified Score Matching Paradigm for Video Anomaly Detection and Anticipation

    Oct 8, 2026Congqi Cao, Zhenhe Liang, Hanwen Zhang +4Video Anomaly DetectionScore-Based Generative Modeling

  3. SphereVAD: Training-Free Video Anomaly Detection via Geodesic Inference on the Unit Hypersphere

    May 8, 2026Chao Huang, Pengfei Wei, Wei Wang +5Video Anomaly DetectionTraining-Free Video Anomaly Detection