NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self-Training Multi-Sequence Learning with Transformer for Weakly Supervised Video Anomaly Detection

Shuo Li, Fang Liu, Licheng Jiao

Abstract

Weakly supervised video anomaly detection (VAD) typically employs Multi-Instance Learning (MIL), which identifies anomalies by selecting the highest-scoring snippet in a video. However, MIL is prone to a "selection trap" where normal snippets are misclassified, and it fails to account for the temporal continuity of real-world anomalies. We present Multi-Sequence Learning (MSL), a framework that treats sequences of consecutive snippets as the primary optimization unit. By integrating a Convolutional Transformer Encoder (CTE) and a coarse-to-fine self-training strategy, MSL achieves state-of-the-art results on ShanghaiTech (97.32% AUC), UCF-Crime (85.62% AUC), and XD-Violence (78.59% AP) while maintaining real-time inference speeds.

Introduction

Video Anomaly Detection (VAD) aims to identify unusual events in surveillance footage. Weakly supervised VAD is particularly attractive because it only requires video-level labels. The dominant paradigm, Multi-Instance Learning (MIL), treats a video as a "bag" of snippets. A significant drawback of MIL is its reliance on isolated snippets, which ignores the inherent temporal structure of anomalies and makes the model sensitive to noise. Early in training, a model might incorrectly focus on a high-scoring normal snippet, creating a feedback loop that hinders convergence.

Methodology

Multi-Sequence Learning (MSL)

To address the limitations of snippet-based MIL, we propose Multi-Sequence Learning (MSL). Instead of selecting a single snippet, MSL selects a sequence of $K$ consecutive snippets with the highest average anomaly score. This approach acts as a temporal regularizer, ensuring that the model prioritizes continuous events over isolated noise.

Illustration of Multi-Sequence Learning (MSL) where a sequence of K snippets is selected based on the highest average score, contrasting with single-snippet selection in MIL.

Network Architecture and Self-Training

The proposed architecture consists of a Transformer-based network designed for sequence modeling. A key component is the Convolutional Transformer Encoder (CTE). Unlike standard Transformers that use linear projections, the CTE employs Depthwise Separable 1D Convolutions to capture local temporal dependencies more effectively.

The model is trained using a Coarse-to-Fine Self-Training pipeline. The process begins with a large sequence length $K$ to capture the general vicinity of an anomaly. In subsequent stages, $K$ is iteratively halved. This allows the model to first learn coarse temporal patterns before narrowing its focus to precise anomaly boundaries.

Overview of the MSL framework: (a) the network architecture featuring CTE layers and dual heads; (b) the multi-stage self-training pipeline; (c) the detailed structure of the Convolutional Transformer Encoder.

Experiments and Results

We evaluated MSL on three major benchmarks: ShanghaiTech, UCF-Crime, and XD-Violence. MSL consistently outperformed previous methods, setting new state-of-the-art performance levels. Notably, on the UCF-Crime dataset, MSL achieved an AUC of 85.62%, a substantial improvement over previous MIL-based approaches. Furthermore, the model is highly efficient; when paired with an I3D backbone, it operates at 63 FPS, making it suitable for real-time surveillance applications.

Conclusion

Multi-Sequence Learning provides a robust framework for weakly supervised VAD by leveraging temporal continuity. By shifting the focus from isolated snippets to sequences and employing a progressive self-training strategy, MSL effectively mitigates the noise issues inherent in traditional MIL. The inclusion of convolutional biases within the Transformer architecture further enhances the model's ability to process temporal video data.

Summary updated

BibTeX
@inproceedings{li2022self,
  author = {Shuo Li and Fang Liu and Licheng Jiao},
  title = {{Self-Training Multi-Sequence Learning with Transformer for Weakly Supervised Video Anomaly Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i2.20028},
}
Figure