Structural Knowledge Informed Continual Multivariate Time Series Forecasting

Zijie Pan, Yushan Jiang, Dongjin Song, Sahil Garg, Kashif Rasul, Anderson Schneider, Yuriy Nevmyvaka · DOI

Introduction

Multivariate time series (MTS) forecasting is critical for applications ranging from urban traffic management to financial market analysis. A core challenge in these domains is modeling the intricate, often hidden dependencies between variables. However, real-world data is rarely stationary; it typically arrives in distinct "regimes"—periods characterized by specific patterns and variable relationships, such as seasonal shifts in energy demand or changes in traffic flow due to road construction.

When models are updated on new regimes, they often suffer from "catastrophic forgetting," where the knowledge of previous regimes is overwritten. While joint training on all historical data is a potential solution, it is often impractical due to computational costs or data privacy constraints. This paper introduces SKI-CL (Structural Knowledge Informed Continual Learning), a framework designed to maintain high forecasting accuracy across shifting data regimes by leveraging external structural knowledge and a diversity-focused memory strategy.

The SKI-CL Framework

The SKI-CL framework addresses the limitations of standard continual learning by integrating three innovative components:

1. Dynamic Graph Inference

Unlike traditional models that assume a static relationship between variables, SKI-CL employs a dynamic graph inference module. This module analyzes specific temporal windows to infer an adjacency matrix on the fly. This flexibility allows the model to adapt to subtle intra-regime variations while providing a basis for modeling inter-regime shifts.

2. Structural Knowledge Regularization

A key innovation of SKI-CL is the use of external structural knowledge (e.g., physical distances between sensors or known domain correlations) as a regularizer. A consistency loss function forces the learned dynamic graphs to align with this prior knowledge. This acts as an "anchor," preventing the model's learned dependencies from drifting too far into noise during sequential updates.

Overview of the SKI-CL sequential training and testing pipeline, highlighting the memory update strategy and loss functions.

3. Representation-Matching Memory Replay

To mitigate forgetting, SKI-CL maintains a compact memory buffer of past data. The selection process is governed by the principle of maximum entropy and Correlation Alignment (CORAL). By partitioning data into diverse "modes" and selecting the most representative samples from each, the model ensures the buffer covers a wide range of temporal and relational patterns, maximizing the utility of the limited storage.

Experimental Evaluation

The authors evaluated SKI-CL on four benchmarks adapted for continual learning:

  • Traffic-CL: Urban traffic data using spatial proximity as structural knowledge.
  • Solar-CL: Solar power generation across different US states, using geographic distance as a prior.
  • HAR-CL: Human Activity Recognition data where regimes are defined by activity types.
  • Synthetic-CL: A controlled environment with known, shifting ground-truth dependency graphs.

Performance was measured using Average Performance (AP) and Average Forgetting (AF) across metrics like Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE).

Results and Key Insights

SKI-CL consistently outperformed state-of-the-art baselines, including PatchTST, TimesNet, and iTransformer. On the Traffic-CL dataset, SKI-CL achieved an AP MAE of 15.23, significantly lower than competing models.

Qualitative and quantitative comparison of SKI-CL against baselines, showing superior structure recovery and forecasting performance.

Key Findings:

  • Knowledge as an Anchor: External structural knowledge serves as a vital reference point, helping the model distinguish between temporary noise and fundamental regime shifts.
  • Diversity Over Recency: Explicitly seeking diverse modes in the representation space allows a tiny fraction of data to effectively represent an entire regime.
  • Faithful Structure Recovery: Qualitative heatmaps demonstrate that SKI-CL is uniquely capable of recovering dependency graphs that match ground-truth structural knowledge across multiple regimes, whereas baselines often fail to capture these shifts.

Conclusion and Future Work

SKI-CL represents a significant step forward in continual MTS forecasting. By combining dynamic graph learning with structural priors and a sophisticated memory replay strategy, it effectively combats catastrophic forgetting. Future research will explore automated discovery of structural knowledge and testing the framework's scalability over hundreds of sequential tasks.

Summary updated

BibTeX
@misc{pan2024structural,
  author = {Zijie Pan and Yushan Jiang and Dongjin Song and Sahil Garg and Kashif Rasul and Anderson Schneider and Yuriy Nevmyvaka},
  title = {{Structural Knowledge Informed Continual Multivariate Time Series Forecasting}},
  year = {2024},
  eprint = {2402.12722},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.12722},
}
Figure