Introduction: The Challenge of Asynchrony
In real-world applications, multivariate time series data is rarely neatly aligned. In clinical settings, for instance, vital signs like heart rate, blood pressure, and lab results are recorded at varying frequencies and irregular intervals. This phenomenon, known as Irregular Multivariate Time Series (IMTS), presents a significant hurdle for standard deep learning models.
The primary difficulty lies in channel-wise asynchrony. Most architectures expect synchronized observations to compute cross-channel correlations. When data is missing (NaN) in one channel while present in another at the same timestamp, models often fail to capture the underlying relationships. Existing solutions typically rely on imputation—which can introduce significant bias—or process channels independently, thereby losing the "big picture" context.
The MTM Architecture
To address these challenges, the Multi-Scale Token Mixing Transformer (MTM) introduces two key innovations designed to handle irregularity without the need for explicit imputation.
1. Masked Concat Pooling
MTM utilizes a multi-scale approach to alleviate asynchrony. By down-sampling raw, jittery timelines into coarser "patches" or time bins, asynchronous data points naturally begin to align. MTM employs Masked Concat Pooling, which combines Max and Average pooling while explicitly masking out missing values. This ensures that unobserved data does not pollute the learned features, preserving the integrity of the signal across different scales.
2. Token Mixing Mechanism
The core of the architecture is the Token Mixing Layer. Within each MTM block, the model identifies pivotal tokens—the most informative data points in a specific channel—based on attention scores derived from per-channel [CLS] tokens. The model then proactively "mixes" or copies these pivotal features into other channels at the same timepoint. This allows channels with missing data to "borrow" context from channels with strong signals, effectively bridging the asynchrony gap.
The full pipeline consists of an input embedding layer followed by a stack of MTM blocks that alternate between temporal attention, token mixing, and channel-wise attention, culminating in an MLP head for classification.
Experimental Evaluation
MTM was rigorously evaluated on three major IMTS benchmarks:
- P12 (PhysioNet 2012): Mortality prediction in electronic health records (88% sparsity).
- P19 (PhysioNet 2019): Early sepsis detection (95% sparsity).
- PAM (Physical Activity Monitoring): Human activity classification from motion sensors (60% sparsity).
Key Results and Robustness
MTM consistently achieved state-of-the-art (SOTA) performance, outperforming established baselines such as Raindrop, ViTST, and Warpformer. Notably, it demonstrated an improvement of up to 3.8% in AUPRC on the P12 dataset.
Beyond raw performance, MTM exhibits remarkable robustness to sparsity. In stress tests where up to 50% of the already sparse data was further masked, MTM's performance remained stable, whereas competing models saw significant declines in accuracy and F1 score.
Furthermore, the model is computationally efficient. On the PAM dataset, MTM completed training in just 20 seconds, significantly faster than competitors like Warpformer (75 seconds), despite its sophisticated mixing mechanism.
Conclusion
MTM offers a robust, imputation-free solution for classifying irregular multivariate time series. By leveraging multi-scale pooling to align asynchronous data and a token-mixing mechanism to share context, it sets a new standard for performance and efficiency in the field. While currently focused on classification, the principles of MTM provide a promising foundation for future work in time series forecasting and generative modeling.
Summary updated