Conditional Hypothesis Generation for LLM-Based Text Analysis with Researcher-Specified Covariates
Not on the map. Why?
Abstract (arXiv)
A core goal of computational social science is to discover interpretable differences in how language varies across outcomes of interest, such as political affiliation or instructional quality. Recent LLM-based hypothesis generation methods describe such differences in natural language, but select for globally discriminative patterns without accounting for covariates that shape the data based on researchers' domain knowledge. When covariates are ignored, selected patterns can reflect confounds rather than differences of substantive interest. We introduce conditional hypothesis generation, a framework that incorporates researcher-specified covariates to steer hypothesis discovery toward differences that hold within relevant subgroups. Two challenges arise: the target subgroup may be underrepresented (stratum imbalance), and the direction of a difference may reverse across subgroups (sign reversal). We propose two econometrics-inspired methods: one introduces feature--covariate interactions to detect sign reversals, and the other applies within-stratum demeaning and inverse-frequency reweighting to equalize underrepresented strata. Synthetic experiments show each method outperforms global baselines in its targeted setting, and expert evaluation on two real-world datasets confirms that covariate-aware generation surfaces more useful hypotheses within relevant subgroups.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 47 references that are in the map. First posted on arXiv 2 Jun 2026.
Builds on
9 of 47 references.
References · 9
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2023Goal Driven Discovery of Distributional Differences via Language Descriptionscited by 61
- 2022Describing Differences between Text Distributions with Natural Languagecited by 54
- 2022The NCTE Transcripts: A Dataset of Elementary Math Classroom Transcriptscited by 43
- 2024Explaining Datasets in Words: Statistical Models with Natural Language Parameterscited by 21
- 2024Literature Meets Data: A Synergistic Approach to Hypothesis Generationcited by 19
- 2025Position: Use Sparse Autoencoders to Discover Unknownscited by 17
- 2024The Promises and Pitfalls of Using Language Models to Measure Instruction Quality in Educationcited by 9
- 2025Causal Inference on Outcomes Learned from Textcited by 6
Built on by
Not cited yet.