AI编码代理做实证研究带来的选择后推断偏差及校正方法
Inference after coding agents
AI编码代理在零效应模拟数据上被要求给出有说服力的发现时,四款前沿代理有54%至98%的概率报告显著p值。研究提出一种检测与校正流程:在代理完成分析后重置并在数据子样本上重放,估计其在结果有利时选择该分析的概率,从而得到渐近有效的校正检验。模拟中该方法将虚高拒绝率降至接近名义5%水平。
arXiv:2611.23174v1 Announce Type: cross Abstract: Empirical research is changing rapidly as AI coding agents are becoming increasingly proficient in every step of it, from writing code to manipulating data. We argue that while the potential of coding agents for science is vast, their use in hypothesis testing poses a substantial threat to classical inference, as these agents enable a supercharged form of selective inference. In particular, we argue that coding agents carrying out empirical research introduce a new type of post-selection inference that combines human-like, open-ended search over an implicit space of estimators with programmatic replayability of both the selection and the estimation process. Indeed, we find that on simulated data with zero effects, four frontier agents report significant p-values between 54% and 98% of the time when asked to produce a compelling finding. We propose a simple procedure for detecting and correcting these distortions. After an agent has completed its analysis, we reset and replay it on subsamples of the data to estimate the agent's relative probability of selecting that analysis when it looks statistically favorable. For agents with stable selection behavior, the resulting corrected test is asymptotically valid and consistent conditional on selection. Importantly, the correction is learned from the black-box agent's actual choices rather than a model of how it searches, so it remains valid even as AI technology continues to evolve rapidly. In simulations, the correction robustly lowers the high false rejection rates to near the nominal 5%. We illustrate the method on applications from two published papers.
来源:arXiv (AI + Vision + Imaging) · arxiv.org