Meta-D2AG: Causal Graph Learning with Interventional Dynamic Data

Tian Gao, Songtao Lu, Junkyu Lee, Elliot Nelson, Debarun Bhattacharjya, Yue Yu, Miao LiuNeurIPS 2025

Causal discovery—the art of figuring out "what causes what" from data—is challenging enough when the world stands still. However, in real-world scenarios, systems are rarely stationary. Sensors fail, seasonal trends shift, and human policies change the rules of the game. Most existing algorithms for learning Directed Acyclic Graphs (DAGs) assume the underlying system is stable, leaving them flat-footed when the data distribution shifts.

Recent research introduces Meta-D$^2$AG, a novel framework designed to learn causal structures from non-stationary, interventional time series data. Rather than treating change as a nuisance, Meta-D$^2$AG leverages it as a source of information to better understand the underlying causal dynamics.

The Challenge of Non-Stationarity

Traditional causal discovery often relies on Dynamic Bayesian Networks (DBNs) to model how variables interact over time. However, these models typically assume stationarity: the idea that the causal rules remain constant.

In reality, practitioners frequently deal with distribution shifts. For example, a retail model might see the causal links between weather and sales change drastically during a holiday promotion (an external intervention). If a standard algorithm is applied, there are two suboptimal choices:

  1. Assume everything is the same and generate an inaccurate "average" graph.
  2. Re-learn the graph from scratch every time something changes, discarding valuable historical knowledge.

The authors tackle the challenge of learning these shifting DAGs in an online setting, where data arrives sequentially and the system must adapt to new "domains" (interventions or shifts) on the fly.

Methodology: The Meta-D$^2$AG Framework

The core of Meta-D$^2$AG is a bilevel optimization framework based on meta-learning (or "learning to learn"). It separates the learning process into two distinct parameter sets:

  • Shared Parameters ($\Phi_{shared}$): Learned in the outer loop (meta-training), these parameters are invariant across different time periods or domains. They capture the fundamental causal "skeleton" that persists despite external changes.
  • Private Parameters ($\Phi_{private}$): Learned in the inner loop (task-specific), these parameters adapt to the specific nuances of the current domain.
Overview of the Meta-D2AG offline and online learning phases.

To apply this to DAGs, the authors utilize a Hadamard product approach to construct the final graph: $\mathcal{G}_m = W_{shared} \circ W_{private, m}$. The shared matrix $W_{shared}$ acts as a structural prior or mask, while the private matrix $W_{private, m}$ fine-tunes the weights for the specific domain $m$.

Because enforcing acyclicity (ensuring the graph has no loops) is computationally expensive, the authors employ a penalty-based first-order optimization. For the online setting, they introduce a sliding window formulation. Instead of optimizing over the entire history, the model focuses on a recent window of domains. This keeps the computation efficient and allows the model to "forget" outdated states.

Experimental Setup

The authors evaluated Meta-D$^2$AG across two primary environments:

  1. Synthetic Time Series: Non-stationary data was generated using Erdos-Renyi models for both intra-slice (instantaneous) and inter-slice (time-delayed) connections, testing both linear and non-linear relationships.
  2. Sprites World: A Python-based Reinforcement Learning (RL) environment where objects of various shapes interact in a 2D space. Scenarios with 5 and 10 objects were created, governed by hidden structural equations that dictated the "causal" rules of movement.

Key Insights and Results

Meta-D$^2$AG consistently outperformed state-of-the-art baselines like DYNOTEARS, IDYNO, and GOLEM in both accuracy and efficiency.

  • Interventions as Domains: The paper brilliantly frames distribution shifts as "interventions." By treating each shift as a new domain, the model uses the differences between domains to better identify causal directions—leveraging "identifiability from interventions."
  • The Power of the Prior: By maintaining a shared parameter set, the model doesn't start from scratch when a shift occurs. It already knows the likely causal candidates, allowing it to reach high accuracy with a remarkably low sample requirement.
  • Superior Accuracy: In the Sprites World environment (10 objects), Meta-D$^2$AG achieved a Structural Hamming Distance (SHD) of 9.1, significantly outperforming the next best method, IDYNO (12.0), and standard methods like DYNOTEARS (39.0).
  • Theoretical Rigor: The authors provide a formal regret bound, proving that the error in their online learning process converges at an optimal rate, matching the best possible performance for single-level non-convex problems.

Limitations and Future Work

The primary limitation acknowledged by the authors is the reliance on predefined domains. Currently, the algorithm requires domain labels to know exactly when a distribution shift has occurred.

Future work aims to address this by:

  • Automatic Shift Detection: Integrating concept drift detection algorithms so the model can automatically partition the time series into domains without human intervention.
  • Irregular Sampling: Adapting the framework to handle time series where data points are collected at uneven intervals.

By bridging the gap between meta-learning and causal discovery, Meta-D$^2$AG provides a robust blueprint for AI systems capable of understanding cause-and-effect in dynamic, ever-changing environments.

Summary updated

BibTeX
@inproceedings{gao2025meta,
  author = {Tian Gao and Songtao Lu and Junkyu Lee and Elliot Nelson and Debarun Bhattacharjya and Yue Yu and Miao Liu},
  title = {{Meta-D2AG: Causal Graph Learning with Interventional Dynamic Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=YFZOIra4OE},
}
Figure