Tripletformer for Probabilistic Interpolation of Asynchronous Time Series

Vijaya Krishna Yalavarthi, Johannes Burchert, Lars Schmidt-Thieme

Introduction

In domains such as healthcare and environmental science, data is frequently collected asynchronously, resulting in Irregularly Sampled Time Series (IMTS). Traditional deep learning architectures like CNNs and RNNs are ill-suited for these "messy" datasets, as they typically require fixed-length sequences and regular intervals. While recent models like Neural ODEs or Multi-Time Attention Networks (mTAN) have attempted to bridge this gap, they often struggle with long-range dependencies or computational scalability.

The Tripletformer addresses these challenges through a novel attention-based encoder-decoder framework designed for probabilistic interpolation. By treating time series data as a set of observations rather than a rigid sequence, it provides both accurate point estimates and robust uncertainty quantification.

Methodology: From Sequences to Triplet Sets

The core innovation of Tripletformer lies in its data representation and its efficient attention mechanism.

1. Triplet Representation

Instead of representing multivariate time series as a matrix with missing values, Tripletformer decomposes the data into a set of triplets: $(t, c, u)$, where $t$ is the timestamp, $c$ is the channel index, and $u$ is the observed value. This set-based approach allows the model to handle varying sequence lengths and irregular spacing natively without complex padding.

The Tripletformer represents irregularly sampled time series as a set of (time, channel, value) triplets.

2. Unified Encoding and Induced Attention

Unlike previous methods that process sensor channels independently, Tripletformer employs a unified encoder. This allows the model to learn complex inter-channel correlations (e.g., the relationship between heart rate and blood pressure) alongside temporal patterns simultaneously.

To maintain scalability, the model utilizes the Induced Multi-head Attention Block (IMAB). Standard self-attention mechanisms suffer from $O(N^2)$ complexity, which is prohibitive for long medical records. The IMAB introduces a small set of trainable "induced points" that act as a bottleneck, reducing complexity to near-linear $O(N \cdot M)$, where $M$ is the number of induced points. This efficiency allows the model to process longer histories and more channels without hitting memory limits.

Architecture of the Induced Multihead Attention Block (IMAB) used to achieve near-linear complexity.

Experimental Evaluation

The model was rigorously tested on real-world ICU datasets (Physionet 2012, MIMIC-III, Physionet 2019) and synthetic benchmarks (PenDigits, PhonemeSpectra) adapted for extreme sparsity.

Key Results

  • Superior Accuracy: Tripletformer achieved up to a 32% reduction in Negative Log-Likelihood (NLL) on real-world data and a staggering 85% improvement on extremely sparse synthetic datasets compared to state-of-the-art baselines like CSDI and HETVAE.
  • Probabilistic Reliability: The model outputs the parameters of a Gaussian distribution (mean and variance) for each query. Qualitative results show that the model produces "tighter" confidence intervals where data is dense and correctly identifies higher uncertainty in large gaps.
  • Deterministic Performance: Even in deterministic tasks (Mean Squared Error), Tripletformer outperformed specialized models in 24 out of 30 experimental comparisons.

Conclusion and Future Directions

Tripletformer sets a new benchmark for IMTS interpolation by combining set-based representations with efficient attention mechanisms. While the current iteration assumes a Gaussian distribution for observations, future work aims to model joint distributions to ensure smoother, physically consistent trajectories across multiple interpolated points rather than treating each point as an independent marginal distribution.

Summary updated

BibTeX
@inproceedings{yalavarthi2023tripletformer,
  author = {Vijaya Krishna Yalavarthi and Johannes Burchert and Lars Schmidt-Thieme},
  title = {{Tripletformer for Probabilistic Interpolation of Asynchronous Time Series}},
  booktitle = {IEEE Big Data},
  year = {2023},
  doi = {10.1109/bigdata59044.2023.10386325},
}
Figure