On the Role of Sparsity and DAG Constraints for Learning Linear DAGs

Ignavier Ng, AmirEmad Ghassami, Kun Zhang

Abstract

Learning Directed Acyclic Graphs (DAGs) from observational data is a fundamental yet challenging task in causal discovery. While recent breakthroughs like NOTEARS have transformed this discrete search into a continuous optimization problem using hard acyclicity constraints, such methods often face numerical instability and scalability issues. This paper introduces GOLEM (Gradient-based Optimization of dag-penalized Likelihood for learning linEar dag Models), which utilizes a likelihood-based objective paired with soft penalties. By avoiding hard constraints, GOLEM simplifies the optimization landscape, enabling efficient scaling to thousands of nodes while maintaining superior accuracy across diverse noise distributions.

Introduction

Discovering the underlying causal structure of data, represented as a DAG, is essential for understanding complex systems. Traditional methods relied on combinatorial searches through the space of possible graphs, an NP-hard problem. The NOTEARS algorithm revolutionized the field by introducing a continuous "DAGness" constraint based on the trace exponential function. However, enforcing this as a hard constraint requires complex optimization techniques like the augmented Lagrangian method, which can be unstable and computationally expensive.

The authors of this paper investigate whether these restrictive hard constraints are strictly necessary. They propose that a properly formulated likelihood objective inherently prefers acyclic structures, allowing for a more flexible "soft" penalty approach.

Methodology: The GOLEM Framework

GOLEM shifts the focus from least-squares objectives to a Maximum Likelihood Estimator (MLE). The core insight is that the likelihood-based objective includes a log-determinant (LogDet) term that acts as a structural regularizer, naturally penalizing cycles.

Soft Constraints

Unlike previous methods that strictly forbid cycles during optimization, GOLEM employs soft penalties:

  1. Sparsity Penalty ($\ell_1$): Encourages a parsimonious graph with fewer edges.
  2. DAG Penalty: Uses the trace exponential function as a soft nudge rather than a hard wall, guiding the optimizer toward acyclic solutions.

This unconstrained formulation allows GOLEM to be trained using standard gradient descent algorithms (e.g., Adam) and benefit from GPU acceleration. The paper introduces two variants: GOLEM-EV for equal noise variances and GOLEM-NV for non-equal noise variances.

Experimental Evaluation

The authors evaluated GOLEM against several baselines, including NOTEARS, PC, FGS, and DirectLiNGAM, using both synthetic and real-world datasets.

Datasets

  • Synthetic Graphs: Erdös-Rényi (ER) and Scale-Free (SF) models with node counts ranging from 10 to 3,200. Noise distributions included Gaussian, Exponential, and Gumbel.
  • Sachs Dataset: A real-world biological dataset consisting of 853 samples of protein signaling pathways (11 nodes).

Results and Discussion

GOLEM demonstrated significant improvements in both accuracy and scalability. As shown in Figure 1, GOLEM variants consistently achieve lower Structural Hamming Distance (SHD) and Structural Interventional Distance (SID) compared to NOTEARS across various graph densities and noise types.

Figure 1: Comparison of GOLEM and NOTEARS across different noise distributions and graph densities (ER1, ER2, ER4) in terms of Normalized SHD and Normalized SID.

Key Findings

  • Scalability: GOLEM successfully scaled to graphs with 3,200 nodes, a task where NOTEARS failed due to computational constraints.
  • Robustness: The likelihood-based objective proved more robust to variations in edge weight scales compared to least-squares methods.
  • Real-World Application: On the Sachs dataset, GOLEM-NV identified a structure closely matching the biological ground truth, achieving the lowest SHD among the tested methods.

Conclusion

The transition from hard constraints to soft penalties in DAG learning represents a significant step forward in both theoretical understanding and practical application. By leveraging the inherent properties of the likelihood objective, GOLEM provides a scalable and accurate alternative to existing continuous optimization methods. Future work includes exploring non-convexity challenges and extending the framework to discrete data scoring functions.

Summary updated

BibTeX
@inproceedings{ng2020role,
  author = {Ignavier Ng and AmirEmad Ghassami and Kun Zhang},
  title = {{On the Role of Sparsity and DAG Constraints for Learning Linear DAGs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=oed_TutXTRU},
}
Figure