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
- 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.
- 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.
- 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