Introduction
Traditional Video Anomaly Detection (VAD) systems are often "context-blind," focusing on identifying obvious deviations like crashes or explosions without considering the surrounding circumstances. However, real-world normality is frequently conditional. For instance, climbing a cliff is a normal sport with safety gear but a life-threatening anomaly without it. To address this, we introduce CUEBENCH, a large-scale benchmark designed to push Video Anomaly Understanding (VAU) into the realm of context-aware reasoning.
Methodology: Unified VAU and CUE-R1
We propose a unified generative framework that treats VAU as a Visual Question Answering (VQA) problem. Instead of task-specific architectures, models are prompted to output structured JSON for five core tasks: Context Recognition, Anomaly Recognition, Temporal Grounding, Anomaly Detection, and Anticipation ("What If").
To excel at these tasks, we developed CUE-R1, trained via a two-stage pipeline:
- Supervised Fine-Tuning (SFT): Establishes instruction-following and JSON formatting capabilities.
- Reinforcement Fine-Tuning (RFT): Utilizes Group Relative Policy Optimization (GRPO) with verifiable rewards. These include structural rewards (JSON validity), semantic rewards (embedding similarity), and a novel Hierarchy-Refined Reward that leverages a 5-level event taxonomy to penalize "near-miss" errors less severely than hallucinations.
The CUEBENCH Dataset
CUEBENCH significantly advances the state of VAU datasets with 2,950 videos (54.5 hours) and a focus on context indispensability. It features 174 scenes, 198 attributes, and 1,443 distinct "context triplets" (Event, Scene, Attribute).
A key feature of CUEBENCH is its distinction between absolute anomalies (e.g., fire) and conditional anomalies (e.g., smoking in a restricted area). This forces models to move beyond simple pattern matching toward true reasoning about how scene context and attributes define normality.
Key Results and Insights
CUE-R1, based on Qwen2.5-VL-3B, achieves a 24% average improvement over state-of-the-art models like Gemini-1.5-Flash. Qualitative analysis shows CUE-R1 successfully identifies complex anomalies like "illegal overtaking" where baselines provide only generic descriptions.
The inclusion of an Anticipation ("What If") task demonstrates the model's ability to understand causal implications. Furthermore, the hierarchical reward system prevents "lazy" predictions by incentivizing the model to reach specific leaf nodes in the event taxonomy.
Limitations and Future Directions
While CUEBENCH is extensive, it does not yet cover the infinite variety of real-world contexts, such as extreme weather. Additionally, the model currently struggles with "passive" anomalies (e.g., an unattended bag) which require reasoning about the absence of an action. Future work will focus on scaling high-quality annotations and exploring the balance between structured evaluation and the nuances of free-form natural language explanations.
Summary updated