AutoSTL: Automated Spatio-Temporal Multi-Task Learning

Zijian Zhang, Xiangyu Zhao, Hao Miao, Chunxu Zhang, Hongwei Zhao, Junbo Zhang

Abstract

Spatio-temporal (ST) prediction—forecasting variables like traffic flow, ride-sharing demand, or air quality—is fundamental to smart city infrastructure. While these tasks are often highly correlated, existing models typically rely on manually designed, rigid multi-task architectures. We introduce AutoSTL, the first framework to apply Automated Machine Learning (AutoML) to spatio-temporal multi-task learning. By automatically searching for optimal spatial and temporal operations and learning to fuse shared and task-specific features, AutoSTL outperforms state-of-the-art hand-crafted models in both accuracy and convergence speed.

The Challenge of Spatio-Temporal Prediction

Effective ST prediction requires capturing complex dependencies across both space and time. Most current approaches suffer from three primary limitations:

  1. Tangled Relationships: It is difficult to manually determine the optimal balance between shared information and task-specific features.
  2. Rigid Architectures: Models often rely on a fixed stack of a single layer type (e.g., only LSTMs or only CNNs), which may not be optimal for diverse tasks.
  3. Scalability: Manually designing architectures for every new task or dataset is labor-intensive and error-prone.

Methodology: The AutoSTL Framework

AutoSTL addresses these challenges by replacing manual design with a scalable, automated search process.

1. Scalable Architecture

The model consists of a shared bottom for processing raw inputs, followed by multiple hidden layers and task-specific towers for final predictions. Each hidden layer contains task-specific modules and shared modules designed to capture intrinsic dependencies between tasks.

The AutoSTL architecture, illustrating the interaction between task-specific and shared modules through automated operation search and feature fusion.

2. Automated Operation Search and Feature Fusion

Instead of selecting a single algorithm, AutoSTL searches across a "Spatio-Temporal Operation Set" including GCNs, CNNs, RNNs, and Transformer variants. Using Differentiable Architecture Search (DARTS) with the Gumbel-Softmax trick, the model learns weights ($\alpha$) to select the best operations. Simultaneously, it learns fusion weights ($\beta$) to determine how much a task should rely on shared versus task-specific knowledge.

3. Training Pipeline

The framework operates in three distinct phases: pretraining the supernet, searching for the optimal architecture configuration, and retraining the final discovered model for deployment.

The three-stage training pipeline of AutoSTL: Pretrain, Search, and Retrain.

Experimental Evaluation

AutoSTL was evaluated on two real-world benchmarks: NYC Taxi (covering in-flow, out-flow, OD flow, and trip duration) and PEMSD4 (highway traffic flow and speed).

Key Results

  • State-of-the-Art Accuracy: AutoSTL achieved SOTA performance across all metrics. On the NYC Taxi dataset, it achieved an In-flow RMSE of 7.57, surpassing strong baselines like MTGNN (7.64). On PEMSD4, it reduced Flow RMSE to 27.36.
  • Heterogeneous Operations: The search process revealed that "hybrid" paths—combining different operations like GCNs for spatial relations and RNNs for temporal ones—are often superior to homogeneous designs.
  • Faster Convergence: AutoSTL converges significantly faster than traditional models, typically stabilizing within 32 epochs compared to over 70 for baselines.

Conclusion

AutoSTL demonstrates the power of automation in designing complex spatio-temporal models. By discovering optimal, task-specific hybrid architectures, it provides a scalable and high-performing solution for urban dynamics prediction. Future work will explore expanding the operation search space and applying the framework to broader domains like weather forecasting and public safety.

Summary updated

BibTeX
@inproceedings{zhang2023autostl,
  author = {Zijian Zhang and Xiangyu Zhao and Hao Miao and Chunxu Zhang and Hongwei Zhao and Junbo Zhang},
  title = {{AutoSTL: Automated Spatio-Temporal Multi-Task Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i4.25616},
}
Figure