Masking the Gaps: An Imputation-Free Approach to Time Series Modeling with Missing Data

Abhilash Neog, Arka Daw, Sepideh Fatemi Khorasgani, Anuj Karpatne

TL;DR

Handling missing data in multivariate time series typically requires a fragile two-stage pipeline: imputing the missing values first, then training a downstream model on the filled-in data. MissTSM (Missing Feature-aware Time Series Modeling) eliminates the need for imputation altogether by treating each observed (time-step, feature) pair as an independent token and learning representations directly through a custom missing-feature-aware attention mechanism.

What Problem Does This Paper Address?

In real-world multivariate time series (e.g., healthcare monitoring, meteorological sensors), features are frequently missing at arbitrary time-steps. Standard workflows address this via a two-stage approach:

  1. Imputation: Fill missing values using statistical interpolation (like splines) or deep learning models (like SAITS or BRITS).
  2. Modeling: Feed the imputed series into a downstream forecasting or classification architecture.

This paradigm introduces two major bottlenecks: error propagation (inaccuracies from imperfect imputations directly harm downstream predictions) and computational overhead (high-quality deep imputation models are often slow and complex). Prior one-stage alternatives (such as continuous ODE-based models or RNNs with time-interval inputs) are notoriously difficult to scale or struggle with long-range dependencies. MissTSM asks: Can we completely bypass imputation and model partially observed multivariate time series directly?

Methods

MissTSM adopts a self-supervised Masked Autoencoder (MAE) framework featuring two key architectural innovations:

  • Time-Feature Independent (TFI) Embedding: Standard Transformers embed an entire vector across all features at time $t$ into a token, while inverted Transformers (e.g., iTransformer) embed the entire time history of a single variate. Both fail when entries are missing. TFI instead embeds every individual scalar $X_{(t, d)}$ independently into a $D$-dimensional space, supplemented with 2D Positional Encodings capturing both temporal position ($t$) and feature identity ($d$). Missing entries are assigned dummy embeddings that are masked downstream.
  • Missing Feature-Aware Attention (MFAA) Layer: To aggregate features at each time-step $t$, MFAA uses a globally shared learnable query vector $\hat{\mathbf{Q}}$ to attend over the observed features' key vectors $\hat{\mathbf{K}}_t$. Attention logits for missing variates are penalized with a large negative bias $\eta$, effectively masking them out before the softmax: $$\mathbf{A}_t = \text{Softmax}\left(\frac{\hat{\mathbf{Q}}\hat{\mathbf{K}}_t^\top}{\sqrt{d_k}} + \eta \mathbf{M}_{(t, :)}\right)$$ The resulting latent representation $\mathbf{L}_t$ is a weighted sum of only the observed values at that time step.

  • Two-Stage Training Workflow:

  • Self-Supervised Pre-training: The encoder processes unmasked time steps via temporal masking, and a lightweight decoder reconstructs the full series.
  • Fine-tuning: The pre-trained encoder representations are fed into task-specific heads (e.g., a linear layer for forecasting or an MLP for classification).

Datasets

The authors evaluated MissTSM across standard benchmarks under synthetic missingness (Missing Completely at Random [MCAR] from 20% to 90%, and sinusoidal Periodic Masking):

  • Forecasting: ETTh2, ETTm2 (electricity transformer temperatures/loads), and Weather.
  • Classification (Synthetic Masks): Epilepsy (EEG), EMG (electromyography), and Gesture (accelerometer).
  • Real-World Sparsity: The PhysioNet 2012 Challenge dataset, an in-hospital ICU mortality benchmark characterized by extreme inherent sparsity (~80% missing data).

Key Insights and Ideas

  • Decoupling queries from temporal observations: In MFAA, queries are static, learnable parameters while keys and values are derived from observations. This mimics object queries in vision transformers (e.g., DETR), allowing the model to learn cross-variate correlations independent of the specific time index.
  • Imputation errors compound drastically: The authors empirically demonstrate a strong positive correlation between imputation error and downstream forecasting error (e.g., standard models degraded heavily when fed kNN or BRITS imputations). Avoiding imputation sidesteps this failure mode.
  • Massive efficiency gains: SOTA imputers like SAITS require heavy neural architectures (~1.3M parameters). MissTSM is exceptionally lightweight (only ~28k parameters for ETTh2 vs. 4.69M for SimMTM and 254k for iTransformer) and avoids costly pre-processing runs.

Key Results

  • Real-World Sparsity (PhysioNet): MissTSM achieved an F1-score of 57.84%, outperforming the best-performing deep imputation pipeline (SAITS + classifier at 42.6%) by approximately 15% absolute margin.
  • Forecasting: Evaluated across horizons $T \in \{96, 192, 336, 720\}$ at up to 90% missing data, MissTSM ranked among the top performers overall. On ETTh2 and ETTm2 (under both MCAR and periodic masking), it consistently beat or matched baselines (PatchTST, SimMTM, iTransformer, DLinear) paired with SAITS or Spline imputation. Its advantages were especially pronounced on long-term forecasting horizons ($T=720$).
  • Computational Cost: On the Epilepsy dataset (80% MCAR), a standard pipeline (SAITS imputation + SimMTM) required 1346.6 seconds total time, whereas MissTSM required only 346.8 seconds while yielding a higher F1 score (64.93% vs 61.00%).

Limitations and Future Work

  • Temporal Dynamics inside MFAA: The MFAA layer aggregates spatial (feature) interactions at each time step independently; it relies entirely on the subsequent Transformer encoder blocks to model temporal dependencies across time steps.
  • Future Work: Integrating temporal context directly within the missing-feature attention mechanism to capture non-linear temporal dynamics earlier in the pipeline.

Summary updated

BibTeX
@article{neog2026masking,
  author = {Abhilash Neog and Arka Daw and Sepideh Fatemi Khorasgani and Anuj Karpatne},
  title = {{Masking the Gaps: An Imputation-Free Approach to Time Series Modeling with Missing Data}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
  url = {https://openreview.net/forum?id=cUI9pkfEKk},
}
Figure