        Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on
                             Visual-Language Models


                    Chao Huang 1 Yushu Shi 1 Jie Wen 2 Wei Wang 1 Yong Xu 2 Xiaochun Cao 1 *


                          Abstract
                                                                               Visual      Classifier
                                                                              Encoder                                Visual
       With advancements in visual language models                                         or scorer
                                                                                                                    Encoder
                                                                                                                                 Classifier

                                                                                                                                                      …
       (VLMs) and large language models (LLMs),
       video anomaly detection (VAD) has progressed
                                                                          (a) Binary classification VAD         (b) Multi-classification VAD
       beyond binary classification to fine-grained cate-
       gorization and multidimensional analysis. How-                                                                Visual
       ever, existing methods focus mainly on coarse-                                                               Encoder
                                                                                                                                 Classifier          …
       grained detection, lacking anomaly explanations.
                                                                                VLM          LLM                      Text
       To address these challenges, we propose Ex-VAD,                                                    VLM       Encoder
                                                                                                           &
       an Explainable Fine-grained Video Anomaly                                                          LLM
                                                                                                                                               Anomaly
                                                                                                                                              Explanation

       Detection approach that combines fine-grained
                                                                             (c) Training-free VAD               (d) Our Explainable VAD
       classification with detailed explanations of anoma-
       lies. First, we use a VLM to extract frame-level
       captions, and an LLM converts them to video-                  Figure 1. Recent research in VAD can be categorized into three
                                                                     types: a) Traditional binary classification VAD, b) Multi-
       level explanations, enhancing the model’s explain-
                                                                     classification VAD, and c) Training-free VAD. Building on the
       ability. Second, integrating textual explanations             optimization of these approaches, our Ex-VAD is presented as: d)
       of anomalies with visual information greatly en-              Explainable VAD based on VLMs and LLMs.
       hances the model’s anomaly detection capabil-
       ity. Finally, we apply label-enhanced alignment
       to optimize feature fusion, enabling precise fine-
       grained detection. Extensive experimental results             et al., 2021; Nawaratne et al., 2020). For example, rapid
       on the UCF-Crime and XD-Violence datasets                     detection of dangerous behaviors for timely intervention in
       demonstrate that Ex-VAD significantly outper-                 surveillance, detection of abnormal road conditions to avoid
       forms existing State-of-The-Art methods.                      accidents in autonomous driving, and identification of ab-
                                                                     normal vital signs to provide timely assistance in healthcare
                                                                     monitoring.
