Causal Forecasting: Generalization Bounds for Autoregressive Models

Leena C. Vankadara, Philipp Michael Faller, Lenon Minorics, Debarghya Ghoshdastidar, Dominik Janzing

TL;DR

This paper introduces a formal framework for "causal learning theory" in time-series forecasting, specifically for Vector Autoregressive (VAR) models. It provides theoretical guarantees and bounds for how well forecasting models can generalize from observed data to predict outcomes under interventions, revealing that statistical and causal prediction performance can diverge significantly, even under simplifying assumptions.

What Problem Does This Paper Address?

Forecasting is crucial across many domains, but traditional methods often focus on statistical associations without fully understanding their causal implications. This is problematic because a model that excels at predicting based on observed patterns might fail dramatically when faced with interventions (e.g., policy changes, system modifications) that alter the underlying data-generating process. Even with strong assumptions like causal sufficiency (no unobserved common causes), the statistical risk (error on observed data) can be a poor proxy for the causal risk (error under interventions). This paper aims to bridge this gap by developing theoretical tools to quantify and bound this "causal generalization" ability for autoregressive models.

Methods

The authors introduce a "causal learning theory for forecasting" framework. This involves defining statistical and causal forecast errors. The core of their approach is to derive a characterization of the difference between these two types of errors. For VAR models, they leverage the mathematical properties of companion matrices and their eigenvalues, connecting them to Schur polynomials. This allows them to derive theoretical bounds on causal generalization. They also relate this problem to covariate shift in machine learning and provide finite-sample generalization bounds for VAR models.

Datasets

The paper uses three real-world datasets for evaluation:

  • m4 hourly: A large-scale hourly time series dataset.
  • electricity: Hourly electricity consumption data.
  • traffic: Traffic lane occupancy rates.

For creating interventional distributions without a generative model, they employ two strategies:

  • Across-ts: Replacing a time step's value by sampling from all time-series at that step.
  • Within-ts: Replacing a time step's value by sampling from previous values of the same time series.

Key Insights and Ideas

  • Statistical vs. Causal Risk Divergence: Even for simple autoregressive models and under causal sufficiency, statistical prediction accuracy does not guarantee causal prediction accuracy. The difference can be substantial.
  • The Role of Correlation: The "stability" of the underlying time-series process, quantified by the condition number of its autocovariance matrix, plays a crucial role in how well a model generalizes causally. Processes closer to instability (higher condition number) pose greater challenges for causal generalization.
  • Theoretical Guarantees for Causal Forecasting: This work provides the first theoretical guarantees for causal generalization in the time-series setting, offering a formal way to assess a model's reliability under interventions.
  • Companion Matrices and Schur Polynomials: The paper elegantly uses the mathematical properties of companion matrices and their connection to Schur polynomials to derive precise characterizations of causal and statistical error differences.

Key Results

  • Characterization of Error Difference: The difference between causal and statistical errors in VAR models is shown to be controlled by the condition number of the autocovariance matrix.
  • Finite-Sample Bounds: The authors derive finite-sample uniform convergence bounds for causal generalization in VAR models, demonstrating that with sufficient data, causal error can be bounded by statistical error plus a complexity term.
  • Empirical Validation: Simulations and experiments on real-world datasets (m4 hourly, electricity, traffic) using deep neural network architectures (DeepAR, Wavenet, Transformer) show that causal disagreement between models can be significantly higher than their statistical disagreement, validating the theoretical findings.
  • Model Performance: Deep learning models exhibit varying degrees of causal disagreement, suggesting that model architecture and data characteristics influence causal robustness.

Limitations and Future Work

  • Dataset Limitations: The authors acknowledge that the real-world datasets used might not be causally sufficient, and the models were not extensively tuned. They also lacked ground truth for interventions.
  • Model Complexity: While the paper focuses on VAR models for theoretical tractability, real-world forecasting often involves more complex models. Extending the causal learning theory to these models is a natural next step.
  • Intervention Types: The current work primarily considers atomic interventions. Future work could explore more complex intervention scenarios.
  • Uncertainty as an Indicator: The paper suggests that the width of prediction intervals can serve as an indicator of causal risk, a direction for future research.
  • Developing Causal-Specific Architectures: The observed differences in causal robustness across deep learning models motivate the development of architectures specifically designed for causal forecasting.

Summary updated

Abstract

Despite the increasing relevance of forecasting methods, causal implications of these algorithms remain largely unexplored. This is concerning considering that, even under simplifying assumptions such as causal sufficiency, the statistical risk of a model can differ significantly from its \textit{causal risk}. Here, we study the problem of \textit{causal generalization} -- generalizing from the observational to interventional distributions -- in forecasting. Our goal is to find answers to the question: How does the efficacy of an autoregressive (VAR) model in predicting statistical associations compare with its ability to predict under interventions? To this end, we introduce the framework of \textit{causal learning theory} for forecasting. Using this framework, we obtain a characterization of the difference between statistical and causal risks, which helps identify sources of divergence between them. Under causal sufficiency, the problem of causal generalization amounts to learning under covariate shifts, albeit with additional structure (restriction to interventional distributions under the VAR model). This structure allows us to obtain uniform convergence bounds on causal generalizability for the class of VAR models. To the best of our knowledge, this is the first work that provides theoretical guarantees for causal generalization in the time-series setting.
BibTeX
@inproceedings{vankadara2022causal,
  author = {Leena C. Vankadara and Philipp Michael Faller and Lenon Minorics and Debarghya Ghoshdastidar and Dominik Janzing},
  title = {{Causal Forecasting: Generalization Bounds for Autoregressive Models}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=SZI98ttlUE},
}
Figure