stat.MLOct 8, 2026

Embedding-Bias in Conditional Independence Testing

Authors: Nikolaj Thams, Anton Rask Lundborg

Organizations: Department of Mathematical Sciences University of Copenhagen Copenhagen, Denmark

Abstract

To test conditional independence of XX and YY given a text or an image ZZ, one conditions on an embedding ψ(Z)ψ(Z) in place of ZZ. The embedded test is valid if ZZ is independent of XX or of YY given ψ(Z)ψ(Z), which cannot be confirmed from data, and when this fails, the rejection probability under the null hypothesis can tend to one. We study this failure, and show that focusing on a specific form of dependence relaxes what the embedding must retain. For a residual correlation test inspired by the Generalised Covariance Measure, validity only requires that the parts of E[X∣Z]\mathbb{E}[X \mid Z] and E[Y∣Z]\mathbb{E}[Y \mid Z] missed by E[X∣ψ(Z)]\mathbb{E}[X \mid ψ(Z)] and E[Y∣ψ(Z)]\mathbb{E}[Y \mid ψ(Z)] are uncorrelated. Otherwise, we treat the discarded information as an omitted variable. Under the null hypothesis, the bias equals the absolute correlation of the missed parts times the geometric mean of two partial R2R^2 values. This identity yields a robust test valid under a declared tolerance for the geometric mean, which, like a sensitivity parameter, is not identified from the data. On synthetic data and text embeddings, the robust test holds its level approximately. On text generated by a language model, under an exact null hypothesis, every embedding, even the generator's own states, biases the embedded test.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Embedded Conditional Independence Tests for Large Language Model Generated Text with an Application to German Parliament Speeches

    Sep 1, 2026Marco Simnacher, Georg Keilbar, Benjamin König +2LLM EvaluationPrivacy Leakage in Language Models

  2. Meta-Dependence in Conditional Independence Testing

    Apr 17, 2025Bijan Mazaheri, Jiaqi Zhang, Caroline UhlerConditional Independence Testing

  3. Sequential Kernel-based Conditional Independence Testing via Adaptive Betting

    Jun 17, 2026Zheng He, Danica J. SutherlandKernel MethodsConditional Independence Testing