All models

UR-DMU

A Transformer with normal and abnormal memory banks for weakly supervised video anomaly detection.

Video · 126 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (26 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Task
Video
Parameters
6.5M
Operations
126
Framework
PyTorch
Recurrent
No
Published
AAAI 2023
Cited by
189 (as of 28 October 2026)
Authors
Hang Zhou, Junqing Yu, Wei Yang
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21145
Graph hash
85bc80576082ce026f834588df6660419d460195412cb37c0197295704a039fc
Skeleton hash
a7eec28ae04145f566351044db5b612768a56b8047261620983a14e455e2d4d7
Architecture hash
dfd45eabad601c737e491a4df0895df490ab17e256d7f7ca0c529f79eac9616b
Diagram SHA-256
4cd09172f6ac6c0b16a0eceed20edfb6eb63c2b6893b04f75d0818ca36d9bf94
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

UR-DMU (Uncertainty Regulated Dual Memory Units) is a model for weakly supervised video anomaly detection that learns both the representations of normal data and discriminative features of abnormal data. The paper argues that existing approaches mainly focus on extracting representations for anomaly data while neglecting the implication of normal data, and that this may yield a higher false alarm rate.

A Global and Local Multi-Head Self Attention (GL-MHSA) module in the Transformer network produces more expressive embeddings for capturing associations in videos. Two memory banks, one of them an additional abnormal memory for hard samples, store and separate abnormal and normal prototypes and maximize the margins between the two representations. An uncertainty learning scheme then learns the latent space of normal data so that it is robust to noise from camera switching, object changing and scene transforming.

The public code uses extracted I3D features for the UCF-Crime and XD-Violence datasets. The paper, an AAAI 2023 oral, reports that the method outperforms earlier methods on XD-Violence and UCF-Crime by a sizable margin.

Key idea. UR-DMU uses normal and abnormal memory banks with an uncertainty learning scheme to learn representations of normal data alongside discriminative features of abnormal data.

  • UR-DMU
  • Uncertainty Regulated Dual Memory Units
  • dual memory units
  • video anomaly detection
  • weakly supervised video anomaly detection
  • WS-VAD
  • GL-MHSA
  • UCF-Crime
  • XD-Violence

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhou2023dualmemoryunitsuncertainty,
      title={Dual Memory Units with Uncertainty Regulation for Weakly Supervised Video Anomaly Detection}, 
      author={Hang Zhou and Junqing Yu and Wei Yang},
      year={2023},
      eprint={2302.05160},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2302.05160}, 
}