TL;DR
This paper introduces HiProbe-VAD, a novel tuning-free framework for video anomaly detection that leverages the rich intermediate representations within pre-trained Multimodal Large Language Models (MLLMs). By intelligently probing these hidden states, HiProbe-VAD achieves state-of-the-art performance without requiring any fine-tuning of the MLLM, making it a more practical and scalable solution for anomaly detection.
What Problem Does This Paper Address?
Video Anomaly Detection (VAD) is crucial for applications like surveillance and autonomous driving, aiming to identify unusual events in video sequences. However, existing deep learning methods often demand extensive labeled datasets and significant computational resources for training and fine-tuning. This reliance on data and computation limits their practical deployment. Furthermore, many approaches focus on the final output of models, potentially overlooking valuable information embedded in intermediate layers. The paper addresses the need for a VAD system that is efficient, data-light, and effectively utilizes the advanced reasoning capabilities of modern multimodal models without the burden of fine-tuning.
Methods
HiProbe-VAD is built around the core idea that intermediate hidden states of MLLMs are more informative for anomaly detection than their final outputs. The framework consists of two main phases:
- Offline Preparation:
- Dynamic Layer Saliency Probing (DLSP): This module identifies the optimal intermediate layer within an MLLM that contains the most discriminative features for anomaly detection. It does this by analyzing a small subset of training data (around 1%) and calculating metrics like KL divergence (anomaly sensitivity), Local Discriminant Ratio (class separability), and Entropy (information concentration) across different layers. These metrics are combined to score each layer, and the layer with the highest score is selected.
- Lightweight Anomaly Scorer Training: A simple logistic regression classifier is trained using the hidden states from the optimal layer identified by DLSP. This scorer is trained on a few "shot" examples to distinguish between normal and anomalous patterns.
- Real-time Inference:
- Frame-Level Anomaly Scoring: For an input video, keyframes are sampled, and their hidden states are extracted from the optimal MLLM layer. These features are then fed into the trained anomaly scorer to obtain an anomaly probability for each frame.
- Temporal Anomaly Localization: The frame-level anomaly scores are smoothed using a Gaussian kernel. An adaptive threshold, determined from the scorer's training set statistics, is used to identify anomalous segments.
- Explanation Generation: Anomalous and normal video segments are then fed back into the pre-trained MLLM for an auto-regression process, generating textual descriptions that explain the detected anomalies, enhancing interpretability.
Datasets
The paper evaluates HiProbe-VAD on two widely used datasets for video anomaly detection:
- UCF-Crime: Contains 1900 untrimmed real-world surveillance videos with frame-level annotations for 13 types of anomalies.
- XD-Violence: Includes 4754 untrimmed videos from movies and YouTube, annotated with 6 types of violent anomalies at the video level (weak labels).
Key Insights and Ideas
- The "Intermediate Layer Information-rich Phenomenon": The most significant insight is the discovery that intermediate hidden states in MLLMs are demonstrably richer and more sensitive to anomalies than the final output layers. This challenges the common practice of solely relying on model outputs and opens up a new avenue for VAD.
- MLLMs as Implicit Anomaly Detectors: The research suggests that pre-trained MLLMs possess inherent capabilities for anomaly detection, even without task-specific fine-tuning. This capability is unlocked by probing their intermediate representations.
- Tuning-Free Efficiency: By avoiding MLLM fine-tuning, HiProbe-VAD significantly reduces computational costs and data requirements, making advanced VAD accessible with less effort.
- Cross-Model Generalization: The framework's ability to work effectively across different MLLM architectures (InternVL2.5, Qwen2.5-VL, LLaVA-OneVision, Holmes-VAU) without any adjustments highlights the robustness of the "intermediate layer phenomenon" and the adaptability of the HiProbe-VAD approach.
Key Results
- State-of-the-Art Performance: HiProbe-VAD achieves competitive results, outperforming existing tuning-free methods and many traditional unsupervised and weakly supervised approaches on both UCF-Crime and XD-Violence datasets. For instance, using InternVL2.5, it achieved an AUC of 86.72% on UCF-Crime and an AP of 82.15% on XD-Violence.
- Superiority over Fixed Layers: Ablation studies show that using a fixed last layer or a fixed mid-layer (layer 16) resulted in significant performance drops compared to the dynamically selected optimal layer (layer 20), validating the DLSP module's effectiveness.
- Robustness of Scorer: The lightweight logistic regression scorer outperformed SVM and distance-based scoring methods, demonstrating its suitability for this task.
- Effective Temporal Localization: The adaptive thresholding for temporal localization proved crucial, significantly outperforming fixed threshold methods.
- Qualitative Explanations: The framework successfully generates descriptive explanations for detected anomalies, enhancing the interpretability of the system.
Limitations and Future Work
- Data Dependency for Scorer: While the MLLM itself is tuning-free, the lightweight anomaly scorer and DLSP module still require a small amount of labeled data for training and layer selection, respectively.
- Computational Cost of MLLM Inference: Although fine-tuning is avoided, the real-time inference still involves forward passes through large MLLMs, which can be computationally intensive.
- Future Work: The authors suggest that this work inspires further exploration of intermediate MLLM representations for VAD and other vision-language tasks. They also hint at the potential for extending this approach to other complex multimodal tasks.
Summary updated