Get Rid of Task Isolation: A Continuous Multi-task Spatio-Temporal Learning Framework

Zhongchao Yi, Zhengyang Zhou, Qihe Huang, Yanjiang Chen, Liheng Yu, Xu Wang, Yang Wang · OpenReview

TL;DR

The Continuous Multi-task Spatio-Temporal learning framework (CMuST) breaks the isolation of traditional single-task urban forecasting models by enabling cooperative, continuous learning across multiple data domains. By disentangling cross-dimensional interactions and dynamically freezing stable model weights, CMuST significantly improves prediction accuracy and elegantly solves the "cold-start" problem for newly introduced urban tasks.

What Problem Does This Paper Address?

Spatiotemporal (ST) forecasting—such as predicting traffic flow, taxi demand, or accident risks—is vital for smart city infrastructure. However, traditional deep learning solutions treat these tasks in isolation, assuming that data for each task is independently and identically distributed.

This approach creates a major bottleneck: urban systems are inherently dynamic and interconnected. For instance, a new commercial center alters both traffic volume and speed patterns simultaneously. Training separate models for every single task is computationally expensive, ignores valuable cross-task correlations, and fails miserably in data-scarce scenarios or when a brand-new task is introduced (the "cold-start" problem). The authors address this gap by proposing a framework that treats urban intelligence as a holistic, continuously evolving multi-task system.

Methods

CMuST integrates two novel components to achieve continuous multi-task spatiotemporal intelligence:

  1. Multi-dimensional Spatio-Temporal Interaction Network (MSTI): Instead of just analyzing raw observations, MSTI explicitly models the relationships between the context (spatial coordinates and temporal indicators like time-of-day/day-of-week) and the main observations. It utilizes multi-head cross-attention mechanisms to disentangle spatial-context and temporal-context interactions, alongside standard self-attention blocks to capture localized spatial and temporal dynamics.

  2. Rolling Adaptation Training Scheme (RoAda): To learn continuously without forgetting previous tasks, RoAda introduces a two-stage training process:

  3. Task Summarization Prompts: An AutoEncoder compresses periodic data patterns into unique, task-specific prompts, preserving the individual identity of each task.

  4. Weight Behavior Modeling: As the model rolls from one task to the next, it tracks the variance of its learnable weights. Weights that remain highly stable (low variance) across tasks are frozen to lock in universal urban commonalities. Weights with high variance remain dynamic, allowing the model to adapt to task-specific nuances.
Framework overview of CMuST showing the interaction network and rolling adaptation scheme

Datasets

The authors evaluated CMuST by constructing multi-task benchmarks across three major cities:

  • NYC: Three months of crowd flow and taxi data in Manhattan, spanning 4 tasks: Crowd In, Crowd Out, Taxi Pick, and Taxi Drop.
  • SIP (Suzhou Industrial Park): Three months of traffic data across 108 nodes, spanning 2 tasks: Traffic Flow and Traffic Speed.
  • Chicago: Six months of traffic and accident data across 220 grids, spanning 3 tasks: Taxi Pick, Taxi Drop, and Risk Score (traffic accidents).

Key Insights and Ideas

  • Parameter Freezing via Variance: Instead of using complex regularization terms to prevent catastrophic forgetting, CMuST simply monitors weight variance during sequential training. This elegantly separates the "shared urban brain" (stable weights) from "task-specific skills" (dynamic weights).
  • Collective Intelligence Overcomes Data Scarcity: By learning the underlying spatiotemporal structure of a city from data-rich tasks (like taxi flows), the model can accurately predict data-sparse tasks (like accident risks) within the same geographic space.
  • Task Rolling for Green Computing: Rather than jointly training a massive model on all datasets simultaneously—which scales poorly—CMuST trains on tasks sequentially, drastically reducing repeated training overhead.

Key Results

CMuST was tested against a wide array of single-task models (e.g., GWNET, STGCN, GMAN) and multi-task/unified models (e.g., MTGNN, STEP, PromptST, UniST).

  • State-of-the-Art Performance: CMuST consistently outperformed all baselines across almost all metrics (MAE and MAPE). On average, multi-task frameworks improved performance by 8.51% over single-task alternatives.
  • Robustness to Sparse Data: When spatial nodes were slashed to 25% or temporal sampling intervals were quadrupled, CMuST maintained significantly lower error rates than its competitors by leveraging knowledge from parallel tasks.
  • Cold-Start Efficiency: In cold-start scenarios (introducing a new task after training on others), CMuST adapted significantly faster and achieved lower error rates than models trained from scratch, proving its strong generalization capability.

Limitations and Future Work

The authors note that their current evaluation is confined to a single urban sector: transportation. While the framework successfully shares knowledge between traffic speed, flow, and accident risk, it has not yet been tested across entirely distinct urban domains. Future work will focus on expanding CMuST to model diverse urban elements simultaneously, such as linking transportation dynamics with electricity consumption, air pollution, and weather patterns.

Summary updated

BibTeX
@inproceedings{yi2024get,
  author = {Zhongchao Yi and Zhengyang Zhou and Qihe Huang and Yanjiang Chen and Liheng Yu and Xu Wang and Yang Wang},
  title = {{Get Rid of Task Isolation: A Continuous Multi-task Spatio-Temporal Learning Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=tnh4LK72yj},
}
Figure