AutoTS: Automatic Time Series Forecasting Model Design Based on Two-Stage Pruning

Chunnan Wang, Xingyu Chen, Chengyue Wu, Hongzhi WangarXiv 2022 · DOI

Introduction

Time Series Forecasting (TSF) is a critical task across various domains, from energy management to financial analysis. However, the diversity of time series data—ranging from highly periodic traffic patterns to stochastic stock prices—makes designing a universal model architecture nearly impossible. While Automated Machine Learning (AutoML) and Neural Architecture Search (NAS) have revolutionized fields like computer vision, they often struggle with TSF. Traditional NAS focuses on increasing model depth, whereas TSF models typically follow a fixed functional pipeline but possess an enormous variety of architectural and hyperparameter options at each stage. This "wide" search space leads to a combinatorial explosion that renders standard progressive NAS algorithms highly inefficient.

The AutoTS Framework

To address these challenges, the authors propose AutoTS, an automated framework specifically tailored for TSF. AutoTS decomposes state-of-the-art TSF models into modular components and employs a novel search strategy to navigate the resulting high-dimensional space.

The AutoTS framework overview, illustrating the transition from existing models to a modular search space, KG-based embedding, and two-stage pruning.

The framework consists of three primary phases:

  1. Modular Search Space Construction: By analyzing five leading TSF models (e.g., N-BEATS, MTGNN, TCN), the authors identified seven distinct functional modules: Input Processing (IPM), Feature Extraction (FExM), Feature Enhancement (FEnM), and Feature Fusion (FFM), along with their additive counterparts and Output Processing (OPM). Recombining these modules creates a search space of approximately $1.8 \times 10^{21}$ possible architectures.
  2. Knowledge Graph (KG) Option Embeddings: To handle the vast number of module options, AutoTS uses a Knowledge Graph to capture structural and hyperparameter similarities between different choices.
  3. Two-Stage Pruning: A specialized search algorithm that balances exploration and exploitation to find optimal configurations efficiently.

A key innovation in AutoTS is treating architectural choices not as independent categories, but as related entities in a Knowledge Graph. Many module options share underlying mathematical operations or hyperparameter settings. By mapping these relationships, AutoTS can learn high-level "semantic" embeddings for each option.

The Knowledge Graph embedding process using TransR to learn high-level representations of module options.

As shown in the figure above, the framework utilizes the TransR graph embedding method. This allows the search agent to generalize knowledge across similar options, significantly speeding up the search process and improving the accuracy of the performance evaluator, even for previously unseen combinations.

Two-Stage Pruning Strategy

Navigating $10^{21}$ options requires more than just smart embeddings. AutoTS implements a two-stage pruning strategy to manage the search complexity:

  • Vertical Pruning (Exploration): In this stage, the algorithm optimizes one module at a time while keeping others fixed. This sequential approach allows for broad exploration and the training of a performance evaluator (an LSTM-based network) that predicts the efficacy of specific architectures.
  • Horizontal Pruning (Exploitation): Leveraging Reinforcement Learning, the framework identifies and prunes low-performing options across all modules. In this reduced space, it performs simultaneous multi-module optimization to fine-tune the final architecture.

Experimental Results and Insights

The authors evaluated AutoTS on four diverse multivariate datasets: Solar-Energy, Traffic, Electricity, and Exchange-Rate. The results demonstrated that AutoTS consistently outperformed both manually designed state-of-the-art models (RNN, ForecastNet, TPA-LSTM, TCN, N-BEATS, MTGNN) and standard AutoML baselines.

Key findings include:

  • Hybrid Superiority: AutoTS frequently discovered "Frankenstein" architectures—hybrids of different SOTA models—that outperformed any single human-designed model.
  • Search Efficiency: The two-stage pruning method proved essential. Ablation studies showed that removing either the vertical or horizontal stage led to significant performance drops and slower convergence.
  • Scalability: The KG-based embeddings allowed the search to remain effective even as the complexity of the search space increased, providing a "semantic" understanding that categorical search lacks.

Conclusion

AutoTS represents a significant step forward in automated TSF model design. By moving away from "deep" NAS and focusing on the "wide" modular nature of time series pipelines, and by incorporating domain knowledge through Knowledge Graphs, it provides a robust and efficient path toward dataset-specific model optimization. Future work will focus on expanding the search space with even more diverse model components and further refining the pruning algorithms.

Summary updated

BibTeX
@misc{wang2022autots,
  author = {Chunnan Wang and Xingyu Chen and Chengyue Wu and Hongzhi Wang},
  title = {{AutoTS: Automatic Time Series Forecasting Model Design Based on Two-Stage Pruning}},
  year = {2022},
  eprint = {2203.14169},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.14169},
}
Figure