Controlling the Probability of Unknown Unknowns in Pre-Deployment Testing of AI Systems
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 14 of its 37 references that are in the map. Submitted 11 Nov 2026.
Builds on
14 of 37 references.
References · 14
- 2016Concrete Problems in AI Safetycited by 1,771
- 2022Red Teaming Language Models with Language Modelscited by 1,093
- 2023Model evaluation for extreme riskscited by 207
- 2026SWE-chat: Coding Agent Interactions From Real Users in the Wildcited by 64
- 2025E-valuator: Reliable Agent Verifiers with Sequential Hypothesis Testingcited by 19
- 2026Anytime Safe PAC Efficient Reasoningcited by 5
- 2026Asymptotically optimal sequential change detection for bounded meanscited by 5
- 2025Besting Good--Turing: Optimality of Non-Parametric Maximum Likelihood for Distribution Estimationcited by 4
- 2026Distribution-free changepoint localization after sequential change detectioncited by 4
- 2018Rigorous Agent Evaluation: An Adversarial Approach to Uncover Catastrophic Failurescited by 3
- 2026Blind-Spot Mass: A Good-Turing Framework for Quantifying Deployment Coverage Risk in Machine Learning Systemscited by 2
- 2026Optimal distribution-free sequential change detection with conformal martingalescited by 2
2 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Towards Risk-free AI Agent Deployment
- 2026Evaluation Blindness: How Silent Measurement Failures Corrupt AI Systems from Training to Deployment
- 2026AI Assurance: A Comprehensive Testing Strategy for Enterprise AI Systems
- 2026Reliability Engineering for AI Systems: Challenges, Methods, and Directions
- 2026Who&When Pro: Can LLMs Really Attribute Failures in AI Agents?
- 2018Multiparty Dynamics and Failure Modes for Machine Learning and Artificial Intelligence
- 2025Position: AI Safety Must Embrace an Antifragile Perspective
- 2025An Empirical Study of Testing Practices in Open Source AI Agent Frameworks and Agentic Applications