IMTS-Tokenizer: Time-Aware Tokenization for Irregular Multivariate Time Series Forecasting

Bin Xu, Yinghua Li, Linqi Han, Xiaoyu Li, Xinghao Yang, Wei Liu, Yongshun GongNeurIPS 2026

TL;DR

Real-world sensor data rarely arrives on a neat, metronomic schedule—think of ICU monitors recording vitals only when needed, or IoT devices pinging opportunistically. Instead of inventing heavier neural backbones or forcing messy data onto an artificial grid via padding and interpolation, IMTS-Tokenizer fixes how raw, irregular data is converted into tokens in the first place. By using learnable "temporal anchors" to softly gather nearby observations, it makes chaotic time series cleanly compatible with standard Transformers—achieving state-of-the-art accuracy at a fraction of the compute cost.

What Problem Does This Paper Address?

Most modern sequence models (like Transformers) expect clean, equispaced inputs. Real-world data, however, often comes as Irregular Multivariate Time Series (IMTS): timestamps are non-uniform, different variables (channels) are recorded asynchronously, and extreme sparsity leaves massive gaps (sometimes over 95% missingness).

Figure 1: Illustration of irregular multivariate time series representations. (a) Three variables are observed asynchronously. (b) Traditional pre-alignment inserts aligned placeholders, incurring storage and computational overhead. (c) IMTS-Tokenizer maps each variable to fixed anchor tokens via local aggregation, preserving temporal distribution without dense padding.

Existing solutions typically handle this irregularity after encoding—using computationally expensive Neural ODEs (which numerically integrate continuous dynamics) or complex graph networks. Meanwhile, standard time-series tokenizers (like PatchTST) assume uniform intervals, forcing practitioners to pad or interpolate missing values beforehand, which bloats memory and distorts timing precision. The authors tackle the neglected front door of the pipeline: how do we natively tokenize raw, asynchronous observations into fixed-size representations without padding or interpolation?

Methods

The core novelty is the Irregular-time-aware Module (IRAM), which replaces rigid time-window patching with a flexible, query-based approach:

  • Learnable Temporal Anchors & Gaussian Aggregation (Novel): For each variable, the model places a small, fixed number of learnable points in time called anchors. Each anchor acts like a gravitational center, pulling in observed data points using a Gaussian kernel—observations closer in time get higher attention weights, while missing entries are masked out.
  • Relative Time Feature / RTF (Novel): Because a Gaussian kernel only cares about distance $(t - a)^2$, an observation 5 minutes before an anchor looks identical to one 5 minutes after. RTF injects a signed, tanh-bounded offset before aggregation so tokens know temporal direction (past vs. future relative to the anchor).
  • Anchor Initialization & Regularization (Novel): To prevent "attention collapse"—where all anchors drift together and stare at the exact same sparse data points—the authors introduce Variable-Specific Anchor Initialization (VSA) to align anchors with each channel's actual observation density, paired with boundary and diversity losses to keep them spread out inside valid time ranges.
  • Multi-scale Hierarchy & Standard Forecasting (Hybrid): IRAM runs at progressively coarser temporal scales to capture both local blips and global trends. Once tokenized, the rest is refreshingly standard: vanilla Transformer self-attention layers mix information across channels, and a learnable sinusoidal query head predicts values at arbitrary future timestamps.
Figure 2: Overview of IMTS-Tokenizer. Multi-scale IRAM tokenizes each channel, and the concate- nated representations are processed by cross-channel attention and fused with sinusoidal target-time queries for forecasting. RTF adds signed anchor-relative time features before aggregation to encode temporal direction alongside distance-based weighting. Appendix B.6 illustrates this construction and analyzes its effect on the resulting tokens.

Datasets

No new datasets are introduced; the authors evaluate on four established IMTS benchmarks spanning diverse domains and sparsity levels:

  • PhysioNet & MIMIC: ICU clinical vitals with extreme sparsity (85.7% and 96.7% missingness, respectively), predicting the next 24 hours from a 24-hour window.
  • Human Activity: 12-channel biomechanical sensor data (75.0% sparsity) over millisecond timescales.
  • USHCN: U.S. historical climate data across 5 channels (78.0% sparsity), predicting the next month from 24 months of history.

