cs.LGOct 26, 2026

LEAP: a Latent Embedding Anomaly Patch-Transformer for time-series anomaly detection

Authors: Cristhian Moya-Mota, Ignacio Aguilera-Martos, Diego García-Gil, Julián Luengo

Organizations: Department of Computer Science and Artificial Intelligence, University of Granada, Granada, Spain. · Andalusian Institute of Data Science and Computational Intelligence (DaSCI), University of Granada, Granada, Spain. · Department of Software Engineering, University of Granada, Granada, Spain

Abstract

Time-series anomaly detection is dominated by reconstruction-based neural detectors, whose objective is structurally flawed. Since the target is also the input, an expressive model can learn to reconstruct anomalies too, leaving uninformative residuals. Recent large-scale benchmarks show that, on curated data, elaborate deep detectors rarely beat simple statistical baselines, while current leaders rely on representation learning. We propose LEAP (Latent Embedding Anomaly Patch-Transformer), which combines masked prediction with latent representation-based anomaly evidence, without relying on reconstruction or attention-based scoring. The model removes patches from a window and predicts them from the remaining temporal and cross-channel context, so prediction errors measure how well learned dynamics explain hidden segments. Deterministic complementary group masking ensures every time step is scored while hidden, with identical visible fractions during training and inference. LEAP adds three label-free evidence sources: latent-embedding novelty calibrated by local density, local temporal contrast, and per-channel novelty pooled over channels selected by six label-free criteria. Under the TSB-AD protocol, the full model achieves a VUS-PR of 0.5179±0.00220.5179 \pm 0.0022 on 180180 held-out multivariate series. On TSB-AD-U, a univariate variant combining multi-scale masked-prediction scoring with latent novelty, without contrast or channel-pool novelty, achieves 0.6194±0.00160.6194 \pm 0.0016 on 350350 held-out series. Both results average three random seeds. A five-stage ablation on TSB-AD-M, supported by paired Wilcoxon signed-rank tests, shows statistically significant gains from each successive component.

Figures & tables

Appendix figures & tables14 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. PaAno+: Multiscale Encoding and Cross-Variable Attention for Time Series Anomaly Detection

    Jun 18, 2026Youji Zhu, Hongbing Wang, Wenchao Liu +2Self-Supervised Time Series Representation LearningTime-Series Anomaly Detection

  2. LEARN-TS: LLM-Enhanced Alignment and Reconstruction with Normality Guidance for Multivariate Time-Series Anomaly Detection

    Sep 30, 2026Jahyeob Koo, Kio Yun, Byoungmo Koo +1LLM-Based Time Series Anomaly DetectionAnomaly Localization