TL;DR
This paper introduces GS-MoE, a novel framework for weakly-supervised video anomaly detection (WSVAD) that addresses the limitations of current methods in handling diverse anomaly types and imprecise temporal localization. By combining a Mixture-of-Experts (MoE) architecture with a Temporal Gaussian Splatting (TGS) loss, GS-MoE achieves state-of-the-art performance by learning specialized anomaly representations and improving temporal precision.
What Problem Does This Paper Address?
Video Anomaly Detection (VAD) is crucial for surveillance but challenging due to the rarity and diversity of anomalous events, coupled with the scarcity of labeled data. The Weakly-Supervised VAD (WSVAD) paradigm, which uses only video-level labels (normal/abnormal), is a common approach. However, existing WSVAD methods struggle with:
- Diversity of Anomalies: Most models use a single, shared architecture for all anomaly types, failing to capture category-specific features. This leads to good performance on obvious anomalies (like explosions) but poor performance on subtle ones (like shoplifting).
- Temporal Imprecision: The weak supervision signal lacks precise temporal information, making it difficult to pinpoint the exact moments an anomaly occurs, especially when it blends with normal activity. Current methods often focus only on the most abnormal snippets, ignoring the broader temporal context.
This paper aims to overcome these limitations by enabling models to learn specialized representations for different anomaly types and to better localize anomalies in time.
Methods
The proposed GS-MoE framework integrates two key techniques:
- Temporal Gaussian Splatting (TGS) Loss: This novel loss function reformulates the WSVAD objective. Instead of relying solely on the top-k most abnormal snippets (as in traditional Multiple Instance Learning - MIL), TGS uses Gaussian kernels to "splat" across the temporal duration of detected anomalies. These kernels are derived from the abnormal scores predicted by a model. This approach:
- Creates more expressive pseudo-labels that capture the full temporal extent of an anomaly, including less prominent snippets.
- Encourages the model to learn from more subtle anomalous events that might otherwise be overlooked.
- Helps to precisely capture temporal dependencies and mitigate over-smoothing.
- Mixture-of-Experts (MoE) Architecture: This architecture is designed to handle anomaly diversity. It consists of:
- Stage 1: Enhanced Temporal-Spatial Feature Extraction: A backbone combining I3D (for general features) and UR-DMU (for task-aware features) extracts rich video representations. The UR-DMU is fine-tuned with the TGS loss.
- Stage 2: Class-Specific Experts: Multiple "expert" models are trained, each dedicated to a specific anomaly class (e.g., "Arson," "Assault"). These experts leverage the enriched features and learn specialized representations for their assigned anomaly type.
- Stage 3: Gate Model: A gate mechanism integrates the outputs of the class-specific experts. It refines expert scores, uses a bi-directional cross-attention module to learn correlations between expert predictions and coarse anomaly features, and ultimately produces the final abnormal score. This allows the model to leverage both fine-grained, class-specific insights and more general anomaly cues.
Datasets
The paper evaluates its approach on three widely-used WSVAD datasets:
- UCF-Crime: A challenging dataset for anomaly detection.
- XD-Violence: Another benchmark dataset for anomaly detection.
- MSAD: A recently introduced dataset for anomaly detection.
All datasets are used with only video-level labels, adhering to the WSVAD paradigm.
Key Insights and Ideas
- Anomaly Diversity is Key: The core insight is that treating all anomalies as a single category is insufficient. Specialized "experts" for each anomaly type are crucial for capturing subtle differences and improving detection accuracy.
- Temporal Context Matters: Focusing only on the peak anomaly scores misses valuable information about the anomaly's duration and evolution. Temporal Gaussian Splatting effectively expands the temporal scope of supervision.
- Synergy of TGS and MoE: The TGS loss provides better pseudo-labels for training, and the MoE architecture effectively utilizes these enhanced labels by learning class-specific representations. This combination leads to significant performance gains.
- Gate Model as Integrator: The gate model plays a vital role in harmonizing the specialized knowledge from experts with broader anomaly cues, leading to robust final predictions.
Key Results
GS-MoE achieves state-of-the-art performance across multiple datasets and metrics:
- UCF-Crime: Achieves an AUC of 91.58%, surpassing the previous best model (VadCLIP) by 3.56%. The AUCA score is 83.86%, a 13.63% improvement.
- XD-Violence: Achieves an AP of 82.89% (competitive with TSA) and an APA of 85.74%, outperforming the second-best approach (UR-DMU) by a notable margin.
- MSAD: Surpasses baseline models by up to 2.74% on AUC and establishes a new state-of-the-art.
Ablation studies demonstrate the impact of each component:
- TGS loss alone improves the baseline UR-DMU by +1.77% AUC on UCF-Crime.
- Adding class-experts improves performance further.
- The gate model provides the largest performance increment, especially on UCF-Crime.
Limitations and Future Work
- Limitations:
- The paper acknowledges that in practical applications, anomalies might not always neatly fit predefined classes, making it challenging to train fixed experts.
- The current MoE architecture relies on predefined anomaly classes.
- Future Work:
- The authors suggest leveraging Large Language Models (LLMs) to provide more explainability for anomaly classes.
- They also explored a variant using cluster-based experts (instead of class-specific ones) to handle scenarios where anomaly classes are not predefined, showing competitive results. This suggests a path towards more flexible anomaly detection.
Summary updated