Efficient Automated Deep Learning for Time Series Forecasting

Difan Deng, Florian Karl, Frank Hutter, Bernd Bischl, Marius Lindauer

Abstract

Automated Machine Learning (AutoML) has significantly advanced tabular data analysis and computer vision, yet time series forecasting has remained a challenging frontier due to its unique architectural requirements and computational intensity. This paper introduces Auto-PyTorch-TS, an automated deep learning (AutoDL) framework designed to jointly optimize neural architectures and hyperparameters specifically for time series tasks. By employing a modular "macro" search space and efficient multi-fidelity Bayesian optimization, Auto-PyTorch-TS achieves a 19% average error reduction over established baselines across 24 diverse datasets.

Introduction

Time series forecasting is critical for decision-making in domains ranging from energy management to retail. Despite its importance, the field has largely relied on either "local" statistical models—which fit individual parameters to every sequence—or "global" deep learning (DL) models that require extensive manual tuning. The transition to Automated Deep Learning (AutoDL) for time series has been hindered by three primary obstacles: the vast complexity of potential architectures (RNNs, CNNs, Transformers), the high computational cost of training on massive datasets, and the ambiguity of defining "low-fidelity" approximations for efficient optimization.

Auto-PyTorch-TS addresses these challenges by treating forecasting as a Combined Algorithm Selection and Hyperparameter optimization (CASH) problem, providing a robust framework for discovering high-performing global forecasting models automatically.

The Auto-PyTorch-TS Framework

Unified Macro-Search Space

Unlike traditional neural architecture search (NAS) that focuses on micro-level "cells," Auto-PyTorch-TS utilizes a macro-search space. The framework decomposes state-of-the-art models into modular components: Encoders (e.g., RNN, Transformer, TCN, MLP, N-BEATS), Decoders, and Forecasting Heads. This modularity allows the optimizer to assemble diverse model families—such as DeepAR, Seq2Seq, or Temporal Fusion Transformers (TFT)—from a shared library of components, adapting the model structure to the specific temporal dynamics of the data.

Multi-Fidelity Bayesian Optimization

To navigate a search space exceeding 200 dimensions, the system employs SMAC3, a Bayesian optimization tool. To manage computational costs, the authors implemented multi-fidelity optimization, where the system evaluates "cheap" versions of models to prune underperforming configurations early. They explored four distinct budget types to determine which best correlates with final performance:

  • Number of Epochs: The standard approach in computer vision.
  • Series Resolution: Subsampling time steps within sequences.
  • Number of Series: Subsampling the total number of sequences in the dataset.
  • Number of Samples per Series: Reducing the training instances per sequence.

Proxy Evaluation Strategy

On massive datasets (e.g., the Dominick dataset with >115,000 series), the primary bottleneck is often validation inference rather than training. Auto-PyTorch-TS introduces a proxy validation set strategy. By evaluating metrics on only a representative fraction of the series during the search phase, the framework drastically accelerates the optimization loop without sacrificing the quality of the final model selection.

Experimental Results

The framework was rigorously evaluated on 24 diverse datasets from the Monash Time Series Forecasting Repository, including the M3 and M4 competition benchmarks, and domain-specific data covering electricity, traffic, and hospitalizations.

Performance and Efficiency

  • Superior Accuracy: Auto-PyTorch-TS outperformed the best single baseline (TBATS) and even a "theoretical oracle" (the best possible baseline selected per dataset) on 18 out of 24 datasets.
  • Error Reduction: The framework achieved an average relative error reduction of 19% across the entire benchmark suite.
  • Scalability: Even on datasets with over 100,000 series, the system identified high-performing configurations within a strict 10-hour time limit, demonstrating the efficacy of the multi-fidelity and proxy evaluation strategies.

Key Insights

  1. Macro-Search Adaptability: The ability to switch between fundamentally different architectural families (e.g., moving from a TCN to a Transformer) is crucial. Different datasets have varying structural needs, such as long-term trends versus complex seasonality, which a fixed architecture cannot always capture.
  2. The Validation Bottleneck: In multi-series forecasting, the time spent calculating metrics across thousands of series is a significant overhead. Proxy evaluation proved to be a vital innovation for making AutoDL practical for large-scale forecasting.
  3. Dynamic Budgeting: There is no "one-size-fits-all" budget for multi-fidelity optimization in time series. While epoch-based budgeting is common, subsampling the number of samples per series often provided a more reliable signal for the optimizer in this domain.

Conclusion and Future Work

Auto-PyTorch-TS represents a significant step forward in making advanced deep learning accessible for time series forecasting. While the current framework focuses on pure DL models, future iterations may explore hybrid pipelines that combine neural networks with traditional statistical methods like exponential smoothing. Additionally, automating the selection of the optimal budget type for a given dataset remains a promising avenue for further reducing the manual overhead of the forecasting process.

Summary updated

Abstract

Recent years have witnessed tremendously improved efficiency of Automated Machine Learning (AutoML), especially Automated Deep Learning (AutoDL) systems, but recent work focuses on tabular, image, or NLP tasks. So far, little attention has been paid to general AutoDL frameworks for time series forecasting, despite the enormous success in applying different novel architectures to such tasks. In this paper, we propose an efficient approach for the joint optimization of neural architecture and hyperparameters of the entire data processing pipeline for time series forecasting. In contrast to common NAS search spaces, we designed a novel neural architecture search space covering various state-of-the-art architectures, allowing for an efficient macro-search over different DL approaches. To efficiently search in such a large configuration space, we use Bayesian optimization with multi-fidelity optimization. We empirically study several different budget types enabling efficient multi-fidelity optimization on different forecasting datasets. Furthermore, we compared our resulting system, dubbed Auto-PyTorch-TS, against several established baselines and show that it significantly outperforms all of them across several datasets.
BibTeX
@inproceedings{deng2022efficient,
  author = {Difan Deng and Florian Karl and Frank Hutter and Bernd Bischl and Marius Lindauer},
  title = {{Efficient Automated Deep Learning for Time Series Forecasting}},
  booktitle = {ECML/PKDD},
  year = {2022},
  url = {https://openreview.net/forum?id=T55ueDK3OZ},
}
Figure