Bivariate Causal Discovery using Bayesian Model Selection

Anish Dhir, Samuel Power, Mark van der Wilk

Executive Summary

Causal discovery usually forces researchers to choose between rigid, "identifiable" models that fail on real-world data and flexible models that cannot distinguish cause from effect. This paper demonstrates that Bayesian Model Selection (BMS) using a flexible non-parametric model—specifically a Gaussian Process Latent Variable Model (GPLVM)—can identify causal direction by replacing "hard" functional restrictions with "soft" prior assumptions. The result is a robust framework that achieves state-of-the-art performance across a wide variety of synthetic and real-world benchmarks.

The Challenge of Bivariate Causal Discovery

Determining whether $X$ causes $Y$ or $Y$ causes $X$—the bivariate case—is a fundamental building block of causal discovery. Standard statistics can easily tell us if $X$ and $Y$ are correlated, but not which variable is the driver.

Competing causal models for bivariate discovery

To solve this, researchers typically use identifiable models like Additive Noise Models (ANM), which assume the effect is a function of the cause plus some independent noise ($Y = f(X) + E$). If the data fits this pattern in one direction but not the other, the cause is identified. However, real-world data is messy: noise isn't always additive, and functions aren't always simple. When these "hard" assumptions are violated, traditional methods fail. Conversely, highly flexible models (like neural networks) are often "too good"—they can fit the data perfectly in both directions, making them useless for picking a winner based on likelihood alone.

A Bayesian Approach to Causal Discovery

The authors propose treating causal discovery as a Bayesian Model Selection problem to overcome the limitations of both rigid and overly flexible models.

  1. Soft Constraints via Priors: Instead of mandating a specific functional form (a hard constraint), they use Bayesian priors to encode the Independent Causal Mechanisms (ICM) assumption. ICM posits that the process generating the cause is independent of the process generating the effect given the cause.
  2. The Model (GPLVM): They employ a Gaussian Process Latent Variable Model. This non-parametric approach can model highly complex, non-Gaussian, and heteroskedastic (variable noise) distributions.
  3. Marginal Likelihood as the Arbiter: While Maximum Likelihood fails to distinguish directions in flexible models, the marginal likelihood (or "evidence") does not. The marginal likelihood naturally incorporates a complexity penalty.
  4. Variational Inference: To make the Bayesian computation tractable for large datasets, they use inducing-point variational inference to approximate the marginal likelihood.

Key Insights: Why Marginal Likelihood Works

The paper provides a crucial theoretical explanation for why Bayesian methods succeed where Maximum Likelihood (ML) fails.

Maximum likelihood vs. Marginal likelihood in causal models

In a highly flexible model, ML will perfectly fit the data in both the $X \to Y$ and $Y \to X$ directions (as seen in the flat, overlapping lines of plots a and b above). However, the "wrong" (anti-causal) direction requires the marginal and conditional distributions to be highly coordinated to explain the data. A separable Bayesian prior finds this coordination highly improbable. Therefore, the marginal likelihood effectively "penalizes" the anti-causal direction, allowing the true causal model to stand out (plot c).

Furthermore, by using priors rather than hard functional limits, the model can still "learn" a direction even if the data doesn't perfectly match the ICM assumption, provided the violation is milder in the true causal direction. The authors also demonstrate that modeling the joint distribution $p(X, Y)$ is significantly more effective for discovery than evaluating the conditional $p(Y|X)$ or the marginal $p(X)$ in isolation.

Benchmark Performance

The authors evaluated their method against a massive battery of benchmarks, including synthetic datasets (CE-Multi, CE-Net, CE-Gauss) and the gold-standard real-world benchmark, CE-Tueb (Tübingen Pairs).

The proposed GPLVM method outperformed almost all existing baselines across the board:

  • Real-World Accuracy: On the CE-Tueb dataset, it achieved an ROC AUC of 78.3, significantly higher than popular methods like ANM (63.9) and PNL (73.8).
  • Robustness: It dominated the CE-Net (98.9) and CE-Multi (97.7) benchmarks, where traditional methods like LiNGAM or IGCI struggled.
  • No Penalty for Flexibility: On simple ANM-generated data where rigid models should theoretically be best, the GPLVM still achieved a perfect 100.0 AUC, proving that added flexibility doesn't necessarily lead to "overfitting" the causal direction.

Limitations and Future Directions

While highly effective, the approach has a few limitations:

  • Computational Complexity: Gaussian Processes are computationally expensive ($O(M^3)$ where $M$ is the number of inducing points) compared to simple linear regression-based causal tests.
  • Hyperparameter Sensitivity: The method relies on Maximum A Posteriori (MAP) estimation for hyperparameters. Full marginalization would be more robust but is currently computationally daunting.
  • Scaling to Multivariate: Extending this Bayesian logic from bivariate pairs to large Directed Acyclic Graphs (DAGs) with many variables remains a significant challenge.

Future work may explore Deep GPs to further improve the ability to model pathological or highly non-linear real-world densities.

Summary updated

BibTeX
@inproceedings{dhir2024bivariate,
  author = {Anish Dhir and Samuel Power and Mark van der Wilk},
  title = {{Bivariate Causal Discovery using Bayesian Model Selection}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=twm7qPVX1F},
}
Figure