NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Frequency-Guided Diffusion Model with Perturbation Training for Skeleton-Based Video Anomaly Detection

Xiaofeng Tan, Hongsong Wang, Xin GengarXiv 2024

Abstract

Video anomaly detection (VAD) is a vital yet complex open-set task in computer vision, commonly tackled through reconstruction-based methods. However, these methods struggle with two key limitations: (1) insufficient robustness in open-set scenarios, where unseen normal motions are frequently misclassified as anomalies, and (2) an overemphasis on, but restricted capacity for, local motion reconstruction, which are inherently difficult to capture accurately due to their diversity. To overcome these challenges, we introduce a novel frequency-guided diffusion model with perturbation training. First, we enhance robustness by training a generator to produce perturbed samples, which are similar to normal samples and target the weakness of the reconstruction model. This training paradigm expands the reconstruction domain of the model, improving its generalization to unseen normal motions. Second, to address the overemphasis on motion details, we employ the 2D Discrete Cosine Transform (DCT) to separate high-frequency (local) and low-frequency (global) motion components. By guiding the diffusion model with observed high-frequency information, we prioritize the reconstruction of low-frequency components, enabling more accurate and robust anomaly detection. Extensive experiments on five widely used VAD datasets demonstrate that our approach surpasses state-of-the-art methods, underscoring its effectiveness in open-set scenarios and diverse motion contexts.

Introduction

Video Anomaly Detection (VAD) is fundamentally an open-set problem. Models are typically trained on "normal" behavior (e.g., walking, sitting) and are expected to flag deviations (e.g., running, fighting) as anomalies. However, standard reconstruction-based methods often fail due to two primary hurdles: the Generalization Gap and the Detail Trap.

Figure 1: (a) The challenge of unseen normal motions in testing data. (b) Decomposition of motion into low-frequency (global) and high-frequency (local) components.

The Generalization Gap occurs when the model encounters normal motions that differ slightly from the training set (e.g., a different walking stride), leading to false positives. The Detail Trap refers to the model's struggle to reconstruct unpredictable high-frequency local jitters, which results in high error scores even for normal actions.

Methodology: FG-Diff

To address these issues, we propose Frequency-Guided Diffusion (FG-Diff), which incorporates perturbation training and frequency-guided denoising.

Perturbation Training

To improve robustness against the Generalization Gap, we employ a lightweight perturbation generator ($G_\phi$). During training, this generator creates "perturbed" versions of normal skeleton sequences. These samples are mathematically constrained to remain within the "normal" category but are specifically designed to maximize the reconstruction error of the diffusion model. By learning to "fix" these adversarial normal samples, the model develops a broader and more robust representation of normality.

Frequency-Guided Denoising

To avoid the Detail Trap, we utilize the 2D Discrete Cosine Transform (DCT) to decompose skeleton sequences into low-frequency (global structure) and high-frequency (local detail) components.

Figure 2: The inference phase of FG-Diff, where observed high-frequency components guide the reconstruction of low-frequency global motion.

As shown in Figure 2, during the diffusion process, the model uses the observed high-frequency information from the test sample as a guide. By fusing these observed details with the generated low-frequency components, the model focuses its capacity on accurately reconstructing the global motion structure. This ensures that anomaly scores are driven by significant behavioral deviations rather than minor stylistic differences.

Experimental Evaluation

FG-Diff was evaluated on five major VAD benchmarks, including real-world (Avenue, HR-STC) and synthetic (UBnormal) datasets. The model consistently outperformed state-of-the-art (SoTA) methods:

  • HR-Avenue: Achieved an AUC of 90.7, a +3.1 improvement over previous reconstruction-based methods.
  • HR-STC: Reached 78.6 AUC.
  • UBnormal: Scored 68.9 AUC, demonstrating strong performance in synthetic-to-real open-set scenarios.

Ablation studies confirmed that perturbation training significantly stabilizes performance against input noise, while frequency guidance ensures the model remains focused on semantically meaningful motion patterns.

Conclusion

FG-Diff addresses the core weaknesses of skeleton-based VAD by combining adversarial perturbation training with frequency-domain guidance. By prioritizing global motion structure and expanding the model's definition of "normal," FG-Diff achieves superior robustness and accuracy across diverse and challenging datasets.

Summary updated

BibTeX
@misc{tan2024frequency,
  author = {Xiaofeng Tan and Hongsong Wang and Xin Geng},
  title = {{Frequency-Guided Diffusion Model with Perturbation Training for Skeleton-Based Video Anomaly Detection}},
  year = {2024},
  eprint = {2412.03044},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.03044},
}
Figure