arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.03029cs.CLcs.AI
收藏

基于研究者指定协变量的条件假设生成用于LLM文本分析

Conditional Hypothesis Generation for LLM-Based Text Analysis with Researcher-Specified Covariates

University of Maryland, College Park(马里兰大学 College Park 分校)

Paiheng Xu, Jing Liu, Wei Ai

AI总结:

提出条件假设生成框架,通过纳入研究者指定的协变量来引导LLM发现相关子组内而非全局的差异模式,并采用特征-协变量交互和分层内去均值与逆频率重加权两种方法解决子组不平衡和符号反转问题。

摘要:

计算社会科学的一个核心目标是发现语言如何随感兴趣的结果(如政治派别或教学质量)变化的可解释差异。最近的基于LLM的假设生成方法用自然语言描述这些差异,但选择的是全局判别模式,而没有考虑基于研究者领域知识塑造数据的协变量。当忽略协变量时,所选模式可能反映混杂因素而非实质性感兴趣的差异。我们引入了条件假设生成,这是一个纳入研究者指定协变量的框架,以将假设发现引导至相关子组内成立的差异。出现了两个挑战:目标子组可能代表性不足(分层不平衡),并且差异的方向可能在子组间反转(符号反转)。我们提出了两种受计量经济学启发的方法:一种引入特征-协变量交互以检测符号反转,另一种应用分层内去均值和逆频率重加权以平衡代表性不足的分层。合成实验表明,每种方法在其目标设置中均优于全局基线,对两个真实世界数据集的专家评估证实,协变量感知的生成在相关子组内产生了更有用的假设。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