atlas

Research map / Time series / Anomaly detection

When Will It Fail?: Anomaly to Prompt for Forecasting Future Anomalies in Time Series

ICML 2025 · Time series › Anomaly detection · approach: Time series anomaly detection evaluation · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes A2P, a unified transformer that forecasts future signals and detects anomalies in them, using an anomaly-aware forecasting network and a learnable Anomaly Prompt Pool to predict when anomalies will occur.

Problem

Predicting the specific future time points at which anomalies will occur in multivariate time series (Anomaly Prediction), where naive forecasting-plus-anomaly-detection pipelines fail because forecasters are trained only on normal signals.

Approach

Pre-train an anomaly-aware forecasting network and a learnable Anomaly Prompt Pool that injects synthetic anomaly prompts at the embedding level, share a transformer backbone between forecasting and reconstruction-based anomaly detection, and weight the forecasting loss by predicted anomaly probability.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use A2P instead of the strongest reported baselineAnomaly Prediction · MBA, Exathlon, SMD, WADI; Lout=100Avg. F1: 41.55 -> 46.84Helped
Use A2P instead of the strongest reported baselineAnomaly Prediction · MBA, Exathlon, SMD, WADI; Lout=200Avg. F1: 41.38 -> 53.08Helped
Use A2P instead of the strongest reported baselineAnomaly Prediction · MBA, Exathlon, SMD, WADI; Lout=400Avg. F1: 41.18 -> 58.89Helped
Add AAF and SAP (ablation)A2P · MBA, Exathlon, SMD, WADIAvg. F1: 36.82 -> 46.84Helped
Add SAP (ablation)A2P with AAF · MBA, Exathlon, SMD, WADIAvg. F1: 38.89 -> 46.84Helped
Add AAF (ablation)A2P with SAP · MBA, Exathlon, SMD, WADIAvg. F1: 42.41 -> 46.84Helped
Add both LF and LD pre-training losses (ablation)A2P · MBA, Exathlon, SMD, WADIAvg. F1: 38.89 -> 46.84Helped
Add LD pre-training loss (ablation)A2P with LF · MBA, Exathlon, SMD, WADIAvg. F1: 41.42 -> 46.84Helped
Add LF pre-training loss (ablation)A2P with LD · MBA, Exathlon, SMD, WADIAvg. F1: 45.38 -> 46.84Helped
Share the transformer backbone between forecasting and anomaly detection (ablation)A2P · MBA, Exathlon, SMD, WADIAvg. F1: 41.45 -> 46.84Helped
Weight forecasting loss using anomaly probability (ablation)A2P · MBA, Exathlon, SMD, WADIAvg. F1: 44.44 -> 46.84Helped
Use MSE rather than BCE for AAF (ablation)A2P · MBA, Exathlon, SMD, WADIAvg. F1: 45.92 -> 46.84Helped

Surprising findings

Limitations

Experimental setup

Datasets: MBA Exathlon SMD WADI

Benchmarks: MBA Exathlon SMD WADI MSL SMAP PSM SWaT

Metrics: F1 with tolerance MSE VUS-PR VUS-ROC

Baselines: PatchTST MICN GPT2 iTransformer FITS Anomaly Transformer DCdetector CAD TranAD BeatGAN DiffusionAD

Builds on: Anomaly Transformer DCdetector PatchTST

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy