arXiv(opens in a new tab)cs.CLSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.01322

Exploring Sparse Autoencoders in Text-Based Causal Confounding Adjustment

Mian Zhong, Katherine A. Keith, Anjalie Field

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In many settings, studying causal questions based on text data requires adjusting for confounding information within texts. Yet there is a tradeoff in constructing text representations for adjustment: they must be sufficiently large and/or dense to preserve the confounding variables necessary for unbiased effect estimation, but sufficiently small and/or sparse to satisfy finite-sample overlap and yield low-variance estimates. To address this tradeoff, we turn to sparse autoencoders (SAEs), and propose a novel causal adjustment pipeline that iteratively selects a minimal set of SAE features via conditional independence tests. We find that SAE representations achieve better adjustments (lower bias and higher coverage) than alternative representations in standard semi-synthetic evaluations with binary confounders, and their interpretability offers opportunities for falsification. We also introduce a more realistic semi-synthetic evaluation that uses multilabel data as the unobserved confounders and find off-the-shelf adjustment methods require increased investigation for these more complex settings. Code: sae-text-confounder

1 Introduction

Does the type of media coverage of a legislative bill affect the number of legislators who vote for it? Does opting-in for an AI peer reviewer affect the acceptance of a manuscript to a venue? Does browsing on a mobile device versus computer affect the rates at which people share news articles? These are all questions about the causal effects of a treatment variable (e.g., media coverage type, review policy, or reading device) on an outcome variable (e.g., number of votes, paper acceptance, or article popularity). Furthermore, these are the kinds of causal questions in which randomized controlled trails may be inaccessible or infeasible and researchers may only have access to observational data. In these observational settings, language data is often a confounding variable that must be adjusted for to obtain unbiased causal estimates. For example, the topic of a news article may influence a user's choice of device and proclivity to share.

Adjusting for confounding variables is well-studied in causal inference. However, adjusting for text-as-confounders remains difficult due to the high-dimensional nature of text and the limited interpretability of black-box text representations and causal adjustment methods (Keith et al., 2020; Feder et al., 2022). Often, the challenges faced in applied work are mismatched with the “best” estimators. For example, while double machine learning is theoretically unbiased and can accommodate high-dimensional data types (Chernozhukov et al., 2017), the black-box nature of this method makes it difficult to detect failures such as “lack of common support” (Hill and Su, 2013) in applied settings. Roberts et al. (2020) propose combining structural topic models with causal matching to increase interpretability, reduce extrapolation, and allow human oversight of adjustment quality. Yet, they rely on the topic model representations from bag-of-words input sufficiently capturing confounders.

Recent work has demonstrated that sparse autoencoders (SAEs) (Makhzani and Frey, 2014) produce atomic, expressive, and interpretable features in the decomposition of large language models (Huben et al., 2024; Bricken et al., 2023; Templeton et al., 2024; Bills et al., 2023). Two characteristics of SAEs suggest their potential value for causal adjustment. First, SAEs have been shown to be expressive and interpretable representations in correlational analyses of text data, including in comparison to topic modeling approaches (Movva et al., 2025; Jiang et al., 2025; Choi et al., 2025). Second, the sparsity of an SAE representation is an asset when adjusting for confounding since as the dimension of the adjustment set grows, strict overlap decreases (D'Amour et al., 2021) and estimator variance increases. Because only a small number of SAE features are active for a given text, the effective adjustment set is small even when the number of SAE features are large.

Motivated by these characteristics, we propose, implement, and empirically evaluate a causal adjustment pipeline with SAE representations. Given standard assumptions in observational causal inference (overlap, homogeneous effect etc.) and text-specific assumptions such as causally sufficient representations (see §3.1 for specifics), our pipeline aims to achieve unbiased, low-variance estimates along with interpretable diagnostics supporting falsification for applied researchers. At a high-level, our pipeline trains an SAE on all input text and then uses a Lasso logistic regression model with conditional independence tests to select a minimal subset of SAE features that correlate with treatment. Then our subsetted SAE features can be used with downstream causal estimators; in this work, we compare double machine learning and matching. We empirically compare our method to alternatives using four semi-synthetic evaluations, including new multi-class and multi-label confounder evaluations. 1^{1} In evaluations with binary confounders, with similar setups as prior work (Roberts et al., 2020; Veitch et al., 2020; Veljanovski and Wood-Doughty, 2024), we find SAEs recover simulated treatment effects more accurately than alternatives.

Our primary contributions include:

• A method to combine SAEs with confounding adjustment methods that offers strong empirical performance in standard binary and multi-class semi-synthetic evaluation settings and diagnostics supporting falsification.

• A new semi-synthetic evaluation for text as confounding, the first to our knowledge, that uses multi-label oracle confounding, moving closer to realistic text as confounding settings. Our results for this setting are mixed, encouraging applied researchers to be cautious when using black-box adjustment methods.