Rank-Based Causal Discovery for Post-Nonlinear Models

Grigor Keropyan, David Strieder, Mathias Drton

Abstract: Learning causal relationships from empirical observations is a central task in scientific research. A common method is to employ structural causal models that postulate noisy functional relations among a set of interacting variables. To ensure unique identifiability of causal directions, researchers consider restricted subclasses of structural causal models. Post-nonlinear (PNL) causal models constitute one of the most flexible options for such restricted subclasses, containing in particular the popular additive noise models as a further subclass. However, learning PNL models is not well studied beyond the bivariate case. The existing methods learn non-linear functional relations by minimizing residual dependencies and subsequently test independence from residuals to determine causal orientations. However, these methods can be prone to overfitting and, thus, difficult to tune appropriately in practice. As an alternative, we propose a new approach for PNL causal discovery that uses rank-based methods to estimate the functional parameters. This new approach exploits natural invariances of PNL models and disentangles the estimation of the non-linear functions from the independence tests used to find causal orientations. We prove consistency of our method and validate our results in numerical experiments.

The Challenge of Post-Nonlinear Causal Discovery

Causal discovery—the process of determining directed relationships from observational data—often relies on Structural Equation Models (SEMs). A particularly flexible and powerful SEM is the Post-Nonlinear (PNL) model, expressed as: $$h(Y) = g(X) + \epsilon$$ In this framework, $g$ represents an inner function of the parent variables, and $h$ is a strictly increasing "post-nonlinear" transformation, such as a sensor distortion.

While PNL models are highly expressive, they are notoriously difficult to learn in multivariate settings. Existing methods typically attempt to find $g$ and $h$ by minimizing the dependence between the estimated noise ($\epsilon$) and the predictors ($X$). This often leads to severe overfitting: the optimization process "cheats" by selecting functions that force the noise to appear independent of the predictors, even when the causal direction is incorrect. This makes traditional PNL methods difficult to tune and prone to errors in complex graphs.

A Robust Rank-Based Approach

To address these limitations, we propose a two-stage framework that disentangles functional estimation from independence testing. The key innovation lies in leveraging the rank-preserving property of the monotonic transformation $h$. Because $h$ is strictly increasing, it does not change the relative order of data points. This allows us to estimate the parameters of the inner function $g$ using rank statistics without needing to model $h$ explicitly.

  1. Rank-Based Regression: We introduce two variants: RankG (optimized for Gaussian noise using pairwise rank likelihood) and RankS (a general-purpose method using smoothed rank correlation).
  2. Causal Ordering: We employ a recursive "sink node" identification strategy. By estimating noise for every possible variable and applying the Hilbert-Schmidt Independence Criterion (HSIC), we identify the variable whose noise is most independent of the others as the sink (a node with no children). This process is repeated to recover the full causal order.
Figure 5: Visualization of the estimated post-nonlinear transformation h(y) (black dots) compared to the ground truth (red line) for both RankG and RankS methods, demonstrating accurate functional recovery.

Key Insights and Experimental Results

Our method was evaluated using synthetic datasets generated from Erdős–Rényi directed acyclic graphs (DAGs) with 4 and 7 nodes, testing various noise distributions and signal strengths.

  • Ranks as a Shield Against Overfitting: By focusing on the order of data points rather than their exact values, the method becomes invariant to the specific shape of $h$. This prevents the model from over-adjusting functional parameters to artificially satisfy independence criteria.
  • The Low-SNR Advantage: Counter-intuitively, the rank-based method often performs better in low-signal-to-noise (high noise) environments. In PNL models, noise drives the changes in ranks that allow the causal direction to be identified; thus, higher noise can actually stabilize the estimator.
  • Superior Accuracy and Robustness: As shown in Figure 1, RankG consistently outperformed state-of-the-art competitors like RESIT and AbPNL across different node counts and noise types (Gaussian, Gumbel, and Logistic).
Figure 1: Comparison of causal discovery error across sample sizes for 4-node and 7-node graphs. RankG (green) shows significantly lower error than AbPNL (brown) and RESIT (blue), particularly in challenging weak-signal scenarios (dashed lines).

Conclusion

By separating the estimation of functional parameters from independence testing, our rank-based framework provides a robust and sample-efficient solution for multivariate PNL causal discovery. It effectively mitigates the overfitting issues that plague existing methods and demonstrates remarkable stability across diverse noise distributions and signal strengths. Future research will explore extending this framework to non-parametric function classes using neural networks while maintaining the core rank-based objective functions.

Summary updated

BibTeX
@inproceedings{keropyan2023rank,
  author = {Grigor Keropyan and David Strieder and Mathias Drton},
  title = {{Rank-Based Causal Discovery for Post-Nonlinear Models}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=XPmaqHJkzH},
}
Figure