1. Introduction                                                      Traditional VADs (Huang et al., 2024; Wang et al., 2025;
                                                                     Huang et al., 2023; 2022; Ramachandra et al., 2022; Liu
Video Anomaly Detection (VAD) is an important technol-               et al., 2024; Zaigham Zaheer et al., 2020; Yan et al., 2023)
ogy with a wide range of applications that cover areas such          typically coarse-grained analyze videos, determining only
as security surveillance, healthcare, autonomous driving,            whether a video contains abnormal behavior and catego-
and content auditing (Zhao et al., 2017; Wang et al., 2019;          rizing it as normal or anomalous. However, such ap-
Samaila et al., 2024). It aims to improve the safety and effi-       proaches (Nguyen & Meunier, 2019) face significant limita-
ciency of systems by automatically identifying anomalous             tions in practical applications. First, coarse-grained detec-
events or behaviors through the analysis of video data (Ren          tion fails to provide detailed descriptions of specific types
   1
    Shenzhen Campus of Sun Yat-Sen University, School of Cy-         of abnormal behavior, which is inadequate in scenarios that
ber Science and Technology, Shenzhen, China 2 Harbin Institute       require tailored responses to distinct anomalies, for exam-
of Technology, School of Computer Science and Technology,            ple, addressing varying security threats in surveillance sys-
Shenzhen, China. Correspondence to: Xiaochun Cao <caoxi-             tems or diagnosing multiple abnormal conditions in medical
aochun@mail.sysu.edu.cn>.                                            monitoring. Second, coarse-grained methods are easily in-
Proceedings of the 42 st International Conference on Machine         fluenced by the complexity of video backgrounds and the
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025          diversity of scenes, making it challenging to pinpoint the
by the author(s).                                                    time and type of anomalies accurately. This deficiency com-

                                                                 1
               Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

promises both the detection accuracy of the system and its           lies. Finally, we employ a Label Augment and Alignment
response efficiency.                                                 Module (LAAM), which uses an LLM to expand anomaly
                                                                     category labels into phrases, selects the top-k phrases seman-
Fine-grained video anomaly detection becomes particularly
                                                                     tically most similar to the original labels, and aligns them
important to distinguish different types of anomalous behav-
                                                                     with the fused multimodal features to obtain fine-grained
ior further and provide more targeted and interpretative de-
                                                                     anomaly categories. In summary, Ex-VAD effectively inte-
tection results. In recent years, visual-language pre-training
                                                                     grates multimodal features, fine-grained classification, and
(VLP) models such as CLIP (Radford et al., 2021) have
                                                                     anomaly explanations, providing a comprehensive solution
significantly improved the semantic representation of im-
                                                                     to video anomaly detection with enhanced interpretability
ages and text through contrast learning, driving advances in
                                                                     and accuracy.
visual representation. CLIP-based task-specific models have
excelled in various visual tasks, achieving unprecedented            Our main contributions are summarized as follows.
performance breakthroughs. In VAD, some researchers (Wu
et al., 2024c;a) have used CLIP’s image-text alignment to               • We develop an Anomaly Explanation Generation Mod-
achieve fine-grained anomaly detection.                                   ule (AEGM), which utilizes a VLM and an LLM to
Despite advances, existing methods still struggle to explain              generate explanations for video anomalies, allowing
anomalous behavior effectively. Even when anomalous                       the model to detect abnormal behavior and analyze its
events are successfully detected, models often fail to provide            cause, thereby enhancing its semantic interpretation.
clear explanations for the causes of the anomalies, posing
                                                                        • We propose a Label Augment and Alignment Module
significant challenges to decision-makers. For example, in
                                                                          (LAAM) that enhances label semantics, enabling the
security monitoring, the detection of abnormal behavior in a
                                                                          model to better align videos with anomaly categories,
specific area without a clear explanation can complicate sub-
                                                                          thereby improving fine-grained anomaly classification,
sequent response efforts, leading to inefficiency and delays.
                                                                          particularly for complex categories.
Consequently, enhancing the interpretability of VAD has
become a crucial focus in the field’s development. Recently,            • Extensive experimental results show that our method
the rapid progress in LLMs has introduced new possibilities               outperforms existing approaches in both coarse-
for VAD. Some researchers (Zanella et al., 2024; Ye et al.,               grained and fine-grained accuracy, improving overall
2024) have proposed training-free anomaly detection meth-                 anomaly detection and classification precision.
ods by generating descriptive text explanations of anomalies
using VLMs and LLMs. However, these methods primar-
ily rely on the generated text for anomaly detection, often          2. Related Work
neglecting the full potential of the visual modality. Other          2.1. Video Anomaly Detection
researchers (Lv & Sun, 2024; Kim et al., 2023a; Tang et al.,
2024b) have achieved interpretable anomaly detection by              According to the output of existing VAD, it can be divided
fine-tuning large models. While effective, these approaches          into binary-classification VAD (Ramachandra et al., 2022;
often result in complex models that may be challenging to            Liu et al., 2024), multi-classification VAD (Sultani et al.,
deploy and maintain.                                                 2019; Wu et al., 2024a;c), and interpretable VAD (Lv &
                                                                     Sun, 2024). Traditional VAD methods classify videos as
To address these challenges, we propose a novel method               normal or abnormal. They typically adopt a classification
called Ex-VAD, which is designed to overcome the lim-                paradigm. Firstly, pre-trained visual models are used to
itations of traditional VAD methods, particularly in fine-           extract frame-level features. Then, these features are fed
grained classification and anomaly explanation. Specifi-             into a binary classifier based on Multiple Instance Learning
cally, we first propose an Anomaly Explanation Genera-               (MIL) for training. Finally, abnormal events are detected
tion Module (AEGM), which extracts frame-level captions              based on the predicted anomaly confidences.
from videos using VLMs, followed by a cleaning step to
refine the captions. The cleaned captions are then integrated        With the development of the CLIP model, some methods
by an LLM to generate video-level anomaly explanations               have attempted to make improvements. VadCLIP (Wu et al.,
through specific prompts, which enable the model to detect           2024c) proposed a fine-grained Weakly Supervised Video
abnormal behavior in the video and analyze its cause. Sec-           Anomaly Detection (WSVAD) method that can distinguish
ond, we develop a Multimodal Anomaly Detection Module                different types of abnormal frames. VadCLIP encodes text
(MADM), which encodes the text from AEGM and extracts                labels into class embeddings and calculates the matching
both temporal and spatial features between video frames.             similarities between class embeddings and frame-level vi-
These features are then fed into a coarse-grained anomaly            sual features to obtain an alignment map. Each input text
classifier to determine whether the video contains anoma-            label represents a class of abnormal events, thus achieving
                                                                     fine-grained WSVAD.

                                                                 2
               Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

Interpretability is of utmost importance in VAD, especially          time-consuming and highly sensitive to template content.
in sensitive or high-stake applications. Early methods of-           To address this challenge and reduce the dependence on
ten relied on black-box models, and their prediction results         hand-crafted language designs, PEL4VAD (Pu et al., 2024)
were difficult to trust. Recently, some methods have utilized        used ConceptNet definitions to create prompt templates
Large Language Models (LLMs) and Vision-Language Mod-                and expanded class labels through a conceptual dictionary,
els (VLMs) to generate understandable reasoning through              significantly improving open-vocabulary object detection.
semantic insights and textual explanations. For example,             Based on this approach, this paper uses GPT4 (OpenAI &
VADor (Lv & Sun, 2024) fine-tunes the projection layer of            etc, 2024) to generate rich semantics for simple labels, and
VideoLLaMA to integrate anomaly detection with seman-                uses CLIP image-text alignment to allow the VAD model to
tic reasoning. HAWK (Tang et al., 2024a)enhances inter-              achieve better performance in fine-grained anomaly classifi-
pretability by integrating motion-based reasoning through            cation.
interactive VLMs. However, there are still challenges in
balancing the granularity of explanations and computational          3. Approach
efficiency.
                                                                     3.1. Architecture
2.2. Visual Language Model in VAD
                                                                     As shown in Figure 2, the proposed Ex-VAD consists of
Vision language models (VLMs) offer a new perspective                three components: an Anomaly Explanation Generation
for detecting anomalies in video anomaly detection (VAD),            Module (AEGM), a Multimodal Anomaly Detection Mod-
especially in fine-grained classification and explanation            ule (MADM), and a Label Augment and Alignment Module
of anomalous behaviors. Traditional VAD methods (Tian                (LAAM). Ex-VAD processes input videos V by first utiliz-
et al., 2021a; Li et al., 2022b;a) mainly focus on identifying       ing the AEGM to generate anomaly explanation text E. This
anomalous behaviors in videos but lack detailed classifi-            text serves two purposes: providing interpretative explana-
cation of these behaviors. (Wu et al., 2024c) leverages              tions for video anomalies and acting as the text modality
the pre-trained CLIP model to align video frames with                input for the MADM, where it is fused with visual features
labels in VAD, enabling fine-grained anomaly classifica-             for coarse-grained anomaly detection. Finally, the LAAM
tion. Meanwhile, the use of LLMs in VAD is still in its in-          refines the detection by expanding and aligning labels to
fancy(Kim et al., 2023b) and LAVAD (Zanella et al., 2024)            achieve fine-grained anomaly classification, ensuring both
implemented training-free VAD using pre-trained LLMs                 interpretability and accuracy in video anomaly detection.
and VLMs. This method efficiently transforms LLMs into               The implementation details are introduced as follows.
video anomaly detectors by generating textual descriptions
of each frame in the test video, which is combined with              3.2. Anomaly Explanation Generation Module
prompting to activate LLMs for time series aggregation and
                                                                     LAVAD (Zanella et al., 2024) demonstrated the feasibility
anomaly score estimation. Additionally, by referring to
                                                                     of achieving anomaly detection by prompting VLMs and
VLMs, we establish a strong complementary relationship
                                                                     LLMs to generate text descriptions. Inspired by this ap-
between visual and textual modalities. This approach not
                                                                     proach, our AEGM improves the prompting mechanism to
only enables the detection of anomalous behaviors but also
                                                                     guide LLMs in time series aggregation and the generation
provides clear explanations for each behavior, enhancing
                                                                     of anomaly explanations. This not only helps the visual
the explanation of anomaly detection.
                                                                     module enhance the performance of VAD but also serves as
                                                                     an explanation for the causes of anomalies, further enhanc-
2.3. Prompt Learning
                                                                     ing the interpretability of detection. As shown in Figure 3,
Prompt learning, a technique for adapting prompt words to            AEGM consists of two sub-modules: the Caption Extraction
fit a specific task, was initially applied mainly in the field       and Cleaning Module, and the Explainable Modules Based
of Natural Language Processing (NLP) and has gradually               on LLM.
been extended to the visual domain. CLIP (Radford et al.,            Caption Extraction and Cleaning Module. With the rapid
2021) relys on fixed hand-designed cues (e.g., a photo of            development of VLMs, the ability to generate captions from
a class), which are suitable for open domains but not flex-          videos has become increasingly powerful. First, uniformly
ible enough. CLIP-COOP (Zhou et al., 2022a) introduces               sample n frames from the video V . For each frame Ii ∈ V ,
learnable context vectors, enhancing performance with lim-           we use the SOTA captioning model ΦC i.e. BLIP-2 (Li
ited samples but struggling with generalization. These ad-           et al., 2023) and set appropriate prompts PC to generate
vances refine prompt adaptation, improving vision-language           frame-level text descriptions:
models across diverse tasks. In VAD, VADCLIP leverages
trainable textual templates to generate precise anomaly de-
scriptions. However, manually designing prompts remains                                  Ti = PC · ΦC(Ii ).                  (1)

                                                                 3
                        Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

                                                                              Input Video
      LGT-Adapter                       VLM                                                                               Label Augment and Alignment Module
    Local and Global           Vison Language Model
    Temporal Adapter                                                                                                                   (LAAM)
                                                                                                                           [Abuse]   [Assualt]   [Arrset] … [stealing] [vandalism]
                                          C
    Cosine similarity                  Concat
                                                       Multimodal Anomaly Detection Module (MADM)                                                  LLM
  Anomaly Explanation Generation
        Module (AEGM)
                                                                                                                                             Capture an individual
                                                                                                     Image                                Acts of destruction observed
  Caption Extraction and Cleaning Model                        AEGM                                                                Violent behavior being threatened
                                                                                                    Encoder                   Being attacked     Signs of maltreatment
            Caption                                                                                                         Physical harm inflicted Entry captured
                                       VLM                                                                                   Evidence of vandalism captured Explosion
            Prompt
   User                                                                                                                     Gunfire in progress    An arrest is taking place
                                                                Text                              LGT-Adapter                  Witnessing someone stealing valuables
                                                               Encoder                                                         Theft happening in plain sight
                                                                                                                                                                Theft
                          Video N                                                                                                A suspect is apprehended
                       Video 2                                                                                                   Aggressive confrontation in progress
                      Video 1
          Fram1      Fram2
                              …
                                         Fram T                          …                                …                               Signs of maltreatment
                                         caption
          caption    caption
                             …
                            …                                                      C
                                                                                         …                                                        Text
                                                                                                                                                 Encoder
    Explainable Model Based on LLM
                                                                  Coarse-Grained Anomaly Classifier
           Explanation                                                                                                        Top-K                      …
             Prompt                   VLM
                                                                          ① Abnormal Video
   User                                                                                                                                                  …
                                                        ② Yes, explosions near train tracks cause fires, smoke;
                                                                         workers manage calmly.                            Frame0
                 VideoN Explanations                   Score
               Video2 Explanations
            Video1     Explanations
           Yes, In an office, a distressed person
           is restrained
        Yes,              by aofficers
               In an office,                 control
                                       afterperson
                               distressed
      Yes,
        is is In an office,
              gained.
           restrained            a distressed
                        by officers  after control




                                                                                                                                      …
      person   is restrained  by  officers after                          ③ Explosions
        is gained.                                                                                            Frame       FrameN-1
      control is gained.
                                                                                                              Number




Figure 2. Our Ex-VAD includes three components: an Anomaly Explanation Generation Module using VLM and LLM to generate
anomaly explanation text, a Multimodal Anomaly Detection Module combining enriched visual and textual features for coarse anomaly
classification, and a Label Augment and Alignment Module that refines the detection by expanding and aligning labels to achieve
fine-grained anomaly classification.


Due to the randomness of VLMs, some irrelevant captions                                      the prompt PS into the advanced LLM ΦLLM to obtain the
may be generated, which may harm training. Since the                                         explanation E for video V :
scenes in the video are captured by a static camera at a high
                                                                                                                       E = PS · ΦLLM (T̂ ),                                     (3)
frame rate, the semantic content between frames overlaps to
some extent. From this perspective, we alleviate the above                                   where T̂ = {T̂1 , T̂2 , ..., T̂N }. Through the above methods,
problems by designing an image-text alignment mechanism.                                     we can obtain an anomaly description E that is more accu-
Specifically, we use a vision-language encoder to encode                                     rate semantically and temporally than the captions T̂ .
the captions of each frame. For each frame Ii ∈ V , we
calculate its closest caption:                                                               3.3. Multi-Modal Feature Fusion
                    T̂i = arg max{EI (Ii ) · ET (T )},                          (2)          This component primarily performs coarse-grained anomaly
                                   T ∈T
                                                                                             detection by entering the fused visual and text features into
where {·, ·} is the cosine similarity, EI is the image encoder                               an anomaly classifier. For visual features, we follow prior
of the VLM, ET is the text encoder and T = {T1 , ..., TN }.                                  work (Wu et al., 2024c) to uniformly sample dense video
This module allows us to generate fairly accurate text de-                                   frames from the input video at 16-frame intervals, obtaining
scriptions for each video frame.                                                             a video frame sequence V . The video frames are then
                                                                                             encoded by the frozen visual encoder EI in CLIP to produce
Explainable Modules Based on LLM. The cleaned cap-
                                                                                             frame features FI . To bridge the gap between the image and
tions can describe frame information more accurately than
                                                                                             video domains in CLIP, we adopt the approach from (Wu
the initial captions, but they are only simple descriptions and
                                                                                             et al., 2024c), modeling the temporal dependencies of the
cannot describe abnormal phenomena in detail. Therefore,
                                                                                             video frame sequence using the Local and Global Temporal
we prompt LLM i.e. LLAMA-3 (Touvron et al., 2023)to
                                                                                             Adapter (LGT-Adapter):
generate the required anomaly explanations. Specifically,
we input the collection T̂ of cleaned frame captions and                                                               FV = LGT (EI (V )).                                      (4)

                                                                                         4
                                  Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models
                                       Caption Extraction and Cleaning Model
                                                                                                                            cording to the similarity score, the top-k sentences with the
                                                                                      Image        Image-Text
                                                                                     Encoder      Caption Clean             highest similarity are selected from the generated sentences.
                                                                                                                            The features of the screened sentences are integrated with
             Caption Model                              Caption                                   Clean Caption
                                                        Clean Caption                                 Clean Caption
                                                                                                                            the original label embeddings to form the final enhanced
                                                   The image shows a                             The image shows a
        Please use                                  group of police
                                                                                       Text
                                                                                                     police officer
                                                                                                 arresting a person,
                                                                                                                            label embeddings FL .
  short words to describe                          officers interacting
                                    VLM                                              Encoder     while other officers
   what is happening in                             with a person in                                 are watching
       the picture.                                what appears to be
                                                                                                  nearby. The scene
                                                                                                   appears to take
                                                                                                                            Fine-grained Classification. Calculate the matching simi-
                                                                                                   place in a police
                                                   a station or office.
                                                                                                   station or office.       larity between these category embeddings FL and Fusion
                                          Explainable Model Based on LLM
                                                                                                                            features FF to obtain an alignment map M ∈ Rn∗m , where
            Video Explanations
                                                                                                                            m is the number of text labels. In this alignment map,
                                                                          Please summarize
               Yes.In an office,                                          what happened ...                                 each input text label represents a class of abnormal events.
       a distressed person is restrained                           And answer with Yes or No            LLM
           by officers after control                               whether anything unusual
                                                                                                                            By analyzing the similarity between the video and differ-
                     is gained.                                         happens in that video.
                                                                                                                            ent category labels, a more detailed classification of ab-
                                                                                                                            normal events is achieved, naturally achieving the goal of
                                                                                                                            fine-grained classification.
Figure 3. The Anomaly Explanation model first generates video
frame captions via VLM, then cleans up the frame captions us-                                                               3.5. Loss Function
ing the image-text module, and finally generates a detailed video
interpretation using LLM. This interpretation is later used as a                                                            Binary Classification Loss. We follow previous work (Wu
textual modality to enhance the performance of anomaly detection                                                            et al., 2020) and use the Top-k mechanism to select K
in conjunction with the visual modality, in addition to being used                                                          highest anomaly confidence levels among anomalous and
as an anomaly interpretation for the video.                                                                                 normal videos as video-level predictions. The classification
                                                                                                                            loss LBCE is then computed using the binary cross-entropy
We use the exception of explanation E generated from                                                                        between video-level prediction and ground truth:
AEGM as textual information. These textual informa-
tion are encoded by the frozen textual encoder ET in                                                                               LBCE = −[y log(s) + (1 − y) log(1 − s)],           (7)
CLIP to produce textual features FT = ET (E). Subse-
                                                                                                                            where s denotes the predicted score and y is the true label
quently, the textual features and visual features are fused
                                                                                                                            (usually 0 represents normal, and 1 represents abnormal).
into FF = FV + FT , which is then input into a binary clas-
sifier that contains a feed-forward network (FFN) layer, an                                                                 Multiple Class Loss. For multi-classification tasks, we
FC layer, and a Sigmoid activation to obtain the anomaly                                                                    propose the MIL-Align mechanism to align the frame-level
scores s ∈ Rn∗1 :                                                                                                           fusion feature FF and all label embeddings FL . Specifically,
                                                                                                                            for each video, we select the top-k similarity values and
                 s = Sigmoid(F C(F F N (FF ) + FF )).                                                             (5)
                                                                                                                            compute the average to measure how well this video is
                                                                                                                            aligned with the current class. Then, we can obtain a vector
3.4. Label Augment and Alignment Module                                                                                     V = {v1 , . . . , vm } that represents the similarity between
                                                                                                                            this video and all classes. We hope the video and its paired
This part mainly includes the following two steps: label aug-                                                               textual label emit the highest similarity score among others.
mentation set construction and fine-grained classification.                                                                 To achieve this, the multi-class prediction is first computed
Label Augmentation Set Construction. We utilize a pre-                                                                      as follows:
                                                                                                                                                          exp(vi /τ )
trained LLM (OpenAI & etc, 2024) to generate m descrip-                                                                                          pi = P                 ,              (8)
tive sentences related to each category label. To filter the                                                                                              j exp(vj /τ )

sentences that are most semantically related to the category                                                                where pi is the prediction with respect to the ith class, and
labels, we calculate the semantic similarity between the                                                                    τ refers to the temperature hyper-parameter for scaling. Fi-
category labels and the generated sentences by using co-                                                                    nally, the alignment loss LM CE can be computed by the
sine similarity. Specifically, first, the category labels L and                                                             cross-entropy:
the related descriptive sentences {S1 , ..., Sm } generated by
                                                                                                                                                         m
the LLM are encoded into vectors. Then, the cosine sim-                                                                                                  X
ilarity between the label vector and the sentence vector is                                                                                 LM CE = −           yi log(pi ),          (9)
                                                                                                                                                          i=1
calculated as:
                                    vL · vSi                                                                                where yi is the ground truth label and m is the total number
                Sim(L, Si ) =                   ,            (6)
                                 ∥vL ∥ · ∥vSi ∥                                                                             of classes.
where vL and vSi represent the embedding vectors of the                                                                     Contrastive Loss. To pull apart the normal class embed-
category label and the generated sentence, respectively. Ac-                                                                dings from the anomaly class embeddings, we introduce

                                                                                                                        5
                 Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

                                     mAP@IOU(%)                                                              mAP@IOU(%)
   Method                                                                  Method
                      0.1     0.2      0.3   0.4    0.5    AVG                                0.1     0.2     0.3     0.4     0.5    AVG
   Random Baseline    0.21   0.14     0.04   0.02   0.01   0.08            Random Baseline   1.82    0.92    0.48    0.23    0.09    0.71
   RealAD (2018)      5.73   4.41     2.69   1.93   1.44   3.24            RealAD (2018)     22.72   15.57    9.98    6.20    3.78   11.65
   RTFM (2021)       12.59   7.54     6.44   5.42   1.54   6.71            RTFM (2021)       31.25   26.85   21.94   13.56   12.54   21.23
   AVVD (2022)       10.27   7.01     6.25   3.42   3.29   6.05            AVVD (2022)       30.51   25.75   20.18   14.83    9.79   20.21
   DMU(2023)         11.32   7.62     5.97   4.33   2.36   6.32            DMU(2023)         32.33   28.88   22.57   14.33   13.68   22.36
   CLIP-TSA(2023)    12.62   8.13     6.66   4.28   1.91   6.72            CLIP-TSA(2023)    34.53   32.88   28.11   13.65   10.01   23.84
   UMIL(2024)        11.84   7.85     6.52   3.97   2.84   6.60            UMIL(2024)        34.44   27.13   22.63   19.85   13.24   23.46
   VadCLIP(2024)     11.72   7.83     6.40   4.53   2.93   6.68            VadCLIP(2024)     37.03   30.84   23.38   17.09   14.31   24.70
   STPrompt(2024)    11.56   7.49     6.13   5.11   2.11   6.48            STPrompt(2024)    38.21   25.63   28.66   13.11   11.63   23.44
   Ex-VAD (Ours)     16.51   12.35    9.41   7.82   4.65   10.15           Ex-VAD (Ours)     40.14   32.75   28.78   20.15   18.35   28.23

      Table 1. Fine-grained comparisons on UCF-Crime.                          Table 2. Fine-grained comparisons on XD-Violence.


the contrast loss. Specifically, we first calculate the cosine           comprehensive ablation studies to validate the effectiveness
similarity between the normal class embedding and other ab-              of each module in the proposed model.
normal class embeddings, and then compute the contrastive
loss Lcts as follows:                                                    4.1. Experimental Setups
                                   LTN LAj
                                                
      LCT S =
                X
                    max 0,                          ,     (10)           Datasets. We perform experiments on the UCF-Crime
                  j
                              ∥LN ∥2 · ∥LAj ∥2                           and XD-Violence datasets. UCF-Crime consists of 1,900
                                                                         untrimmed surveillance videos with a total duration of 128
where LN is the normal class embedding, and LAj is the                   hours, covering 13 real-world anomalies (e.g., abuse, rob-
abnormal class embedding.                                                bery, explosion) and normal activities. In the WSVAD,
                                                                         1,610 videos are used for training with video-level annota-
Overall, the final total objective of Ex-VAD is given by:
                                                                         tions, while 290 videos are used for testing with frame-level
             L = LBCE + LM CE + λLCT S .                      (11)       annotations. XD-Violence contains 4,754 untrimmed videos
                                                                         totaling 217 hours, making it one of the largest multimodal
                                                                         violence detection datasets. It includes six types of vio-
3.6. Inference
                                                                         lence (e.g., abuse, car accidents, explosions) across diverse
ExVAD contains three branches that enable it to handle                   sources such as surveillance, films, and games. The dataset
fine-grained and coarse-grained WSVAD tasks and anomaly                  is divided into 3,954 training videos and 800 testing videos,
interpretation. Regarding fine-grained WSVAD, we follow                  with video-level labels.
previous work (Wu et al., 2023) and use a thresholding strat-
                                                                         Evaluation Metrics. For coarse-grained WSVAD, the eval-
egy on the alignment graph M to predict anomalous events.
                                                                         uation uses frame-level Average Precision (AP) and frame-
For coarse-grained WSVAD, we follow previous work (Wu
                                                                         level AUC for XD-Violence, and only frame-level AUC
et al., 2024c) in employing two methods to compute the
                                                                         for UCF-Crime. For fine-grained WSVAD, mean Average
frame-level anomaly degree. The first method directly uses
                                                                         Precision (mAP) values are calculated under different Inter-
the anomaly scores from the coarse-grained classification,
                                                                         section over Union (IoU) thresholds (ranging from 0.1 to
while the second method uses the alignment map from the
                                                                         0.5 with a stride of 0.1). The average mAP (AVG) is also
fine-grained classification, i.e., the similarity between the
                                                                         reported, and mAP is computed only for abnormal videos
video and the normal class minus 1 is the anomaly degree.
                                                                         in the test set.
Finally, we choose the best of these two methods to compute
the frame-level anomaly degree.                                          Implementation Details. All experiments are conducted
                                                                         on a single NVIDIA RTX A100 GPU using PyTorch. The
4. Experiments                                                           network employs frozen image and text encoders from pre-
                                                                         trained CLIP (ViT-B/16) with a Transformer-based FFN
In this section, we perform experiments on the UCF-                      layer and GELU activation. BLIP-2 is used for caption
Crime (Sultani et al., 2019) and XD-Violence (Wu et al.,                 generation, while Llama-3.1 generates anomaly explana-
2020) datasets. Ex-VAD focuses on fine-grained anomaly                   tions. Visual and text features are fused via concatenation.
detection and explainability. We compare it with other meth-             Key hyperparameters include: σ = 1, τ = 0.07, context
ods designed for fine-grained anomaly detection and explore              length l = 20, window length in LGT-Adapter (64 for
novel approaches for explainable coarse-grained anomaly                  XD-Violence, 8 for UCF-Crime), and λ (1 × 10−4 for XD-
detection using LLMs and VLMs. Furthermore, we conduct                   Violence, 1 for UCF-Crime).

                                                                     6
                Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

Category              Method                                  Fine-grained    Explainability    XD-Violence(AP)         UCF-Crime(AUC)
                      LAVAD(Zanella et al., 2024)                   ×               ✓                   62.01                  80.28
Training-Free
                      VERA(Ye et al., 2024)                         ×               ✓                    88.2                  86.6
Fine-tuning LLMs      VADOr(Lv & Sun, 2024)                         ×               ✓                     -                    88.1
                      RealAD(Sultani et al., 2019)                  ✓               ×                   75.18                  84.14
                      RTFM (Tian et al., 2021b)                     ✓               ×                   78.27                  85.66
                      AVVD(Zhou et al., 2022b)                      ✓               ×                   78.10                  84.57
                      TEVAD(Chen et al., 2023)                      ×               ×                   79.80                   84.9
                      DMU(Zhou et al., 2023)                        ✓               ×                   82.41                  86.75
Weakly
                      CLIP-TSA(Joo et al., 2023)                    ✓               ×                   82.17                  87.58
                      UMIL(Sánchez-Macián et al., 2024)           ✓               ×                     -                    86.75
                      VADCLIP(Wu et al., 2024c)                     ✓               ×                   84.51                  88.02
                      STPrompt(Wu et al., 2024b)                    ✓               ×                   83.97                  88.08
                      Ex-VAD (Ours)                                 ✓               ✓                   86.52                  88.29

                      Table 3. Coarse-grained comparisons of methods on XD-Violence and UCF-Crime datasets.


  Visual              AEGM                  LAAM     AUC (%)             LAAM                    0.1      0.2    0.3     0.4   0.5     AVG

           Captionl     Explainable text                                 [CLS]                  14.38    10.54   6.92   5.03   2.51     7.87
                                                                         a video of [CLS]       14.77    10.68   6.69   4.78   3.73     8.13
    ✓                                                     86.76          Learnable-Prompt       15.18    12.03   6.65   4.96   3.20     8.40
    ✓           ✓                                         86.33          Label-Augment Prompt   16.51    12.35   9.41   7.82   4.65    10.15
    ✓           ✓              ✓                          87.86
    ✓           ✓              ✓             ✓            88.29         Table 6. Effectiveness of the Label Augment Alignment Module
                                                                        for fine-grained anomaly detection.
Table 4. Effectiveness of each module for Coarse-grained anomaly
detection.
                                                                        on UCF-Crime, outperforming VADCLIP, STPrompt, and
 AEGM                 0.1    0.2     0.3     0.4    0.5     AVG         TCVADS by 1.32, 1.52, and 7.24, respectively. On XD-
 Captions           17.74   13.27   10.25   7.01    6.10    10.88       Violence, Ex-VAD achieves 28.23 AVG, exceeding these
 Explainable Text   16.51   12.35    9.41   7.82    4.65    10.15       methods by 3.53, 4.79, and 11.28, respectively. Unlike meth-
                                                                        ods like VADCLIP, STPrompt, and TCVADS which align
Table 5. Effectiveness of the Anomaly Explainable Generation            visual features with text embeddings from CLIP or LLMs,
Module for fine-grained anomaly detection.                              Ex-VAD introduces a novel approach. Using AEGM, it
                                                                        prompts VLMs and LLMs to generate textual information,
                                                                        fuses this with visual features, and aligns the representation
4.2. Comparison Results                                                 with labels. This generated textual information enriches se-
                                                                        mantics and enhances detection performance. Additionally,
Fine-grained WSVAD Results. The fine-grained detection
                                                                        LAAM expands label semantics by converting single labels
task is more challenging as it involves detecting the presence
                                                                        (e.g., ”Abuse”) into descriptive phrases (e.g., ”Someone is
of anomalous events while also accurately identifying their
                                                                        being mistreated”), better aligning with visual-text features.
specific categories. To demonstrate the superiority of our
proposed Ex-VAD, we conduct comparisons with several                    Coarse-grained WSVAD Results. Additionally, we com-
VAD methods, including RealAD (Sultani et al., 2019),                   pare the results of the state-of-the-art methods for coarse-
RTFM (Tian et al., 2021b), AVVD (Zhou et al., 2022b),                   grained anomaly detection, including the training-free
DMU (Zhou et al., 2023), CLIP-TSA (Joo et al., 2023),                   methods LAVAD (Zanella et al., 2024) and VERA (Ye
UMIL (Sánchez-Macián et al., 2024), VADCLIP (Wu et al.,               et al., 2024); fine-tuned models to achieve interpretable
2024c), and STPrompt (Wu et al., 2024b). For fairness,                  VADor (Lv & Sun, 2024), and the above for fine-grained
CLIP (ViT-B/16) is used for all feature extractors.                     anomaly detection methods.
Tables 1 and 2 present the fine-grained detection results               Table 3 shows that while LAVAD and VERA are simple and
on UCF-Crime and XD-Violence datasets, evaluated using                  interpretable due to their lack of training, they do not sup-
mean average precision (mAP) and average accuracy (AVG)                 port fine-grained detection. Our method, Ex-VAD, performs
across IOU thresholds (0.1–0.5). Our Ex-VAD consistently                best on the UCF dataset and second best on the XD dataset.
achieves the best results, highlighting its superior perfor-            VADOr achieves explainability through fine-tuning but lacks
mance. Specifically, Ex-VAD achieves an AVG of 9.00                     fine-grained detection support. For methods supporting fine-

                                                                    7
               Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models
                                                                          88.40                                                                                              18.00

grained detection, older approaches like RealAD underper-                                                     88.28
                                                                                                                                                                             16.00
                                                                                                                                                                                                    0.1          0.2      0.3           0.4          0.5       AVG


                                                                          88.20                                       88.21
form (75.18 AP on XD-Violence), while recent methods,                                                 88.12
                                                                                                                                88.16 88.18
                                                                                                                                                                             14.00

including AVVD, DMU, and STPrompt, show consistent                        88.00
                                                                                              87.97
                                                                                                                                              88.01
                                                                                                                                                                             12.00




                                                                                                                                                                mAP@IOU（%）
                                                                                                                                                                                                                 10.15
improvement. VADCLIP and TCVADS push the state of                         87.80                                                                       87.78                  10.00                        9.43
                                                                                                                                                                                                                         10.03   9.98         9.87     9.86    9.84   9.87




                                                                     AUC(%)
                                                                                                                                                                                             8.54
                                                                                                                                                                                      7.88
the art, with TCVADS achieving 85.58 AP on XD-Violence                    87.60
                                                                                      87.57                                                             87.55
                                                                                                                                                                              8.00



and 88.58 AUC on UCF-Crime. Ex-VAD uniquely com-                          87.40
                                                                                                                                                                              6.00


                                                                                                                                                                              4.00
bines fine-grained detection and interpretability, excelling              87.20
                                                                                                                                                                              2.00

in both. Although its performance on UCF-Crime (88.29                     87.00                                                                                               0.00

AUC) is marginally below TCVADS (88.58), it leads to XD-                          1       2       3       4       5
                                                                                        Number of the diverse templates(K)
                                                                                                                            6       7     8       9      10                            1      2            3       4      5
                                                                                                                                                                                             Number of the diverse templates(K)
                                                                                                                                                                                                                                    6          7           8    9     10


                                                                                                                      (a)                                                                                                     (b)
Violence, highlighting its versatility. This dual capability
makes Ex-VAD an optimal choice for practical applications
requiring precision and insights into detection results.             Figure 4. Sensitivity analysis of a different number of templates
                                                                     K to generalization of (a) coarse-grained detection and (b) fine-
                                                                     grained detection.
4.3. Model Analysis
Ablation Study. To evaluate the impact of the two key                         Method                            Trainable Params                                                     Inference Time                                                MACs
components, AEGM and LAAM, we conducted ablation
                                                                              RTFM                                               24.72M                                                      8.28ms                                           126.59G
experiments on the UCF-Crime dataset by removing one or                       DMU                                                6.49M                                                       16.60ms                                           21.00G
both components from Ex-VAD, with results summarized                          CLIP-TSA                                           16.41M                                                      18.33ms                                          102.63G
in Table 4. The findings reveal that generating captions                      VADCLIP                                            35.17M                                                      22.30ms                                           29.17G
solely for videos degrades performance, whereas cleaning
                                                                              ExVAD                                               9.97M                                                      15.37ms                                            12.04G
these captions and generating anomaly explanations signif-
icantly enhances it. This highlights the negative impact
                                                                     Table 7. Comparison of Trainable Parameters, Inference Time, and
of low-quality captions, which often contain redundant or            Multiply-Add Operations (MACs). The best and second-best val-
erroneous information, and the complementary role of high-           ues are highlighted with bold text and underlined text, respectively.
quality anomaly explanations in improving visual perfor-
mance. While AEGM is primarily designed for fine-grained
anomaly detection, it also contributes to coarse-grained de-         the highest similarity to the original labels achieves opti-
tection improvements.                                                mal label enhancement for video anomaly detection. In
Effectiveness of the AEGM. We evaluate the effectiveness             this setting, the AUC for coarse-grained detection peaks
of fine-grained anomaly detection for AEGM, with results             at 88.28%, while the average mAP@IOU for fine-grained
shown in Table 5. The analysis shows that Captions alone             detection reaches its highest value of 10.15%, demonstrat-
outperform Explainable Text in fine-grained anomaly de-              ing the best detection performance. However, excessive
tection, as Captions provide frame-level semantic details,           enhancement (k > 5) may introduce noise, resulting in per-
while Explainable Text offers a concise video-level sum-             formance degradation. These results highlight that moderate
mary. However, Explainable Text enhances fine-grained                label enhancement significantly enhances the model’s over-
anomaly detection while also providing transparent, summa-           all detection capability and anomaly localization accuracy.
rized explanations of anomalies at the video level. Therefore,       Analysis of Computational Efficiency. We evaluate the
we choose Explainable Text for the final model to balance            number of trainable parameters (Trainable Params), infer-
performance and interpretability.                                    ence time of a frame (Inference Time), and multiply-add
Effectiveness of LAAM. We evaluate the effectiveness of              operations (MACs). Table 7 demonstrates that our method,
LAAM in fine-grained VAD, as summarized in Table 6. The              ExVAD, achieves a well-balanced trade-off between model
results demonstrate that LLAM-augmented labels signifi-              complexity and size, optimizing both performance and re-
cantly enhance detection accuracy compared to manually               source usage effectively.
defined cue words and learnable prompt-based approaches.
This improvement highlights the value of leveraging LLAM             5. Conclusion
to generate semantically rich and contextually relevant la-
bels that align more effectively with the visual and textual         In this paper, we propose Ex-VAD, an explainable ap-
features used for fine-grained anomaly detection.                    proach for fine-grained video anomaly detection. First,
                                                                     the Anomaly Explanation Generation Module (AEGM) ex-
Effectiveness of Top-k. Figure 4 presents the impact of dif-         tracts and refines frame-level captions using VLMs, and
ferent top-k values in the LAAM module on coarse-grained             then generates video-level anomaly explanations with an
and fine-grained detection results, respectively. The trend          LLM. Second, the Multimodal Anomaly Detection Module
graphs reveal that selecting the top 4 phrases (k = 4) with          (MADM) encodes the text and extracts temporal and spatial

                                                                 8
               Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

features to detect coarse-grained anomalies. Finally, the La-       Joo, H. K., Vo, K., Yamazaki, K., and Le, N. Clip-tsa: Clip-
bel Augment and Alignment Module (LAAM) expands and                   assisted temporal self-attention for weakly-supervised
aligns anomaly category labels with multimodal features               video anomaly detection. In 2023 IEEE International
to achieve fine-grained anomaly detection. Experiments                Conference on Image Processing (ICIP), pp. 3230–3234.
show that Ex-VAD outperforms existing methods in fine-                IEEE, 2023.
and coarse-grained anomaly detection, providing a more
transparent and effective solution.                                 Kim, J., Yoon, S., Choi, T., and Sull, S. Unsupervised
                                                                      video anomaly detection based on similarity with prede-
                                                                      fined text descriptions. Sensors (Basel, Switzerland), 23,
Acknowledgements                                                      2023a.
This work was supported in part by the National Nat-
                                                                    Kim, J., Yoon, S., Choi, T., and Sull, S. Unsupervised video
ural Science Foundation of China (No.62301621), in
                                                                      anomaly detection based on similarity with predefined
part by Shenzhen Science and Technology Program (No.
                                                                      text descriptions. Sensors, 23(14):6256, 2023b.
20231121172359002, No. KQTD20221101093559018),
in part by Shenzhen General Research Project (No.                   Li, G., Cai, G., Zeng, X., and Zhao, R. Scale-aware spatio-
JCYJ20241202125904007), in part by Guangdong Ba-                      temporal relation learning for video anomaly detection. In
sic and Applied Basic Research Foundation (No.                        European Conference on Computer Vision, pp. 333–350.
2025A1515011398, No.2023B0303000010), in part by the                  Springer, 2022a.
CIE-Smartchip research fund (No.2024-08), in part by the
Fundamental Research Funds for the Central Universities,            Li, J., Li, D., Savarese, S., and Hoi, S. Blip-2: bootstrapping
Sun Yat-sen University under Grants No. 23xkjc010.                     language-image pre-training with frozen image encoders
                                                                       and large language models. In Proceedings of the 40th In-
Impact Statement                                                       ternational Conference on Machine Learning, ICML’23.
                                                                      JMLR.org, 2023.
This paper presents work whose goal is to advance the field
of Computer Vision. There are many potential societal               Li, S., Liu, F., and Jiao, L. Self-training multi-sequence
consequences of our work, none of which we feel must be               learning with transformer for weakly supervised video
specifically highlighted here.                                        anomaly detection. In Proceedings of the AAAI Confer-
                                                                      ence on Artificial Intelligence, volume 36, pp. 1395–1403,
                                                                      2022b.
References
Chen, W., Ma, K. T., Jian Yew, Z., Hur, M., and Khoo, D.            Liu, Y., Yang, D., Wang, Y., Liu, J., Liu, J., Boukerche, A.,
  A.-A. Tevad: Improved video anomaly detection with                  Sun, P., and Song, L. Generalized video anomaly event
  captions. In 2023 IEEE/CVF Conference on Computer                   detection: Systematic taxonomy and comparison of deep
  Vision and Pattern Recognition Workshops (CVPRW), pp.               models. 56(7), 2024. ISSN 0360-0300.
  5549–5559, 2023.
                                                                    Lv, H. and Sun, Q. Video anomaly detection and explanation
Huang, C., Yang, Z., Wen, J., Xu, Y., Jiang, Q., Yang, J.,            via large language models, 2024.
  and Wang, Y. Self-supervision-augmented deep autoen-              Nawaratne, R., Alahakoon, D., De Silva, D., and Yu, X.
  coder for unsupervised visual anomaly detection. IEEE               Spatiotemporal anomaly detection using deep learning
 Transactions on Cybernetics, 52(12):13834–13847, 2022.               for real-time video surveillance. IEEE Transactions on
                                                                      Industrial Informatics, 16(1):393–402, 2020.
Huang, C., Wen, J., Xu, Y., Jiang, Q., Yang, J., Wang,
 Y., and Zhang, D. Self-supervised attentive generative             Nguyen, T. N. and Meunier, J. Anomaly detection in video
  adversarial networks for video anomaly detection. IEEE              sequence with appearance-motion correspondence. In
 Transactions on Neural Networks and Learning Systems,                2019 IEEE/CVF International Conference on Computer
  34(11):9389–9403, 2023.                                            Vision (ICCV), pp. 1273–1283, 2019.
Huang, C., Wen, J., Liu, C., and Liu, Y. Long short-term            OpenAI and etc. Gpt-4 technical report, 2024. URL https:
  dynamic prototype alignment learning for video anomaly             //arxiv.org/abs/2303.08774.
  detection. In Larson, K. (ed.), Proceedings of the Thirty-
 Third International Joint Conference on Artificial Intelli-        Pu, Y., Wu, X., Yang, L., and Wang, S. Learning prompt-
  gence, IJCAI-24, pp. 866–874. International Joint Con-              enhanced context features for weakly-supervised video
  ferences on Artificial Intelligence Organization, 8 2024.           anomaly detection. IEEE Transactions on Image Process-
  doi: 10.24963/ijcai.2024/96. Main Track.                            ing, 33:4923–4936, 2024.

                                                                9
               Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G.,            Wang, B., Huang, C., Wen, J., Wang, W., Liu, Y., and Xu,
  Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J.,         Y. Federated weakly supervised video anomaly detection
  et al. Learning transferable visual models from natural              with multimodal prompt. Proceedings of the AAAI Con-
  language supervision. In International conference on                 ference on Artificial Intelligence, 39(20):21017–21025,
  machine learning, pp. 8748–8763. PMLR, 2021.                         Apr. 2025.

Ramachandra, B., Jones, M. J., and Vatsavai, R. R. A survey           Wang, L., Huynh, D. Q., and Mansour, M. R. Loss switch-
  of single-scene video anomaly detection. IEEE Transac-               ing fusion with similarity search for video classification.
  tions on Pattern Analysis and Machine Intelligence, 44(5):           In 2019 IEEE International Conference on Image Pro-
  2293–2312, 2022. doi: 10.1109/TPAMI.2020.3040591.                    cessing (ICIP), 2019.

Ren, J., Xia, F., Liu, Y., and Lee, I. Deep video anomaly             Wu, P., Liu, J., Shi, Y., Sun, Y., Shao, F., Wu, Z., and Yang,
  detection: Opportunities and challenges. In 2021 Interna-            Z. Not only look, but also listen: Learning multimodal
  tional Conference on Data Mining Workshops (ICDMW),                  violence detection under weak supervision. In Computer
  pp. 959–966, 2021.                                                   Vision–ECCV 2020: 16th European Conference, Glasgow,
                                                                       UK, August 23–28, 2020, Proceedings, Part XXX 16, pp.
Samaila, Y. A., Sebastian, P., Singh, N. S. S., Shuaibu,               322–339. Springer, 2020.
  A. N., Ali, S. S. A., Amosa, T. I., Mustafa Abro, G. E.,
  and Shuaibu, I. Video anomaly detection: A systematic               Wu, P., Liu, X., and Liu, J. Weakly supervised audio-visual
  review of issues and prospects. Neurocomputing, 591:                 violence detection. IEEE Transactions on Multimedia,
  127726, 2024. ISSN 0925-2312.                                        25:1674–1685, 2023.

Sánchez-Macián, A., Martı́nez, J., Reviriego, P., Liu, S.,          Wu, P., Liu, J., He, X., Peng, Y., Wang, P., and Zhang, Y.
   and Lombardi, F. On the privacy of the count-min sketch:            Toward video anomaly retrieval from video anomaly de-
   Extracting the top-k elements. IEEE Transactions on                 tection: New benchmarks and model. IEEE Transactions
   Emerging Topics in Computing, 2024.                                 on Image Processing, 33:2213–2225, 2024a.
                                                                      Wu, P., Zhou, X., Pang, G., Yang, Z., Yan, Q., Wang, P.,
Sultani, W., Chen, C., and Shah, M. Real-world anomaly
                                                                       and Zhang, Y. Weakly supervised video anomaly de-
  detection in surveillance videos, 2019.
                                                                       tection and localization with spatio-temporal prompts.
Tang, J., Lu, H., Wu, R., Xu, X., Ma, K., Fang, C., Guo,               MM ’24, New York, NY, USA, 2024b. Association for
  B., Lu, J., Chen, Q., and Chen, Y.-C. Hawk: Learning to              Computing Machinery. ISBN 9798400706868. doi:
  understand open-world video anomalies, 2024a.                        10.1145/3664647.3681442.

Tang, Y., Guo, J., Hua, H., Liang, S., Feng, M., Li, X.,              Wu, P., Zhou, X., Pang, G., Zhou, L., Yan, Q., Wang, P., and
  Mao, R., Huang, C., Bi, J., Zhang, Z., Fazli, P., and Xu,            Zhang, Y. Vadclip: Adapting vision-language models for
  C. Vidcomposition: Can mllms analyze compositions                    weakly supervised video anomaly detection. In Proceed-
  in compiled videos? arXiv preprint arXiv:2411.10979,                 ings of the AAAI Conference on Artificial Intelligence,
  2024b.                                                               volume 38, pp. 6074–6082, 2024c.
                                                                      Yan, C., Zhang, S., Liu, Y., Pang, G., and Wang, W. Feature
Tian, Y., Pang, G., Chen, Y., Singh, R., Verjans, J. W., and
                                                                        prediction diffusion model for video anomaly detection.
  Carneiro, G. Weakly-supervised video anomaly detec-
                                                                        In 2023 IEEE/CVF International Conference on Com-
  tion with robust temporal feature magnitude learning. In
                                                                        puter Vision (ICCV), pp. 5504–5514, 2023.
  Proceedings of the IEEE/CVF international conference
  on computer vision, pp. 4975–4986, 2021a.                           Ye, M., Liu, W., and He, P. Vera: Explainable video anomaly
                                                                        detection via verbalized learning of vision-language mod-
Tian, Y., Pang, G., Chen, Y., Singh, R., Verjans, J. W., and
                                                                        els. arXiv preprint arXiv:2412.01095, 2024.
  Carneiro, G. Weakly-supervised video anomaly detec-
  tion with robust temporal feature magnitude learning. In            Zaigham Zaheer, M., Lee, J.-H., Astrid, M., and Lee, S.-I.
  Proceedings of the IEEE/CVF international conference                  Old is gold: Redefining the adversarially learned one-
  on computer vision, pp. 4975–4986, 2021b.                             class classifier training paradigm. In 2020 IEEE/CVF
                                                                        Conference on Computer Vision and Pattern Recognition
Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux,            (CVPR), pp. 14171–14181, 2020.
  M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E.,
  Azhar, F., Rodriguez, A., Joulin, A., Grave, E., and Lam-           Zanella, L., Menapace, W., Mancini, M., Wang, Y., and
  ple, G. Llama: Open and efficient foundation language                 Ricci, E. Harnessing large language models for training-
  models. ArXiv, abs/2302.13971, 2023.                                  free video anomaly detection. In Proceedings of the

                                                                 10
               Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

  IEEE/CVF Conference on Computer Vision and Pattern
  Recognition, pp. 18527–18536, 2024.
Zhao, Y., Deng, B., Shen, C., Liu, Y., Lu, H., and Hua,
  X.-S. Spatio-temporal autoencoder for video anomaly
  detection. In Proceedings of the 25th ACM International
  Conference on Multimedia, pp. 1933–1941, 2017.

Zhou, H., Yu, J., and Yang, W. Dual memory units with un-
  certainty regulation for weakly supervised video anomaly
  detection. In Proceedings of the AAAI Conference on
  Artificial Intelligence, volume 37, pp. 3769–3777, 2023.
Zhou, K., Yang, J., Loy, C. C., and Liu, Z. Learning to
  prompt for vision-language models. International Jour-
  nal of Computer Vision, 130(9), 2022a. ISSN 1573-1405.
  doi: 10.1007/s11263-022-01653-1.
Zhou, X., Girdhar, R., Joulin, A., Krähenbühl, P., and Misra,
  I. Detecting twenty-thousand classes using image-level
  supervision. In ECCV, 2022b.




                                                                  11
                   Ex-VAD: Explainable Fine-grained Video Anomaly Detection Based on Visual-Language Models

A. appendix.

    Please answer with a ‘Yes’ or ‘No’ to whether the video contains any unusual           Please answer with a ‘Yes’ or ‘No’ to whether the video contains any unusual
    behaviour. If so, please provide a brief description of the anomaly.                   behaviour. If so, please provide a brief description of the anomaly.


                             Yes, Flames appear from litter, growing intense.            Yes, explosions near train tracks cause fires, smoke; workers manage calmly.




                                                                                                                               Explosions
                                          Arson




    Please answer with a ‘Yes’ or ‘No’ to whether the video contains any unusual           Please answer with a ‘Yes’ or ‘No’ to whether the video contains any unusual
    behaviour. If so, please provide a brief description of the anomaly.                   behaviour. If so, please provide a brief description of the anomaly.


                                 Yes, explosion in control room causes chaos.                      Yes, two individuals inspect and handle merchandise suspiciously.




                                                                                                                                 Shoplifting
                                     Explosions




     Please answer with a ‘Yes’ or ‘No’ to whether the video contains any unusual          Please answer with a ‘Yes’ or ‘No’ to whether the video contains any unusual
     behaviour. If so, please provide a brief description of the anomaly.                  behaviour. If so, please provide a brief description of the anomaly.


                                 Yes, road accidents cause chaos, people fall.                                                              No, this is a normal video.




                                       RoadAccidents
                                                                                                                               Normal




                                                  Figure 5. Confidence visualization on the UCF-Crime dataset.

Qualitative Analyses. Figure 5 illustrates the qualitative visualization of Ex-VAD. The blue curve represents the anomaly
prediction score, while the grey area highlights the ground truth anomaly time positions. The figure also showcases
fine-grained anomaly categories and anomaly explanations, which are generated by querying the LLM. As shown, Ex-VAD
effectively detects unused anomaly categories, describes anomalous phenomena, and accurately differentiates between
normal and abnormal clips in anomalous videos.




                                                                                    12
