Causal Discovery with Reinforcement Learning

Shengyu Zhu, Ignavier Ng, Zhitang Chen
6/11/2019
cs.LGstat.ML
rl

Official code: huawei-noah/trustworthyAI (1,154 stars, Python, Apache-2.0, last commit 2025-11-13).

Abstract

Discovering causal structure among a set of variables is a fundamental problem in many empirical sciences. Traditional score-based casual discovery methods rely on various local heuristics to search for a Directed Acyclic Graph (DAG) according to a predefined score function.

Show full abstract

While these methods, e.g., greedy equivalence search, may have attractive results with infinite samples and certain model assumptions, they are usually less satisfactory in practice due to finite data and possible violation of assumptions. Motivated by recent advances in neural combinatorial optimization, we propose to use Reinforcement Learning (RL) to search for the DAG with the best scoring. Our encoder-decoder model takes observable data as input and generates graph adjacency matrices that are used to compute rewards. The reward incorporates both the predefined score function and two penalty terms for enforcing acyclicity. In contrast with typical RL applications where the goal is to learn a policy, we use RL as a search strategy and our final output would be the graph, among all graphs generated during training, that achieves the best reward. We conduct experiments on both synthetic and real datasets, and show that the proposed approach not only has an improved search ability but also allows a flexible score function under the acyclicity constraint.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Trustworthy AI related projects

1,154255Python, Jupyter Notebook1 years agoApache-2.0
causal-discoverycausal-inferencecausalitygraphindependence-tests+4 more

Similar Papers

Cite this paper

@article{zhu2019causal,
  title  = {Causal Discovery with Reinforcement Learning},
  author = {Shengyu Zhu and Ignavier Ng and Zhitang Chen},
  year   = {2019},
  eprint = {1906.04477},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.04477}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.04477.svg)](https://codeofpaper.com/paper/1906.04477)

Discussion