TL;DR
This paper introduces a novel approach for time-series forecasting under domain shift, called Granger Causality Alignment (GCA). GCA leverages the idea that underlying causal structures are more stable than observed data distributions across domains, enabling more robust and interpretable transfer learning for forecasting tasks.
What Problem Does This Paper Address?
The paper tackles the challenge of semi-supervised domain adaptation for time-series forecasting. In many real-world scenarios, we have a well-performing forecasting model trained on a "source" domain (e.g., historical weather data from one city) but need to apply it to a "target" domain with a different data distribution (e.g., weather data from another city). Traditional domain adaptation methods, often designed for static data, struggle with the complex temporal dependencies, time lags, and varying data distributions inherent in time-series data. These methods typically assume a "covariate shift," where only the marginal distribution of features changes, but the conditional distribution of the target variable given features remains stable. However, for time-series, even small changes in past observations can lead to significant shifts in future predictions, violating this assumption. The authors propose that underlying causal relationships, rather than just statistical correlations, are more invariant across domains and can be exploited for better transfer.
Methods
The core of the proposed solution is the Granger Causality Alignment (GCA) model. GCA operates on the principle of Causal Conditional Shift Assumption, which posits that while the conditional distribution of time-series data might change across domains, the underlying causal structures remain stable.
Key components of GCA include:
- Recurrent Granger Causality Reconstruction Module: This module uses a variational autoencoder (VAE) framework to learn and reconstruct the Granger-causal structures from the source and target domains. It treats causal structures as latent variables, allowing for the discovery of directed dependencies between time-series variables at different lags.
- Domain-Sensitive Granger Causality Based Prediction Module: This module models how the conditional distribution changes across domains, utilizing the learned causal structures. It incorporates domain-specific latent variables to adapt to variations.
- Granger Causality Discrepancy Regularization: This component encourages the learned causal structures from the source and target domains to be similar, bridging the domain gap. A relaxed version with gradient stopping is also proposed to prevent negative transfer.
- Sparsity-Inducing Penalty: To avoid learning spurious causal relationships, an L1/L2 norm penalty is applied to the causal structures, promoting sparsity and interpretability.
The overall objective is to minimize a total loss function that includes reconstruction losses for both domains, a discrepancy regularization term, and sparsity penalties.
Datasets
The authors evaluate their method on a combination of simulated and real-world datasets:
- Simulation Datasets: Three simulated domains were created with similar causal graphs but different noise variances and sampling intervals to mimic domain shift.
- Real-world Datasets:
- Air Quality Forecasting Dataset: Data from four Chinese cities (Beijing, Tianjin, Guangzhou, Shenzhen) with air quality and meteorological features.
- Human Motion Capture Dataset (Human3.6M): Used for cross-domain human motion prediction with three activities ("Walking," "Greeting," "Eating") as domains.
- PPG-DaLiA Dataset: Features physiological and motion data for heart rate estimation, with four activities ("Cycling," "Sitting," "Working," "Driving") as domains.
- Electricity Transformer Temperature Dataset (ETT): Data from two stations.
- Electricity Load Diagrams Datasets: Electricity consumption data from 90 substations, divided into four domains based on months.
- PEMS-BAY Dataset: Traffic speed data from sensors, divided into three domains based on months.
Key Insights and Ideas
- Causality as a Stable Bridge: The fundamental insight is that underlying causal relationships are more invariant across domains than observed statistical correlations. This makes causality a powerful tool for transferring knowledge in time-series forecasting.
- Beyond Covariate Shift: The paper highlights the limitations of traditional domain adaptation assumptions (like covariate shift) for time-series data, where complex temporal dependencies make these assumptions brittle.
- Interpretable Forecasting: By explicitly modeling causal structures, GCA not only aims for accurate predictions but also provides interpretable insights into the relationships driving the time-series.
- Addressing Negative Transfer: The proposed Granger Causality Discrepancy Regularization with gradient stopping is crucial for preventing the model from learning incorrect causal structures in the target domain and transferring them negatively from the source.
Key Results
- Superior Performance: GCA consistently outperforms several state-of-the-art baselines (including LSTM-based methods, R-DANN, SASA, and DAF) on both simulated and real-world datasets across various tasks like air quality forecasting, human motion forecasting, and electricity load forecasting.
- Significant Improvements: The paper reports substantial improvements in Mean Squared Error (MSE) and Mean Absolute Error (MAE) compared to baselines, often by a large margin. For instance, on simulated datasets, GCA shows a remarkable MSE improvement.
- Faster Convergence: GCA demonstrates faster convergence speeds compared to other methods, attributed to its ability to focus on relevant causal structures.
- Robustness: Ablation studies show that the Granger Causality alignment component is critical for performance, and the model remains robust even with missing data.
Limitations and Future Work
- Time Lag as Prior: The current GCA model requires the time lag to be specified as a prior or hyperparameter. The authors suggest that exploring how to learn the Granger Causality with adaptive time lag would be a valuable future direction.
- Data Requirements: While GCA is designed for semi-supervised settings, its performance might still be influenced by the quality and quantity of labeled target domain data.
- Complexity of Real-world Systems: For highly complex systems with numerous latent factors and less clear causal relationships (e.g., electricity load data), the performance gains might be less pronounced, suggesting further research into handling such complexities.
Summary updated