RoMod: Temporal Routing Modulation via Mixture-of-Experts for Video Anomaly Detection

Chao Huang, Pengfei Wei, Benfeng Wang, Chengliang Liu, Wei Wang, Li Shen, Wenqi Ren, Xiaochun CaoarXiv 2026

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:

  1. 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.
  2. 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.
  3. 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.
Figure 1: Observations on a frozen MoE backbone on XD-Violence test set. (a) Comparison of readout APs: native answer (71.37%), hidden probe (82.87%), and a single expert’s activation count (77.40%). (b) Layer-wise expert activation contrast between normal and abnormal videos (red: high, green: low frequency).
  • 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.
Figure 1: Observations on a frozen MoE backbone on XD-Violence test set. (a) Comparison of readout APs: native answer (71.37%), hidden probe (82.87%), and a single expert’s activation count (77.40%). (b) Layer-wise expert activation contrast between normal and abnormal videos (red: high, green: low frequency).

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

Abstract

Intermediate-layer features from multimodal large language models have shown strong potential for video anomaly detection (VAD), yet the origin of their discriminative power remains unclear. We study this question using sparse mixture-of-experts (MoE) models, whose explicit expert structure and sparse activation make their internal computation easier to inspect. With a fully frozen backbone and no additional training, we find that anomaly-related evidence is concentrated in a small set of experts. These experts recur across layers, spontaneously specialize in different anomaly types, and together form a dynamic routing subnetwork. We further show that the output channels most strongly influenced by these experts are also the hidden dimensions that contain the most anomaly-relevant information. Routing statistics can therefore serve as an internal anomaly cue that complements semantic features.Based on these findings, we propose RoMod, an efficient VAD framework trained with only \(5\%\) of weakly labeled videos. RoMod includes a Routing-Modulated Fusion module, RoMF, and a Routing-aware Temporal Network, RoTN. RoMF uses routing signals to adaptively recalibrate hidden semantic channels. Its design also prevents the routing branch from bypassing semantic features and making predictions on its own. RoTN captures the temporal evolution of anomalies from onset to persistence and termination. Experiments on three benchmarks show that RoMod achieves state-of-the-art performance while running substantially faster than dense backbones of comparable size.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
XD-ViolenceRoMod (offline)AP92.49%+1.87 vs baselineVideo Anomaly Detection · split: test · offline · params=35B
Source quote
L681: 92.49
UCF-CrimeRoMod (offline)AUC91.32%+0.99 vs baselineVideo Anomaly Detection · split: test · offline · params=35B
Source quote
L679: 91.32
UBnormalRoMod (offline)AUC79.17%+0.42 vs baselineVideo Anomaly Detection · split: test · offline · params=35B
Source quote
L678: 79.17
XD-ViolenceRoMod (offline)AUC97.34%+3.32 vs baselineVideo Anomaly Detection · split: test · offline · params=35B
Source quote
L680: 97.34
UCF-CrimeRoMod (online)AUC88.92%Video Anomaly Detection · split: test · online · params=35B
Source quote
L772: 88.92
Reported baseline / comparator measurements (4)
BenchmarkMethodMetricScoreProtocol / Evidence
XD-ViolenceLAVIDA baselineAP90.62%Video Anomaly Detection
Source quote
L524: 92.49% AP and 97.34% AUC, above LAVIDA’s previous best AP of 90.62% and UR-DMU’s AUC
UCF-Crimeπ-VAD baselineAUC90.33%Video Anomaly Detection · fully-supervised
Source quote
L525: of 94.02%. On UCF-Crime it reaches 91.32% AUC, higher than the 90.33% of the fully supervised
UBnormalAnom-π baselineAUC78.75%Video Anomaly Detection · full-data
Source quote
L527: UBnormal it obtains 79.17% AUC and again exceeds the full-data Anom-π result of 78.75%. Since
XD-ViolenceUR-DMU baselineAUC94.02%Video Anomaly Detection
Source quote
L525: of 94.02%. On UCF-Crime it reaches 91.32% AUC, higher than the 90.33% of the fully supervised
BibTeX
@misc{huang2026romod,
  author = {Chao Huang and Pengfei Wei and Benfeng Wang and Chengliang Liu and Wei Wang and Li Shen and Wenqi Ren and Xiaochun Cao},
  title = {{RoMod: Temporal Routing Modulation via Mixture-of-Experts for Video Anomaly Detection}},
  year = {2026},
  eprint = {2610.05131},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.05131},
}
Figure