TiRex: Zero-Shot Time-Series Forecasting with xLSTM

Machine Learning
Introduced by
NX-AI (xLSTM team)
Year
2025
Type
Pretrained zero-shot time-series forecasting model
Family
Time-series forecasting

What does it do?

TiRex is a pretrained zero-shot time-series forecasting model introduced in 2025 by the NX-AI xLSTM team (Auer et al.).

It uses an Extended Long Short-Term Memory (xLSTM) backbone and is applied to new series without fine-tuning. Its stated focus is enhanced in-context learning: the model reads the available history as context and forecasts short and long horizons from it.

The intuition behind the method

Consider a forecaster that has already been pretrained on a large collection of time series. Shown a new sequence, it does not retrain; it reads the recent history as context and extrapolates using patterns absorbed during pretraining. Internally, a recurrent xLSTM network summarises the context in a hidden state, and a forecasting head turns that state into predicted future values. The model weights stay fixed during inference.

History

TiRex was introduced in 2025 by Andreas Auer, Philipp Podest, Daniel Klotz, Sebastian Böck, Günter Klambauer, and Sepp Hochreiter, associated with NX-AI and the xLSTM architecture. The cited arXiv preprint presents it as a zero-shot forecaster with enhanced in-context learning across long and short horizons. It belongs to the recent line of pretrained time-series models that includes Chronos and TimesFM, and it uses an xLSTM backbone.

When to use it

Choose TiRex when little or no labelled history exists for the specific series, or when training a dedicated model per series is impractical, since zero-shot use is its main purpose. It is intended to handle both short and long forecast horizons with one model. It works best when the target series resemble the kinds of data seen in pretraining. Avoid it, or compare it carefully, when domain-specific fine-tuning is feasible and accuracy on that domain matters most, or when the internal components must be interpreted. Chronos, TimesFM, and dedicated LSTM or Transformer baselines are natural alternatives to test against.

Limitations and considerations

  • The model is pretrained on a fixed corpus; series with dynamics unlike that corpus may be forecast less accurately. The corpus composition should be checked in the preprint or official documentation to judge domain fit.
  • Patch-based processing assumes reasonably regular, locally coherent temporal structure, which may not hold for highly irregular or sparse series.
  • Computational cost (parameter count, latency, memory) relative to lightweight baselines should be measured on the intended hardware.
  • In-context learning is limited by the context length the model accepts, which bounds how much history can inform a single forecast.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Zero-shot use removes the need for dataset-specific training or fine-tuning before forecasting.
  • The xLSTM backbone processes the patch sequence recurrently, combining sLSTM scalar memory and mLSTM matrix memory with exponential gating.
  • A single model is intended to cover both short-horizon and long-horizon forecasting.
  • The probabilistic head provides quantile or distributional outputs in addition to point forecasts.

Applications

  • Forecasting new series that have little or no history, where zero-shot use avoids per-series training.
  • Screening many series at once with one pretrained model when fitting a separate model to each is impractical.
  • Producing short-horizon and long-horizon forecasts from the same model in a single workflow.
  • Generating quantile forecasts for downstream decisions that require explicit uncertainty ranges.

How it works

How it works

1

In this simplified schematic, the input series is divided into fixed-length patches of length P, so the series becomes a shorter sequence of patch tokens, each summarising a short local segment. The exact patching and input-handling scheme should be checked against the preprint.

Formula
\text{Given input series } \mathbf{x} \in \mathbb{R}^{T}, \text{ divide into non-overlapping patches: } \mathbf{p}_i = \mathbf{x}_{[(i-1)P+1:iP]}, \quad i=1,\ldots,\lceil T/P \rceil
2

In this schematic, each patch is projected to an embedding and passed in order through xLSTM blocks. xLSTM combines two memory types: sLSTM, with scalar memory and a normalizer state, and mLSTM, with matrix memory and exponential gating. The hidden state h_i is computed from the previous hidden state and the current patch. The exact block composition used in TiRex is described in the preprint.

Formula
\text{Each patch } \mathbf{p}_i \text{ is projected to an embedding and processed by xLSTM blocks, which combine sLSTM (scalar memory with normalizer) and mLSTM (matrix memory with exponential gating): } \mathbf{h}_i = \text{xLSTM}(\mathbf{h}_{i-1}, \mathbf{p}_i)
3

At inference the model reads the context window recurrently and conditions the forecast on the resulting hidden state. No gradient update is performed, so the forecast adapts to the input series only through what the hidden state encodes from that context.

Formula
\text{The full context window } \{\mathbf{p}_1, \ldots, \mathbf{p}_n\} \text{ is processed recurrently to form a compressed state that conditions the forecast; no gradient update occurs at inference: } \hat{\mathbf{y}} = f_{\theta}(\mathbf{h}_n)
4

A forecasting head maps the final hidden state to predictions over the horizon H, giving uncertainty-aware output rather than only a single point value. The precise output form (for example, the set of quantile levels) is defined in the preprint and the official release.

Formula
\text{A probabilistic forecasting head maps the final hidden state to a predictive distribution over the horizon } H: \hat{\mathbf{y}}_{1:H} \sim p_{\theta}(\mathbf{y} \mid \mathbf{h}_n), \text{ supporting both point and quantile outputs}

Common pitfalls

  • Applying TiRex to series with very different scales, units or sampling rates from typical pretraining data without checking the recommended preprocessing can produce unreliable forecasts.
  • Reporting zero-shot accuracy without comparison to simple baselines, such as seasonal naive, can overstate model quality.
  • Using only point forecasts discards the uncertainty information the probabilistic output provides.
  • Assuming that longer context always helps: very long or strongly non-stationary contexts may not improve, and can degrade, forecasts; compare several context lengths within the supported limit.

Frequently asked questions

Does TiRex require any fine-tuning on my dataset before use?

No. TiRex is designed for zero-shot use: the pretrained model is applied to unseen series at inference without gradient updates. The forecast is conditioned on the input history, so labelled target data are not needed to produce forecasts.

How does TiRex differ from Transformer-based forecasting models like PatchTST?

TiRex uses xLSTM recurrent blocks rather than self-attention layers. It conditions on the input history through a recurrent hidden state, whereas attention-based models compute interactions between pairs of patches. A general claim about memory use or speed relative to attention models should be checked by benchmarking on your own hardware and data.

Can TiRex produce prediction intervals, or only point forecasts?

TiRex is described as a probabilistic forecaster, so it provides uncertainty-aware output in addition to point estimates. The exact output form, such as which quantile levels are available, should be confirmed in the preprint and official release.

Related methods

Sources

  1. Auer, A., Podest, P., Klotz, D., Böck, S., Klambauer, G., & Hochreiter, S. (2025). TiRex: Zero-shot forecasting across long and short horizons with enhanced in-context learning. arXiv preprint.

    Open publication reference