Saved in:
Bibliographic Details
Main Authors: Zhou, Yufa, Wang, Yixiao, Goel, Surbhi, Zhang, Anru R.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.09776
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915546013892608
author Zhou, Yufa
Wang, Yixiao
Goel, Surbhi
Zhang, Anru R.
author_facet Zhou, Yufa
Wang, Yixiao
Goel, Surbhi
Zhang, Anru R.
contents Time series forecasting (TSF) remains a challenging and largely unsolved problem in machine learning, despite significant recent efforts leveraging Large Language Models (LLMs), which predominantly rely on Transformer architectures. Empirical evidence consistently shows that even powerful Transformers often fail to outperform much simpler models, e.g., linear models, on TSF tasks; however, a rigorous theoretical understanding of this phenomenon remains limited. In this paper, we provide a theoretical analysis of Transformers' limitations for TSF through the lens of In-Context Learning (ICL) theory. Specifically, under AR($p$) data, we establish that: (1) Linear Self-Attention (LSA) models $\textit{cannot}$ achieve lower expected MSE than classical linear models for in-context forecasting; (2) as the context length approaches to infinity, LSA asymptotically recovers the optimal linear predictor; and (3) under Chain-of-Thought (CoT) style inference, predictions collapse to the mean exponentially. We empirically validate these findings through carefully designed experiments. Our theory not only sheds light on several previously underexplored phenomena but also offers practical insights for designing more effective forecasting architectures. We hope our work encourages the broader research community to revisit the fundamental theoretical limitations of TSF and to critically evaluate the direct application of increasingly sophisticated architectures without deeper scrutiny.
format Preprint
id arxiv_https___arxiv_org_abs_2510_09776
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Why Do Transformers Fail to Forecast Time Series In-Context?
Zhou, Yufa
Wang, Yixiao
Goel, Surbhi
Zhang, Anru R.
Machine Learning
Artificial Intelligence
Time series forecasting (TSF) remains a challenging and largely unsolved problem in machine learning, despite significant recent efforts leveraging Large Language Models (LLMs), which predominantly rely on Transformer architectures. Empirical evidence consistently shows that even powerful Transformers often fail to outperform much simpler models, e.g., linear models, on TSF tasks; however, a rigorous theoretical understanding of this phenomenon remains limited. In this paper, we provide a theoretical analysis of Transformers' limitations for TSF through the lens of In-Context Learning (ICL) theory. Specifically, under AR($p$) data, we establish that: (1) Linear Self-Attention (LSA) models $\textit{cannot}$ achieve lower expected MSE than classical linear models for in-context forecasting; (2) as the context length approaches to infinity, LSA asymptotically recovers the optimal linear predictor; and (3) under Chain-of-Thought (CoT) style inference, predictions collapse to the mean exponentially. We empirically validate these findings through carefully designed experiments. Our theory not only sheds light on several previously underexplored phenomena but also offers practical insights for designing more effective forecasting architectures. We hope our work encourages the broader research community to revisit the fundamental theoretical limitations of TSF and to critically evaluate the direct application of increasingly sophisticated architectures without deeper scrutiny.
title Why Do Transformers Fail to Forecast Time Series In-Context?
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2510.09776