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

arXiv: https://arxiv.org/abs/2611.15835 · HTML: https://mlsanity.com/paper/2611.15835/

## 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 (most cited first, 14 of 14)

- [Concrete Problems in AI Safety](https://mlsanity.com/paper/1606.06565/) (2016)
- [Red Teaming Language Models with Language Models](https://mlsanity.com/paper/2202.03286/) (2022)
- [Model evaluation for extreme risks](https://mlsanity.com/paper/2305.15324/) (2023)
- [SWE-chat: Coding Agent Interactions From Real Users in the Wild](https://mlsanity.com/paper/2604.20779/) (2026)
- [E-valuator: Reliable Agent Verifiers with Sequential Hypothesis Testing](https://mlsanity.com/paper/2512.03109/) (2025)
- [Anytime Safe PAC Efficient Reasoning](https://mlsanity.com/paper/2601.22446/) (2026)
- [Asymptotically optimal sequential change detection for bounded means](https://mlsanity.com/paper/2602.05272/) (2026)
- [Besting Good--Turing: Optimality of Non-Parametric Maximum Likelihood for Distribution Estimation](https://mlsanity.com/paper/2509.07355/) (2025)
- [Distribution-free changepoint localization after sequential change detection](https://mlsanity.com/paper/2606.01256/) (2026)
- [Rigorous Agent Evaluation: An Adversarial Approach to Uncover Catastrophic Failures](https://mlsanity.com/paper/1812.01647/) (2018)
- [Blind-Spot Mass: A Good-Turing Framework for Quantifying Deployment Coverage Risk in Machine Learning Systems](https://mlsanity.com/paper/2604.05057/) (2026)
- [Optimal distribution-free sequential change detection with conformal martingales](https://mlsanity.com/paper/2609.27179/) (2026)
- [Confidence intervals for maximum unseen probabilities, with application to sequential sampling design](https://mlsanity.com/paper/2601.20320/) (2026)
- [Conformal changepoint localization](https://mlsanity.com/paper/2602.06267/) (2026)

## 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.
