Differentiable Structure Learning and Causal Discovery for General Binary Data

Chang Deng, Bryon Aragam

Introduction

Causal discovery—the task of learning a Directed Acyclic Graph (DAG) from observational data—is a notoriously difficult NP-complete problem. Recently, differentiable methods like NOTEARS have revolutionized the field by framing this combinatorial search as a continuous optimization problem.

However, most of these methods are designed for continuous data and assume simple relationships, such as linear functions with additive Gaussian noise. When applied to binary data (e.g., the presence or absence of a gene marker), these assumptions often fail. Existing discrete methods usually only consider "first-order" effects (similar to standard logistic regression), ignoring the complex, non-linear interactions inherent in discrete systems. This paper bridges that gap by providing a theoretically sound, differentiable framework to handle general binary dependencies where the true generative process is unknown.

Methodology

The authors move away from restrictive Structural Equation Models (SEMs) and instead adopt the Multivariate Bernoulli (MVB) distribution as a universal representation.

  • The MVB Framework: The MVB is an exponential family distribution capable of capturing all possible joint dependencies among binary variables. This includes not just how $X$ affects $Y$, but how the specific combination of $X$ and $Z$ might uniquely affect $Y$ (higher-order interactions).
  • Induced Adjacency Matrix: To utilize gradient-based optimization, the authors define an "induced" adjacency matrix $W(H)$. Because a single edge in a general model might be represented by multiple interaction coefficients, an edge is defined to exist in $W(H)$ if any interaction term involving those variables is non-zero.
  • Differentiable Optimization: The learning problem is formulated as minimizing the negative log-likelihood of the MVB, subject to a smooth acyclicity constraint (to ensure the output is a DAG) and a sparsity penalty (using the quasi-MCP penalty) to find the simplest consistent model.
  • BiNOTEARS Algorithm: Because the number of interaction terms grows exponentially with the number of variables, the authors propose a two-stage heuristic called BiNOTEARS. Stage one learns a coarse topological order using a simpler model; stage two "fine-tunes" the graph by fitting higher-order interactions strictly along that inferred order.

Theoretical Insights

  • Inherent Non-Identifiability: The authors mathematically prove that in the fully general discrete setting, the underlying DAG is fundamentally non-identifiable from observational data alone. Multiple different graph-parameter pairs can produce the exact same distribution.
  • The Sparsity Principle: To resolve this non-identifiability, they invoke the Sparsest Markov Representation (SMR). They demonstrate that by searching for the sparsest DAG consistent with the data, it is possible to uniquely recover the correct Markov Equivalence Class (MEC).
  • The Danger of Linearity: Standard differentiable methods (like DAGMA) perform poorly when higher-order interactions are present. If a causal mechanism depends on a combination of parents rather than their sum, linear models simply cannot detect the edges.

Experiments and Key Results

The framework was evaluated on synthetic data (Erdős-Rényi and Scale-Free models) and the classic Sachs dataset, a "gold standard" benchmark consisting of 7,466 measurements of 11 proteins and phospholipids in human immune cells.

  • Robustness to Complexity: In synthetic tests where only high-order interactions were present, BiNOTEARS maintained near-optimal recovery performance, while linear baselines saw their accuracy collapse. On small graphs ($p < 10$), BiNOTEARS consistently achieved a lower Structural Hamming Distance (SHD)—meaning fewer errors in edge detection—compared to PC, FGES, and DAGMA.
  • Real-World Performance: On the Sachs protein signaling dataset, BiNOTEARS outperformed all baselines. This demonstrates that capturing non-linear discrete dependencies leads to more accurate causal maps in real biological systems.
Performance comparison on the Sachs dataset.

Limitations and Future Work

While the two-stage BiNOTEARS approach mitigates computational costs, the underlying MVB model still faces an exponential explosion of parameters as the number of variables ($p$) increases. Scaling this framework to thousands of nodes remains a significant challenge. Furthermore, while the two-stage approach is a practical necessity, its theoretical guarantees (e.g., finding the global optimum) are not yet as fully explored as the complete optimization version. Future work will focus on developing more scalable algorithms that maintain these rigorous identifiability guarantees in high-dimensional regimes.

Summary updated

BibTeX
@inproceedings{deng2025differentiable,
  author = {Chang Deng and Bryon Aragam},
  title = {{Differentiable Structure Learning and Causal Discovery for General Binary Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=jvrfcl3z1V},
}
Figure