On the Role of Entropy-based Loss for Learning Causal Structures with Continuous Optimization

Ruichu Cai, Weilin Chen, Jie Qiao, Zhifeng Hao

Introduction

Causal discovery—the task of determining "what causes what" from purely observational data—is a cornerstone of scientific inquiry. Recently, the field has shifted from combinatorial searches to continuous optimization frameworks, such as the "NOTEARS" algorithm, which treats finding a Directed Acyclic Graph (DAG) as a smooth mathematical problem. However, most of these methods rely on least-squares (LS) loss. While LS is mathematically convenient, it implicitly assumes Gaussian noise—a condition rarely met in real-world scenarios. This paper introduces an entropy-based loss function for continuous optimization that remains theoretically consistent across any noise distribution, providing a robust way to identify causal directions in both linear and nonlinear systems.

The "Gaussian Trap" in Causal Discovery

The authors identify a fundamental flaw in standard causal discovery: the reliance on variance-based metrics. Least-squares loss is essentially a proxy for a Gaussian noise assumption. When noise is non-Gaussian (e.g., Uniform or Gumbel), LS loss becomes biased. It can be "tricked" by the strength of a causal connection or the variance of the noise, leading algorithms to orient edges backward.

Theoretical relationships between information-theoretic measures and the failure conditions of least-squares loss.

The paper provides a formal proof (Theorem 1) showing that if the causal strength and noise variances satisfy a specific inequality, LS will always choose the wrong direction in a linear system. This "Gaussian Trap" necessitates a move toward more sensitive tools for detecting dependence between variables.

Methodology: Entropy-Based Loss

To address these limitations, the authors propose replacing the standard least-squares objective with an entropy-based loss function within the NOTEARS framework.

  1. Theoretical Foundation: They prove that minimizing the entropy of the residuals is equivalent to maximizing the log-likelihood under an Additive Noise Model (ANM), regardless of the underlying noise distribution. This makes the entropy-based score "consistent," meaning it is guaranteed to converge to the true log-likelihood as sample sizes increase.
  2. Entropy Estimation: Since the true data distribution is often unknown, the authors utilize a differential entropy estimator that uses non-quadratic functions to approximate entropy without requiring a prior model of the noise.
  3. Optimization: This loss is integrated into a framework using an algebraic constraint ($tr(e^{W \circ W}) - d = 0$) to ensure acyclicity, solved via the L-BFGS algorithm for large-scale efficiency.

Key Insights: Independence of Cause and Mechanism

The core intuition behind this approach is that in the correct causal direction ($X \to Y$), the noise is independent of the cause. In the incorrect anti-causal direction ($Y \to X$), the "residual" will exhibit dependence on the effect. Entropy is a far more sensitive tool for detecting this dependence than simple variance.

Comparison of residual distributions in causal vs. anti-causal directions, showing how entropy identifies the correct structure.

As shown in the figure above, the distribution of residuals in the causal direction remains uniform (square), while the anti-causal direction results in a distorted distribution (diamond) with higher total entropy. This visual difference demonstrates why entropy-based methods can correctly identify structure where variance-based methods fail.

Experimental Results

The authors validated their approach using both synthetic simulations and the classic Sachs protein signaling dataset.

  • Synthetic Performance: In tests involving linear and nonlinear Structural Causal Models (SCMs) with varying noise types (Gaussian, Uniform, Gumbel), the entropy-based method consistently outperformed NOTEARS, LiNGAM, and DAG-GNN. It achieved significantly lower Structure Hamming Distance (SHD) and False Discovery Rate (FDR), particularly in non-Gaussian settings.
  • Scalability: Unlike traditional non-Gaussian methods that struggle with high-dimensional data, this gradient-based approach handled graphs with 50–100 nodes effectively.
  • Real-World Success: On the Sachs dataset (11 variables, 853 samples), the nonlinear version of the model (ours-MLP) achieved the best SHD (11), identifying a more accurate biological structure than the original NOTEARS-MLP (12) and other baselines.

Conclusion and Future Work

By moving beyond the Gaussian assumption, this research provides a universal objective for additive noise models. While the current theory relies on the Additive Noise Model (ANM) assumption, it sets the stage for future extensions into Post-Nonlinear (PNL) models. The entropy-based approach offers a more robust, theoretically grounded path for causal discovery in complex, real-world data environments.

Summary updated

BibTeX
@article{cai2025role,
  author = {Ruichu Cai and Weilin Chen and Jie Qiao and Zhifeng Hao},
  title = {{On the Role of Entropy-based Loss for Learning Causal Structures with Continuous Optimization}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  url = {https://openreview.net/forum?id=WJLPVcda2C},
}
Figure