Learn Suspected Anomalies from Event Prompts for Video Anomaly Detection

Chenchen Tao, Chong Wang, Yuexian Zou, Xiaohao Peng, Jiafei Wu, Jiangbo Qian · DOI

Abstract

Traditional weakly supervised video anomaly detection (WS-VAD) often treats anomalies as generic outliers, leading to high false alarm rates and poor generalization. This paper introduces the Learn suspected Anomalies from Prompts (LAP) framework, which leverages semantic event prompts to guide the detection process. By aligning visual features with textual descriptions of abnormal behaviors, LAP achieves state-of-the-art performance across multiple benchmarks and demonstrates superior robustness in cross-dataset scenarios.

Introduction

Video Anomaly Detection (VAD) is critical for automated surveillance, yet identifying "abnormal" events remains challenging due to their context-dependent nature. Most existing methods employ Weakly Supervised Video Anomaly Detection (WS-VAD) using Multiple Instance Learning (MIL). In this paradigm, models are trained on video-level labels (normal vs. abnormal) and tasked with identifying the most unusual snippets. However, without a concrete definition of "abnormality," these models often struggle to distinguish between true anomalies and benign but rare events, resulting in significant false positives.

Figure 1: Comparison between traditional Top-k MIL and the proposed Multi-prompt Learning approach. While MIL may fail to identify specific abnormal behaviors, Multi-prompt Learning uses semantic guidance to accurately flag anomalies.

Methodology: The LAP Framework

The LAP framework addresses the limitations of MIL by injecting semantic knowledge into the learning process through a "Prompt Dictionary"—a curated set of textual descriptions of potential anomalies (e.g., "fighting," "shooting," "arson").

Figure 2: The architecture of the LAP framework, featuring visual and semantic feature extraction, feature fusion, and Multi-Prompt Learning (MPL) with Pseudo Anomaly Labeling (PAL).

The framework consists of several key components:

  1. Feature Synthesis: Visual features are extracted using CLIP, while a visual-to-text encoder (SwinBERT) generates captions for video snippets. These are fused into "synthetic features" that combine visual appearance with semantic context.
  2. Multi-Prompt Learning (MPL): Unlike traditional MIL that looks for the "top-k" scores within a single video, MPL uses a triplet loss to push snippets matching anomaly prompts away from normal snippets in the feature space across the entire training batch.
  3. Pseudo Anomaly Labeling (PAL): By measuring the similarity between video snippets and the prompt dictionary, the model generates fine-grained pseudo-labels. This allows the system to transition from coarse video-level supervision to more precise snippet-level training.

Experimental Evaluation

The LAP framework was evaluated on four major benchmarks: XD-Violence, UCF-Crime, TAD (Traffic Anomaly Dataset), and ShanghaiTech.

Key Results

  • State-of-the-Art Accuracy: LAP achieved an Average Precision (AP) of 86.5% on XD-Violence and an AUC of 90.4% on UCF-Crime, outperforming previous leading methods like VadCLIP.
  • Cross-Dataset Robustness: When trained on XD-Violence and tested on UCF-Crime, LAP maintained an AUC of 83.5%, significantly higher than the 68-69% achieved by traditional models. This suggests that LAP learns universal semantic concepts of abnormal behavior rather than dataset-specific visual patterns.

Discussion and Conclusion

The success of the LAP framework highlights the power of semantic guidance in video understanding. By moving from "black-box" outlier detection to concept-based recognition, the model gains significant robustness and interpretability.

However, the approach is currently dependent on the quality and breadth of the prompt dictionary. While it excels at high-action events, it may be less effective for subtle anomalies like pickpocketing that are harder to capture in simple textual prompts. Future research could explore the integration of Large Language Models (LLMs) to provide more nuanced contextual reasoning, such as distinguishing between a person running for exercise and a person running away from a crime scene.

Summary updated

Abstract

Most models for weakly supervised video anomaly detection (WS-VAD) rely on multiple instance learning, aiming to distinguish normal and abnormal snippets without specifying the type of anomaly. However, the ambiguous nature of anomaly definitions across contexts may introduce inaccuracy in discriminating abnormal and normal events. To show the model what is anomalous, a novel framework is proposed to guide the learning of suspected anomalies from event prompts. Given a textual prompt dictionary of potential anomaly events and the captions generated from anomaly videos, the semantic anomaly similarity between them could be calculated to identify the suspected events for each video snippet. It enables a new multi-prompt learning process to constrain the visual-semantic features across all videos, as well as provides a new way to label pseudo anomalies for self-training. To demonstrate its effectiveness, comprehensive experiments and detailed ablation studies are conducted on four datasets, namely XD-Violence, UCF-Crime, TAD, and ShanghaiTech. Our proposed model outperforms most state-of-the-art methods in terms of AP or AUC (86.5\%, \hl{90.4}\%, 94.4\%, and 97.4\%). Furthermore, it shows promising performance in open-set and cross-dataset cases. The data, code, and models can be found at: \url{https://github.com/shiwoaz/lap}.
BibTeX
@article{tao2026learn,
  author = {Chenchen Tao and Chong Wang and Yuexian Zou and Xiaohao Peng and Jiafei Wu and Jiangbo Qian},
  title = {{Learn Suspected Anomalies from Event Prompts for Video Anomaly Detection}},
  journal = {ACM Transactions on Multimedia Computing Communications and Applications},
  year = {2026},
  doi = {10.1145/3801554},
}
Figure