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

PhysDiff: A Physically-Guided Diffusion Model for Multivariate Time Series Anomaly Detection

Long Li, Wencheng Zhang, Shi Yuan, Hongle Guo, Wanghu ChenNeurIPS 2025

TL;DR

PhysDiff is a novel framework that combines physics-guided signal decomposition with conditional diffusion models to detect anomalies in complex, non-stationary multivariate time series. By adaptively "unmixing" signals into frequency bands and using them as physical priors, it achieves state-of-the-art performance across 18 baselines, significantly reducing false positives in dynamic real-world systems.

The Challenge of Non-Stationary Time Series

Detecting anomalies in multivariate time series—such as sensor data from a power plant or a spacecraft—is notoriously difficult because real-world data is often non-stationary. Its statistical properties, like mean and variance, shift over time due to normal operational changes rather than actual faults.

Traditional reconstruction-based methods (like Autoencoders) often struggle with two major issues:

  1. The "Normal" Shift: They might flag a legitimate change in operation as an anomaly because they cannot distinguish between a structural shift in the "trend" and a genuine "pattern" failure.
  2. Interpretability: Most deep learning models act as "black boxes." They provide an anomaly score but fail to explain where or why the signal looks wrong.

Furthermore, existing frequency-domain methods rely heavily on manual tuning for signal decomposition, and current diffusion models lack a dynamic way to integrate high-frequency (noise-like) and low-frequency (trend-like) information during reconstruction.

The PhysDiff Framework

PhysDiff introduces a three-stage pipeline that bridges the gap between classical signal processing and modern generative AI.

PhysDiff Architecture
  1. Physics-Guided Feature Extraction: The model uses Multi-channel Adaptive Fourier Decomposition (MAFD) to split the signal into high-frequency oscillations and low-frequency trends. Crucially, it employs Amplitude-Sensitive Permutation Entropy (ASPE)—a physics-inspired complexity measure—to automatically determine the optimal decomposition depth. This prevents "over-splitting" the signal into meaningless noise.
  2. Physically-Informed Diffusion Model: Instead of a standard diffusion model that learns a general distribution, PhysDiff uses a Conditional Diffusion Model. The frequency components extracted in the first step act as "physical priors" that guide the denoising process.
  3. Dual-Path Routing Attention: During the reconstruction (denoising) phase, a novel Time-Frequency Energy Routing mechanism acts as a traffic controller. It dynamically weights the importance of high-frequency versus low-frequency information at each step, ensuring the model neither overfits to noise nor ignores subtle trend shifts.
  4. Anomaly Scoring: The final score goes beyond simple reconstruction error. It factors in the Time-Frequency Distribution Divergence (using KL divergence) to catch "pattern anomalies" that might stay within normal value ranges but exhibit the wrong "rhythm."

Key Insights

  • Entropy as a Stopping Criterion: Using ASPE to determine decomposition depth is a major breakthrough. It moves away from "guessing" how many layers a model needs, allowing the intrinsic complexity of the data to dictate the architecture.
  • Generative Counterfactuals: By training only on normal data, the diffusion model learns to generate a "counterfactual" version of the input—essentially asking, "What would this signal look like if it were healthy?" The difference between this generated signal and the actual input serves as a highly sensitive anomaly indicator.
  • Frequency-Aware Weighting: Anomalies are not created equal. Some hide in the "jitter" (high frequency), while others hide in the "drift" (low frequency). By weighting errors across these bands, PhysDiff provides better localization, helping engineers pinpoint exactly which part of the signal is failing.

Performance and Results

The authors evaluated PhysDiff on a rigorous battery of benchmarks, including standard datasets like SMD (Server Machine), MSL (Mars Rover), SMAP (Satellite), SWaT (Water Treatment), and PSM (eBay Server Metrics), as well as challenging subsets of the NeurIPS-TS dataset (Creditcard and GECCO).

Performance Comparison on Standard Benchmarks

PhysDiff outperformed 18 state-of-the-art baselines (including popular models like Anomaly Transformer and DCdetector).

  • F1 Score Improvements: It achieved an average F1 score improvement across all datasets, including a notable +6.8% F1 boost on the Creditcard dataset and a +2.8% boost on the MSL dataset compared to previous best performers.
  • Precision-Recall Balance: PhysDiff maintains a much tighter balance between precision and recall, meaning it catches more true anomalies without triggering excessive false alarms.
  • Efficiency: Despite the complexity inherent to diffusion models, PhysDiff's runtime remains competitive. It requires only about a 3.7% computational overhead compared to advanced models like D3R, while delivering significantly better accuracy.

Limitations and Future Work

While powerful, the authors acknowledge several hurdles:

  • Computational Intensity: Diffusion models are iterative and require more training time and hardware resources than simpler architectures. The authors suggest model distillation as a future path to make PhysDiff lightweight enough for edge devices.
  • Continuous Data Assumption: The MAFD decomposition requires consistent, continuous data points. Significant missing values can break the decomposition, highlighting a need for better handling of incomplete data.
  • Privacy: When dealing with sensitive financial or medical time series, the model currently lacks built-in anonymization or differential privacy mechanisms.

Reference: Li, L., et al. (2025). PhysDiff: A Physically-Guided Diffusion Model for Multivariate Time Series Anomaly Detection. 39th Conference on Neural Information Processing Systems (NeurIPS 2025).",

Summary updated

BibTeX
@inproceedings{li2025physdiff,
  author = {Long Li and Wencheng Zhang and Shi Yuan and Hongle Guo and Wanghu Chen},
  title = {{PhysDiff: A Physically-Guided Diffusion Model for Multivariate Time Series Anomaly Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ElTbpJp7b9},
}
Figure