Revisiting Differentiable Structure Learning: Inconsistency of $\ell_1$ Penalty and Beyond

Kaifeng Jin, Ignavier Ng, Kun Zhang, Biwei Huang

TL;DR

This paper reveals a fundamental flaw in modern differentiable structure learning: the widely used $\ell_1$ penalty is mathematically inconsistent for recovering Directed Acyclic Graphs (DAGs), often favoring dense, incorrect structures over the true sparse one. To fix this, the authors introduce CALM, a method that combines $\ell_0$ approximation (via Gumbel-Softmax), hard acyclicity constraints, and moral graph estimation to achieve state-of-the-art results that are robust to data standardization.

What Problem Does This Paper Address?

Learning the structure of a Bayesian network—represented as a DAG—is a classic "needle in a haystack" problem. Traditionally, researchers used discrete search algorithms, but recent "differentiable" methods (like NOTEARS) turned this into a continuous optimization problem, making it much faster and more scalable.

However, these continuous methods typically rely on an $\ell_1$ penalty (Lasso) to encourage sparsity. The authors prove that in the common linear Gaussian setting, $\ell_1$ is fundamentally inconsistent. Even if your optimizer finds the absolute global minimum, the $\ell_1$ penalty might lead you to a graph that is much denser than the truth because it prefers many tiny edge weights over a few large ones. This leads to high error rates, especially when data is standardized—a common preprocessing step that ironically often breaks these algorithms.

Methods

The authors propose CALM (Continuous and Acyclicity-constrained $L_0$-penalized likelihood with estimated Moral graph). It deviates from standard approaches in three key ways:

  1. $\ell_0$ Approximation: Instead of the problematic $\ell_1$ penalty, they use a differentiable approximation of the $\ell_0$ norm (which counts the actual number of edges). They found the Gumbel-Softmax trick to be the most robust way to "relax" this discrete count into something a gradient-based optimizer can handle.
  2. Moral Graph Filtering: Before starting the main optimization, they estimate a "moral graph" (an undirected version of the DAG). They use this to prune the search space, only allowing the optimizer to consider edges that exist in the moral graph. This significantly reduces the "non-convexity" (the "bumpiness" of the optimization landscape).
  3. Hard Constraints: While some methods treat acyclicity as a "soft" penalty, CALM enforces it as a "hard" constraint using the Quadratic Penalty Method. This ensures the final output is always a valid DAG without needing messy post-processing.

Datasets

The study primarily uses synthetic benchmarks to allow for exact ground-truth comparison:

  • Erdős-Rényi (ER) Graphs: Specifically ER1 (sparse) and ER4 (dense) configurations.
  • Scale: Experiments were conducted on graphs with 50 and 100 nodes.
  • Sample Sizes: They tested across finite samples ($n=1000, n=10^6$) and the "asymptotic" case (infinite samples) to prove theoretical consistency.

Key Insights and Ideas

  • The $\ell_1$ Trap: The most striking insight is the counterexample provided in Section 3.3. The authors show a simple 3-node case where the true sparse graph has a higher $\ell_1$ norm than a denser, incorrect graph. This means an $\ell_1$ optimizer is mathematically "incentivized" to give you the wrong answer.
Table 1: Comparison of ˜Bs which generate Σ∗with True DAG B∗. The results are averaged over 1,000 simulated B∗s. The ”Proportion” column reflects the average percentage of DAGs ˜B with ℓ1 norms smaller than that of B∗among d! ˜Bs per B∗.
  • Standardization Robustness: Previous literature suggested that differentiable methods fail when data is standardized (scaled to zero mean and unit variance). CALM proves this isn't an inherent flaw of differentiable learning, but rather a side effect of $\ell_1$ inconsistency and poor constraint handling.
  • Synergy of Constraints: The authors demonstrate that the moral graph and hard constraints work better together than either does alone. The moral graph simplifies the "where to look" problem, while the hard constraint handles the "how to orient" problem.

Key Results

CALM significantly outperforms previous differentiable champions like GOLEM and NOTEARS.

  • Accuracy: In 50-node sparse graphs, CALM achieved a Structural Hamming Distance (SHD) of 5.5, compared to 56.2 for GOLEM-NV.
  • Skeleton Recovery: CALM maintains near-perfect precision and recall for the graph skeleton, even in settings where other methods collapse.
Table 2: Impact of moral graph and soft/hard DAG constraints for 50-node ER1 graphs under data standardization
  • Robustness: As shown in Table 4, CALM is the only tested method that performs consistently well regardless of whether the data is standardized or not.
Table 4: Comparison of our method using different ℓ0 approximations and original GOLEM-NV-ℓ1 for 50-node ER1 graphs under both data standardization and no data standardization.

Limitations and Future Work

  • Linear Assumption: This work focuses on linear Gaussian models. While these are foundational, real-world data is often non-linear. The authors suggest extending CALM to non-linear functional forms as a priority for future research.
  • Computational Overhead: Estimating the moral graph and running the Quadratic Penalty Method is more complex than a simple Lasso regression. While it scales better than many discrete methods, there is still room to optimize the training speed for extremely large-scale graphs (thousands of nodes).

Summary updated

BibTeX
@misc{jin2024revisiting,
  author = {Kaifeng Jin and Ignavier Ng and Kun Zhang and Biwei Huang},
  title = {{Revisiting Differentiable Structure Learning: Inconsistency of $\textbackslash\{\}ell\_1$ Penalty and Beyond}},
  year = {2024},
  eprint = {2410.18396},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.18396},
}
Figure