TiRex-2: Generalizing TiRex to Multivariate Data and Streaming

Patrick Podest, Marco Pichler, Elias Bürger, Levente Zólyomi, Bernhard Voggenberger, Wilhelm Franz Berghammer, Daniel Klotz, Sebastian Böck, Günter Klambauer, Sepp HochreiterNeurIPS 2026

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.

Feature comparison of TiRex-2, Chronos-2, and TiRex

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:

  1. 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.
  2. 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.
Figure 2: TiRex-2 alternates time- and variate-mixing blocks. The variate mixer’s asymmetric group attention is what allows future-known covariates to be exploited bidirectionally without leaking future- known targets into earlier positions. (b) Each multivariate time series is split into non-overlapping patches before being embedded into tokens. The stack mixes information across time (time mixer), across variates (variate mixer) and inside each token (MLP). The output-projection produces Q quantile forecasts per time step in each output patch. (a) The time mixer applies a forward xLSTM to all variates, plus a weight-tied reverse pass for future-known covariates, fused linearly. (c) The variate mixer applies group attention along the variate axis with an asymmetric mask preventing target-to-covariate flow. Note: we omitted the layer super-scripts of the token representations H inside the blocks for clarity.

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.

Figure 3: Synthetic multivariate coupling pipeline. A batch of univariate series is first independently augmented (amplitude trends, censoring, spike injection). A coupling mechanism ci ∼Uniform(C) is then sampled from C = { identity, univariate, linear mixing, linear structural causal model (SCM), nonlinear SCM, cointegration, functional } and, except for the identity and univariate pass-through cases, transforms the augmented series into jointly dependent variates. Post-processing adds realistic structure via covariate enrichment and applies smooth time warping, discretization, and future masking, producing the final multivariate training sample.

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

Abstract

We introduce TiRex-2, a recurrent xLSTM-based time series foundation model that generalizes the univariate TiRex to multivariate forecasting with both past and future covariates. Real-world forecasting is inherently sequential: observations arrive continuously, variables evolve jointly, and a subset of covariates is known ahead of time. Existing Transformer-based time series foundation models capture cross-variate dependencies, but the cost of ingesting each new observation grows at least linearly with context length, even with KV caching. TiRex-2 addresses these limitations with a memory-centric recurrent design built around an asymmetric group-attention variate mixer: paired with a bidirectional time mixer, it integrates future-known covariates while keeping target variables strictly causal. To our knowledge no other time series foundation model does both, and it is what makes streaming at constant per-patch cost possible. For scalable multivariate pretraining, we propose a synthetic coupling pipeline that composes multivariate samples on the fly from large univariate corpora. On GIFT-Eval, TiRex-2 improves on the zero-shot Chronos-2-Synth on all four statistics, and on Chronos-2 under a matched corpus. On fev-bench Chronos-2 stays ahead on skill score at $2.2\times$ the mean active parameters. TiRex-2 uses 38.4M active parameters in univariate mode, plus 44.1M for multivariate forecasting. Code is available at [github.com/NX-AI/tirex-2](https://github.com/NX-AI/tirex-2).
BibTeX
@inproceedings{podest2026tirex,
  author = {Patrick Podest and Marco Pichler and Elias Bürger and Levente Zólyomi and Bernhard Voggenberger and Wilhelm Franz Berghammer and Daniel Klotz and Sebastian Böck and Günter Klambauer and Sepp Hochreiter},
  title = {{TiRex-2: Generalizing TiRex to Multivariate Data and Streaming}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=YgN3LimhOJ},
}
Figure