Identifying Causal Direction via Variational Bayesian Compression

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

Abstract

Determining the causal relationship between two variables $X$ and $Y$ from observational data is a fundamental challenge in science. This paper introduces COMIC (Bayesian COMpression-based approach to Identifying the Causal direction), a method that leverages the Algorithmic Markov Condition. By using Bayesian neural networks and variational inference, COMIC approximates algorithmic complexity through the Minimum Description Length (MDL) principle. Our evaluation across synthetic and real-world datasets shows that COMIC provides a flexible, scalable, and highly accurate solution for bivariate causal discovery, outperforming traditional regression-based methods and rivaling computationally intensive Gaussian Process models.

Introduction

In many domains where controlled experiments are impossible, researchers must rely on observational data to infer causality. Bivariate causal discovery aims to distinguish between $X \to Y$ and $Y \to X$. A powerful heuristic for this is the Algorithmic Markov Condition, which posits that the true causal factorization $P(\text{Cause})P(\text{Effect}|\text{Cause})$ is simpler—requiring fewer bits to describe—than the anti-causal factorization $P(\text{Effect})P(\text{Cause}|\text{Effect})$.

While Kolmogorov complexity provides a formal definition of "simplicity," it is incomputable. Practical approximations typically use the Minimum Description Length (MDL) principle. However, existing MDL-based methods often face a trade-off: they either use simple models (like linear regression) that cannot capture complex dependencies or use Gaussian Processes (GPs) that are accurate but fail to scale. COMIC addresses this by employing neural networks as flexible, scalable compressors.

Methods

COMIC utilizes neural networks to model conditional distributions, benefiting from their properties as universal approximators. The core of the approach is Variational Bayesian (VB) Coding.

  1. Complexity Approximation: Instead of a simple point estimate, COMIC uses the Evidence Lower Bound (ELBO) as a proxy for the total codelength. This metric accounts for both the model's fit to the data and the complexity of the model parameters (the bits needed to store network weights).
  2. Causal Scoring: For each potential direction, COMIC calculates a total codelength score: $$\Delta = \text{Codelength}(\text{Marginal}) + \text{Codelength}(\text{Conditional})$$ The direction yielding the lower total codelength is identified as the causal direction.

  3. Identifiability: The authors provide a theoretical proof showing that their specific neural network architecture is "non-separable-compatible," ensuring the causal direction is uniquely identifiable as the sample size increases.

Results and Discussion

The performance of COMIC was evaluated against a wide array of baselines, including IGCI, CAM, and GPLVM, across 12 synthetic benchmarks and the real-world Tübingen cause-effect pairs.

Performance comparison across diverse synthetic and real-world benchmarks using radar charts for Accuracy and Bi-AUROC.

As shown in the radar charts, COMIC demonstrates consistent high performance across various noise types, including additive (AN), location-scale (LS), and multiplicative noise (MN-U). Notably, it achieved 100% accuracy on several synthetic benchmarks where traditional methods often struggle, particularly on more difficult "suffix" versions of these tests.

Overall average Accuracy and Bi-AUROC across all benchmarks, highlighting COMIC's competitive performance against baseline methods.

Overall, COMIC achieved the second-best performance across all benchmarks, trailing only the computationally expensive GPLVM. It showed significantly lower variance in accuracy across different dataset types compared to baselines like IGCI or CAM, indicating its robustness as an "all-weather" tool. On the real-world Tübingen dataset, COMIC outperformed most complexity-based and maximum-likelihood methods.

Conclusion

COMIC represents a significant step forward in bivariate causal discovery by bridging deep learning and information theory. By treating the ELBO as a direct measurement of information complexity, it provides a scalable alternative to Gaussian Processes without sacrificing flexibility. Future work will focus on extending COMIC to multivariate settings and exploring more sophisticated prior distributions to further enhance its robustness.

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