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

Min-Yeong Park, Won-Jeong Lee, Seong Tae Kim, Gyeong-Moon Park
6/30/2025
cs.LGcs.AI

Official code: KU-VGI/AP (18 stars, Apache-2.0, last commit 2025-11-27).

Abstract

Recently, forecasting future abnormal events has emerged as an important scenario to tackle real-world necessities. However, the solution of predicting specific future time points when anomalies will occur, known as Anomaly Prediction (AP), remains under-explored. Existing methods dealing with time series data fail in AP, focusing only on immediate anomalies or failing to provide precise predictions for future anomalies. To address the AP task, we propose a novel framework called Anomaly to Prompt (A2P), comprised of Anomaly-Aware Forecasting (AAF) and Synthetic Anomaly Prompting (SAP). To enable the forecasting model to forecast abnormal time points, we adopt a strategy to learn the relationships of anomalies. For the robust detection of anomalies, our proposed SAP introduces a learnable Anomaly Prompt Pool (APP) that simulates diverse anomaly patterns using signal adaptive prompt. Comprehensive experiments on multiple real-world datasets demonstrate the superiority of A2P over state-of-the-art methods, showcasing its ability to predict future anomalies. Our implementation code is available at https://github.com/KU-VGI/AP.

View on arXivView PDF

Code Implementations(1)

KU-VGI/APOfficial100%
Apache-2.0

[ICML 2025] When Will It Fail? Anomaly to Prompt for Forecasting Future Anomalies in Time Series

181Shell, PythonMay 29, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{park2025when,
  title  = {When Will It Fail?: Anomaly to Prompt for Forecasting Future Anomalies in Time Series},
  author = {Min-Yeong Park and Won-Jeong Lee and Seong Tae Kim and Gyeong-Moon Park},
  year   = {2025},
  eprint = {2506.23596},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.23596v1},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.23596.svg)](https://codeofpaper.com/paper/2506.23596)

Discussion