arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.23862stat.ME
收藏

用于统计推断的大语言模型:上下文增强及其在两样本问题和回归中的应用

Large Language Models for Statistical Inference: Context Augmentation with Applications to the Two-Sample Problem and Regression

Marc Ratkovic

AI总结:

本文提出上下文增强方法,利用大语言模型为观测字符串生成上下文以促进频率主义推断,并应用于两样本检验和文本回归,理论上提供了识别条件与高阶效率证明。

摘要:

我们引入了上下文增强,这是一种数据增强方法,它利用大语言模型(LLMs)围绕观测字符串生成上下文,以此作为促进有效频率主义推断的手段。这些生成的上下文用于重新引入不确定性、结合辅助信息并促进可解释性。例如,在两样本检验中,我们比较字符串在自身所在组的上下文与另一组上下文下的对数概率。我们在合成数据上表明,该方法的t统计量表现出预期的原假设行为,同时保持了功效,并且通过重复实验表明该方法是强大且可解释的。接下来,我们引入文本对文本回归。围绕预测变量字符串生成的上下文被视为预测变量字符串与结果字符串之间的中介变量。使用阴性对照,我们区分了预测的语义和句法维度。对现实对话数据的分析展示了心理语言学框架预测的行为。在理论上,我们提供了识别条件,推导了影响函数分解,并证明枢轴统计量的重复交叉拟合能产生高阶效率。我们推导了联系估计误差、上下文数量和交叉拟合次数的界限。总而言之,上下文增强提供了将LLMs与长期统计实践相结合的能力。

英文摘要:

We introduce context augmentation, a data-augmentation approach that uses large language models (LLMs) to generate contexts around observed strings as a means of facilitating valid frequentist inference. These generated contexts serve to reintroduce uncertainty, incorporate auxiliary information, and facilitate interpretability. For example, in the two-sample test, we compare the log-probability of strings under contexts from its own versus the other group. We show on synthetic data that the method's t-statistics exhibit the expected null behaviour while maintaining power and, through a replication, that the method is powerful and interpretable. We next introduce text-on-text regression. Contexts generated around the predictor string are treated as mediating variables between the predictor and outcome strings. Using negative controls, we then distinguish between semantic and syntactic dimensions of prediction. Analysis of real-world dialogic data illustrates behaviour predicted from a psycholinguistic framework. Theoretically, we provide identification conditions, derive an influence-function decomposition, and show that repeated cross-fitting of a pivotal statistic yields higher-order efficiency. We derive bounds linking estimation error, context count, and number of cross-fits. Taken together, context augmentation offers the ability to connect LLMs with longstanding statistical practice.

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

↑