The collection and detection of video anomaly data has long been a challenging problem due to its rare occurrence and spatio-temporal scarcity. Existing video anomaly detection (VAD) methods under perform in open-world scenarios. Key contributing factors include limited dataset diversity, and inadequate understanding of context-dependent anomalous semantics. To address these issues, i) we propose LAVIDA, an end-to-end zero-shot video anomaly detection framework. ii) LAVIDA employs an Anomaly Exposure Sampler that transforms segmented objects into pseudo-anomalies to enhance model adaptability to unseen anomaly categories. It further integrates a Multimodal Large Language Model (MLLM) to bolster semantic comprehension capabilities. Additionally, iii) we design a token compression approach based on reverse attention to handle the spatio-temporal scarcity of anomalous patterns and decrease computational cost. The training process is conducted solely on pseudo anomalies without any VAD data. Evaluations across four benchmark VAD datasets demonstrate that LAVIDA achieves SOTA performance in both frame-level and pixel-level anomaly detection under the zero-shot setting. Our code is available in https://github.com/VitaminCreed/LAVIDA.
Figures & tables
Fig. 2 : Overview of LAVIDA Framework. LAVIDA is trained solely on a comprehensive Anomaly Exposure datasets, and consists of five key components: a MLLM, a text encoder, a vision backbone, a SAM2 mask decoder, and a Multi-scale Semantic Projector.
Fig. 3 : Anomaly Exposure Sampler: We sample irrelevant categories from other samples to create anomaly categories, randomly designate samples as anomalous or normal based on probability.
Methods
Venue
Training
UBnormal
ShanghaiTech
UCF-Crime
XD-Violence
AUC (%)
AUC (%)
AUC (%)
AP (%)
MemAE [ 6 ]
ICCV’19
Unsupervised
-
71.2
-
-
GODS [ 31 ]
ICCV’19
Unsupervised
-
-
70.4
61.56
MSMA [ 18 ]
ICLR’21
Unsupervised
-
76.7
64.5
-
GCL [ 44 ]
CVPR’22
Unsupervised
-
79.62
74.2
-
FastAno [ 23 ]
WACV’22
Unsupervised
-
72.2
-
-
Tab. 1 : Frame-level zero-shot performance compared with state-of-the-art methods. We utilize AUC as the evaluation metric for UBnormal, ShanghaiTech and UCF-Crime datasets, and AP for the XD-Violence dataset. The best results are highlighted in bold.
Fig. 4 : Qualitative Results for Anomaly Detection. For each case, the first row presents pixel-level detection results whitch are masked by green. The second row displays frame-level anomaly scores, with temporal intervals of anomalous events marked in pink.
Method
Training
AUC(%)
AdaCLIP [ 3 ]
Finetune
53.06
AnomalyCLIP [ 52 ]
Finetune
54.25
DDAD [ 22 ]
Supervised.
55.87
SimpleNet [ 17 ]
Supervised
52.49
DRAEM [ 48 ]
Supervised
69.58
TAO [ 10 ]
Finetune
75.11
Tab. 2 : Pixel-level performance on UCSD Ped2.
Fig. 5 : Quantitative Visualizations for Open-World Scenarios. The left panel shows the original image, and the right panel highlights detected anomalies with green masks.
max(KE)
ShanghaiTech
UCF-Crime
XD-Violence
AUC (%)
AUC (%)
AP (%)
10
73.34
67.11
55.44
20
80.13
80.02
91.20
30
85.02
82.06
90.30
40
76.41
77.93
75.32
Tab. 3 : Effect of the number of anomaly categories introduced in the anomaly exposure dataset.
Fig. 6 : Token Compression Process . The first column shows the original video frames. The second column shows local density, and the third shows reverse attention weights. Warmer colors indicate higher values.
Fig. 7 : Impression of compression ratio. We normalize the frame size across all datasets to ensure a consistent number of total visual tokens. GPU memory usage is recorded during inference stage.
frame-level
pixel-level
Adapter
ShanghaiTech
UCF-Crime
XD-Violence
Ped2
AUC (%)
AUC (%)
AP (%)
AUC (%)
MLP
81.99
79.90
86.09
77.09
Q-Former
82.63
75.54
83.93
71.85
Proposed
85.28
82.06
90.62
87.68
Tab. 4 : Comparison among different adapters.
number of queries
ShanghaiTech
UCF-Crime
XD-Violence
AUC (%)
AUC (%)
AP (%)
24
58.85
66.63
50.14
32
77.41
77.96
88.31
48
80.64
80.06
90.30
64
77.96
67.11
89.15
Tab. 5 : Effect of the number of learnable queries.
Centre for Vision, Speech and Signal Processing (CVSSP) University of Surrey, UK · Surrey Institute for People-Centred AI (PAI) University of Surrey, UK