Embedding-Bias in Conditional Independence Testing

arXiv:2610.11584 · stat.ML, cs.LG · Submitted 2026-10-08 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: I'm Tom, and with me are Jane, Lu, senior AI researcher at Tsinghua, Meng, lead engineer at a mysterious AI startup and Lalam, the in-house Large Language Model.

Jane: Today's paper: "Embedding-Bias in Conditional Independence Testing".

Tom: The gist The paper studies embedding-bias in conditional independence testing by formalizing and quantifying how conditioning on an embedding, instead of the original variable,

Jane: First, who's behind it and why it matters.

Paper summary: Tom: So, wrapping up "Embedding-Bias in Conditional Independence Testing," the main point is that simply using an embedding instead of the original variable in a conditional independence test can break the test's validity if that embedding isn't sufficient. The authors formalized this by showing how to treat the discarded information as an omitted variable and quantifying its effect.

Jane: They proved that under a declared bound on the geometric mean of partial R2 values, you get a test statistic that remains valid, regardless of how correlated those discarded parts actually are. This is what makes it robust.

Lu: The paper gives us tools to measure this failure through measures like ρψ(f, g) and relating them to the partial R2 values. They show exactly how much the embedding Z changes these measures based on its own structure.

Meng: For engineers building systems that rely on these embeddings, the message is clear: you need a tolerance level for that geometric mean of partial R2 values, and figuring out that tolerance requires some domain knowledge or using better methods to estimate it.

Tom: The authors suggest using richer embeddings to find a tighter lower bound on what that tolerance needs to be, and they even pointed toward prognostic scores as a way to estimate insufficiency more reliably than just sticking with a very rich embedding.

Jane: It’s about acknowledging the limitations of pre-trained encoders. They show that while these methods can approximate the original test level, you have to be careful with how you set your tolerance for that geometric mean; underestimating it leads to a biased test, and overestimating it just hurts your power.

Lu: The paper is useful because it moves us past just saying "embeddings are good" and gives us concrete ways to quantify the bias when they aren't perfect representations of the original data. It’s about how much information an embedding truly retains versus what it discards, page one of that work reads: "Embedding-Bias in Conditional Independence Testing Nikolaj Thams thams@math <ref:2610.11584#pg1,Embedding-Bias in Conditional Independence Testing Nikolaj Thams thams@math>.ku.dk Department of Mathematical Sciences University of Copenhagen Copenhagen, Denmark Anton Rask Lundborg arl@math.ku.dk Department of Mathematical Sciences University of Copenhagen Copenhagen, Denmark"

Meng: So for the future work, they really want to improve those benchmarks for how much insufficiency an embedding demonstrates in a way that’s more reliable across different types of data. It needs to be something we can actually trust when we're making real decisions.

Tom: It’s about moving from just having a test that *might* work, to having a test where you know exactly how good it is under specific conditions and what the limits are for it. That’s what this paper delivers on "Embedding-Bias in Conditional Independence Testing."

Conclusion: Tom: So, this paper "Embedding-Bias in Conditional Independence Testing" is all about how using an embedding instead of the actual data can mess up your conditional independence tests if that embedding isn't perfect.

Jane: Exactly. They're formalizing that problem by looking at how much information gets lost when you switch from a real variable to its representation, the embedding.

Lu: The authors are showing how this loss of information creates a bias under the null hypothesis, and they quantify it using these measures like rho psi of f, g.

Meng: So for practical purposes, what does that mean for us building models? Are we just ignoring some noise in our data by using an embedding?

Lalam: The AI suggests that this could lead to tests that are systematically off-target unless you account for the geometric mean of those partial R2 values.

Tom: It sounds like a warning about relying too much on the structure of embeddings when you're trying to prove independence between things.

Jane: Right, and they propose this robust test where you set a tolerance based on that geometric mean, which isn't just some arbitrary number.

Lu: They even show that using richer embeddings can give you a better estimate for what that necessary tolerance should be.

