BUILD with Precision: Bottom-Up Inference of Linear DAGs

Hamed Ajorlou, Samuel Rey, Gonzalo Mateos, Geert Leus, Antonio G. MarquesarXiv 2025 · DOI

Abstract

Reconstructing Directed Acyclic Graphs (DAGs) from observational data is a fundamental challenge in causal inference. This paper introduces BUILD (Bottom-Up Inference of Linear DAGs), a deterministic algorithm designed for linear Gaussian models with equal noise variance. BUILD identifies leaf nodes and their parents directly from the precision matrix of the data. To mitigate the "snowball effect" of error accumulation in deep graphs, the algorithm employs a strategic periodic "refresh" mechanism to re-estimate the precision matrix. Empirical evaluations demonstrate that BUILD significantly outperforms state-of-the-art continuous optimization methods in structural accuracy and reliability.

Introduction

Discovering the structure of DAGs from observational data is often considered the "holy grail" of causal inference, as it enables the prediction of intervention effects. However, the search space for DAGs grows super-exponentially with the number of variables, rendering traditional combinatorial searches like the PC algorithm computationally prohibitive for large systems. While recent "score-based" continuous optimization methods like NOTEARS offer speed, they frequently struggle with non-convexity and optimization traps. BUILD addresses these limitations by leveraging the unique structural signatures in the precision matrix under the equal-variance assumption to reconstruct DAGs bottom-up.

Methodology: The BUILD Framework

The BUILD algorithm is founded on two key mathematical observations in linear Gaussian models with equal noise variance ($\sigma^2$):

  1. Leaf Identification: A node is a "leaf" (causing nothing else) if and only if its diagonal entry in the precision matrix is exactly $1/\sigma^2$.
  2. Parent Discovery: The off-diagonal entries in a leaf node's row of the precision matrix directly reveal its parents and the strength of their causal influence.
The BUILD algorithm iteratively identifies and prunes leaf nodes while periodically refreshing the precision matrix estimate.

The algorithm proceeds by iteratively identifying leaf nodes, discovering their parents, and then "pruning" them by removing their influence from the precision matrix using Schur complements. A critical innovation is the Refresh step: because errors in the precision matrix accumulate as nodes are pruned, BUILD periodically re-estimates the matrix from the remaining variables to reset the error and prevent the "hallucination" of edges.

Experimental Evaluation

Researchers evaluated BUILD using synthetic Erdős–Rényi (ER) DAGs with $N=200$ nodes and an average of 4 edges per node. The study utilized 1,000 observations per trial with homoscedastic Gaussian noise. BUILD was compared against popular continuous optimization baselines, including CoLiDE and DAGMA.

Results and Discussion

BUILD variants achieved significantly lower Structural Hamming Distance (SHD) compared to baselines. As shown in the performance summary, BUILD-0.005 (utilizing a high refresh rate) achieved an SHD of 17.40, whereas CoLiDE and DAGMA trailed significantly with SHDs of 114.40 and 135.95, respectively.

Performance comparison of BUILD variants against CoLiDE and DAGMA on Erdős–Rényi graphs ($N=200$, $M=1,000$).

Beyond structural accuracy, BUILD demonstrated an exceptionally low False Discovery Rate (FDR) of 0.004, indicating high precision in edge identification. While the frequent refreshing in BUILD-0.005 increases runtime (1203.20s), the algorithm remains highly scalable compared to traditional order-based methods, making it a viable candidate for large-scale genomic or financial network analysis.

Conclusion and Future Work

BUILD provides a robust, deterministic alternative for causal discovery in linear Gaussian systems. By combining precision matrix properties with a strategic refresh mechanism, it effectively manages error propagation in complex graphs. Future research will focus on extending BUILD to handle non-linear causal effects, heteroscedastic noise environments, and the integration of interventional data to further enhance accuracy.

Summary updated

Abstract

Learning the structure of directed acyclic graphs (DAGs) from observational data is a central problem in causal discovery, statistical signal processing, and machine learning. Under a linear Gaussian structural equation model (SEM) with equal noise variances, the problem is identifiable and we show that the ensemble precision matrix of the observations exhibits a distinctive structure that facilitates DAG recovery. Exploiting this property, we propose BUILD (Bottom-Up Inference of Linear DAGs), a deterministic stepwise algorithm that identifies leaf nodes and their parents, then prunes the leaves by removing incident edges to proceed to the next step, exactly reconstructing the DAG from the true precision matrix. In practice, precision matrices must be estimated from finite data, and ill-conditioning may lead to error accumulation across BUILD steps. As a mitigation strategy, we periodically re-estimate the precision matrix (with less variables as leaves are pruned), trading off runtime for enhanced robustness. Reproducible results on challenging synthetic benchmarks demonstrate that BUILD compares favorably to state-of-the-art DAG learning algorithms, while offering an explicit handle on complexity.
BibTeX
@misc{ajorlou2025build,
  author = {Hamed Ajorlou and Samuel Rey and Gonzalo Mateos and Geert Leus and Antonio G. Marques},
  title = {{BUILD with Precision: Bottom-Up Inference of Linear DAGs}},
  year = {2025},
  eprint = {2512.16111},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.16111},
}
Figure