NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Xiaohui Zhou, Yijie Wang, Hongzuo Xu, Weixuan Liang, Guansong PangarXiv 2026

TL;DR

Time Series Foundation Models (TSFMs) are often too good at their jobs, reconstructing anomalies just as easily as normal data and making them invisible to traditional error-based detection. This paper introduces Normality Constraint Learning (NCL), a lightweight, few-shot framework that "steers" frozen TSFMs to focus exclusively on normal patterns, successfully amplifying the error signal for anomalies and boosting detection performance by over 40% on average.

What Problem Does This Paper Address?

The rise of Time Series Foundation Models (TSFMs) like MOMENT, Chronos, and Aurora has revolutionized time series analysis. These models are pre-trained on massive datasets to be masters of reconstruction and forecasting. However, this general-purpose strength is a double-edged sword for Time Series Anomaly Detection (TSAD).

Traditional anomaly detection relies on the intuition that anomalies are "harder" to reconstruct or forecast than normal data. But because TSFMs have such high representational capacity and have seen so many diverse patterns during pre-training, they often reconstruct abnormal observations with high fidelity. This results in small error scores for both normal and abnormal data, causing anomalies to blend into the background.

Existing adaptation methods like fine-tuning (e.g., LoRA) risk "catastrophic forgetting" of the model's rich temporal knowledge. The authors ask: How can we leverage the power of frozen TSFMs while forcing their outputs to strictly adhere to a "normal" regime?

Methods

The authors propose Normality Constraint Learning (NCL), a plug-and-play module that sits on top of a frozen TSFM. It consists of three main components:

  1. NormSpace (Normal Subspace Construction): Using Singular Value Decomposition (SVD) on patch features from just a few normal training samples, NCL identifies the principal directions that define "normality" for a specific dataset.
  2. PatchNT (Patch-Adaptive Normality Transformation): This is a lightweight affine transformation. It adaptively "calibrates" each feature patch, selectively adding or deleting information to align it with the learned normality manifold along each principal direction.
  3. ConNC (Contrastive Normality Constraint): A contrastive loss function that encourages features to cluster tightly around their respective normality centers while remaining discriminative from other directions.

Finally, a Gated Fusion mechanism combines the NCL-calibrated output with the original TSFM output. This intentionally amplifies the reconstruction/forecasting error for anomalies while keeping it low for normal data.

Overview of the NCL framework, showing how internal features are steered toward a normality subspace.

Datasets

The researchers evaluated NCL across ten diverse TSAD benchmarks, totaling 361 individual time series. These include:

  • Univariate: IOPS (web KPIs), UCR (diverse domains), NAB (real-world sensors), MSL (Mars Rover telemetry), and SMAP (satellite data).
  • Multivariate: PSM (server metrics), SMD (server machine data), SWAT (water treatment), PUMP (water pumping system), and NYC (taxi demand).

Key Insights and Ideas

  • The "Over-Generalization" Trap: The paper provides a theoretical proof (Appendix A) that TSFMs naturally minimize error on anomalies if those anomalies resemble normal patterns found elsewhere in the massive pre-training corpus.
  • Few-Shot is Enough: One of the most surprising findings is that SVD on as few as 5 normal samples is sufficient to construct a robust normality subspace. This makes NCL highly practical for industrial settings where labeled anomaly data is non-existent and normal data might be expensive to collect.
  • Intentional "Sabotage" for Good: By constraining the model to a normality subspace, NCL effectively makes the model worse at modeling anomalies. This "weakness" is exactly what makes the anomaly scores (errors) skyrocket when an abnormal pattern appears.

Key Results

  • Performance Boost: NCL consistently improved performance across all eight tested TSFM backbones, with an average improvement ratio of 41.49%.
  • Discriminative Power: As seen in Figure 1, NCL successfully separates the anomaly score distributions of normal and abnormal data, which were previously heavily overlapped in vanilla TSFMs.
  • Efficiency: NCL is incredibly lightweight. It requires only ~14.2K trainable parameters (compared to millions for LoRA/CoRA) and completes training in under 2 seconds on average.
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.
Efficiency trade-off showing NCL achieves higher accuracy with significantly less training time and fewer parameters.

Limitations and Future Work

The authors identify two main limitations:

  1. Simple Periodic Patterns: In cases with extremely simple, stable periodic patterns, basic statistical "one-liner" methods (like moving variance) can sometimes still outperform complex foundation models.
  2. Non-Stationary Data: If the training samples are highly non-stationary, the initial SVD-based subspace construction can become unstable, leading to poor grounding of "normality."

Future work will likely focus on stationary processing strategies to make the normality subspace more robust to shifting data distributions over time.

Summary updated

BibTeX
@misc{zhou2026normality,
  author = {Xiaohui Zhou and Yijie Wang and Hongzuo Xu and Weixuan Liang and Guansong Pang},
  title = {{Normality Constraint Learning: Adapting Foundation Models for Time Series Anomaly Detection}},
  year = {2026},
  eprint = {2610.06453},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.06453},
}
Figure