PAI: Preserving Amplitude Information in Representation-Based Time-Series Anomaly Detection

Kang Zhang, Wei Jian Lau, Shoushou Ren, Dong Lin, Joon Son Chung +1 more
6/8/2026
1 citation
cs.LGcs.AI

Official code: pantheon5100/PAI (2 stars, Python, last commit 2026-06-11).

Abstract

Representation-based time-series anomaly detection algorithms significantly outperform other methods on diverse anomaly detection tasks. However, we notice that they suffer from a major limitation in our evaluation - their learned embeddings are often amplitude-agnostic.

Show full abstract

Losing amplitude information can degrade performance on amplitude related anomalies, and this failure is prevalent across all existing representation-based methods. To address aforementioned issues, we propose a new anomaly scoring scheme named PAI. PAI consists of two complementary modules, a diagnostic module and a final score augmentation function. The diagnostic module compares cosine and Euclidean scoring on the same representation bank to test whether amplitude information is already captured in the learned representation. Then in final score augmentation function, PAI computes a point-wise median and MAD deviation score and a local mean-shift score-which are fused with the representation score to produce the final anomaly score. On the TSB-AD-U-Eva and TAB UV datasets, PAI improves all four evaluated representation-based methods across every reported metric, achieving average VUS-PR gains of 98.4% and 36.8%, respectively. Among all evaluated combinations, PaAno + PAI achieves the best performance, outperforming the state-of-the-art method by 15%. Further evaluation on bootstrap confidence intervals, anomaly-type breakdowns, and a TS2Vec input-normalization ablation further support the proposed scheme. These results suggest that explicitly retaining amplitude information is important for representation-based time-series anomaly detection, which has been underemphasized in existing scoring schemes. Code is available at: https://github.com/pantheon5100/PAI

View on arXivView PDF

Code Implementations(1)

pantheon5100/PAIOfficial100%

Preserving Amplitude Information in Representation-Based Time-Series Anomaly Detection

20Python, ShellJun 1, 20265 months ago

Similar Papers

Cite this paper

@article{zhang2026pai,
  title  = {PAI: Preserving Amplitude Information in Representation-Based Time-Series Anomaly Detection},
  author = {Kang Zhang and Wei Jian Lau and Shoushou Ren and Dong Lin and Joon Son Chung and Chuanhao Sun},
  year   = {2026},
  eprint = {2606.08935},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.08935v1}
}

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/2606.08935.svg)](https://codeofpaper.com/paper/2606.08935)

Discussion