TL;DR
Real-world forecasting is like driving while looking through the windshield at the road ahead (future schedules) and glancing in the rearview mirror at traffic behind you (past sensor readings). Transformer-based time series models can weave these signals together, but their memory and compute costs balloon the longer you drive. TiRex-2 solves this with a recurrent, xLSTM-based foundation model that handles multiple interacting variables and future-known hints while streaming infinitely at a flat, constant cost per step.
What Problem Does This Paper Address?
Time Series Foundation Models (TSFMs)—pretrained models that forecast new data out-of-the-box—currently face an uncomfortable trade-off. Fast, lightweight recurrent models (like the original TiRex) process single variables independently, ignoring crucial cross-variable relationships. Conversely, multivariate models (like Chronos-2 or MOIRAI) rely on Transformers. Because attention mechanisms look back over the entire history, ingesting each new data point gets progressively more expensive as sequences grow—even with KV caching. Worse, if a model peeks at "future covariates" (variables known ahead of time, like calendar holidays or planned promotions), non-causal Transformers often have to recompute the entire context from scratch when new observations arrive.
Methods
TiRex-2 bridges this gap by alternating between two specialized components across 12 layers, processing data chunked into non-overlapping patches of 32 time steps:
- Bidirectional xLSTM Time Mixer: Instead of attention over time, TiRex-2 uses an Extended LSTM (xLSTM) alternating between scalar (sLSTM) and matrix (mLSTM) memory blocks. Target variables and past covariates march strictly forward in time, maintaining a compact recurrent state. Future-known covariates, however, are run both forward and backward through the same weight-tied xLSTM, allowing the model to "see" upcoming events before they happen.
- Asymmetric Group-Attention Variate Mixer: How do you let targets read future-informed covariates without accidentally leaking future target answers backward in time? TiRex-2 uses self-attention across variables at each patch, governed by a clever one-way valve (an asymmetric attention mask): target variables can attend to covariates, but covariates are strictly forbidden from reading targets.
Additionally, the input scaler uses an inverse hyperbolic sine ($\text{arcsinh}$) transform to tame extreme outliers, paired with a binary gate that detects sparse $\{0,1\}$ event flags so standardization doesn't blow them up. When fed a single variable, TiRex-2 simply bypasses the variate mixer, activating only 38.4M of its 82.5M total parameters.
Datasets
Curated multivariate datasets are surprisingly scarce, whereas univariate (single-variable) time series are abundant. To pretrain TiRex-2 without starving it of cross-variable dynamics, the authors built an on-the-fly synthetic coupling pipeline (rather than introducing a static benchmark). During training, it grabs independent series from large univariate pools and mathematically entangles them—using linear factor mixing, cointegration (shared random-walk trends), functional mappings, and lagged linear/nonlinear structural causal models (SCMs)—followed by realistic quirks like time-warping and sensor discretization.
For evaluation, the authors test zero-shot performance on GIFT-Eval (broad domain/horizon generalization) and fev-bench (100 tasks testing covariate exploitation), ensuring zero data leakage by pretraining separate checkpoints with overlapping datasets scrubbed. They also evaluate long-horizon chaotic systems using the dysts benchmark (135 chaotic trajectories) and synthetic streaming/shift tests.
Key Insights and Ideas
- Causality via Asymmetric Routing: You don't need a purely causal model to do causal streaming. By isolating bidirectional flow strictly within the covariate channels and blocking target-to-covariate feedback, target states remain 100% causal—a first among TSFMs.
- Zero Drift Over Extreme Horizons: Recurrent states often get a bad rap for saturating or drifting. Trained on 2k steps and post-trained on 8k, TiRex-2 streamed 32 million time steps ($4,000\times$ its training context) at constant memory and compute cost per patch with zero degradation in error.
- Every Synthetic Coupling Mechanism Matters: Ablating any of the six mathematical coupling rules dropped multivariate skill scores on fev-bench by ~2–3 points, proving that synthetic causal diversity directly translates to real-world multivariate reasoning.
- Lag Tolerance: In synthetic lag tests, real-world covariates rarely align perfectly with targets; TiRex-2 extracts useful signal from shifted covariates across a much wider lag window than Chronos-2.
Key Results
- GIFT-Eval: TiRex-2 takes the top spot among evaluated zero-shot models, achieving 0.697 MASE and 0.478 CRPS—beating Chronos-2-Synth (0.720 MASE, 0.496 CRPS), FlowState-r1.1, and TimesFM-2.5. Under a matched training corpus, it also outperforms the full Chronos-2 across all four benchmark statistics.
- fev-bench: TiRex-2 achieves a 45.5 SQL skill score, decisively beating TiRex (42.6), TimesFM-2.5 (42.2), and Toto-1.0 (40.8), winning 65–100% of tasks head-to-head. Chronos-2 edges it out on aggregate skill score (47.3), though the two models split pairwise task wins evenly (51.0% win rate for TiRex-2), despite Chronos-2 using 120M parameters ($2.2\times$ TiRex-2's mean active count).
- Component Impact: Stripping out group attention tanks fev-bench SQL skill by 9.67 points (-18.73 on tasks with future covariates), and removing the asymmetric mask costs 4.35 points (-8.05 on the future-covariate subset).
Limitations and Future Work
Constant-cost streaming comes with one catch: future-known covariates (like holiday calendars) must be fixed ahead of time so their reverse-xLSTM pass can be precomputed. If a future covariate is revised mid-stream (e.g., an updated weather forecast), its bidirectional states and downstream target states have to be recomputed—though users can sidestep this by feeding revisable signals into the strictly causal past-covariate channel. Furthermore, streaming updates happen per 32-step patch rather than step-by-step. For future work, the authors suggest dynamic covariate pruning: estimating variable correlations in-context to drop unhelpful covariates from group attention on the fly, saving compute at inference.
Summary updated