Learning Deep Time-index Models for Time Series Forecasting

Gerald Woo, Chenghao Liu, Doyen Sahoo, Akshat Kumar, Steven C. H. Hoi

Introduction

Time series forecasting has seen a massive influx of deep learning solutions, predominantly in the form of historical-value models like LSTMs and Transformers. These models operate by taking a window of past observations and mapping them directly to future values. While highly effective, they are inherently tied to the specific sampling frequency of the training data and often struggle to capture the underlying continuous dynamics of the system.

Alternatively, time-index models—such as classical linear regression or Prophet—treat the time series as a continuous function of time, $y = f(t)$. This formulation is theoretically ideal for handling continuous time and irregular sampling. However, traditional time-index models rely on manually defined, simple functions (like linear trends or sinusoids), limiting their expressivity.

If one attempts to use a "deep" time-index model, such as a standard Multi-Layer Perceptron (MLP), a critical problem emerges: the model becomes excellent at reconstructing the past but terrible at extrapolating into the future. Without a strong inductive bias, the neural network simply overfits the training window and produces erratic predictions for future time steps. To bridge this gap, researchers have introduced DeepTime, a meta-optimization framework designed to learn deep time-index models that can efficiently and accurately generalize to unseen time steps.

The DeepTime Framework

DeepTime transforms time series forecasting from a discrete "predicting the next value" problem into a "learning a continuous function of time" problem. It achieves this by equipping deep time-index models with the ability to generalize through a sophisticated meta-learning approach.

Meta-Optimization Strategy

DeepTime splits the learning process into two distinct loops to provide the necessary inductive bias for extrapolation:

  • The Inner Loop: For a specific lookback window, the model rapidly adapts its "base parameters" to fit the local data.
  • The Outer Loop: Across the entire dataset, the model learns "meta-parameters." These meta-parameters dictate how the model should adapt to new windows, effectively teaching the network the underlying rules of change required for accurate extrapolation.

Fast Ridge Regression

Standard meta-learning algorithms, like MAML, are notoriously unstable and computationally expensive. To make the bi-level optimization efficient, DeepTime restricts the adaptable "base parameters" to only the final layer of the network. This architectural choice transforms the inner loop into a closed-form ridge regression problem. By relying on a simple analytical solution, DeepTime bypasses the high computational costs of iterative inner-loop gradient updates.

Concatenated Fourier Features (CFF)

Neural networks naturally exhibit a "spectral bias," meaning they default to learning smooth, low-frequency functions. Time series data, however, is often characterized by jagged, high-frequency patterns such as hourly or daily cycles. To counter this, DeepTime employs a novel Concatenated Fourier Features (CFF) module. This module projects time indices into multiple scales of sine and cosine waves before passing them to the MLP, allowing the network to capture complex, high-frequency seasonalities.

Key Insights and Advantages

The core innovation of DeepTime is its focus on extrapolation. For time-index models, fitting the training data is trivial; the true challenge is learning the rules governing how the series evolves. Meta-learning allows DeepTime to extract these rules directly from the data, removing the need for human-engineered trend or seasonality components.

Furthermore, by reducing the inner loop to a ridge regression, DeepTime proves that deep models do not have to be computationally burdensome. The model's memory usage and runtime remain nearly constant regardless of the forecasting horizon. This is a massive advantage over Transformer-based models, which typically scale linearly or quadratically with sequence length. Because DeepTime models the series as a continuous function, it is also inherently better suited for tasks like missing value imputation or processing irregularly sampled data.

Empirical Results

DeepTime was rigorously evaluated on a suite of long-sequence time-series forecasting (LSTF) benchmarks, including ETT (Electricity Transformer Temperature), ECL (Electricity Consuming Load), Exchange rates, Traffic occupancy, Weather indicators, and ILI (Influenza-like illness) ratios.

  • State-of-the-Art Performance: DeepTime achieved the lowest Mean Squared Error (MSE) in 20 out of 24 settings on the multivariate benchmark, outperforming heavyweights like the Non-stationary Transformer, Fedformer, and N-HiTS.
  • Computational Superiority: In runtime and memory benchmarks, DeepTime proved significantly more efficient than its Transformer-based counterparts. Its memory footprint remains flat as the forecast horizon increases.
  • Theoretical Grounding: The authors also provide a generalization bound using the PAC-Bayes framework, mathematically demonstrating that the meta-learning approach effectively constrains the model to prevent the overfitting typically seen in vanilla MLPs.

Limitations and Future Directions

While DeepTime presents a significant leap forward for time-index models, it has limitations. The model may struggle if the lookback window contains significant anomalies or if the data experiences a sudden, non-periodic regime shift. Additionally, the current iteration focuses purely on the time index and does not integrate exogenous variables (like price or weather) or known future events (like holidays), which are standard requirements in many industrial pipelines. Finally, while the continuous representation is a natural fit for irregular time series, future work is needed to fully explore its performance in truly asynchronous or missing-data scenarios.

Summary updated

BibTeX
@inproceedings{woo2023learning,
  author = {Gerald Woo and Chenghao Liu and Doyen Sahoo and Akshat Kumar and Steven C. H. Hoi},
  title = {{Learning Deep Time-index Models for Time Series Forecasting}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=8J7lr5xHMV},
}
Figure