TiRex: Zero-Shot Forecasting Across Long and Short Horizons with Enhanced In-Context Learning

Andreas Auer, Patrick Podest, Daniel Klotz, Sebastian Bock, G. Klambauer, Sepp Hochreiter

arXiv:2505.23719 · 2026-08-15 공개 · arXiv · PDF

transformer long-horizon in-context-learning time-series state-tracking zero-shot-forecasting chronos-zs x-lstm

Abstract

In-context learning, the ability of large language models to perform tasks using only examples provided in the prompt, has recently been adapted for time series forecasting. This paradigm enables zero-shot prediction, where past values serve as context for forecasting future values, making powerful forecasting tools accessible to non-experts and increasing the performance when training data are scarce. Most existing zero-shot forecasting approaches rely on transformer architectures, which, despite their success in language, often fall short of expectations in time series forecasting, where recurrent models like LSTMs frequently have the edge. Conversely, while LSTMs are well-suited for time series modeling due to their state-tracking capabilities, they lack strong in-context learning abilities. We introduce TiRex that closes this gap by leveraging xLSTM, an enhanced LSTM with competitive in-context learning skills. Unlike transformers, state-space models, or parallelizable RNNs such as RWKV, TiRex retains state-tracking, a critical property for long-horizon forecasting. To further facilitate its state-tracking ability, we propose a training-time masking strategy called CPM. TiRex sets a new state of the art in zero-shot time series forecasting on the HuggingFace benchmarks GiftEval and Chronos-ZS, outperforming significantly larger models including TabPFN-TS (Prior Labs), Chronos Bolt (Amazon), TimesFM (Google), and Moirai (Salesforce) across both short- and long-term forecasts.

한국어 요약

한 줄 요약

TiRex는 xLSTM과 CPM을 결합한 제로샷 타임시리즈 예측 모델로, 기존 대형 모델을 앞선다.

핵심 기여도

핵심 아이디어

TiRex는 기존 제로샷 예측 모델이 트랜스포머에 의존하는 한계를 극복하기 위해 xLSTM을 도입한 모델이다. xLSTM은 기존 LSTM의 state-tracking 능력을 유지하면서, 트랜스포머와 유사한 in-context learning 성능을 제공한다. 이는 제로샷 환경에서 과거 데이터를 기반으로 미래를 예측하는 데 유리하다. 또한, TiRex는 CPM이라는 훈련 전략을 통해 autoregressive 예측 시 발생하는 오류 누적 문제를 완화한다. 이는 특히 장기 예측에서 중요한 역할을 하며, 기존 RNN이나 SSM보다 우수한 성능을 보인다.

기술적 접근법

주요 결과

의의 및 한계

TiRex는 제로샷 예측에서 트랜스포머와 RNN의 장점을 결합한 새로운 접근법을 제시한다. 특히, xLSTM과 CPM을 통해 장기 예측 성능을 향상시키며, 데이터가 부족한 환경에서 유용하다. 그러나, xLSTM의 병렬화 한계로 인해 대규모 데이터셋에서의 훈련 효율성은 여전히 개선이 필요하다. 또한, 일부 평가 설정에서 기존 모델과 겹치는 데이터가 제외되어 있어, 전체 벤치마크에서의 일반화 성능은 추가 연구가 필요하다.

실용적 활용

TiRex는 에너지, 소매, 의료 등 데이터가 제한적인 분야에서 실용적 활용이 가능하다. 특히, 전문가 없이도 강력한 예측 도구를 사용할 수 있어, 비전문가 사용자에게 적합하다. 또한, 장기 예측이 필요한 산업 현장에서 오류 누적 문제를 줄이는 데 기여할 수 있다.