The Confounder Trap: Treatment-Encoding Representations in Causal Inference with Text

Marie Neubrander, Graham Tierney, Alexander Volfovsky
7/28/2026
stat.MEcs.CLstat.AP

No confident code implementation found for this paper.

Abstract

Estimating causal effects of linguistic properties from observational text is difficult because the same document can contain both the treatment of interest and the non-treatment textual attributes needed for adjustment. Existing approaches often learn representations from the full text to capture latent confounding, but when treatment status is itself encoded by words in the text, these representations can directly encode treatment. This creates a confounder trap: richer representations can make treated and control documents separable, inducing overlap violations even when the underlying causal problem satisfies overlap. We study latent text treatments that are encoded through lexicons or other treatment-defining lexical information, and propose masking-based adjustment representations that remove this lexical treatment signal before representation learning. We formalize representation-induced overlap failure, prove that deletion masking preserves overlap for bag-of-words/topic-model representations, and characterize replacement masking as a natural relaxation for large language models that hides treatment-defining tokens while preserving word order and context. Across simulations, masking improves overlap diagnostics, stabilizes treatment effect estimates, and reduces bias relative to adjustment methods that learn from the unmasked text.

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{neubrander2026confounder,
  title  = {The Confounder Trap: Treatment-Encoding Representations in Causal Inference with Text},
  author = {Marie Neubrander and Graham Tierney and Alexander Volfovsky},
  year   = {2026},
  eprint = {2607.26309},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.26309v1}
}

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/2607.26309.svg)](https://codeofpaper.com/paper/2607.26309)

Discussion