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).
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.
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.
- 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