Identifying Causal Direction via Variational Bayesian Compression

Quang-Duy Tran, Bao Duong, Phuoc Nguyen, Thin Nguyen

TL;DR

COMIC (Bayesian COMpression-based approach to Identifying the Causal direction) uses neural networks and variational Bayesian inference to determine which way causality flows between two variables. By treating causal discovery as a data compression problem, it identifies the "true" direction as the one that yields the most succinct description of the data. This approach balances the flexibility of deep learning with the theoretical rigor of the Minimum Description Length (MDL) principle.

What Problem Does This Paper Address?

Distinguishing between cause and effect (e.g., does $X \to Y$ or $Y \to X$?) using only observational data is a fundamental challenge in science. A powerful theoretical tool for this is the Algorithmic Markov Condition, which posits that the true causal factorization of a joint distribution is "simpler" (has a shorter description) than the anti-causal one.

However, measuring this "simplicity" (Kolmogorov complexity) is mathematically impossible in the general case. Researchers usually approximate it using the Minimum Description Length (MDL) principle, which scores a direction based on a two-part code: the complexity of the model plus the complexity of the data given that model.

Existing MDL methods often rely on overly simple models (like linear regression or splines) that fail on complex real-world data. More advanced methods using Gaussian Processes (GPs) offer flexibility but suffer from massive computational overhead. The authors aim to bridge this gap, providing a flexible, scalable, and theoretically sound way to measure causal "succinctness."

Methods

The authors introduce COMIC, which leverages Bayesian Neural Networks (BNNs) to model the conditional distributions of the data.

  1. Two-Part Coding: They approximate the total codelength $L$ as the sum of model fitness ($L_1$) and model complexity ($L_2$).
  2. Variational Bayesian (VB) Complexity: Instead of just counting parameters, they use the Evidence Lower Bound (ELBO) from variational inference. This provides a principled "Bayesian codelength" that accounts for the uncertainty and complexity of the neural network's weights.
  3. Flexible Likelihoods: The NNs predict both the mean and the variance (heteroscedastic noise), allowing the model to fit a wide variety of data-generating processes.
  4. Identifiability Proof: The authors provide a theoretical proof that their specific BNN setup is "non-separable-compatible." In short, given enough data, the causal direction is mathematically guaranteed to be identifiable via their complexity score.

Datasets

The researchers evaluated COMIC against a massive battery of benchmarks:

  • 12 Synthetic Benchmarks: These include standard sets like AN (Additive Noise), LS (Location-Scale), and more complex simulations like SIM and CE-Net, totaling hundreds of cause-effect pairs.
  • Real-World Data: The Tübingen cause-effect pairs, a gold-standard dataset containing 99 pairs from diverse fields like meteorology, biology, and economics.

Key Insights and Ideas

  • Causality as Compression: The core insight is that the most likely causal direction is the one that allows for the most efficient "lossless compression" of the observations. If $X$ causes $Y$, then $P(X)P(Y|X)$ should be easier to describe than $P(Y)P(X|Y)$.
  • Neural Networks as MDL Engines: While NNs are often criticized as "black boxes," this paper uses them as highly flexible tools for estimating description lengths. The Variational Bayesian framework acts as a built-in Occam's Razor, preventing the NNs from "cheating" by over-complexifying the model to fit the noise.
  • Scalability Matters: Unlike Gaussian Process-based methods that require high-end GPUs and struggle with large datasets, COMIC is efficient enough to run on standard CPUs while maintaining high accuracy.

Key Results

COMIC demonstrated robust performance, consistently ranking as the second-best method overall across all benchmarks, trailing only the much more computationally expensive GPLVM.

Radar charts showing performance on synthetic and real-world benchmarks.

The radar charts above illustrate COMIC's well-rounded performance across various data types. It particularly excels on the real-world Tübingen set compared to traditional maximum-likelihood methods like CAM and LOCI.

Furthermore, as seen in the summary charts below, COMIC achieves a high average accuracy (~0.80) and Bidirectional AUROC (~0.84). It shows significantly more consistency (smaller error bars) than many established baselines like IGCI or SLOPE.

Overall average accuracy and Bi-AUROC across all benchmarks.

Limitations and Future Work

  • Non-Convexity: The learning objective for BNNs is non-convex, meaning the model can sometimes get stuck in local optima, potentially affecting the consistency of the codelength estimate.
  • Gaussian Bias: The current implementation uses a standard Gaussian codelength for the marginal distribution of the cause. This might introduce a slight bias toward "more Gaussian" variables.
  • Future Directions: The authors plan to extend this framework to multivariate settings (more than two variables) and explore more robust likelihood functions, such as Student’s t-distributions, to handle outliers even better.

Summary updated

BibTeX
@inproceedings{tran2025identifying,
  author = {Quang-Duy Tran and Bao Duong and Phuoc Nguyen and Thin Nguyen},
  title = {{Identifying Causal Direction via Variational Bayesian Compression}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=F0sinjQMnv},
}
Figure