# 因果结构学习

因果结构学习从观测数据或干预数据中推断一组变量之间的因果图，通常是有向无环图（DAG）。由于仅凭观测数据通常只能识别出马尔可夫等价类（MEC）而非单个DAG，输出通常是表示所有具有相同条件独立性关系的DAG的完全部分有向无环图（CPDAG）。<sup>[1](https://link.springer.com/article/10.1007/s10208-022-09581-9)</sup> Marloes Maathuis及其同事于2010年发表在[Nature Methods](https://www.edgepedia.org/zh/nature-methods)上的IDA方法，正是以这种方式从观测数据中估计大规模系统中的干预效应。<sup>[2](https://doi.org/10.1038/nmeth0410-247)</sup>

| 关键事实 | 详情 |
|---|---|
| 典型输出 | 马尔可夫等价类（CPDAG），而非唯一的DAG；干预将其细化为I-MEC，若干预足够多则可得到完整的DAG<sup>[1](https://link.springer.com/article/10.1007/s10208-022-09581-9)</sup> |
| 核心假设 | 因果充分性（无未测量的混杂因素）、因果马尔可夫条件以及忠实性<sup>[3](https://medinform.jmir.org/2023/1/e38266)</sup> |
| NOTEARS约束 | 矩阵 \( W \) 为DAG当且仅当 \( h(W) = \mathrm{tr}(e^{W \circ W}) - d = 0 \)<sup>[4](https://doi.org/10.48550/arxiv.1803.01422)</sup> |
| 搜索复杂度 | 寻找得分最高的DAG是NP难问题<sup>[5](https://jmlr.org/papers/volume5/chickering04a/chickering04a.pdf)</sup> |
| 扩展瓶颈 | 对于20,000个基因的RNA-seq数据，PC的复杂度与 \( 2^{20000} \) 成正比，这是不可行的<sup>[3](https://medinform.jmir.org/2023/1/e38266)</sup> |
| 速度提升 | DAGMA的对数行列式无环性在实际运行中比迹指数和多项式刻画快约一个数量级<sup>[6](https://doi.org/10.48550/arxiv.2209.08037)</sup> |

## 工作原理

全局[马尔可夫性](https://www.edgepedia.org/zh/markov-property)质指出，图中的所有d-分离（判断变量何时统计独立的图论准则）在分布中都表现为条件独立性；忠实性恰好是其逆命题，即分布中的所有条件独立陈述都必须在图中表现为d-分离。<sup>[1](https://link.springer.com/article/10.1007/s10208-022-09581-9)</sup>

两种算法原理占据主导地位。基于约束的方法（如PC和FCI）通过检验条件独立性来构建骨架，然后利用定向规则为边定向。<sup>[7](https://ar5iv.labs.arxiv.org/html/1910.08527)</sup>基于得分的方法用预定义的得分（如BIC）评估候选图；寻找得分最高的DAG通常是NP难的，因此精确方法使用动态规划、A*式搜索或整数线性规划（例如GOBNILP）。<sup>[1](https://link.springer.com/article/10.1007/s10208-022-09581-9)</sup>要超越等价类、识别出完整DAG，需要受限的模型类：线性非高斯模型、等噪声方差的线性高斯模型、后非线性模型以及受限加性噪声模型是可识别的。<sup>[7](https://ar5iv.labs.arxiv.org/html/1910.08527)</sup>

## 实现方法

基于约束的运行从完全无向图开始，使用条件集基数递增的条件独立性检验递归删除边，然后定向v-结构（用于定向因果边的三节点模式）并应用Meek规则。<sup>[8](https://stat.ethz.ch/Manuscripts/buhlmann/pcalgo2.pdf)</sup>基于得分的运行（如GES）在线性高斯模型下以BIC为目标，贪婪地搜索CPDAG空间。<sup>[9](https://ar5iv.labs.arxiv.org/html/1906.02226)</sup>

NOTEARS引入的连续优化工作流分为三步：将约束问题转化为一系列无约束子问题，对其优化，并对得到的权重矩阵进行阈值化；无环性函数及其梯度仅需 \( O(d^{3}) \) 的矩阵指数运算。<sup>[4](https://doi.org/10.48550/arxiv.1803.01422)</sup>边提取使用0.3的阈值，遵循NOTEARS论文中的建议。<sup>[10](https://proceedings.mlr.press/v97/yu19a/yu19a.pdf)</sup>DAGMA放弃增广拉格朗日方法，转而采用中心路径（障碍）方法，其解在中心路径的极限处保证为DAG。<sup>[6](https://doi.org/10.48550/arxiv.2209.08037)</sup>

## 起源

SGS算法归功于Spirtes、Glymour和Scheines的著作《[因果性、预测与搜索](https://www.edgepedia.org/zh/mit-press)》（MIT Press，2001）。<sup>[11](https://doi.org/10.7551/mitpress/1754.001.0001)</sup>GES由David Maxwell Chickering于2002年在《基于贪婪搜索的最优结构识别》（JMLR）中提出。<sup>[22](https://www.jmlr.org/papers/volume3/chickering02b/chickering02b.pdf)</sup><sup> • </sup><sup>[12](https://causal-learn.readthedocs.io/en/latest/search_methods_index/Score-based%20causal%20discovery%20methods/GES.html)</sup>LiNGAM由Shohei Shimizu及其同事于2006年提出（JMLR）。<sup>[13](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-031017-100630)</sup>DirectLiNGAM由Shohei Shimizu及其同事于2011年提出（arXiv）。<sup>[14](https://doi.org/10.48550/arxiv.1101.2489)</sup>IDA由Marloes Maathuis及其同事于2010年提出（Nature Methods）。<sup>[2](https://doi.org/10.1038/nmeth0410-247)</sup>NOTEARS由Xun Zheng及其同事于2018年提出（arXiv）。<sup>[4](https://doi.org/10.48550/arxiv.1803.01422)</sup>DAG-GNN由Yue Yu及其同事于2019年提出（arXiv），<sup>[15](https://doi.org/10.48550/arxiv.1904.10098)</sup>GraN-DAG由Sébastien Lachapelle及其同事于2019年提出（arXiv），<sup>[16](https://doi.org/10.48550/arxiv.1906.02226)</sup>DYNOTEARS由Roxana Pamfil及其同事于2020年提出（arXiv）。<sup>[17](https://doi.org/10.48550/arxiv.2002.00498)</sup>DAGMA由Kevin Bello、Bryon Aragam和Pradeep Ravikumar于2022年提出（arXiv）。<sup>[6](https://doi.org/10.48550/arxiv.2209.08037)</sup>顺序无关的PC-Stable改进由Diego Colombo和Marloes Maathuis于2014年提出（arXiv）。<sup>[18](https://doi.org/10.5555/2627435.2750365)</sup>

## 变体

**基于约束。** FCI修改PC以检测未知混杂变量，并产生渐近正确的结果；RFCI跳过FCI中最耗时的步骤，以较高的假阳性率为代价换取速度。<sup>[3](https://medinform.jmir.org/2023/1/e38266)</sup>GFCI将提供骨架超图的GES与FCI的剪枝和定向相结合。<sup>[19](https://appliedcausalinference.github.io/aci_book/04-causal-discovery.html)</sup>

**基于得分与函数式。** 精确搜索（动态规划、A*、GOBNILP）以运行时间换取保证。<sup>[1](https://link.springer.com/article/10.1007/s10208-022-09581-9)</sup>LiNGAM和DirectLiNGAM等函数式方法利用非高斯性：DirectLiNGAM比ICA-LiNGAM产生更稳定可靠的结果，但计算较慢，且假设严格的线性和非高斯性。<sup>[20](https://arxiv.org/pdf/2407.13054)</sup>

**基于梯度与掩码式。** DAG-GNN使用变分自编码器，其编码器和解码器为图神经网络，得分为证据下界（ELBO），并推导出一种避免矩阵指数的替代无环性约束。<sup>[10](https://proceedings.mlr.press/v97/yu19a/yu19a.pdf)</sup>GraN-DAG将NOTEARS框架扩展到非线性关系，使用神经网络，在神经网络路径层面应用无环性论证。<sup>[9](https://ar5iv.labs.arxiv.org/html/1906.02226)</sup>GOLEM是一种基于似然的连续优化方法，带有软稀疏性和DAG约束，使用Adam和GPU加速，并通过后处理去除低权重边。<sup>[20](https://arxiv.org/pdf/2407.13054)</sup>DAGMA用对数行列式（[M-矩阵](https://www.edgepedia.org/zh/m-matrix)）刻画替代迹指数无环性，能更好地检测大环，梯度性质更好，运行速度约快一个数量级。<sup>[6](https://doi.org/10.48550/arxiv.2209.08037)</sup>

## 应用

两种结构度量是标准的：结构汉明距离（SHD）计算缺失边、误检边和反向边的数量，结构干预距离（SID）计算干预分布会被错误计算的变量对数量。<sup>[9](https://ar5iv.labs.arxiv.org/html/1906.02226)</sup>

在 \( d \in \{10, 20, 50, 100\} \) 和 \( n \in \{20, 1000\} \) 的合成Erdős-Rényi图和无标度图上，NOTEARS在高斯、指数和Gumbel噪声下均优于快速贪婪搜索，且差距随节点数和边密度增大而增大。<sup>[4](https://doi.org/10.48550/arxiv.1803.01422)</sup>Sachs蛋白质信号数据集是常用的真实世界基准，已发表的结果并不一致：NOTEARS论文将其视为 \( n = 7466 \)、\( d = 11 \)，有20条真实边，NOTEARS估计出16条边，SHD为22；而MCSL论文使用853个样本的观测子集，有17条真实边，MCSL-MLP和CAM取得了最佳SHD 12，NOTEARS为19。<sup>[4](https://doi.org/10.48550/arxiv.1803.01422)</sup><sup> • </sup><sup>[7](https://ar5iv.labs.arxiv.org/html/1910.08527)</sup>

文献记载最充分的应用在生物学领域。IDA的开发目的是从观测数据预测大规模系统中的因果效应，发表在Nature Methods上。<sup>[2](https://doi.org/10.1038/nmeth0410-247)</sup>在基因调控网络和脑连接网络中，基于机器学习的方法提供了与传统方法相当的结果，同时具有更高效的时间复杂度和可扩展性；NOBEARS通过针对基因表达数据的快速多项式回归约束改进了NOTEARS的可扩展性。<sup>[3](https://medinform.jmir.org/2023/1/e38266)</sup>

## 局限与替代方案

**潜在混杂因素与选择偏差。** PC假设无混杂因素；FCI即使在存在混杂因素时也能给出渐近正确的结果，但两者输出的都是等价类而非完整的因果信息。<sup>[21](https://public-pages-files-2025.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00524/pdf)</sup>

**忠实性与优化失败。** 当两条因果路径相互抵消时，忠实性被违反，使得节点在统计上看似独立但并非d-分离。<sup>[19](https://appliedcausalinference.github.io/aci_book/04-causal-discovery.html)</sup>基于梯度的方法将离散搜索松弛为连续搜索，但由此产生的非凸问题可能陷入局部极小值。<sup>[1](https://link.springer.com/article/10.1007/s10208-022-09581-9)</sup>Wei及其同事表明NOTEARS不满足Karush-Kuhn-Tucker正则性条件，这促成了NOFEARS的提出。<sup>[3](https://medinform.jmir.org/2023/1/e38266)</sup>Kaiser和Sipos（2021）分析了NOTEARS缺乏尺度不变性的问题，并得出结论：这一局限使NOTEARS不适合从数据中识别真实的因果关系；指数、对数行列式和多项式DAG约束在归一化数据上表现不佳，因为它们依赖于变量间的尺度信息（Reisach等，2021）。<sup>[20](https://arxiv.org/pdf/2407.13054)</sup>

**替代方案。** 干预数据将可识别性从MEC细化为I-MEC，若干预足够多，DAG是完全可识别的。<sup>[1](https://link.springer.com/article/10.1007/s10208-022-09581-9)</sup>函数式因果模型（LiNGAM、ANM、PNL）能够区分等价类内的DAG，因为噪声-原因独立性仅在真实方向上成立，但它们通常无法处理潜在混杂因素，且非线性方法仅在数十个变量上可行。<sup>[21](https://public-pages-files-2025.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00524/pdf)</sup>对于时间序列，PCMCI将MCI检验纳入[PC算法](https://www.edgepedia.org/zh/pc-algorithm)以检测同期和时滞效应，DYNOTEARS处理瞬时和延迟因果关系。<sup>[20](https://arxiv.org/pdf/2407.13054)</sup>

可扩展性是实际约束。对于稀疏高维DAG，即使 \( p = O(n^{a}) \) 对任意有限 \( a \) 成立，PC也是渐近一致的，<sup>[8](https://stat.ethz.ch/Manuscripts/buhlmann/pcalgo2.pdf)</sup>但其复杂度随变量数指数增长，且PC、GES和GFCI在超过100个变量时需要相当长的时间。<sup>[3](https://medinform.jmir.org/2023/1/e38266)</sup>对于线性关系，PC和GES在稀疏图上可扩展到数万个变量。<sup>[21](https://public-pages-files-2025.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00524/pdf)</sup>

## References

1. [Causal Structure Learning: A Combinatorial Perspective](https://link.springer.com/article/10.1007/s10208-022-09581-9)
2. [Marloes H Maathuis and colleagues (2010). Predicting causal effects in large-scale systems from observational data. Nature Methods.](https://doi.org/10.1038/nmeth0410-247)
3. [Scalable Causal Structure Learning: Scoping Review of Traditional and Deep Learning Algorithms and New Opportunities in Biomedicine (JMIR Medical Informatics, 2023)](https://medinform.jmir.org/2023/1/e38266)
4. [Zheng, Xun and colleagues (2018). DAGs with NO TEARS: Continuous Optimization for Structure Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1803.01422)
5. [Large-Sample Learning of Bayesian Networks is NP-Hard](https://jmlr.org/papers/volume5/chickering04a/chickering04a.pdf)
6. [Bello, Kevin, Aragam, Bryon, Ravikumar, Pradeep (2022). DAGMA: Learning DAGs via M-matrices and a Log-Determinant Acyclicity Characterization. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2209.08037)
7. [Masked Gradient-Based Causal Structure Learning (MCSL)](https://ar5iv.labs.arxiv.org/html/1910.08527)
8. [Estimating High-Dimensional Directed Acyclic Graphs With the PC-Algorithm](https://stat.ethz.ch/Manuscripts/buhlmann/pcalgo2.pdf)
9. [Gradient-Based Neural DAG Learning (GraN-DAG)](https://ar5iv.labs.arxiv.org/html/1906.02226)
10. [DAG-GNN: DAG Structure Learning with Graph Neural Networks (ICML 2019)](https://proceedings.mlr.press/v97/yu19a/yu19a.pdf)
11. [Peter Spirtes, Clark Glymour, Richard Scheines (2001). Causation, Prediction, and Search. The MIT Press eBooks.](https://doi.org/10.7551/mitpress/1754.001.0001)
12. [GES with the BIC score or generalized score, causal-learn documentation](https://causal-learn.readthedocs.io/en/latest/search_methods_index/Score-based%20causal%20discovery%20methods/GES.html)
13. [Structure Learning in Graphical Modeling (Annual Review of Statistics and Its Application, Drton & Maathuis 2017)](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-031017-100630)
14. [Shimizu, Shohei and colleagues (2011). DirectLiNGAM: A direct method for learning a linear non-Gaussian structural equation model. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1101.2489)
15. [Yu, Yue and colleagues (2019). DAG-GNN: DAG Structure Learning with Graph Neural Networks. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1904.10098)
16. [Lachapelle, Sébastien and colleagues (2019). Gradient-Based Neural DAG Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1906.02226)
17. [Pamfil, Roxana and colleagues (2020). DYNOTEARS: Structure Learning from Time-Series Data. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2002.00498)
18. [Diego Colombo, Marloes H. Maathuis (2014). Order-independent constraint-based causal structure learning. arXiv (Cornell University).](https://doi.org/10.5555/2627435.2750365)
19. [Applied Causal Inference, Chapter 4: Causal Discovery](https://appliedcausalinference.github.io/aci_book/04-causal-discovery.html)
20. [Survey of causal discovery algorithms (2024)](https://arxiv.org/pdf/2407.13054)
21. [Review of Causal Discovery Methods Based on Graphical Models (Frontiers in Genetics, 2019)](https://public-pages-files-2025.frontiersin.org/journals/genetics/articles/10.3389/fgene.2019.00524/pdf)
22. [Chickering02b (jmlr.org)](https://www.jmlr.org/papers/volume3/chickering02b/chickering02b.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/causal-structure-learning

English original: https://www.edgepedia.org/causal-structure-learning
