MEMTS: Internalizing Domain Knowledge via Parameterized Memory for Retrieval-Free Domain Adaptation of Time Series Foundation Models

Xiaoyun Yu, Li fan, Xiangfei Qiu, Nanqing Dong, Yonggui Huang, Honggang Qi, Geguang Pu, Wanli Ouyang, Xi Chen, Jilin HuarXiv 2026

TL;DR

MEMTS (Memory for Time Series) is a lightweight, plug-and-play framework that adapts frozen Time Series Foundation Models (TSFMs) to specific domains without the need for expensive fine-tuning or slow online database lookups. By internalizing domain-specific temporal dynamics into a compact set of learnable latent prototypes, it achieves state-of-the-art forecasting accuracy with constant-time inference and zero catastrophic forgetting.

What Problem Does This Paper Address?

Time Series Foundation Models (TSFMs) like Chronos, Moirai, and Sundial excel at capturing universal temporal motifs (such as broad trends and seasonality) across massive, diverse datasets. However, when deployed in highly specialized vertical domains—like a specific city's traffic grid or a localized power network—their performance often degrades due to local distribution shifts and unique periodic structures.

To bridge this gap, practitioners typically rely on two paradigms, both of which carry severe trade-offs:

  1. Domain-Adaptive Pretraining (DAPT): Continues training the foundation model on domain-specific data. While accurate, it is computationally expensive and suffers from catastrophic forgetting, wiping out the model's original generalized zero-shot capabilities.
  2. Retrieval-Augmented Generation (RAG): Keeps the model frozen and retrieves similar historical segments from an external database to guide the forecast. However, conducting nearest-neighbor searches over massive, high-dimensional time-series repositories introduces massive latency overhead, making it impractical for real-time stream processing.
Figure 1: Comparison of domain adaptation paradigms. (A) Domain-Adaptive Pretraining (DAPT) fine-tunes the model, leading to accurate target adaptation but suffering from catastrophic forgetting on the source domain. (B) Retrieval- Augmented Generation (RAG) relies on external retrieval, introducing a significant inference latency gap before predic- tions can start. (C) MEMTS (Ours) employs a plug-and-play Knowledge Persistence Module that internalizes patterns into parametric prototypes, enabling accurate adaptation with zero latency and no external storage.

MEMTS breaks this impasse by introducing a method that mimics the benefits of retrieval without the actual database search overhead.

Methods

MEMTS replaces explicit, non-parametric database lookups with a purely parametric memory mechanism. The architecture operates via a parallel pipeline alongside a frozen base TSFM:

Figure 2: Overview of MEMTS: A parametric memory knowledge enhancer for time series foundation models. The framework consists of three key components: (1) Knowledge Building module that extracts and stores domain-specific patterns, (2) Knowledge Persistence Module that generates memory-enhanced representations, and (3) Adaptive Fusion module that combines base model predictions with memory-derived knowledge to produce enhanced forecasts.

The framework consists of three core stages:

  • Offline Knowledge Internalization: Historical time-series sequences are partitioned into look-back (key) and forecast (value) windows. These pairs are projected into a latent space and indexed using an inverted file (IVF) structure. A strict masking protocol prevents data leakage from temporally overlapping segments.
  • Knowledge Persistence Module (KPM): This is the heart of MEMTS. It uses a Context Encoder to map historical inputs into a shared latent space, and a Future-Separable Decoder featuring parallel decoding branches to generate multiple independent future hypotheses. To prevent "mean collapse"—where a model averages out all possible futures into a single blurry, flat line—the authors employ a set-matching Permutation Loss ($L_{perm}$).
  • Adaptive Fusion (AF): This module acts as a gated residual adapter. It aligns and pools the multi-branch candidates from the KPM, then uses a learnable stepwise gate to dynamically inject these domain-specific corrections into the frozen TSFM’s predictions.
Figure 3: Architecture of the KPM model for time-series fore- casting. Historical inputs are encoded into a shared latent representation, which is fed into a Future-Separable Decoder with parallel decoding chunks to generate multiple indepen- dent future sequences.

Datasets

The authors evaluated MEMTS across six diverse, real-world benchmark datasets spanning multiple domains:

  • ECL (Electricity Consuming Load): Hourly electricity consumption of 321 clients.
  • AusRain: Daily meteorological rainfall records across Australia (highly volatile).
  • METR-LA: Traffic flow data from highway sensors in Los Angeles.
  • PEMS04 & PEMS08: Large-scale traffic forecasting datasets from the San Francisco Bay Area.
  • Solar: Solar power production data from 137 PV plants in Alabama, sampled every 10 minutes.

For pretraining the Adaptive Fusion module's general gating mechanism, the authors utilized a partial sub-dataset from the UTSD-12G corpus. Crucially, the evaluation datasets themselves were never seen during this pretraining phase.

Key Insights and Ideas

  • Parametric Emulation of Retrieval: The defining "aha" moment of the paper is that explicit external databases aren't necessary for time-series RAG. A lightweight neural network can internalize continuous, volatile historical motifs into fixed-size parameters, replacing an expensive database search with a fast forward pass.
  • Permutation Loss for Multi-Modal Futures: Time-series futures are inherently stochastic and multi-modal. By optimizing the KPM with a permutation-invariant loss, individual decoder branches are incentivized to specialize in distinct structural patterns rather than converging to a safe, smoothed-out average.
  • Gated Guardrails: Blindly injecting memory can introduce noise. The Adaptive Fusion module's stepwise gating mechanism ensures that the memory module only intervenes when the base foundation model struggles (e.g., during abrupt distribution shifts), preserving generalist capabilities in stable regions.

Key Results

  • Consistent Accuracy Gains: MEMTS was evaluated against five state-of-the-art TSFMs (Bolt-S, Bolt-B, MOMENT, Moirai, and Sundial). It consistently improved forecasting accuracy across all horizons. For instance, on the complex PEMS04 traffic dataset, MEMTS reduced the average MSE of Chronos-Bolt-Small from 1.139 to 0.702—a massive 38.4% error reduction.
  • Surpassing Fine-Tuning Baselines: When compared against standard full-parameter fine-tuning (DAPT), MEMTS consistently delivered lower error rates, proving that its dedicated parametric memory structure captures localized motifs more effectively than standard gradient descent updates to a base model.
  • Industrial-Grade Efficiency: While traditional RAG latency scales linearly with database size (degrading to ~160 ms at 100K entries), MEMTS maintains a constant, ultra-low latency of $\approx 1.1\text{ ms}$. At a 500K scale, this translates to a 712.2× speedup over RAG, enabling a throughput of over 29,000 samples per second on a single GPU.

Limitations and Future Work

Not explicitly discussed in the paper.

Summary updated

BibTeX
@misc{yu2026memts,
  author = {Xiaoyun Yu and Li fan and Xiangfei Qiu and Nanqing Dong and Yonggui Huang and Honggang Qi and Geguang Pu and Wanli Ouyang and Xi Chen and Jilin Hu},
  title = {{MEMTS: Internalizing Domain Knowledge via Parameterized Memory for Retrieval-Free Domain Adaptation of Time Series Foundation Models}},
  year = {2026},
  eprint = {2602.13783},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.13783},
}
Figure