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

AI驱动发现中统计严谨性的结构强制:一种功能架构

Structural Enforcement of Statistical Rigor in AI-Driven Discovery: A Functional Architecture

Institute of Chemistry, Academia Sinica(中央研究院化学研究所)

Karen Sargsyan

AI总结:

提出一种功能架构,通过Haskell领域特定语言和OS级沙箱强制统计严谨性,结合Lean~4形式化验证的LORD++在线FDR控制,实现从定理到浮点实现的验证链,有效控制错误发现率。

摘要:

AI科学家系统面临通过不受控的多重测试制造虚假发现的风险。我们提出一种功能架构,在两个层面强制统计严谨性:一个Haskell嵌入式领域特定语言(Research monad),使得测试假设时必须更新错误预算,否则无法进行;以及一个声明性框架,由OS级沙箱支持,使得验证数据在LLM生成代码运行的环境中物理上不可见。我们将设计基于机器检查的Lean~4形式化LORD++在线错误发现率(FDR)控制:推导其错误预算并证明边际和完全FDR控制,然后通过验证预算在SPARK/Ada中IEEE~754算术上的财富不变性来弥合与实现之间的差距。据我们所知,这是第一个从定理到浮点实现的在线FDR程序验证链。在模拟中,该架构将错误发现率保持在接近1%(目标5%),而朴素方法达到41%。在端到端案例研究中,有效测试避免了有缺陷测试产生的虚假发现,但在数据允许时仍能发现真实效应。对抗性评估证实,即使给出精确路径,生成的代码也无法读取保留数据。

英文摘要:

AI-Scientist systems risk manufacturing spurious discoveries through uncontrolled multiple testing. We present a functional architecture that enforces statistical rigor at two levels: a Haskell embedded domain-specific language (the Research monad) that makes it impossible to test a hypothesis without updating the error budget, and a declarative scaffold that fixes the data flow and the statistical test, together with an OS-level sandbox that makes validation data physically absent from the environment in which LLM-generated code runs. We treat FDR control as a formal requirement and trace it to the implementation. We ground the design in a machine-checked Lean~4 formalization of LORD online false-discovery-rate (FDR) control: we derive its error budget and prove marginal FDR control, and full FDR control when thresholds do not adapt to earlier rejections. We then verify in SPARK/Ada that the LORD thresholds, computed in IEEE~754 arithmetic, never exceed the available wealth, given a margin condition that our configurations meet by a factor of at least eight; without a margin the property fails. To our knowledge this is the first machine-checked proof of an online FDR control theorem. In simulation, the architecture holds the false discovery rate near 1\% against a 5\% target, where a naive approach reaches 41\%. In end-to-end case studies, a valid test avoids the false discoveries a flawed one produces, yet still finds real effects when the data allow. An adversarial evaluation confirms that, inside the sandbox, generated code cannot read the held-out data even when given its exact path.

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

↑