When testing whether two variables are conditionally independent given a complex object like a text or an image, researchers often replace that object with a learned embedding. A new paper from arXiv shows that this substitution can invalidate the test: if the embedding discards information that is relevant to the dependence structure, the probability of rejecting a true null hypothesis can approach one.
The authors derive an exact expression for this bias in a residual correlation test inspired by the Generalised Covariance Measure. Under the null, the bias equals the absolute correlation of the parts of the conditional expectations missed by the embedding, multiplied by the geometric mean of two partial R² values. This treats the discarded information as an omitted variable, making the failure mode concrete and measurable.
To address the problem, they propose a robust test that requires the user to declare a tolerance for that geometric mean, much like a sensitivity parameter. On synthetic data and on real text embeddings, the robust test approximately maintains its nominal level. However, in a striking result, when the conditioning variable is text generated by a language model, every embedding—including the model's own internal states—biases the embedded test under an exact null, suggesting that the issue is not easily fixed by choosing a better representation.