Introduction
Forecasting multiple correlated time series is a cornerstone of modern data science, with applications ranging from urban traffic management to financial market prediction and retail inventory optimization. In these scenarios, individual time series are rarely independent; they are typically driven by a complex interplay of global temporal patterns—shared regularities like daily rush hours or seasonal shopping trends—and local temporal patterns—unique dynamics specific to a single sensor, stock, or product.
Existing forecasting methods often struggle to balance these two forces. Traditional statistical models like ARIMA focus on individual series, ignoring shared context. Conversely, modern deep learning models often learn a single set of shared parameters, which can "average out" and fail to capture highly heterogeneous local behaviors. Furthermore, many state-of-the-art methods, such as those based on Graph Neural Networks (GNNs), struggle with inductive forecasting: the ability to predict the future of new, unseen time series that were not part of the training set.
The DeepDGL Architecture
To address these limitations, this paper introduces DeepDGL (Deep Disentangled approach to Global and Local patterns). DeepDGL is an encoder-decoder framework designed to explicitly disentangle global and local features through a multi-component architecture.
1. Global Feature Encoder
The Global Feature Encoder captures dataset-wide trends using a Convolutional Transformer paired with a Vector Quantization (VQ) module. The VQ module maintains a discrete "codebook" of learned global temporal patterns. By mapping input series to the most relevant entries in this codebook, the model effectively injects a shared global context into every prediction, ensuring that common regularities are preserved.
2. Local Feature Encoder and Parameter Generation
Unlike standard models that use fixed shared weights, DeepDGL employs an adaptive parameter generation module. This module dynamically generates custom neural network weights (specifically for the final attention block) for each individual time series based on its unique context. This allows the model to adapt to the specific "quirks" of any given series without requiring a massive, static parameter space.
3. Contrastive Multi-horizon Coding (CMC)
To ensure true disentanglement, the authors implement Contrastive Multi-horizon Coding (CMC). This module maximizes the mutual information between a series-specific context variable and the series' representations. A KL-divergence regularizer serves as an information bottleneck, forcing the local context variable to discard redundant global information and focus solely on unique local dynamics.
4. Convolutional Transformer Decoder
Finally, a decoder merges the disentangled global and local representations to generate multi-horizon forecasts.
Experimental Evaluation
The authors evaluated DeepDGL on three large-scale real-world datasets: Electricity (370 series), Traffic (963 series), and Wiki (115,084 series). The model was tested in two scenarios:
- Transductive Forecasting: Predicting future steps for series seen during training.
- Inductive Forecasting: Predicting future steps for entirely new series held out during training.
Key Results
DeepDGL demonstrated superior performance across all benchmarks, outperforming classic models (TCN, DeepAR), GNNs (Graph WaveNet, MTGNN), and matrix factorization methods (DeepGLO).
- Accuracy Gains: On average, DeepDGL reduced the Mean Absolute Percentage Error (MAPE) by 9.7% in transductive tasks and 11.4% in inductive tasks compared to the strongest baselines.
- Generalization: The dynamic parameter generation allows DeepDGL to excel at inductive forecasting, a task where many node-ID-dependent models (like GNNs) typically fail.
- Qualitative Success: Case studies on the Wikipedia dataset showed that DeepDGL could capture sudden local anomalies and complex periodicities that shared-parameter models like FC-LSTM completely missed.
Conclusion
DeepDGL represents a significant step forward in multi-series forecasting by explicitly modeling the tension between global regularities and local specifics. By combining vector quantization for global patterns with adaptive parameter generation for local dynamics, it achieves a high degree of flexibility and generalization. Future work aims to explore time-variant parameter generation to capture even more complex, shifting local behaviors over time.
Summary updated