Introduction
Weakly-supervised video anomaly detection (VAD) aims to identify unusual events—such as accidents, fights, or robberies—in surveillance footage using only video-level labels. This task is challenging because anomalies are rare, and frame-by-frame annotation is prohibitively expensive. The Magnitude-Contrastive Glance-and-Focus Network (MGFN) addresses two fundamental flaws in existing state-of-the-art (SOTA) methods: context blindness and the magnitude fallacy.
The Challenges of Video Anomaly Detection
Context Blindness
Many models struggle to differentiate between normal and abnormal events because they analyze short clips in isolation. An action might appear perfectly normal in a 2-second window but become suspicious when viewed as part of a longer sequence.
The Magnitude Fallacy
Previous SOTA methods, such as RTFM, operated on the assumption that anomalous features always possess higher magnitudes than normal ones. However, empirical evidence shows that high-activity normal scenes (e.g., a busy intersection) often generate higher feature magnitudes than subtle anomalies (e.g., a quiet theft). This inconsistency across different scenes leads to high false-alarm rates.
The MGFN Framework
MGFN introduces a "Glance-and-Focus" mechanism to mimic the human visual system, integrating global context with local detail. The architecture consists of three primary components:
- Glance-and-Focus Modules:
- The Glance Block (GB) utilizes a Video Clip-level Transformer (VCT) to capture global dependencies across the entire video, establishing a scene-specific baseline for "normal" behavior.
- The Focus Block (FB) employs Self-Attentional Convolution (SAC) to zoom in on local spatial-temporal patterns, refining the representation of specific segments.
- Feature Amplification Mechanism (FAM): This module explicitly calculates the $L_2$ norm of features and integrates it back into the feature map, making magnitude information visible to the network for more effective training.
- Magnitude Contrastive (MC) Loss: Instead of enforcing a fixed magnitude threshold, the MC loss uses contrastive learning to develop a scene-adaptive distribution. It minimizes the magnitude distance between clips of the same category and maximizes it between normal and abnormal clips, focusing on the "top-k" most likely anomalous segments to mitigate noise in weak labels.
Experimental Results
MGFN was evaluated on two large-scale benchmarks, achieving new SOTA performance:
- UCF-Crime: Achieved 86.98% AUC, outperforming previous methods by nearly 3%.
- XD-Violence: Achieved 80.11% AP, demonstrating superior robustness across multi-scene datasets.
Qualitative analysis shows that MGFN produces significantly smoother and more accurate anomaly scores compared to previous models, which often suffered from jittery predictions in high-motion normal scenes.
Conclusion
By moving away from absolute feature magnitudes and toward scene-adaptive contrastive learning, MGFN provides a more robust framework for anomaly detection. The integration of global "glancing" and local "focusing" allows the model to understand the context of a scene, effectively reducing false alarms in complex surveillance environments. Future work may explore multi-modal integration, such as incorporating audio data, to further enhance detection accuracy.
Summary updated