NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Heteroscedastic Causal Structure Learning

Bao Duong, Thin Nguyen

TL;DR

HOST (Heteroscedastic causal STructure learning) is the first polynomial-time algorithm designed to recover causal directed acyclic graphs (DAGs) from observational data under generic heteroscedastic noise. By leveraging neural networks to extract residuals and employing normality tests to identify causal orderings, HOST overcomes the restrictive "equal variance" assumptions of previous efficient methods while maintaining scalability and accuracy.

What Problem Does This Paper Address?

Identifying cause-effect relationships from data is a fundamental challenge in fields ranging from bioinformatics to economics. While learning these structures (DAGs) is generally NP-hard, recent research found a "shortcut": if you assume all noise variables have equal variance (homoscedasticity), you can recover the graph in polynomial time.

However, the real world is rarely that uniform. Most systems exhibit heteroscedasticity, where the noise variance of an effect changes depending on the state of its causes. Existing methods that handle heteroscedasticity either scale poorly (non-polynomial time), require restrictive conditions (like constant expected variance), or rely on error-prone "skeleton recovery" steps that don't guarantee an acyclic graph. The authors aim to bridge this gap by creating a method that is both theoretically sound for heteroscedastic models and computationally efficient.

Methods

The authors introduce the Heteroscedastic Causal Model (HCM), where each variable is a function of its parents plus a noise term whose scale also depends on those parents. Their core insight is that for such models, a variable's residuals only follow a Gaussian distribution if you have accounted for all its causal parents.

The HOST algorithm operates in three main stages:

  1. Latent Extraction (Algorithm 1): To check if a variable $X_i$ is a "source node" (has no parents in the current set), the algorithm must first estimate its conditional mean and variance. Standard neural network approaches for this aren't always stable. HOST uses a natural parameterization of the Gaussian distribution, which transforms the objective into a jointly concave function, ensuring that gradient-based optimization actually finds the global maximum.
  2. Causal Ordering (Algorithm 2): The algorithm iteratively identifies source nodes. It extracts the residuals (latent variables) for all remaining nodes and applies the Shapiro-Wilk test for normality. The node that looks "most Gaussian" (highest $W$ statistic) is added to the causal order. They also implement a "layer decomposition" technique to pick multiple potential source nodes at once, speeding up the process for sparse graphs.
  3. Structure Recovery (Algorithm 3): Once a valid causal ordering is established, the search space for edges is drastically reduced. HOST uses a series of conditional independence (CI) tests (specifically the state-of-the-art LCIT) to determine which earlier nodes in the ordering are direct causes of later ones.

Datasets

The authors evaluated HOST using both synthetic and real-world data:

  • Synthetic Data: They generated DAGs using Erdos-Rényi (ER) and Scale-Free (SF) models with varying edge densities. They tested both linear and complex nonlinear functional mechanisms.
  • Sachs Dataset: A classic real-world benchmark in causal discovery consisting of protein-signaling network data (11 nodes, 17 edges) derived from flow cytometry.

Key Insights and Ideas

  • Normality as a Causal Compass: In the presence of heteroscedasticity, the "Gaussian-ness" of residuals becomes a reliable signal for causal direction. This shifts the focus from comparing variances (which fails here) to testing distribution shapes.
  • Optimization Stability: By using natural parameters ($\eta_1, \eta_2$) for the Gaussian log-likelihood, the authors turned a potentially finicky neural network training task into a robust concave optimization problem.
  • Invariance to Scale: A major practical advantage of HOST is its invariance to scaling and translation. Unlike "equal variance" methods, which break if you standardize your data, HOST allows for standard preprocessing, which is crucial for training the underlying neural networks effectively.

Key Results

HOST demonstrated superior performance across nearly all tested scenarios:

  • Accuracy: In synthetic tests, HOST consistently achieved lower Order Divergence (incorrectly ordered edges) and Structural Hamming Distance (SHD) than baselines like DiffAN, EqVar, and NPVar.
  • Consistency: As shown in Figure 1, HOST's error converges toward zero as the sample size increases, empirically suggesting the method is statistically consistent.
Causal structure learning performance on synthetic data as function of Sample size. HOST (red line) shows significantly lower error than baselines across different graph types.
  • Scalability: HOST maintains its lead as dimensionality increases (up to 50 nodes in tests), whereas some baselines like NPVar become computationally prohibitive. Figure 6 highlights that HOST is significantly faster than other complex non-linear methods.
Causal ordering runtime. HOST (red line) scales linearly/polynomially and is much faster than DiffAN or NPVar for larger datasets.
  • Real-World Success: On the Sachs dataset, HOST recovered the causal order with an error rate roughly half that of the next best baseline (Order Divergence of 4.4 vs 7.2).

Limitations and Future Work

  • Gaussian Assumption: The current framework relies on the assumption of Gaussian exogenous noise. While Gaussian noise is common, extending this to non-Gaussian distributions would broaden the method's applicability.
  • DAG Constraint: The method assumes the underlying structure is a Directed Acyclic Graph. It does not currently account for feedback loops (cycles) or latent confounders (unobserved common causes).
  • CI Test Dependency: The final structure recovery relies on conditional independence tests. While LCIT is efficient, the accuracy of the final graph is still bounded by the power and reliability of these statistical tests.

Summary updated

BibTeX
@inproceedings{duong2023heteroscedastic,
  author = {Bao Duong and Thin Nguyen},
  title = {{Heteroscedastic Causal Structure Learning}},
  booktitle = {ECAI},
  year = {2023},
  url = {https://openreview.net/forum?id=e3zVouJBAb},
}
Figure