MOMEMTO: Patch-based Memory Gate Model in Time Series Foundation Model

Samuel Yoon, Jongwon Kim, Juyoung Ha, Young Myoung Ko · DOI

Abstract

Modern Time Series Foundation Models (TFMs) often suffer from "over-generalization" in anomaly detection tasks, where their high capacity allows them to accurately reconstruct anomalous patterns, thereby reducing detection sensitivity. We present MOMEMTO, a framework that integrates a patch-based memory module into the MOMENT foundation model backbone. By bottlenecking representations through a bank of prototypical normal patterns and employing a multi-domain training strategy, MOMEMTO effectively filters out anomalous features. Our evaluation on the TSB-AD-U benchmark demonstrates that MOMEMTO significantly outperforms existing models, particularly in few-shot scenarios, while drastically reducing the computational footprint required for multi-dataset deployment.

Introduction: The Over-Generalization Challenge

In time series anomaly detection, reconstruction-based approaches are widely utilized. These models are typically trained to reconstruct normal data; at inference time, a high reconstruction error serves as a proxy for identifying anomalies. However, the advent of massive Time Series Foundation Models (TFMs) has introduced a paradoxical problem: these models are often "too smart." Their immense capacity allows them to generalize beyond their training data, accurately reconstructing even novel, anomalous patterns. When the reconstruction error remains low for both normal and abnormal data, the model fails to flag anomalies effectively.

Furthermore, the traditional "one-model-per-dataset" paradigm is increasingly unsustainable. Training and maintaining separate models for diverse industrial sensors is computationally expensive and storage-intensive. There is a critical need for a unified framework that can handle diverse domains while maintaining high sensitivity to anomalies.

The MOMEMTO Framework

MOMEMTO addresses these issues by introducing a "Memory Gate" mechanism. Built upon the MOMENT foundation model, the architecture incorporates two primary innovations designed to constrain the model's reconstructive power to known normal patterns.

Patch-Based Memory Module

Rather than processing individual data points, MOMEMTO decomposes time series into discrete "patches." The model maintains a memory bank of prototypical normal patch representations. During the reconstruction process, the model retrieves the Top-K most similar normal patterns from this bank to guide the decoder. This retrieval-based bottleneck forces the model to reconstruct inputs using only known normal features, effectively stripping away the model's ability to represent abnormal patterns.

The MOMEMTO architecture integrates a patch-based memory module with query and memory update mechanisms to constrain reconstruction to normal patterns.

The process involves five distinct stages: initialization (leveraging pre-trained encoder features), alignment (to handle varying sequence lengths), memory update (to refine prototypes), query update (to refine input representations), and final query alignment.

Multi-Domain Training Strategy

To achieve a universal representation of normalcy, MOMEMTO is jointly trained across multiple domains—ranging from heart rate data to satellite sensors—simultaneously. This multi-domain ($md$) approach allows the memory module to learn a diverse set of universal normal patterns and facilitates cross-domain knowledge sharing. This strategy eliminates the need for context switching between models and reduces the total storage footprint from over 450 GB (for individual models) to just 1.3 GB for a single unified model.

Experimental Evaluation

The researchers evaluated MOMEMTO using the TSB-AD-U benchmark, a comprehensive collection of 870 univariate time series across 23 datasets, including the UCR Anomaly Archive, NAB, and Yahoo datasets. The benchmark covers both point anomalies and complex sequence patterns.

Results and Discussion

MOMEMTO achieved state-of-the-art results across all major metrics. The multi-domain version, $MOMEMTO_{md}$, reached an AUC-PR of 36.35% and a VUS-ROC of 80.95%, significantly outperforming the base MOMENT model (29.45% AUC-PR). Qualitative analysis confirmed that MOMEMTO creates a much clearer margin between normal and anomalous samples compared to standard TFMs.

Few-Shot and Zero-Shot Performance

A key strength of MOMEMTO is its performance when training data is scarce. As shown in the performance analysis, there is a significant performance gap between MOMEMTO and its backbone when training data is limited to the 10%–30% range. This suggests that the memory module helps the model internalize the concept of "normalcy" much faster than standard fine-tuning.

MOMEMTO demonstrates a significant performance advantage over the MOMENT backbone, particularly in few-shot scenarios with low training data ratios.

Additionally, in "leave-one-domain-out" tests, MOMEMTO demonstrated superior zero-shot capabilities, indicating that its memory bank captures generalized features of normalcy that are applicable even to entirely unseen data types.

Conclusion

MOMEMTO successfully mitigates the over-generalization problem in Time Series Foundation Models by implementing a patch-based memory gate. By constraining the model to reconstruct data using a bank of normal prototypes, it achieves higher accuracy and better anomaly separation. While currently focused on univariate data, future work will explore scaling the model to multivariate systems and increasing the number of training domains to further enhance its universal applicability.

Summary updated

BibTeX
@misc{yoon2025momemto,
  author = {Samuel Yoon and Jongwon Kim and Juyoung Ha and Young Myoung Ko},
  title = {{MOMEMTO: Patch-based Memory Gate Model in Time Series Foundation Model}},
  year = {2025},
  eprint = {2509.18751},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.18751},
}
Figure