TL;DR
In music, rubato means stretching and compressing tempo for expressive effect—which is also a pretty good description of real-world sensor and clinical data, where observations arrive at uneven, uncoordinated times. Standard Transformers struggle here because forcing messy timelines onto neat, uniform grids erases crucial timing cues, and generic dot-product attention is blind to the geometric shape of the underlying series. Rubato solves both problems by using rough path mathematics to compute attention directly over raw, irregular trajectories, keeping the math fast at scale with structured random projections.
What Problem Does This Paper Address?
Most time-series forecasting models assume data arrives like a metronome: every variable measured cleanly at every tick. Reality is rarely so polite. In an Intensive Care Unit, heart rate might be logged every second, blood pressure every ten minutes, and lab results twice a day. This is an Irregular Multivariate Time Series (IMTS)—non-uniform timestamps within each channel, and asynchronous sampling across channels.
Existing paradigms have awkward trade-offs when modeling IMTS:
- ODE-based models evolve a latent state continuously through time, which handles uneven gaps naturally, but distant observations can only talk to each other through a long game of telephone across intermediate states.
- Graph-based models wire observations together using pre-defined rules, fixing who interacts with whom regardless of what the data actually says.
- Current attention-based models allow direct, context-dependent interactions anywhere in time, but they first force raw inputs onto uniform grids via interpolation, alignment, or continuous embeddings. That preprocessing smooths away the exact time gaps and ordering cues that tell you how observations relate. Furthermore, standard Query-Key ($QK$) dot-product attention compares learned token vectors that have no intrinsic connection to the actual geometric shape of the time series.
Methods
Rubato processes raw irregular data in three stages without ever interpolating onto a uniform grid:
- Dual-Path Tokenization: The timeline is sliced into non-overlapping patches, and Rubato extracts two complementary views. First, a standard MLP Patch Encoder captures per-channel local dynamics. Second—and here is the core novelty—it forms a single multi-channel path by stacking raw values, binary observation masks, and timestamps ($p = 2C + 1$ dimensions). Instead of treating missingness as holes to be patched, irregularity becomes part of the path's geometry. From this path, Rubato computes a path signature: a mathematical summary from rough path theory that captures the shape, time gaps, and cross-channel ordering of a trajectory.
- Affordable Signature-Kernel Attention: Rather than scoring patch pairs with standard $QK$ dot products, Rubato measures how geometrically similar two multi-channel paths are using a signature kernel (cosine-normalized, paired with a lightweight content-aware gate on the values). Computing exact signature kernels is prohibitively expensive, and even standard Random Fourier Feature (RFF) approximations bog down when channel counts grow. Rubato swaps dense projections for Structured Orthogonal Random Features (SORF)—using fast Walsh–Hadamard transforms—and compresses levels via Tensorized Random Projections (TRP), dropping projection complexity from $O(d_H D_{\text{rf}})$ to $O(D_{\text{rf}} \log d_H)$.
- Time-Conditioned Decoder: A cross-attention decoder queries the encoded history using continuous sinusoidal-and-linear time embeddings, allowing forecasts at any arbitrary future timestamp.
Datasets
No new datasets are introduced. Rubato is evaluated across six public IMTS benchmarks spanning diverse channel counts ($C$) and missingness rates:
- Clinical: MIMIC ($C=96$, ~80% missing) and PhysioNet ($C=41$, ~80% missing).
- Climate: USHCN ($C=5$).
- Finance: FNSPID ($C=6$).
- Environmental: EPA-AIR ($C=4$, ~70% missing).
- Cloud Monitoring: ClusterTrace ($C=3$).
Key Insights and Ideas
- Use the signature as the mechanism, not just a token: Simply concatenating path signatures onto inputs and running standard $QK$ attention still degrades performance. Visual diagnostics reveal why: on irregular data, standard attention suffers from "anchor collapse" (queries blindly attend to the same few key columns, creating vertical stripes in attention maps and inflating seed variance by $19\times$). Driving attention via the signature kernel restores crisp, query-specific diagonal structure.
- Vanishing bias in high dimensions: Unlike standard RFF, SORF introduces a slight mathematical bias. The authors prove the first theoretical bias bound for SORF inside recursive signature kernels: $O(\log d_H / d_H)$, where $d_H$ is the Hadamard-padded dimension that scales with channel count. Paradoxically, the wider and more complex your multivariate series gets, the more accurate this fast approximation becomes! Empirically, the bias decays even faster ($\sim d_H^{-1.8}$).
Key Results
Tested against 10 strong baselines (including Hi_Patch, GraFITi, HyperIMTS, KAFNet, and NeuralFlows):
- Consistent SOTA: Rubato achieves the best MSE on 5 out of 6 datasets and the best MAE on 5 out of 6 datasets.
- Standout margins: On heterogeneous financial series (FNSPID), Rubato cuts MAE by 11.9% over the runner-up Hi_Patch (0.1181 vs. 0.1340) and 38.5% over HyperIMTS. On USHCN climate data, it beats GraFITi by 8.3% in MAE and 7.0% in MSE.
- High-channel scaling: On 96-channel MIMIC, Rubato achieves top accuracy while SORF trims full per-epoch training time by 9.9% compared to dense RFF (173s vs. 192s). In isolated synthetic benchmarks, SORF breaks even at $d_H = 128$ and reaches a 4.43$\times$ speedup at $d_H = 4096$.
Limitations and Future Work
- Low-dimension overhead: Fast Hadamard transforms aren't free of constant-factor overhead. On datasets with very few channels ($d_H \le 64$), SORF is actually slower in wall-clock time than dense RFF (adding 7.6% epoch time on USHCN and 12.5% on FNSPID), even though it still improves forecasting accuracy.
- Theoretical gaps: The $O(\log d_H / d_H)$ bias bound is looser than the empirical $d_H^{-1.8}$ decay, suggesting room for tighter proofs, and a formal variance-reduction bound for SORF remains an open problem.
- Future directions: Extending Rubato to probabilistic forecasting and modeling explicit missingness mechanisms (e.g., informative missingness where the absence of a medical test carries clinical meaning).
Summary updated