Residual-Based Causal Discovery via Pretrained In-Context Quantile Regression

Daniel Klippert, Quang Nhat Huynh, Alexander Marx
10/21/2026
stat.MLcs.LG

No confident code implementation found for this paper.

Abstract

Residual-based causal discovery assumes that each variable is generated from its parents and an independent noise source. It estimates this noise and tests its independence from candidate causes. For identifiable functions such as additive-noise models (ANMs) and the broader class of location-scale noise models (LSNMs), this principle identifies the causal direction, as only the causal model admits this independence. Existing LSNM methods rely on parametric assumptions to obtain standardized residuals, risking model misspecification. In contrast, the RESIT-framework allows for nonparametric estimation of residuals to iteratively identify sink nodes, but was proposed for ANMs. To close this gap, we propose Loscar, an extension of RESIT to LSNMs that estimates the conditional mean and scale via quantile regression, enabling pretrained tabular foundation models as plug-in estimators. We compare it with a feasible generalized least squares (FGLS) variant, which is consistent given suitable basis functions. Across bivariate and multivariate causal-discovery benchmarks, in-context quantile regression substantially outperforms FGLS with flexible function classes, particularly for multivariate causes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{klippert2026residualbased,
  title  = {Residual-Based Causal Discovery via Pretrained In-Context Quantile Regression},
  author = {Daniel Klippert and Quang Nhat Huynh and Alexander Marx},
  year   = {2026},
  eprint = {2610.29530},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.29530v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.29530.svg)](https://codeofpaper.com/paper/2610.29530)

Discussion