arXiv:2610.06453cs.AIOct 2026

Manuscript Offprint

arXiv:2610.06453

Normality Constraint Learning: Adapting Foundation Models for Time Series Anomaly Detection

Xiaohui Zhou, Yijie Wang, Hongzuo Xu, Weixuan Liang, Guansong Pang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Time Series Foundation Models (TSFMs) achieve strong generalization by learning to reconstruct or forecast broad temporal patterns from large-scale time series during pre-training. Yet this strength can become a weakness for anomaly detection: TSFMs may model rare anomalous patterns as effectively as normal ones, allowing anomalies to be accurately reconstructed or forecasted and thus diminishing their reconstruction/forecasting error-based anomaly scores. This paper proposes Normality Constraint Learning (NCL), a lightweight plug-and-play framework that adapts pre-trained TSFMs for accurate anomaly detection without modifying their pre-trained parameters. Our key insight is to constrain the broad pattern space of TSFMs to the normal structure of a target time series, preventing their broad modeling capability from obscuring abnormal deviations. Specifically, NCL constructs a compact normality subspace from a few normal patch features and adaptively steers each patch feature toward normality within this subspace, guided by contrastive constraints that form compact and discriminative normality manifolds. The calibrated features are aggregated to reinforce normal components and fused with the original TSFM output, amplifying the discrepancy between normal and abnormal observations for the reconstruction/forecasting error-based anomaly scoring. Extensive experiments across diverse TSFM families and benchmarks show that NCL consistently improves anomaly detection performance, providing a generalizable framework for adapting TSFMs to anomaly detection.

1 INTRODUCTION

Time series foundation models (TSFMs) have recently delivered substantial gains in the landscape of time series analysis. Pre-trained on massive and diverse corpora, TSFMs such as Aurora (Wu et al., 2026), ROSE (Wang et al., 2025), Chronos (Ansari et al., 2024), and MOMENT (Goswami et al., 2024) encode rich universal representations of temporal dynamics and demonstrate strong zero-shot and few-shot generalization across various downstream tasks. Time series anomaly detection (TSAD) is one of the key downstream tasks of TSFMs. It aims to identify deviations from expected patterns, playing a critical role in many real-world applications such as industrial control (Wang et al., 2022), disease identification (Pereira & Silveira, 2019), and fraud detection (Anandakrishnan et al., 2018).

Although TSFMs have strong expressive power, their design is fundamentally reconstruction- or forecasting-centric, where internal features are shaped for broad pattern modeling. Since such general-purpose representation capability can often efficiently model both normal and abnormal patterns, the existing common practice of directly repurposing the reconstruction/forecasting errors of TSFMs for anomaly detection is questionable. As illustrated in Figure 1, both reconstruction-based and forecasting-based TSFMs can effectively reconstruct or forecast most of the abnormal observations, resulting in small reconstruction/forecasting errors for not only normal data but also anomalies. This phenomenon fundamentally undermines the widely-used TSAD intuition that anomalies are harder to reconstruct or forecast than normal data (Pang et al., 2021; Zamanzadeh Darban et al., 2024; Liu & Paparrizos, 2024; Zhu et al., 2026). We also provide a theoretical analysis of this issue in Appendix A.

Figure

(a) Anomaly scores for reconstruction-based TSFMs.

(b) Anomaly scores for forecasting-based TSFMs.

Figure 1: (a) and (b) respectively show the anomaly score distributions of normal and abnormal observations for reconstruction-based and forecasting-based TSFMs and their NCL-augmented counterparts on the PSM dataset (Abdulaal et al., 2021). NCL enables both types of TSFMs to produce substantially more discriminative anomaly scores.

To address this challenge, a natural idea is to adapt TSFMs for anomaly detection through fine-tuning strategies (Hu et al., 2022; Qiu et al., 2023; Park & Yoon, 2026). However, fine-tuning pre-trained foundation models risks catastrophic forgetting of the rich temporal knowledge, on which the anomaly scoring mechanisms in the fine-tuned TSFMs still heavily rely when computing the reconstruction or forecasting errors. This raises a critical question: How can we effectively leverage the powerful representational capacity of frozen TSFMs while steering their outputs toward a normality regime so that abnormal deviations stand out more clearly?

In this paper, we propose Normality Constraint Learning (NCL), a lightweight plug-and-play framework that can augment diverse TSFMs for accurate anomaly detection without modifying their pre-trained parameters. Our key insight is that, while TSFMs can capture a broad spectrum of temporal patterns, reconstruction/forecasting-error-based anomaly detection requires identifying and emphasizing the relevant normal patterns only; we therefore first construct a normality subspace from this broad pattern space and then adaptively steer each patch feature toward normality within the subspace, guided by compact and discriminative manifolds learned from a few normal patch features.

To this end, NCL is instantiated with three main components, namely normal subspace construction (NormSpace), patch-adaptive normality transformation (PatchNT), and contrastive normality constraint (ConNC). NormSpace constructs a compact normality subspace via singular value decomposition (SVD) of patch features from a few training subsequences encoded by a frozen TSFM. Within this subspace, PatchNT adaptively calibrates patch features toward a learnable normality manifold along each principal direction, while ConNC guides this adaptive transformation by encouraging the formation of compact and discriminative normality manifolds. The calibrated features across all normality directions are then aggregated into consensus features that reinforce normal components. Finally, these features are decoded and fused with the original TSFM output to enhance the normal patterns, thereby amplifying the discrepancy between normal and abnormal data. As shown in Figure 1, augmenting TSFMs with NCL yields more discriminative anomaly score distributions than vanilla TSFMs (see Appendix K for additional results). In summary, our contributions are as follows:

• We propose NCL, a novel plug-and-play framework that augments frozen TSFMs with normality constraints to learn calibrated normality features, thereby substantially sharpening the reconstruction/forecasting error-based anomaly scores of the TSFMs.

• We further instantiate NCL with three components: NormSpace, PatchNT, and ConNC. NormSpace constructs a normality subspace, while PatchNT adaptively transforms patch features toward the normality regime. This transformation is guided by ConNC to encourage the formation of compact yet discriminative normality manifolds within the regime.

• Extensive experiments on popular TSAD datasets demonstrate that NCL consistently and significantly improves the anomaly detection performance of diverse families of TSFMs.

References (100)

Couldn't load all references. Reload the page to try again.