Discretizing Continuous Time Series for Imputation with Masked Diffusion Training

NeurIPS 2026

Dongbin Kim1,   Seungyun Lee1,   Geonwoo Shin1,   Jaewook Lee1†

1Seoul National University

†Corresponding author

MDTIM framework overview

MDTIM brings masked diffusion training to continuous time series: an orthogonal [MASK] token separates missing from observed, and the model predicts the signal itself — not the noise.

Abstract

Time series imputation is a crucial area for reliable time series analysis, yet it remains challenging due to the complex temporal dynamics and noise of real-world data. Existing approaches, however, exhibit two limitations: missing and observed values are embedded within the same representation space without explicit structural separation, and continuous diffusion-based methods are trained to predict added noise rather than the original signal. To address these, we propose the Masked Diffusion Time-series Imputation Model (MDTIM), which leverages the training paradigm of masked diffusion models for imputation tasks. The [MASK] token is structurally orthogonal to valid observations, and the model directly predicts the original values, naturally aligning both the representation and the learning objective with the imputation task. To bridge the gap between discrete masked diffusion and the continuous, ordinal nature of time series, we further introduce Stochastic Discretization, which maps continuous values to ordinal-aware tokens while preserving continuous dynamics. Our experiments on diverse benchmarks confirm that MDTIM achieves superior robustness and scalability, consistently outperforming state-of-the-art deterministic and generative baselines across various missing scenarios.

Why Masked Diffusion for Imputation?

Structural separation

The absorbing [MASK] token is orthogonal to every observed value — the model always knows what is missing, with no indicator heuristics.

Signal-aligned objective

MDTIM predicts the original values directly instead of added noise, matching the training objective to the imputation task.

Ordinal-aware tokens

Stochastic Discretization and soft labels preserve the continuous, ordinal structure of the signal inside a discrete token space.

Method

Discrete Representation for Time Series

Stochastic discretization pipeline

Stochastic Discretization

Each input window is normalized with statistics computed from observed values only, so no information leaks from missing positions. The normalized values are projected onto a K-bin grid and bounded uniform noise is injected before rounding: a grid coordinate of 3.6 becomes token 4 with 60% probability and token 3 with 40%, so the discretization is unbiased in expectation and the model can learn dynamics finer than the grid resolution.

Ordinal-Aware Soft Labeling

Treating tokens as independent classes would ignore that token k is semantically closer to k+1 than to k+10. The training target is therefore a truncated Gaussian centered on the true bin, with zero probability assigned to the [MASK] token and to distant bins — probability mass concentrates on valid ordinal neighbors while the mask state remains strictly separate.

Masked Diffusion Framework

Discretized token embedding and factorized backbone

Factorized Temporal-Variate Backbone

Discrete tokens are embedded with a per-channel embedding table to preserve semantic orthogonality, then processed by interleaved DiT blocks that alternate between the time axis and the channel axis with rotary position embeddings on both. The output head covers an extended range of 1.5× the input grid to account for distribution shifts in unobserved regions.

Training objective and expectation-based reconstruction

Ordinal-Spectral Consistent Training

The masked-diffusion objective is trained against the ordinal-aware soft labels — a smooth relaxation that recovers the standard NELBO when the labels collapse to one-hot. An auxiliary spectral consistency loss compares the FFT of the expectation-decoded sequence with that of the ground truth, enforcing global frequency structure alongside local ordinal accuracy.

Continuous Reconstruction via Expectation

Because stochastic discretization injects noise, inference is run M times with independent noise samples and the predicted distributions are averaged. The continuous value is recovered as the probability-weighted expectation over bin centers, yielding dense reconstructions — and calibrated uncertainty — from discrete outputs.

Results

Imputation example on ETTh

Qualitative example. MDTIM reconstructions with calibrated uncertainty bands (1σ, 2σ) against ground truth on ETTh.

Main imputation results table (MAE)

Main results. MAE on missing positions across four benchmarks under uniform and geometric masking at 30% and 70% missing rates. Best results in bold, second best underlined.

BibTeX

@inproceedings{kim2026discretizing,
  title={Discretizing Continuous Time Series for Imputation with Masked Diffusion Training},
  author={Kim, Dongbin and Lee, Seungyun and Shin, Geonwoo and Lee, Jaewook},
  booktitle={Advances in Neural Information Processing Systems},
  volume={39},
  year={2026}
}