MemoryOut: Learning Principal Features via Multimodal Sparse Filtering Network for Semi-supervised Video Anomaly Detection

Juntong Li, Lingwei Dang, Yukun Su, Yun Hao, Qingxin Xiao, Yongwei Nie, Qingyao Wu · DOI

Introduction

Video Anomaly Detection (VAD) is a critical task in computer vision, typically framed as a semi-supervised learning problem where models are trained exclusively on normal data. Traditional approaches often rely on "memorizing" normal patterns using rigid memory modules or reconstruction-based methods. However, these methods frequently suffer from over-generalization—where the model inadvertently learns to reconstruct abnormal events—and "semantic blindness," failing to recognize contextually inappropriate behaviors that appear visually normal.

To address these challenges, we present SIB-VAD (Semantics-aware Information Bottleneck for Video Anomaly Detection), a framework that replaces traditional memory banks with a Sparse Feature Filtering Module (SFFM). By leveraging the Information Bottleneck (IB) principle and integrating high-level semantic cues from Vision-Language Models (VLMs), SIB-VAD effectively distinguishes between normal and anomalous patterns across diverse real-world scenes.

The Sparse Filtering Approach

The core innovation of SIB-VAD lies in its shift from "memorization" to "filtering." Traditional memory-based VAD models use fixed prototypes to represent normality. While intuitive, these prototypes are often too rigid to capture the full diversity of normal behavior, leading to poor generalization or the inclusion of "noisy" prototypes that might represent anomalies.

Comparison between traditional Memory Modules and the proposed Sparse Feature Filtering Module (SFFM).

As shown in Figure 1, the SFFM operates in manifold space rather than prototype space. It forces features through a low-dimensional "bottleneck." Since the network is trained only on normal data, it learns a manifold that can only accurately pass normal features. Abnormal features, which do not fit this learned manifold, are naturally filtered out or distorted, leading to high reconstruction errors during inference. The module employs an Adaptive Routing mechanism (a Mixture-of-Experts approach) to dynamically select specialized sub-filters for different scene contexts, enhancing flexibility without increasing the bottleneck's width.

System Architecture

The SIB-VAD framework consists of three primary components integrated into a unified pipeline for training and inference.

Overview of the SIB-VAD architecture, featuring the Tri-Modal Fusion Encoder (TMFE), Sparse Feature Filtering Module (SFFM), and Multimodal Joint Attention Decoder (MJAD).

1. Tri-Modal Fusion Encoder (TMFE)

To overcome semantic blindness, the TMFE extracts and fuses three distinct information streams:

  • Appearance: RGB frames capturing spatial details.
  • Motion: Frame differences capturing temporal dynamics.
  • Semantics: Textual descriptions generated by a lightweight VLM, providing high-level contextual "meaning" to the scene.

2. Multimodal Joint Attention Decoder (MJAD)

The MJAD is designed to predict both the next visual frame and its corresponding semantic embedding. By comparing these predictions against the actual ground truth, the model generates a dual-signal anomaly score. If an event is visually plausible but semantically inconsistent (e.g., a person running in a restricted area), the semantic branch provides a crucial secondary detection signal.

3. Training Objectives

Beyond standard reconstruction losses, the model utilizes a Motion Frame-Difference Contrastive Loss. This prevents the model from "cheating" by simply copying the previous frame, forcing it to learn the actual underlying motion dynamics of normal scenes.

Experimental Results

SIB-VAD was evaluated on three benchmark datasets: ShanghaiTech, CUHK Avenue, and UCSD Ped2. It achieved state-of-the-art (SOTA) performance, notably reaching 83.4% AUC on the complex ShanghaiTech dataset, significantly outperforming previous memory-based methods like MA-PDM (79.2%).

Ablation studies highlighted the critical role of the semantic branch. Removing semantic information led to a performance drop from 83.4% to 72.3% on ShanghaiTech. This confirms that high-level semantic awareness acts as a "force multiplier," allowing the model to detect subtle or distant anomalies that are often lost in pixel-level noise.

Conclusion

SIB-VAD demonstrates that filtering features through an information bottleneck is a more robust strategy for VAD than explicit memorization. By combining this filtering approach with multimodal semantic integration, the framework effectively bridges the gap between low-level visual reconstruction and high-level contextual understanding, setting a new standard for semi-supervised video anomaly detection.

Summary updated

BibTeX
@misc{li2025memoryout,
  author = {Juntong Li and Lingwei Dang and Yukun Su and Yun Hao and Qingxin Xiao and Yongwei Nie and Qingyao Wu},
  title = {{MemoryOut: Learning Principal Features via Multimodal Sparse Filtering Network for Semi-supervised Video Anomaly Detection}},
  year = {2025},
  eprint = {2506.02535},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.02535},
}
Figure