TL;DR
Multimodal Large Language Models (MLLMs) often "know" more than they "say"—their internal representations can detect video anomalies even when their text outputs fail. This paper introduces Representation–Behavior Alignment (RBA), a lightweight intervention that updates just 0.012% of a model's parameters to rotate its internal features toward its native decision axis, significantly boosting detection accuracy while ensuring text explanations remain consistent with the model's judgments.
What Problem Does This Paper Address?
Video Anomaly Detection (VAD) is a challenging task that requires understanding temporal context—like distinguishing a normal basketball game from a fight. While MLLMs are attractive for VAD because they can explain why something is an anomaly, they often underperform specialized, non-interpretable detectors.
The authors identify a "Representation–Behavior Gap": the model’s hidden states often contain the information needed to identify an anomaly, but the final output head (the "readout") fails to use it. By diagnosing this gap, they found that the problem isn't a lack of information ("capacity"), but rather a "directional misalignment." Essentially, the model is looking in the wrong direction within its own high-dimensional feature space to make a final decision.
Methods
The researchers developed a three-step pipeline to diagnose and fix this misalignment:
- Geometric Diagnosis: They used linear probes (Fisher Linear Discriminant Analysis) to find the "optimal" direction for detecting anomalies in the hidden states. They compared this to the model's "native" direction—the vector between the embeddings for the words "Normal" and "Abnormal."
- Layer-wise Attribution: By tracing the "residual stream" (the data flowing through the model's layers), they discovered a sharp "readout alignment phase transition." In models like Qwen3.5-9B, the discriminative signal abruptly moves into the readout position at specific mid-to-late attention layers (e.g., Block 20).
- Representation–Behavior Alignment (RBA): Instead of fine-tuning the whole model, RBA inserts low-rank adapters (LoRA) only into the attention projections of these identified transition layers. Using only video-level labels (weak supervision), they train these adapters with a hinge-margin loss to rotate the internal features so they align with the model's native "Normal/Abnormal" axis.
Datasets
The authors evaluated RBA on three major VAD benchmarks:
- XD-Violence: A large-scale dataset for violence detection in videos.
- UCF-Crime: A classic benchmark containing various real-world crime scenes.
- UBnormal: A dataset featuring synthetic anomalies in diverse settings.
Training was conducted using weak supervision, meaning the model only knew if a whole video was anomalous, not which specific frames contained the event.
Key Insights and Ideas
- Direction is the Culprit: In their diagnosis, the "directional component" accounted for over 97% of the performance gap. The model already has the "knowledge" in its head; it just needs to be pointed toward the right exit.
- Attention as the Router: The study found that attention layers are responsible for routing anomaly information to the final token, while MLP layers often act as "negative interference" for this specific task. This motivated their "attention-only" adaptation strategy.
- The Sudden Leap: Anomaly detection capability doesn't grow linearly. There is a specific point in the network depth where the model suddenly "decides" how to project its internal features into language.
Key Results
- Significant Accuracy Boost: On XD-Violence, RBA improved the native-readout Average Precision (AP) from 72.86% to 83.02%.
- Extreme Efficiency: These gains were achieved by training only 0.012% of the backbone parameters, making it much cheaper than standard instruction tuning.
- Improved Consistency: RBA achieved over 91% consistency between the model's categorical decision (Normal/Abnormal) and its generated text explanation. In contrast, "Probe + Caption" baselines (where an external classifier makes the call) often resulted in the model explaining a decision it didn't actually make.
Limitations and Future Work
- Temporal Window: The study used a fixed four-frame window for clips. While this allowed for fair comparison across readouts, it caps the absolute accuracy the system can reach, as some anomalies require longer-term context.
- Pseudo-label Noise: RBA relies on pseudo-labels generated by an internal probe. If the initial probe is highly inaccurate, the alignment might suffer.
- Generalization: While proven for VAD, the authors suggest this "representation-behavior" framework could be applied to other multimodal tasks where models seem to "ignore" their own internal evidence, such as visual question answering or medical imaging.
Summary updated