Meng: If we use these robust tests, it means we can keep our conditional independence checks more reliable even when the embedding is just an approximation of the true data relationship.

Lalam: And if we don't adjust for that bias, our results could be skewed in ways we can't easily spot.

Tom: It boils down to this: how much do you trust the embedding to carry all the necessary information needed for your test to work correctly?

Jane: That’s the core question they’re tackling here with this new framework. And it sets up some interesting questions about what we actually need in those tolerances.

stat.ML, cs.LG

Submitted: 2026-10-08

Updated: 2026-10-08

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 92/100

The gist: The gist The paper studies embedding-bias in conditional independence testing by formalizing and quantifying how conditioning on an embedding, instead of the original variable, can invalidate tests

Key concepts

Embedding-Bias
This occurs when testing conditional independence using an embedding of data (like text) instead of the raw data itself. The embedding might discard crucial information, causing the statistical test to become unreliable or biased, even if the underlying variables are truly independent.
Residual Correlation Test
This is a specific statistical test inspired by measures like the Generalised Covariance Measure. It checks for correlation between parts of the data that are 'missed' by the embedding. Validity depends on ensuring these missed parts remain uncorrelated under the null hypothesis.
Insufficiency Tolerance (B)
This is a declared tolerance level used in a robust test. It represents an assumed upper bound on how much information might be lost when using an embedding. The test remains valid as long as this tolerance is respected, providing robustness against unknown embedding limitations.

Terminology

Summary

The gist The paper studies embedding-bias in conditional independence testing by formalizing and quantifying how conditioning on an embedding, instead of the original variable, can invalidate tests for conditional independence when sufficiency is not guaranteed.

How it works

The core problem addressed is that testing conditional independence of X and Y given Z via an embedding ψ(Z) may not preserve validity because the test relies on the embedding being sufficient, which is generally not true for pre-trained encoders The paper formalizes this by considering the surrogate hypothesis Hψ0: ψX(X) ⊥⊥ ψY (Y) ψZ(Z) and examining how the embedding discards information

The authors define a measure of conditional dependence, ρψ(f, g), which is the absolute correlation of the residuals f − E[f ψ(Z)] and g − E[g ψ(Z)] Under the null hypothesis Hψ0, this measure vanishes if X ⊥⊥ Y ψ(Z), but when sufficiency fails, ρψ can be non-zero even under Hψ0

The bias under the null hypothesis is quantified by an identity that states the bias equals the absolute correlation of the missed parts times the geometric mean of two partial R2 values This identity yields a robust test valid under a declared tolerance for the geometric mean, which is not identified from data

Measures of conditional dependence

The paper introduces several measures of conditional dependence, including ρψ(f, g), which captures different forms of conditional dependence depending on the classes of functions F and G used The measure ρψ(F, G) is defined as the supremum over f∈Fψ and g∈Gψ of ρψ(f, g)

The paper defines the partial R2 value of a function f with respect to ψ(Z) as R2ψ(f), which is defined as E[∆ψ(f) 2] / σ2ψ(f), where ∆ψ(f):= E[f Z]− E[f ψ(Z)] Theorem 2.3 provides a bias bound relating ρψ to ρid and the partial R2 values

The corollary derived from Theorem 2.3 states that under Hψ0, ρψ(F, G) = 0 if and only if λψ(f, g) = 0 for all f and g This means the embedding creates no dependence exactly when the discarded parts are uncorrelated for all pairs

Testing with an insufficient embedding

The paper proposes a residual correlation test inspired by the Generalised Covariance Measure, which uses cross-fitting to estimate conditional means This test is valid under Hψ0 whenever λ = 0, meaning the discarded parts are uncorrelated

The residual correlation test statistic is defined as T:= n−1/2 Pn i=1 Ri sˆR, where Ri:= ˆrX,irˆY,i This statistic is asymptotically equivalent to the GCM test when Hψ0 holds

To create a more robust test, the authors introduce a robust test that controls the level if an analyst assumes q R2ψ(X)R2ψ(Y) ≤ B for some B ≥ 0 This tolerance is called an insufficiency tolerance and is valid if this bound holds

