TL;DR
RoMod is a new framework that leverages the internal "routing" decisions of sparse Mixture-of-Experts (MoE) models to detect video anomalies. By using these routing signals to adaptively recalibrate semantic features, RoMod achieves state-of-the-art performance on major benchmarks using only 5% of training data, all while running significantly faster than comparable dense models.
What Problem Does This Paper Address?
Video Anomaly Detection (VAD) is a challenging task where models must identify "unusual" events (like accidents, fights, or crimes) in surveillance footage. While recent research has successfully used features from Large Language Models (LLMs) for VAD, these models are often treated as "black boxes."
In standard dense Transformers, every parameter is activated for every input, entangling semantic content, scene layout, and lighting. This makes it nearly impossible to pinpoint exactly where the discriminative power for detecting a "fight" vs. a "normal walk" comes from. Furthermore, deploying these massive models for real-time surveillance is often computationally prohibitive.
Methods
The authors turn to Sparse Mixture-of-Experts (MoE) models to solve this. Unlike dense models, MoEs use a "gating" mechanism to send different inputs to different "experts" (small sub-networks).
The proposed framework, RoMod, consists of three main components:
- Mechanistic Analysis: The authors first performed a "training-free" study of frozen MoE backbones. They discovered that anomaly-related information is concentrated in a tiny subset of "specialist" experts that activate specifically for certain types of anomalies.
- Routing-Modulated Fusion (RoMF): Instead of just concatenating features, RoMF uses the model's internal routing statistics to generate per-channel scaling factors. This "recalibrates" the hidden semantic channels, amplifying anomaly-relevant signals and damping background noise.
- Routing-aware Temporal Network (RoTN): A lightweight, 2-layer causal Transformer that models how an anomaly evolves over time, from its onset to its conclusion.
Crucially, RoMod operates on a fully frozen backbone and uses a two-stage training process that requires only 5% of weakly labeled videos (videos labeled as "anomalous" or "normal" without frame-level timestamps).
Datasets
The authors evaluated RoMod on three diverse benchmarks:
- XD-Violence: A large-scale dataset for multi-scene violence detection.
- UCF-Crime: A classic benchmark featuring 13 categories of real-world criminal events.
- UBnormal: A dataset containing synthetic anomalies, used specifically to test how well the model generalizes across different visual domains (e.g., from real video to synthetic animation).
Key Insights and Ideas
- The Power of a Single Expert: One of the most striking findings was that the activation count of a single expert in a middle layer of a frozen MoE could achieve 77.40% Average Precision (AP) on XD-Violence—outperforming the model's own textual "Yes/No" answer (71.37%) without any training at all.
- Expert Specialization: Different types of anomalies follow different "computational pathways." For example, "Explosions" trigger specific experts in layers 25–32, while "Riots" trigger a broader response in shallower layers.
- The "Fisher Plateau": Anomaly discriminability doesn't accumulate linearly. It emerges sharply in the middle layers (around Layer 18) and stays high through the later layers. RoMod includes an adaptive scheme to automatically select the best layer from this "plateau."
- Multiplicative Fusion vs. Concatenation: The authors found that simply adding or concatenating routing signals allows the model to "cheat" by using routing as a shortcut. By using multiplicative modulation, RoMod forces the routing signal to act as a filter for existing semantic features, which leads to much better generalization to new environments.
Key Results
- State-of-the-Art Accuracy: On XD-Violence, RoMod reached 92.49% AP, surpassing previous leaders. On UCF-Crime, it achieved 91.32% AUC, even though it was trained on a fraction of the data used by competitors.
- Cross-Domain Robustness: On the synthetic UBnormal dataset, RoMod achieved 79.17% AUC, proving that the routing signals capture fundamental "abnormal" patterns that transfer even when the visual style changes completely.
- High Efficiency: Despite using a 35-billion parameter backbone (Qwen3.6-35B), the sparse MoE architecture only activates ~2.4 billion parameters per step. RoMod runs at 51.83 FPS, making it more than twice as fast as a comparable dense model and well-suited for real-time surveillance.
Limitations and Future Work
- Dense Comparison: The authors note that comparing MoE models to dense models is difficult because dense models lack the routing signals that RoMod relies on. The performance gap isn't just about "sparsity" but about the unique information provided by the gating mechanism.
- Backbone Strength: While RoMod works across different MoE families (Qwen, Gemma), the specific "expert specialization" behavior might vary. Future work could explore if these "anomaly experts" can be explicitly fine-tuned or if the routing mechanism itself can be optimized for detection.
- In-Domain Bias: Routing signals are very strong in-domain, which can lead to overfitting if the fusion method isn't carefully designed (a risk the authors mitigated with RoMF).
Summary updated