[Paper Review] Foundations of Sequence-to-Sequence Modeling for Time Series
This paper provides the first theoretical generalization bounds for sequence-to-sequence (seq2seq) models in time series forecasting, analyzing their sample complexity in terms of non-stationarity and cross-series correlation. It shows seq2seq models outperform local models when the number of time series $ m $ is much larger than sequence length $ T $, under weak correlation, while local models are better when $ m \ll T $ or correlations are strong.
The availability of large amounts of time series data, paired with the performance of deep-learning algorithms on a broad class of problems, has recently led to significant interest in the use of sequence-to-sequence models for time series forecasting. We provide the first theoretical analysis of this time series forecasting framework. We include a comparison of sequence-to-sequence modeling to classical time series models, and as such our theory can serve as a quantitative guide for practitioners choosing between different modeling methodologies.
Motivation & Objective
- To provide the first theoretical generalization guarantees for sequence-to-sequence modeling in time series forecasting.
- To compare the sample complexity of seq2seq models with that of classical local models (e.g., ARIMA, VARMA) under varying statistical properties.
- To identify conditions under which seq2seq modeling is preferable to local modeling, based on non-stationarity and cross-series correlation.
- To introduce and analyze a data-dependent discrepancy measure for quantifying non-stationarity in time series.
- To study hybrid models that combine local and seq2seq learning, and derive generalization bounds for such frameworks.
Proposed method
- Proposes a formal framework for sequence-to-sequence modeling where each of $ m $ time series is treated as a single input-output pair: past sequence $ Y_1^{T-1}(i) $ mapped to next value $ Y_T(i) $.
- Introduces a new discrepancy measure $ \Delta_t $ to quantify non-stationarity at each time point, defined as the difference in expected loss between training and test distributions.
- Defines a data-dependent version of the discrepancy to enable empirical assessment of non-stationarity in real datasets.
- Derives generalization bounds for seq2seq models using expected mixing coefficients and the discrepancy measure, showing sample complexity scales as $ \mathcal{O}(\sqrt{T/m}) $ under weak correlation.
- Applies the same theoretical tools to local models, deriving bounds that scale as $ \mathcal{O}(\sqrt{\log m / T}) $, enabling direct comparison.
- Proposes hybrid models that combine local and seq2seq learning, with generalization bounds that depend on both $ m $ and $ T $, and a new time-point-specific discrepancy $ \Delta_t $.
Experimental results
Research questions
- RQ1What is the generalization ability of sequence-to-sequence models for time series forecasting, and how does it depend on non-stationarity and cross-series correlation?
- RQ2When is sequence-to-sequence modeling preferable to local modeling, and vice versa, in terms of sample complexity and statistical properties?
- RQ3Can the discrepancy measure be computed from data, and does it serve as a practical indicator for whether seq2seq modeling will succeed?
- RQ4How do hybrid models that combine local and seq2seq learning perform, and what are their generalization guarantees?
- RQ5How do the theoretical bounds extend to out-of-distribution time series not seen during training?
Key findings
- The generalization error of sequence-to-sequence models scales as $ \mathcal{O}(\sqrt{T/m}) $, indicating superior performance when $ m \gg T $, assuming weak cross-series correlation.
- Local models have a sample complexity of $ \mathcal{O}(\sqrt{\log m / T}) $, making them preferable when $ m \ll T $ or when time series are strongly correlated.
- The discrepancy measure $ \Delta_t $ is shown to be computable from data and serves as a practical indicator of non-stationarity, with lower values suggesting better performance for seq2seq models.
- Hybrid models achieve favorable generalization bounds when either $ m \gg T $ or $ T \gg m $, but their performance depends on a more complex trade-off involving the time-specific discrepancy $ \Delta_t $.
- The theoretical framework extends to out-of-distribution forecasting, where new time series are observed at test time, showing that seq2seq models remain generalizable under mild assumptions.
- The analysis demonstrates that seq2seq models can outperform local models in high-dimensional time series settings (large $ m $) even when individual series are short, provided they are weakly correlated.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.