Benchmarking with richer embeddings

The paper establishes a benchmark lower bound for any valid tolerance B by considering a second embedding ψ', where ρψ→ψ′ is the insufficiency demonstrated by ψ' Proposition 3.6 states that every valid tolerance is at least ρψ→ψ'

The authors suggest using prognostic scores, which are one-dimensional embeddings fitted on a split of the sample that is not used for testing, as they demonstrate insufficiency more reliably than a richer embedding

Application

In experiments with text data from the ChangeMyView corpus, the embedded ρˆψ stays close to the unconditional value because embeddings do not fully recover the effect of the comment The results show that while a plain residual correlation test can be biased by an insufficient embedding, a robust test with correct tolerance approximately holds its level and has power

The experiments demonstrate that the robust test with the true bias as tolerance detects almost the same alternatives as the reference test, while the conservative test using the true insufficiency as tolerance only starts rejecting at the strongest alternatives

The paper concludes that a plain residual correlation test can be biased by an insufficient embedding, while the robust test with correct tolerance approximately holds its level and has power, but underestimating the tolerance leads to a biased test and overestimating it to a loss of power

Appendix

The appendix provides detailed proofs for Theorem 2.3, including Lemma A.1 which states that R2ψ(L2(PX,Z)) = 0 if and only if X ⊥⊥ Z ψ(Z) It also details the construction of the robust test p-value pB and its asymptotic validity under a declared tolerance B

The appendix further shows that identification with replicates can be used to identify the sensitivity parameters E[X | Z] and E[Y | Z] These parameters are identified when conditionally independent replicates are available The appendix also details implementation details for the algorithm, including cross-fitting regressions and standard errors

The paper acknowledges that without a tolerance justified by domain knowledge, a rejection is therefore hard to distinguish from an artifact of the embedding The AI use statement details how generative AI tools were used for drafting and editing text and proofs

The acknowledgments state that Nikolaj Thams is supported by the Novo Nordisk Foundation (grant NNF26OC0114284) The regenerated texts of Experiment 3 were computed on the Gefion AI supercomputer, operated by the Danish Centre for AI Innovation (DCAI)

The references list various works related to conditional independence testing, embeddings, and sensitivity analysis The paper includes a section on experimental design and computation details The final discussion highlights the need for better benchmarks for the insufficiency of embeddings

The paper is published as arXiv:2610.11584v1 [stat.

Improvements for AI systems

  1. Improve conditional independence testing by using a robust residual correlation test that controls bias under an insufficiency tolerance. This test rejects H0 when a calculated p-value, derived from the bias-aware pB formula, is less than a threshold α, ensuring the test's validity is not solely dependent on unidentifiable data.

  2. Develop AI systems capable of detecting dependence even when using embeddings that are insufficient for the task. The paper shows that a plain residual correlation test can be biased by an insufficient embedding, and a robust test with a correctly specified tolerance approximately holds its level and has power.

  3. Implement sensitivity analysis to quantify bias caused by discarded information, treating it as an omitted variable. This allows researchers to understand the effect of the embedding on testing validity using sensitivity parameters like partial R2 values, which are identified through conditional independence replicates.

  4. Construct prognostic scores derived from embeddings that demonstrably capture all relevant information about the conditioning variable Z. The paper suggests taking embeddings to be such predictions, known as prognostic scores (Hansen, 2008), because accurate predictions demonstrate all of the insufficiency.

  5. Design generative AI systems that produce conditional independence tests where the null hypothesis is exact under specific conditions. For text generated by a language model under an exact null hypothesis, every embedding, even the generator’s own states, biases the plain embedded test.

Abstract

To test conditional independence of X and Y given a text or an image Z, one conditions on an embedding ψ(Z) in place of Z. The embedded test is valid if Z is independent of X or of Y given ψ(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] and E[Y Z] missed by E[X ψ(Z)] and E[Y ψ(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 R squared 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.

Sources

Related papers