(Note: Supplementary experiments also test classification on P19 and PAM, plus controlled synthetic masking).

Key Insights and Ideas

  • Fix the front door, not just the engine: Even when stripping away the Transformer predictor and feeding IRAM's tokens into a simple MLP, it beats a standalone MLP trained on linearly interpolated data across all benchmarks. Good tokenization does heavy lifting independent of the backbone.
  • Models naturally adapt their "receptive fields" to sparsity: During training, the model learns to narrow its Gaussian kernel bandwidth (shrinking the Full Width at Half Maximum by 47%–66%) to focus on local details. Crucially, on the hyper-sparse MIMIC dataset (96.7% missing), the model retains its widest receptive field—automatically trading off strict locality to ensure it actually captures enough data points.
Figure 3: Visualization of IRAM learning dy- namics on Activity dataset. (a) Gaussian kernel values showing distance-dependent decay. (b) Attention weights after softmax normalization. (c) Kernel bandwidth evolution from initializa- tion (γ = 0.23) to trained state (γ = 2.00). (d) FWHM reduction across four benchmarks, with reduction magnitude correlating with data spar- sity.
  • Linear scaling beats ODEs and graphs: Because the number of anchors $H$ is small and fixed, temporal aggregation scales linearly as $\mathcal{O}(CLH)$ (channels $\times$ length $\times$ anchors), sidestepping expensive numerical integration and graph message-passing.

Key Results

  • Forecasting Accuracy: IMTS-Tokenizer achieves the best performance on 7 out of 8 MSE/MAE metrics across the four benchmarks. For example, it reduces MSE over Latent-ODE by 17.2% on PhysioNet and 7.6% on MIMIC, and beats tPatchGNN by 8.0% on Human Activity. Aggregate gains over top recent baselines (ISTS-PLM and Hi-Patch) are statistically significant ($p = 0.0313$).
  • Speed & Memory: On PhysioNet, it trains 2.4× faster than graph-based tPatchGNN and 30× faster than language-model-based ISTS-PLM. On MIMIC, where ISTS-PLM runs out of memory on a 24GB GPU, IMTS-Tokenizer needs just 5.6GB.

Limitations and Future Work

  • High-dimensional scaling: Because standard self-attention is applied across channels after tokenization, the framework may hit scalability bottlenecks on datasets with a massive number of variables.
  • Single-task training: While the tokenizer design works for classification and interpolation, each task currently requires training a separate model from scratch.
  • Future directions: The authors suggest exploring hierarchical channel compression to handle high-dimensional series, and extending the framework into a unified multi-task setup.

Summary updated

Abstract

Modeling Irregular Multivariate Time Series (IMTS) poses significant challenges due to asynchronous sampling and data sparsity. While existing methods focus on handling temporal irregularity after encoding, the tokenization stage itself remains underexplored. We propose IMTS-Tokenizer, a time aware tokenization framework built on the Irregular-time-aware Module (IRAM), which employs learnable temporal anchors and Gaussian-kernel attention to aggregate observations while preserving temporal information. To improve robustness under sparse and asynchronous sampling, the framework further incorporates Relative Time Feature (RTF) for pre-aggregation temporal encoding, Variable-Specific Anchor Initialization (VSA) for data-aligned anchor placement, anchor regularization for stable training, and multi-scale modeling. Experiments on four benchmarks demonstrate state-of-the-art (SOTA) performance, with the best results on seven out of eight metrics and statistically significant aggregate gains.
BibTeX
@inproceedings{xu2026imts,
  author = {Bin Xu and Yinghua Li and Linqi Han and Xiaoyu Li and Xinghao Yang and Wei Liu and Yongshun Gong},
  title = {{IMTS-Tokenizer: Time-Aware Tokenization for Irregular Multivariate Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ByB7qk2CMI},
}
Figure