DAGs with NO TEARS: Continuous Optimization for Structure Learning
Xun ZhengBryon AragamPradeep RavikumarEric P. Xing
Presents a smooth, exact characterization of acyclicity that reformulates directed acyclic graph structure learning as a continuous optimization problem solvable by standard numerical solvers without combinatorial heuristics.
Learning directed acyclic graphs (DAGs), commonly referred to as Bayesian networks, is essential for causal discovery and understanding complex systems across biology, genetics, and machine learning. Historically, discovering these networks directly from data has been an intractable computational bottleneck. The fundamental challenge stems from the requirement that the learned graph must contain no directed cycles. Because the search space of possible acyclic structures grows superexponentially with the number of variables, existing methods have relied on combinatorial heuristics, local edge-by-edge searches, or restrictive topological assumptions that often fail in real-world, highly interconnected networks.
The article introduces and evaluates a novel mathematical formulation that transforms this traditionally discrete graph search into a smooth, continuous numerical optimization problem. By establishing an exact, differentiable equality constraint based on the matrix exponential to enforce acyclicity, the article develops an algorithm named NOTEARS (Non-combinatorial Optimization via Trace Exponential and Augmented lagRangian for Structure learning). This enables standard, off-the-shelf continuous solvers to simultaneously learn the graph structure and its parameters without combinatorial heuristics.
To evaluate this approach, the authors performed extensive synthetic simulations across varying graph types (Erdös-Rényi and scale-free networks), sample sizes (20 and 1,000 observations), network scales (up to 100 variables), and noise distributions (Gaussian, Exponential, and Gumbel). The method was benchmarked against leading state-of-the-art algorithms, primarily Fast Greedy Search (FGS), as well as exact global optimization baselines and a real-world biological dataset of human immune cell signaling pathways.
The experimental findings show that the proposed continuous framework significantly outperforms traditional greedy methods in structure recovery, particularly as network density and variable counts increase. While greedy algorithms deteriorate rapidly on scale-free graphs containing hub nodes, NOTEARS maintains high true positive rates and lower structural errors across diverse noise distributions. Additionally, incorporating sparsity regularization enables the algorithm to reliably reconstruct networks even in severely data-constrained regimes (such as 20 samples across 100 variables). Evaluations against exact combinatorial solvers confirm that the stationary points obtained by the continuous algorithm are practically equivalent to global optima, and benchmark performance on real-world cellular data matches established biological consensus.
These findings have strong strategic implications for organizations utilizing data-driven causal modeling. By reframing structural learning into standard continuous optimization, implementation is simplified to approximately 50 lines of code, significantly lowering software maintenance costs, reducing algorithmic complexity, and removing the need for domain-specific heuristic tuning. Furthermore, because the algorithm updates all graph parameters globally and simultaneously, it mitigates the risk of missing complex causal dependencies in interconnected systems with hub nodes.
Decision-makers and engineering teams should consider adopting this continuous optimization framework to modernize causal discovery pipelines, replacing fragile combinatorial toolkits with standard numerical optimization solvers. Organizations should implement sparsity penalties when working with limited sample sizes to minimize false discoveries. Next steps should focus on extending the framework to handle non-smooth score functions and developing automated, data-driven thresholds for edge pruning across diverse signal-to-noise environments.
While the algorithm demonstrates robust performance, users should note key boundary conditions. The underlying equality-constrained optimization problem is nonconvex, meaning standard solvers provide local stationary guarantees rather than theoretical global optimality. Furthermore, because calculating the matrix exponential has a cubic computational complexity relative to the number of nodes, users should exercise caution when scaling to extremely large networks without second-order acceleration or sparsity optimizations.
- Paper: Optimal Structure Identification With Greedy Search, David Maxwell Chickering (2002). Establishes the Greedy Equivalence Search algorithm, providing the standard combinatorial score-and-search paradigm that NO TEARS seeks to replace with continuous optimization.
- Paper: A Linear Non-Gaussian Acyclic Model for Causal Discovery, Shohei Shimizu et al. (2006). Introduces the linear structural equation model formulation for continuous causal discovery that underpins the linear model analyzed in NO TEARS.
- Paper: The max-min hill-climbing Bayesian network structure learning algorithm, Ioannis Tsamardinos et al. (2006). Presents the Max-Min Hill-Climbing hybrid algorithm, illustrating the traditional multi-stage combinatorial heuristic methods used to navigate DAG search spaces.
- Paper: A Tutorial on Learning with Bayesian Networks, David Heckerman (1999). Provides a comprehensive foundational tutorial on the principles, scoring criteria, and causal assumptions underlying Bayesian network structure learning.
- Paper: A Bayesian method for the induction of probabilistic networks from data, Gregory F. Cooper et al. (1992). Develops foundational score-based discrete search heuristics (such as K2) for recovering directed acyclic graphs from observational data.
- Paper: Equivalence and Synthesis of Causal Models, Tom S. Verma et al. (1990). Defines the core graphical criteria of d-separation and Markov equivalence essential for understanding DAG identifiability.
- Paper: Learning Bayesian networks: The combination of knowledge and statistical data, David Heckerman et al. (1994). Formalizes score-based Bayesian network learning under score equivalence, which serves as a classical baseline for continuous structure learning.
- Paper: Learning Bayesian Networks with the bnlearn R Package, Marco Scutari (2009). Surveys and implements standard constraint-based and score-based discrete heuristics for learning directed acyclic graphs.
- Paper: Identifying Weight-Variant Latent Causal Models, Yuhang Liu et al. (2026). Extends continuous causal graph learning principles to complex settings with unobserved, weight-variant latent variables.
