Residual-Tail-Informed Flow Matching for Time Series Anomaly Detection

Shyam Sundar Saravanan, Tie Luo, Sanjay Madria
11/15/2026
cs.LGcs.AI
diffusion-flow

Official code: TrustAIoT/RT-FM_time-series-anomaly (0 stars, Python, last commit 2026-11-16).

Abstract

Time series anomaly detection (TSAD) models are often trained on nominal data using average-risk objectives, which emphasize dominant normal patterns. However, real time series can contain rare but valid nominal regimes that are underrepresented in the training distribution.

Show full abstract

We show that data-space flow matching can over-penalize such rare-normal windows and assign them anomaly scores comparable to those of true anomalies. To address this, we propose Residual-Tail-Informed Flow Matching (RT-FM), an unsupervised framework that uses a temporal variational autoencoder to estimate residual latent tailness and converts it into bounded, warmup-annealed weights for training a data-space flow matching model. Experiments on seven TSAD benchmarks show that RT-FM improves rare-normal coverage while preserving strong anomaly discrimination, substantially reducing false alarms on such windows and resulting in improved aggregate detection performance. The code is available at: https://github.com/trustAIoT/RT-FM_time-series-anomaly

View on arXivView PDF

Code Implementations(1)

IEEE BigData 2026 paper (PDF available by Nov 18)

00Python, PowerShellNov 15, 20262 weeks ago
flow-matchingtime-series-anomaly-detection

Similar Papers

Cite this paper

@article{saravanan2026residualtailinformed,
  title  = {Residual-Tail-Informed Flow Matching for Time Series Anomaly Detection},
  author = {Shyam Sundar Saravanan and Tie Luo and Sanjay Madria},
  year   = {2026},
  eprint = {2611.20334},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.20334v1}
}

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

Discussion