Abstract
Identifying Directed Acyclic Graph (DAG) structures from data is a cornerstone of causal discovery. While continuous optimization approaches have transformed this discrete problem, they often suffer from vanishing gradients that hinder the elimination of cycles. This paper introduces a unifying framework using analytic functions to define differentiable DAG constraints. By leveraging higher-order derivatives, we "amplify" optimization signals, enabling robust structure learning on graphs with up to 2,000 nodes. Our results demonstrate that higher-order analytic constraints consistently outperform existing state-of-the-art methods across diverse noise distributions.
Introduction
Causal discovery—the process of identifying the DAG structure underlying a dataset—has historically been a "combinatorial nightmare" due to the super-exponential growth of the search space. The "NOTEARS" approach revolutionized the field by recasting this discrete search as a continuous optimization problem using a differentiable constraint based on the trace of a matrix exponential. However, NOTEARS and its successors, such as DAGMA, face a significant hurdle: gradient vanishing. As optimization progresses, gradients often become infinitesimally small, particularly for long paths, making it difficult for algorithms to effectively eliminate cycles.
Methodology
We propose a unifying theory based on analytic functions. We demonstrate that any analytic function with positive coefficients (denoted as class $\mathcal{F}$) can serve as a valid DAG constraint.
Functional Operators and Higher-Order Constraints
A key innovation is the proof that the set of valid DAG constraints is closed under differentiation, addition, and multiplication. This allows for the "engineering" of new constraints. Specifically, by taking the $n$-th derivative of a base function, we create higher-order constraints. Mathematically, these higher-order versions possess larger gradient norms, effectively "amplifying" the optimization signal to counteract gradient vanishing.
Efficient Evaluation and Optimization
Calculating infinite power series of matrices is computationally intensive. We developed an efficient evaluation algorithm using a "doubling" trick to compute constraints in $O(\log t)$ time. These constraints are integrated into a path-following optimization scheme that gradually enforces acyclicity, maintaining numerical stability.
Experimental Evaluation
The proposed method was evaluated against several benchmarks, including Erdos-Rényi (ER) and Scale-Free (SF) synthetic graphs ranging from 500 to 2,000 nodes—significantly larger than the 10–100 node graphs typical in earlier literature. We tested robustness using Gaussian, Exponential, and Gumbel noise distributions, as well as the real-world Sachs protein signaling dataset.
Key Results and Insights
Our experiments reveal several critical insights:
- The Power of Finite Radius: Functions with a finite radius of convergence often provide a sharper signal near the acyclic region compared to functions with an infinite radius (like the exponential).
- Gradient Amplification: Higher-order derivatives act as natural amplifiers. If the gradient vanishes, a higher-order version of the constraint can restore the optimization signal.
- Superior Accuracy and Scalability: Across nearly all settings, "Order-3" and "Order-4" analytic constraints outperformed the previous state-of-the-art (DAGMA) in terms of Structural Hamming Distance (SHD). The method successfully recovered structures in 2,000-node graphs where traditional methods often fail.
Discussion and Limitations
While higher-order constraints resolve the gradient vanishing problem, they introduce a trade-off by increasing the non-convexity of the optimization landscape. This can lead to local minima. To mitigate this, we employed heuristics such as pruning edges between weakly correlated nodes. Future work will explore more sophisticated initialization strategies and optimization techniques to navigate the complex landscapes of high-order constraints. Additionally, the current framework still relies on common assumptions like equal noise variances for full identifiability in linear Gaussian cases.
Summary updated