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

MoTM: Towards a Foundation Model for Time Series Imputation based on Continuous Modeling

Etienne Le Naour, Tahar Nabil, Ghislain AgouaarXiv 2025

TL;DR

MoTM (Mixture of Timeflow Models) is a new zero-shot time series imputation framework that fills missing data across entirely unseen domains without retraining. By combining a basis of continuous-time Implicit Neural Representations (INRs) with a fast ridge regression orchestrator at inference, MoTM naturally handles varying sampling rates and complex missingness patterns.

Table 1. Comparison of imputation models on key generalization capabilities.

What Problem Does This Paper Address?

While the time series community has recently seen a surge in zero-shot "foundation models" (like Chronos or TimesFM), these models focus almost exclusively on forecasting. The equally critical task of imputation—filling in missing values caused by sensor failures or irregular data collection—remains largely underexplored in out-of-domain (OOD) scenarios.

Existing imputation models suffer from two major flaws:

  1. Rigid Discretization: Most deep learning models assume regularly sampled data and rely on fixed-length input segments, making it difficult to handle varying sampling rates (e.g., mixing 10-minute and 1-hour data).
  2. Poor Generalization: Continuous-time alternatives like Implicit Neural Representations (INRs)—which treat time series as continuous functions—perform exceptionally well within a specific data distribution but break down when faced with distribution shifts.

MoTM bridges this gap by creating a flexible, distribution-aware foundation model for continuous-time time series imputation.

Methods

MoTM's architecture relies on the philosophy that any unseen time series can be modeled as a mixture of previously observed temporal patterns. The framework operates in three distinct phases:

  1. Pretraining a Basis of TimeFlow Models: The authors train $N_{\text{train}}$ independent TimeFlow models (a type of generalizable INR) on distinct source datasets. Each model learns to capture the unique continuous-time dynamics and periodicities of its respective domain.
  2. Test-Time Adaptation (Inner Loop): When a new, partially observed time series arrives at inference time, MoTM freezes the shared parameters of the pretrained basis. It then runs a quick optimization step (just a few iterations) to find a per-sample latent code $z$ that best aligns each base model to the observed context.
  3. The Ridge Orchestrator (Outer Loop): Instead of just averaging the models' outputs, MoTM extracts the hidden representations from the last layer of each adapted INR. It then fits a ridge regressor on top of these features using only the observed data points. Because ridge regression has a closed-form solution, this orchestration step is incredibly fast and computationally cheap.
Fig. 3. Illustration of how the ridge orchestrator operates on a new time series x(j), using a basis of two TimeFlow models. Note that the linear projection matrix W (j) is jointly optimized over all observed time steps of the new series x(j).

Datasets

The authors evaluated MoTM on both synthetic and real-world benchmarks:

  • Synthetic Data: Generated via Gaussian Processes using KernelSynth. It included ks1D (daily periodicity, 1-hour sampling) and ks1W (weekly periodicity, 30-minute sampling). An OOD dataset, ks1D1W (mixed daily/weekly periodicities, 15-minute sampling), was reserved strictly for zero-shot testing.
  • Real-World Data:
  • In-Domain (ID) Training & Testing: Electricity, Solar, and SpanishW-T.
  • Out-of-Domain (OOD) Testing: Traffic, ETTh1, ETTh2, Weather, and Spanish Energy.

Key Insights and Ideas

  • The Power of Continuous Time: By mapping all time grids to a normalized interval $[0, 1]$, MoTM completely bypasses the need for fixed tokenization or fixed-length segments. This allows it to natively transfer knowledge across datasets with completely different sampling frequencies.
  • Latent Space Mixing vs. Output Mixing: Simply averaging the predictions of different models (a standard mixture approach) performs poorly under distribution shifts. MoTM succeeds because it linearly combines the latent features of the models via ridge regression, allowing it to synthesize entirely new behaviors from a basis of known patterns.
  • Zero-Shot Efficiency: Traditional deep learning models like SAITS require full retraining when encountering a new domain. MoTM achieves competitive OOD performance purely through its test-time ridge regression trick, eliminating the need for backpropagation through the entire network at inference.

Key Results

MoTM demonstrates remarkable robust generalization across both pointwise and block-missingness scenarios:

  • Outperforming Foundation Baselines: On real-world OOD datasets, MoTM achieved a 40.3% relative improvement in Mean Absolute Error (MAE) over MOMENT, a prominent zero-shot time series foundation model.
  • Beating Supervised Models: MoTM outperformed the supervised continuous baseline (TimeFlow) by 10.2% on OOD data and reduced the error of the supervised deep learning baseline BRITS by 24.0% OOD and 30.6% in-domain.
  • Massive Speedups: On the massive Traffic dataset (83k segments), MoTM completed zero-shot imputation in just 61 seconds on a single NVIDIA H100 GPU. In contrast, fully training the state-of-the-art supervised model SAITS on that same target dataset took 3 hours and 16 minutes.

Limitations and Future Work

Despite its strong performance, the authors note a few areas for improvement:

  • Non-Uniform Gains: The benefits of model mixing depend heavily on the underlying data. For instance, MoTM showed limited improvement on the Solar dataset, indicating that identifying the optimal combination of base models remains an open challenge.
  • Room for Better Orchestration: In some OOD settings, fully supervised models trained from scratch (like SAITS) still edge out MoTM. The authors suggest that replacing the linear ridge regressor with a more expressive, non-linear orchestration mechanism could unlock even better inference quality.
  • Scaling Up: Future work will focus on scaling the framework by pretraining on much larger, more diverse multi-source databases.

Summary updated

BibTeX
@misc{naour2025motm,
  author = {Etienne Le Naour and Tahar Nabil and Ghislain Agoua},
  title = {{MoTM: Towards a Foundation Model for Time Series Imputation based on Continuous Modeling}},
  year = {2025},
  eprint = {2507.13207},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.13207},
}

Loading related content...

Figure