# Why Do Time Series Models Need Long Context Windows?

*Luca Butera, Giovanni De Felice, Andrea Cini, Cesare Alippi*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149819) · [Open on the map](../papers.html#p149819)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Time Series Forecasting and Modeling](../pgroup/572.md) · Type: theory · Keywords: time-series forecasting, context window, generative process identification, conditional forecasting, theoretical analysis

Areas: [Long Context](../areas/longcontext.md) › Long-context mechanisms › Long context modeling; [Time Series](../areas/time-series.md) › Long-Horizon Forecasting Architectures › Efficient Long-Horizon Forecasting

## Summary
The paper shows that long context windows are needed to reduce uncertainty about the underlying generative process in time-series forecasting and proves that window size must exceed the process memory length, while decoupling generative process identification and conditional forecasting improves scalability.

## Explained to a 5-year-old
When we try to guess what will happen next in a series of numbers, we need to look at a lot of past numbers. The paper says we need to see more past numbers than the pattern length to be sure. It splits the guessing into two parts: figuring out the rule that made the numbers and then using that rule to predict the future. By separating these two parts, we can make the guessing faster. This helps us build smarter prediction tools that use less computer power.

## Explained to a 5-year-old, longer
Imagine you have a line of numbers that follow some hidden rule. To guess the next number, you look at many previous numbers. The paper explains that you need to look at more numbers than the length of the hidden rule to be confident. It breaks the guessing task into two steps: first, you try to discover what rule is making the numbers; second, you use that rule to predict the next ones. By doing these steps separately, the computer can work faster and use less memory. This makes it possible to run predictions on smaller devices. The idea also helps when the rule is complex and needs a lot of data. It shows why some models ask for long windows of data. The findings are tested on both made-up data and real data, confirming the theory. This gives designers a clear guideline for choosing how much history to keep. It also suggests that not every extra history is needed, saving time and energy. Overall, the work makes predicting future numbers smarter and more efficient.

## For a technical reader
The authors formalize time-series forecasting as a combination of identifying the underlying data-generating process and performing conditional prediction. They prove that the input window must exceed the process’s memory length to achieve optimal error, establishing a lower bound on context size. By decoupling the two sub-tasks, they enable more scalable inference without sacrificing accuracy. Empirical evaluations on synthetic and real datasets confirm the theoretical bounds and demonstrate the practical benefits of the decomposition. This insight guides engineers in designing models that balance context length and computational efficiency.

## Problem
Forecasting groups of time series often relies on long observation windows, yet the underlying reason for this requirement is not fully understood. The paper investigates whether long windows are necessary to accurately predict future values.

## Method
The authors decompose forecasting into two tasks-identifying the generative process of the observed sequence and performing conditional prediction-and show that optimal forecasts correspond to an average over plausible processes weighted by their likelihood. They prove that a window larger than the process memory length is necessary for minimum error and propose decoupling the two tasks to improve computational scalability.

## Contributions
The paper provides a theoretical decomposition of forecasting into generative process identification and conditional forecasting, proves a necessary condition on context window size relative to process memory, and demonstrates that decoupling these tasks can improve scalability while preserving accuracy.

## Limitations and assumptions
The analysis assumes that the underlying generative process has a finite memory length P and that this length is known or can be estimated.

## Practical relevance
These insights guide the design of more efficient forecasting models by clarifying when long context windows are truly needed, enabling practitioners to reduce computational costs without sacrificing accuracy.

## Research questions this paper is counted under

- [How can we build time series forecasting models that remain accurate, efficient, and robust across non-stationary, multi-periodic, and irregular data conditions?](../q/0.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149819)
