Embedded Conditional Independence Tests for Large Language Model Generated Text with an Application to German Parliament Speeches
stat.ML, cs.AI, cs.LG, math.ST, stat.ME, stat.TH
Submitted: 2026-09-01
Updated: 2026-09-01
Comments: 41 pages, 6 figures
License: http://creativecommons.org/licenses/by/4.0/
The gist: Conditional independence tests (CITs) test for conditional dependence between two random objects X and Y given a third random object Z.
Terminology
Abstract
Conditional independence tests (CITs) test for conditional dependence between two random objects X and Y given a third random object Z. Existing CITs have limited applicability to high-dimensional data, especially multimodal data like text. However, we show that such tests are of interest for large language model (LLM) outputs, where we test whether an output X generated from a source text Z carries information about an attribute Y beyond Z itself. For this purpose, we propose embedded CITs (eCITs), which embed X and Z and apply an existing CIT to the resulting representations and to Y. We show that, provided the embedding of Z is sufficient, i.e. retains the information Z carries about either Y or the representation of X, the null hypothesis transfers from X and Z to their representations, so that a CIT valid for the embedded hypothesis is valid for the original one. We further give conditions for equivalence of the two hypotheses, and show that sufficiency weakens to mean sufficiency when the embedded test targets conditional mean independence. We propose a semi-synthetic simulation design to assess type I error (T1E) control and power of the eCITs for given embedding maps on a specific dataset and task, and use it to evaluate them on our application. Applying the eCITs to German Parliament speeches, we find for all combinations of embedding maps considered that the summaries of two LLMs contain information about the speaker's faction and gender beyond the speech they were generated from.
Sources
- jina-embeddings-v5-text: Task-Targeted Embedding Distillation
- The Impossibility of Fair LLMs
- On the Robustness of Multilingual Text Embedding Rankings Across Learning Tasks, Languages, and Benchmark Datasets
- Intrinsic Bias Metrics Do Not Correlate with Application Bias
- A Survey on Fairness in Large Language Models
- NV-Retriever: Improving text embedding models with effective hard-negative mining
- New Encoders for German Trained from Scratch: Comparing ModernGBERT with Converted LLM2Vec Models
- Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models
Related papers
- Behavior of prediction performance metrics with rare events
- Optimal Estimation of Generic Dynamics by Path-Dependent Neural Jump ODEs
- A Posterior-Dynamics Framework for Imaging Inverse Problems with Pretrained Diffusion Priors
- Efficient quadratic entropy with distance sketches
- Embedding-Bias in Conditional Independence Testing
- From Log-Odds to Shapley Values: An Explanatory Geometry for the Weighted Naive Bayes Classifier