arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.15835cs.AIcs.CYmath.STstat.TH
收藏

控制AI系统部署前测试中未知未知的概率

Controlling the Probability of Unknown Unknowns in Pre-Deployment Testing of AI Systems

MIT(麻省理工学院);Stanford(斯坦福大学)

Rachel Li, Chris Hays, Aaditya Ramdas, Manish Raghavan

AI总结:

本研究针对AI系统部署前测试的未知未知概率问题,开发了任意时刻有效的上置信序列算法,在SWE-Chat数据集上验证其性能优于相关基线,还扩展方法以适配现实评估场景。

摘要:

在AI智能体等AI系统的部署前测试中,开发者通常可以通过实施修复措施或制定应急预案来处理已知故障模式(例如泄露API密钥、删除重要数据库或安装恶意软件包),以便在相同问题再次出现时应对。更具挑战性的是未知未知:即测试过程中未显现的未见过的故障模式。因此,停止测试并部署的决策面临着固有的权衡:继续测试以观察更多行为,代价是时间和资源;或停止测试并部署,面临故障模式未被发现的风险。那么开发者如何判断何时测试足够?为回答此问题,我们开发了一种算法,可在观察到未见过的故障模式的概率足够小时提供证明。该算法对该量构造了任意时刻有效的上置信序列,因此开发者可重复测试系统、检查边界,并在其低于所选阈值时决定停止,而不会使统计保证失效。我们的问题可解释为缺失质量估计问题的序贯变体,该问题催生了经典的Good-Turing估计器(Good,1953)。在SWE-Chat(真实世界编码智能体轨迹的数据集,Baumann等人,2026)上,我们实现了我们的方法,结果表明其比经多重测试校正的简单Good-Turing基线实现了更紧的上边界,甚至优于固定 horizon(非多重测试校正)的Good-Turing上置信界,该界不具备任意时刻有效性。此外,为更好匹配现实评估流程,我们扩展了我们的方法以处理来自不同任务分布的采样和不完善的自动故障标注。

英文摘要:

In pre-deployment testing of AI systems such as AI agents, a developer can often deal with known failure modes (e.g., leaking API keys, deleting important databases, or installing a malicious package) by implementing fixes or making contingency plans for when the same issue might occur again. What is more challenging are the unknown unknowns: the unseen failure modes that haven't surfaced during testing. The decision to stop testing and deploy therefore faces an inherent tradeoff: continue testing to observe more behaviors, at the cost of time and resources, or stop testing and deploy, at the risk of failure modes remaining undiscovered. How then does the developer decide when they have tested enough? To answer this, we develop an algorithm that certifies when the probability of observing an unseen failure mode is sufficiently small. The algorithm constructs an anytime-valid upper confidence sequence on this quantity, so the developer can repeatedly test a system, inspect the bound, and decide to stop when it falls below a chosen threshold without invalidating the statistical guarantee. Our problem can be interpreted as a sequential variant of the missing-mass estimation problem which gave rise to the classic Good-Turing estimator (Good, 1953). On SWE-Chat, a dataset of real-world coding agent traces (Baumann et al., 2026), we implement our procedure and show that it achieves tighter upper bounds than a simple multiple-testing corrected Good-Turing baseline, and even dominates a fixed-horizon (non-multiple-testing-corrected) Good-Turing upper confidence bound, which is not anytime valid. Additionally, to better match realistic evaluation pipelines, we extend our method to handle sampling from a different task distribution and imperfect automated failure labeling.

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

↑