Adaptive auditing of AI systems with anytime-valid guarantees
Siyu Zhou, Patrick Vossler, Venkatesh Sivaraman, Yifan Mai, Jean Feng
STAI-X 2026 Poster Track
TL;DR. This paper formalizes adaptive audits of AI systems for failure modes within a statistically rigorous framework with "dueling" hypothesis tests and e-processes that maintain finite-sample anytime-valid Type-I error control.
Abstract. A major bottleneck in characterizing the failure modes of generative AI systems is the cost and time of annotation and evaluation. Consequently, adaptive testing paradigms have gained popularity, where one opportunistically decides which cases and how many to annotate based on past results. While this framework is highly practical, its extreme flexibility makes it difficult to draw statistically rigorous conclusions, as it violates classical assumptions: the number of observations is typically limited (often 10 to 50 cases) and decisions regarding sampling and stopping are made in the midst of data collection rather than based a pre-specified rule. To characterize what statistical inferences can be drawn from highly adaptive audits, we introduce a hypothesis testing framework from two 'dueling' perspectives: (i) the model's null that asserts there is no failure mode with performance below a target threshold versus (ii) the auditor's null that asserts they have a sampling strategy that will uncover a failure mode. Leveraging Safe Anytime-Valid Inference (SAVI), we formalize the auditor as conducting 'testing by betting', which translates into simultaneous e-processes for testing the dueling null hypotheses. Furthermore, \textit{if} the auditor is sufficiently powerful, we prove that these two hypotheses are asymptotically inverses of each other, in that passage of such an audit certifies the AI system as being globally robust. Empirically, we demonstrate that our proposed testing procedures maintain anytime-valid Type-I error control, outperform pre-specified testing methods, and can reach statistically rigorous conclusions sometimes with as few as 20 observations.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper formalizes adaptive auditing of AI systems, where an auditor chooses which and how many test cases to annotate on the fly with no pre-specified sampling or stopping rule. It frames the audit as two "dueling" nulls — the model's null that no sufficiently prevalent subgroup underperforms, and the auditor's null that its adaptive strategy will surface such a subgroup — and tests them with e-processes (testing-by-betting) that guarantee finite-sample, anytime-valid Type-I control under arbitrary stopping. The reviewers are consistently positive, praising the dueling-null formulation as novel and the anytime-valid machinery as the right tool, correctly applied. I share this assessment and am inclined to accept. The core contribution is sound and timely. The finite-sample guarantee is confirmed empirically. The one shared reservation is that the "certification" framing overreaches: Theorem 1's global-robustness conclusion rests on an asymptotic-consistency assumption that effectively presumes the auditor already succeeds, and this is not established for the deployed auditor. I ask the authors to address the following points in their rebuttal:
- Certification claim. Can you restate Theorem 1 as explicitly conditional and asymptotic, tone down the abstract and introduction accordingly and clarify whether any concrete auditor class provably satisfies the consistency assumption?
- Detection vs. discovery. Can you show the auditor surfacing a failure mode outside the pre-defined strata, rather than only detecting planted failures among known groups?
- Practical guidance. Can you give guidance on setting the prevalence/performance thresholds, budget, and stopping rules, and resolve the q = 0.83 vs 0.85 inconsistency?
Final justification
This paper made a timely contribution on establishing auditing framework of AI systems. The authors' response addressed the important concerns of the reviewers. Based on these I am supportive of the acceptance of this work.
Read meta-review
Meta-review
This paper formalizes adaptive auditing of AI systems, where an auditor chooses which and how many test cases to annotate on the fly with no pre-specified sampling or stopping rule. It frames the audit as two "dueling" nulls — the model's null that no sufficiently prevalent subgroup underperforms, and the auditor's null that its adaptive strategy will surface such a subgroup — and tests them with e-processes (testing-by-betting) that guarantee finite-sample, anytime-valid Type-I control under arbitrary stopping. The reviewers are consistently positive, praising the dueling-null formulation as novel and the anytime-valid machinery as the right tool, correctly applied. I share this assessment and am inclined to accept. The core contribution is sound and timely. The finite-sample guarantee is confirmed empirically. The one shared reservation is that the "certification" framing overreaches: Theorem 1's global-robustness conclusion rests on an asymptotic-consistency assumption that effectively presumes the auditor already succeeds, and this is not established for the deployed auditor. I ask the authors to address the following points in their rebuttal:
- Certification claim. Can you restate Theorem 1 as explicitly conditional and asymptotic, tone down the abstract and introduction accordingly and clarify whether any concrete auditor class provably satisfies the consistency assumption?
- Detection vs. discovery. Can you show the auditor surfacing a failure mode outside the pre-defined strata, rather than only detecting planted failures among known groups?
- Practical guidance. Can you give guidance on setting the prevalence/performance thresholds, budget, and stopping rules, and resolve the q = 0.83 vs 0.85 inconsistency?
Final justification
This paper made a timely contribution on establishing auditing framework of AI systems. The authors' response addressed the important concerns of the reviewers. Based on these I am supportive of the acceptance of this work.
2 comments
References:
[1] Anthony, Martin, and Peter L. Bartlett. Neural Network Learning: Theoretical Foundations. Cambridge UP, 1999.
[2] Auer, Peter, Nicolo Cesa-Bianchi, and Paul Fischer. "Finite-time analysis of the multiarmed bandit problem." Machine learning 47.2 (2002): 235-256.
[3] Biau, Gérard, and Benoît Cadre. "Optimization by gradient boosting." Advances in contemporary statistics and econometrics: Festschrift in honor of christine thomas-agnan. Cham: Springer International Publishing, 2021. 23-44.
[4] Goetz, Jack, Ambuj Tewari, and Paul Zimmerman. "Active learning for non-parametric regression using purely random trees." Advances in neural information processing systems 31 (2018).
[5] Scornet, Erwan, Gérard Biau, and Jean-Philippe Vert. "Consistency of random forests." Ann. Stat., 43(4):1716–1741, August 2015
[6] Srinivas, Niranjan, et al. "Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design." Proceedings of the 27th International Conference on Machine Learning, 2010, pp. 1015–22,
[7] Yu, Bin, and Karl Kumbier. "Veridical data science." Proceedings of the National Academy of Sciences 117.8 (2020): 3920-3929.
[8] Zhou, Dongruo, Lihong Li, and Quanquan Gu. "Neural contextual bandits with ucb-based exploration." International conference on machine learning. PMLR, 2020.
[9] Zhu, Yinglun, and Robert Nowak. "Active learning with neural networks: Insights from nonparametric statistics." Advances in Neural Information Processing Systems 35 (2022): 142-155.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper investigate what can be inferred from adaptive audits of AI systems, where a small number of test cases are chosen on the fly with no pre-specified sampling or stopping rule. The audit is framed as two "dueling" hypotheses: a model's null that no subgroup of prevalence at least ε has accuracy below a threshold q (Eq. 1), and an auditor's null that the auditor's strategy will eventually surface such a subgroup (Eq. 2). These are tested with e-processes from the SAVI / testing-by-betting literature (a likelihood ratio, a universal-inference plug-in version, and Shiryaev-Roberts changepoint variants), giving finite-sample Type-I control under arbitrary stopping. On the theory side: Thm 1 shows the two nulls become complements as the budget m → ∞ provided the auditor is "asymptotically consistent" (Def 1); Thm 2 shows the auditor's null cannot be usefully tested before m; Thm 3 shows that since at most one null can hold, no multiplicity correction is needed. Experiments cover semi-synthetic GPQA with a planted Chemistry degradation (Table 1), a real clinical SDoH-extraction pipeline, and CUB-200 in the appendix. SR-LR-UI is the strongest procedure throughout.
Strengths and weaknesses
Strengths
- I like the dueling-null framing: it captures the right asymmetry (a failure refutes robustness, a pass does not establish it), and I have not seen it stated this way.
- The e-process machinery is the right tool and is applied correctly; Type-I control under optional stopping is a real finite-sample guarantee, confirmed in the "None" settings.
- Thm 2 (cannot test before m) and Thm 3 (mutual exclusivity removes Bonferroni) are both clean and genuinely used in the design.
- Honest about weak-auditor "security theater" (Sec 3.1.3), and grounded by a real clinical pipeline.
Weaknesses
- The certification headline overreaches. Thm 1's "global robustness" rests entirely on asymptotic consistency (Def 1), which essentially assumes the auditor already succeeds. It should be presented as conditional and asymptotic, and the abstract/intro toned down accordingly.
- The "NNs/trees are consistent" remark after Thm 1 conflates estimator consistency with consistency of the sequential selection rule over S_ε; no argument is given that the greedy + UCB auditor (Sec 4 / App B.2) satisfies Def 1.
- Generality is never tested: the degradation is planted in a known stratum (Table 1) and Exp 2 selects among the 28 labeled categories, so the method is only shown detecting planted failures among known groups, not discovering unknown ones.- Internal baselines only (Stratified / Pre-learned under the same penalty); no comparison to Berrada 2025 or Yan and zhang 2022 , and from Fig 2 the power seems driven by the auditor rather than the e-process.
- Exp 1b audits the LLM generator's distribution, not μ (App B.2), so a detected failure mode may be a generator artifact.
- Minor: q = 0.83 (line 358) vs 0.85 (line 649); the App A proof has a mislabeled complement, a doubled quantifier, and an unguarded limit-existence step.
Questions
- Is there any condition under which the deployed greedy + UCB auditor provably satisfies Def 1 over a non-trivial subgroup class? Failing that, can you show an experiment where the auditor must find a failure mode that is not one of the pre-defined strata?
- How does the method behave when the true failure mode is an intersection of attributes the auditor's hypothesis space cannot represent?
- Which threshold (q = 0.83 or 0.85) was used for Exp 2, and how sensitive are the results to it?
- For Exp 1b, can you quantify how far the generator's induced distribution is from μ, and what that does to validity of the detected failure modes?
Limitations
Partially. The black-box-auditor scope and the automated-vs-human-auditor point are discussed and the checklist is complete. The two under-stated limitations are the gap between the generality of the theory and what the experiments probe, and the strength of the certification claim relative to Def 1.
Final justification
The authors addressed most of my concerns. They clarified that Theorem 1 is conditional, reran the GPQA experiment using only question text, fixed the threshold typo, and explained the clinical experiment and generator bias.
One concern remains that there is no direct proof that the exact NN+UCB auditor satisfies Definition 1. Therefore, the certification claim should remain conditional. The experiments are also still limited.
The method is technically sound, useful, and supported by the new results. I maintain the rating but I would lean more towards acceptance than reject.
Formatting concerns
None.
3 comments
We heartened by the reviewer’s positive response and appreciate their careful reading of the manuscript. Below we clarify points made by the reviewer and will update the manuscript accordingly:
Thm1’s global robustness. Thank you for the suggestion to tone down the abstract and intro, as we certainly do not want reviewers to misinterpret our results! We will also restate Theorem 1 to be more explicit in its conditional and asymptotic nature.
Asymptotic consistency of the NN + UCB auditor. Thank you for this opportunity to carefully investigate the properties of the deployed auditor! Your comment prompted us to notice an important connection between the auditing task of finding the worst-performing group and the bandit literature: the two problems are equivalent if we consider a continuous multivariate bandit setting where the arms are the choice of and the reward is the negative score . Furthermore, a large pool of bandit algorithms have been proven to have a sublinear regret bound, which implies that they also satisfy our asymptotic consistency requirement. This connection is practically important, since our AI auditing framework can now make use of the large toolbox of bandit procedures. For instance, the UCB-based procedure in our work is very similar to GP-UCB [1] and NeuralUCB [2], both of whose regret bounds imply the asymptotic consistency of such auditors.
Testing of degradation in a known stratum. Thank you for raising this concern. We believe this is due, in part, to a miscommunication: the auditor does not have direct access to strata information in any experiment apart from Experiment 1B, where this information is required. Rather, the auditor searches over embedding space to mimic real-world settings where strata information is often unavailable. In particular:
- Experiment 2: This uses real data, so neither the auditor nor the authors know the oracle subgroup containing all poor performing observations. Instead, the auditor only access embeddings of the LLM query text. The true failure mode may not coincide with a pre-defined strata (e.g., some SDoH factor) nor even be interpretable. Our final analysis (Fig 3) should not be viewed as evaluating how well the auditor recovers the oracle failure mode but helping interpret the auditor’s sampling patterns, i.e., by plotting sampling rates against the LLM’s performance across pre-defined subgroups.
- Experiment 1a: The setup in the original submission embedded question text and their metadata, which we acknowledge provides the auditor indirect access to strata information. To completely mask the strata information, we re-ran Experiment 1a with embeddings of only question text (see table below). All the trends from prior results are reproduced: Type I error is maintained, the proposed methods outperform existing procedures, and both SR and UI increase power.
Statistical power of different methods in Experiment 1a, with question text alone:
| Failure Mode Size: | Large | Medium | Small |
|---|---|---|---|
| Stratified | 1.00 | 0.00 | 0.00 |
| Pre-learned | 1.00 | 0.49 | 0.28 |
| Oracle | 1.00 | 0.92 | 0.87 |
| LR | 1.00 | 0.58 | 0.36 |
| SR-LR | 1.00 | 0.58 | 0.36 |
| LR-UI | 1.00 | 0.70 | 0.52 |
| SR-LR-UI | 1.00 | 0.84 | 0.62 |
Baselines. While we appreciate the suggested baselines from the reviewer, neither of these works are directly applicable to our setting of active/adaptive testing for the existence and non-existence of a failure mode (i.e., an omnibus test). Berrada et al. (2025) [3] performs active estimation for the average loss. Yan and Zhang (2022) [4] study active estimation for the average loss in pre-specified groups. It is non-trivial to convert these estimation methods to an active testing method and neither are these methods suited for omnibus testing. These methods are already included in the related work section and we will clarify their differences in the revised version.
Power seems driven by the auditor. Thank you for this comment! We agree that auditors have a major impact on power, but first, we would like to emphasize that the aim of this work is to provide a rigorous statistical foundation that allows for the unhindered research and development of more powerful auditing strategies. Prior to this work, one could have a powerful auditor but not make rigorous statistical conclusions. This work resolves this technical gap and studies various e-process frameworks. The NN+UCB auditor in this work should be viewed as a first step, and future work should research more sophisticated auditing strategies. Second, for a fixed auditor, our experiments show that different e-process formulations can still have substantial impacts. In Exp 1a, the proposed SR-LR-UI procedure increases power by up to 30% compared to the baseline LR procedure and reduces the median sample size by up to 150.
Potential artifacts when using an LLM generator. We agree with this statement and discuss this exact point in Section B.2 of the Appendix. When there is no pre-existing data and one is forced to use an LLM generator to approximate the target distribution, one must indeed be cautious in interpreting the audit results. One helpful approach is to view the auditor as checking a weighted version of the target population. For instance, if a failure mode is detected under an approximate generator, it means that the auditor has found some subgroup that the AI system performs poorly for, though this subgroup may have smaller prevalence than the target threshold of . If the auditor using the generator failed to reject the model’s null hypothesis (i.e., there is no failure mode), it means that the auditor failed to find a failure mode for the generator’s weighted (or biased) view of the target population, not necessarily that there is no failure mode globally. The interpretation of the auditor’s null should be adjusted similarly.
Threshold for Exp 2. Thank you for pointing this out! We apologize that there was a typo in Line 649. The accuracy threshold actually used in Exp 2 was q = 0.83 (see Line 358 of the main manuscript). We had used this rather than q=0.85 because the latter is an overly easy detection task where all methods achieve relatively high power. Nevertheless, as shown in the table below, the trends are the same when using q=0.85 instead. The proposed methods outperform existing procedures and SR-LR-UI remains the best performing procedure. We will include this additional setting in the updated manuscript.
Power for detecting failure modes with q = 0.85 in Exp 2:
| Stratified | Pre-learned | Oracle | LR | SR-LR | LR-UI | SR-LR-UI |
|---|---|---|---|---|---|---|
| 0.00 | 0.53 | 1.00 | 0.88 | 0.85 | 0.88 | 0.93 |
[1] Srinivas, Niranjan, et al. "Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design." Proceedings of the 27th International Conference on Machine Learning, 2010, pp. 1015–22,
[2] Zhou, Dongruo, Lihong Li, and Quanquan Gu. "Neural contextual bandits with ucb-based exploration." International conference on machine learning. PMLR, 2020.
[3] Gabrielle Berrada, Jannik Kossen, Freddie Bickford Smith, Muhammed Razzak, Yarin Gal, and Tom Rainforth. Scaling up active testing to large language models. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, October 2025.
[4] Tom Yan and Chicheng Zhang. Active fairness auditing. In International Conference on Machine Learning , pages 24929–24962. PMLR, June 2022.
Dear Authors ,
Thank you for your detailed response and experimentations. These results back up / strengthen your claims in the paper and also clarify several of my concerns. I will maintain my score of 4 since it somewhat positive for the current form of paper.
Best,
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper addresses a serious statistical problem in AI auditing: auditors often adaptively search for failures, stop early, and operate under small sample budgets, but classical fixed-sample testing does not remain valid under that workflow. The paper introduces a framework for adaptive auditing with anytime-valid guarantees, using e-processes and testing by betting. It separates two perspectives: testing whether the model has no sufficiently prevalent failure mode below a threshold, and testing whether the auditor is powerful enough to uncover such a failure mode. The empirical work combines semi-synthetic simulations and a clinical-note LLM pipeline, and reports that the proposed procedures maintain type-I error control while improving power and sometimes reaching conclusions with very few observations.
Strengths and weaknesses
Strengths This is the most technically clean of the four papers. The problem formulation is sharp, and the statistical contribution is directly aligned with a real need in AI evaluation. The use of anytime-valid inference is appropriate because it directly addresses optional stopping and adaptive sampling, rather than treating them as nuisances. The dueling-null framing is conceptually valuable: it makes explicit that passing an adaptive audit is only meaningful if the audit process itself has enough search power. The experiments appear designed to test the statistical behavior of the method rather than merely to produce flattering benchmark numbers. Weaknesses The practical guarantee still depends on the auditor class and subgroup search space. The paper is careful about this, but the main audience may still overread a passed audit as a broad robustness certificate. The “if the auditor is sufficiently powerful” condition is mathematically sensible but operationally difficult: in real deployments, auditors are rarely known to be powerful over the failure modes that matter. The empirical evidence demonstrates validity and power in controlled settings, but the real-world clinical-note example is not enough by itself to establish broad deployment readiness across AI systems. Human-in-the-loop auditing is also left mostly for future work, even though human adaptation is one of the motivating cases.
Questions
The paper could be clearer about how practitioners should choose prevalence thresholds, performance thresholds, and stopping rules before an audit begins.
Limitations
Yes.
Formatting concerns
No major formatting or anonymity issues observed.
1 comment
We thank the reviewer for their thorough feedback and recognizing the value of this work in addressing a serious statistical problem. Below we address each of the reviewer’s comments and plan to revise the manuscript accordingly:
Potential misinterpretation of the paper and overreading of audit results. Thank you for highlighting the point that passing the audit does not provide a broad robustness certificate. We completely agree and thank the reviewer for acknowledging our efforts to caution against this interpretation. That said, we understand the concern that readers may still overread their audit results. In the revised version, we will emphasize that in finite samples, the most practical interpretation when the auditor’s null is rejected is that one has sufficient statistical evidence that the model can pass this specific auditor for this specific budget. Furthermore, we will emphasize the practical interpretation of Theorem 1: we should employ stronger auditors because they indeed provide stronger evidence, as we prove that passing an asymptotically consistent auditor coincides with proving a model is globally robust.
On deployment readiness. To demonstrate the broad applicability of our framework, we would like to clarify that our experiments cover multiple datasets and modalities: Experiment 1 considers the question-answer setup of GPQA, experiment 2 analyzes real-world clinical notes, and Appendix E reports similar results but on the CUB-200-2011 image dataset. We believe the robustness of these empirical results demonstrate how this framework provides a general statistical foundation for auditing AI systems. Furthermore, the theoretical results are similarly general and not confined to any one particular domain. While we believe the current framework can be used right now in real deployments, we acknowledge that there are still many aspects that can be refined to improve its performance in practice, including the design of more powerful (automatic) auditing strategies and interfaces to facilitate human-in-the-loop auditing.
Lack of discussion of human-in-the-loop auditing. Thank you for requesting a more detailed discussion of human-in-the-loop auditing! The framework itself places no restriction on the auditor since the theoretical guarantees hold for any black-box strategy, including human-in-the-loop solutions. This manuscript only uses automated auditors due to time and resource constraints. There are many possible human-in-the-loop auditing procedures that we hope to study in future work, including human-only auditing versus collaborative auditing between the human expert and an AI agent (see e.g., ProbeLLM [1] or Domino [2]). Proper evaluation of these different strategies will require careful experimental design, testing of different workflows, as well as IRB approval; we believe this is much better served through a second paper, rather than in this current work. As such, we will update the manuscript with a discussion of these potential directions for future research.
Clarifying on how to choose prevalence and performance thresholds and the stopping rule: We will revise the manuscript to discuss the selection of these parameters:
- Prevalence threshold and performance threshold : These parameters define what a failure mode is and what the null hypothesis is. Both should be chosen based on prior knowledge and the goal of the auditor. For instance, one may choose and based on regulatory or model fairness requirements; we suggest discussion with domain experts, who can often provide insights on what reasonable values are. In the absence of any prior knowledge, one could test a range of values and check if results remain robust, which can be viewed as a sensitivity or stability analysis [3].
- Stopping rule: The test stops when the e-statistic exceeds , where is the desired Type I error rate. The user only needs to specify , where the most typical choice is 0.05.
[1] Huang, Yue, et al. "Probellm: Automating principled diagnosis of llm failures." arXiv preprint arXiv:2602.12966 (2026).
[2] Eyuboglu, Sabri, et al. "Domino: Discovering systematic errors with cross-modal embeddings." arXiv preprint arXiv:2203.14960 (2022).
[3] Yu, Bin, and Karl Kumbier. "Veridical data science." Proceedings of the National Academy of Sciences 117.8 (2020): 3920-3929.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper design a dueling hypothesis test: the model’s null that asserts there are no failure modes, and the auditor’s null that asserts they will find one. To perform this test, the paper introduce an e-process-based procedure that maintain finite-sample Type I error control regardless of how adaptively the test cases are selected.
Strengths and weaknesses
S-1: The motivation is clear. The problem is widespread in LLM evaluation, red-teaming, and AI safety audits.
S-2: The dueling-hypothesis design is novel. By decomposing the model’s global robustness into the model’s null and the auditor’s null, the paper establishes a rigorous theoretical framework for adaptive auditing of AI systems. This duality also gives rise to desirable FWER-control properties of the method.
S-3: The use of e-processes provides rigorous finite-sample Type-I error control under flexible testing procedures.
W-1: Asymptotic consistency in Definition 1 is crucial for making the two null hypotheses complementary. However, the asymptotic consistency requirement is too strong and is difficult to satisfy in practice.
W-2: Several hyperparameters, such as the audit budget and performance threshold, may be difficult to choose in real applications.
Questions
Q-1: What's the parameters that need to be set manually in the method, except significant level?
Q-2: How sensitive is the proposed method to the strength of the auditor?
Limitations
See weaknesses W-1 nad W-2.
Formatting concerns
None.
3 comments
We appreciate the reviewer for recognizing the novelty and importance of this work. In regards to the reviewer’s comments, we would like to make some clarifications:
Asymptotic consistency: While this condition is indeed critical for the null hypotheses to be asymptotically complementary, we highlight that this requirement is satisfied for many auditor classes in practice:
- IID sampling: The simplest option is to have an auditor who conducts IID sampling and estimates with some model . Standard results regarding the convergence of the estimator to [1,3,5] imply our asymptotic consistency condition.
- Active learning: A more efficient option is to have the auditor use active learning methods, where it samples observations to maximize learning. Standard convergence results in active learning methods also imply our asymptotic consistency condition, see e.g., [4] and [9].
- Bandit algorithms: There is an important connection between bandits and this adaptive auditing problem that we did not highlight in the original manuscript but will add in a revised version: the goal of finding the worst performing subgroup is equivalent to a continuous multivariate bandit setting with arms corresponding to and the reward corresponding to the negative score . This connection is very practically important, as standard regret bounds imply our asymptotic consistency condition and thus one has access to many bandit algorithms [2]. It also justifies the use of the UCB-based auditor in this work, see e.g., [6] and [8].
Parameters: The parameters that need to be set for the method are:
- Hyperparameters defining the hypothesis test: Prevalence threshold and performance threshold define what a failure mode is and what the null hypothesis is. Budget determines how many observations the auditor can explore prior to the auditor’s null being tested, and defines the auditor’s null hypothesis. All three should be chosen based on prior knowledge and the goal of the auditor. For instance, one may choose and based on regulatory or model fairness requirements. Budget may be chosen to guard against detection of a failure mode by a typical user testing out the LLM application (so set to the typical number of attempts) or by some function class (so set to the typical training sample size needed). We think these hyperparameters can often be chosen based on prior knowledge and by working closely with domain experts. Nevertheless, in the absence of any prior knowledge, one could test a range of values and check if results remain robust, which can be viewed as a sensitivity or stability analysis (such as from veridical data science [7]). For example, ablation studies in Sec 3 of the Appendix show that the relative performance of different methods are robust to the choice of .
- Hyperparameters of the auditor: To optimize the power of the auditor, we suggest tuning auditor hyperparameters (e.g., the NN architecture) by held-out prediction error. Furthermore, since the optimal hyperparameters may shift as the training set grows, we recommend using an online learning approach (e.g., Exponentially Weighted Average Forecaster (EWAF)) that tunes hyperparameters or learns a weighted ensemble based on the held-out losses.
How sensitive is the proposed method to the strength of the auditor? The proposed e-process framework is a wrapper around any black-box adaptive auditor to ensure that Type I error control is guaranteed. As such, the statistical power for testing the model’s null hypothesis (i.e., there are no failure modes) inevitably depends on the strength of the auditor. For instance, our experimental results show that an e-process-based auditor using fixed stratified sampling does poorly, whereas an e-process-based auditor that fits NNs and samples based on UCB does quite well. That said, we emphasize that the aim of this work is to provide a rigorous statistical foundation that allows the unhindered exploration and research of various auditing strategies. The NN+UCB auditor that we use in this work should be viewed as a first step. The next step is to research more sophisticated auditing strategies, which would be better served in a separate follow-up work.
References: [1] Anthony, Martin, and Peter L. Bartlett. Neural Network Learning: Theoretical Foundations. Cambridge UP, 1999.
[2] Auer, Peter, Nicolo Cesa-Bianchi, and Paul Fischer. "Finite-time analysis of the multiarmed bandit problem." Machine learning 47.2 (2002): 235-256.
[3] Biau, Gérard, and Benoît Cadre. "Optimization by gradient boosting." Advances in contemporary statistics and econometrics: Festschrift in honor of christine thomas-agnan. Cham: Springer International Publishing, 2021. 23-44.
[4] Goetz, Jack, Ambuj Tewari, and Paul Zimmerman. "Active learning for non-parametric regression using purely random trees." Advances in neural information processing systems 31 (2018).
[5] Scornet, Erwan, Gérard Biau, and Jean-Philippe Vert. "Consistency of random forests." Ann. Stat., 43(4):1716–1741, August 2015
[6] Srinivas, Niranjan, et al. "Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design." Proceedings of the 27th International Conference on Machine Learning, 2010, pp. 1015–22,
[7] Yu, Bin, and Karl Kumbier. "Veridical data science." Proceedings of the National Academy of Sciences 117.8 (2020): 3920-3929.
[8] Zhou, Dongruo, Lihong Li, and Quanquan Gu. "Neural contextual bandits with ucb-based exploration." International conference on machine learning. PMLR, 2020.
[9] Zhu, Yinglun, and Robert Nowak. "Active learning with neural networks: Insights from nonparametric statistics." Advances in Neural Information Processing Systems 35 (2022): 142-155.
Thank you for the authors’ response. I will maintain my original positive rating.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We are heartened to hear that all the reviewers and the AC view this work positively and the core contribution to be sound and timely. We respond to the AC’s points below and will revise the manuscript accordingly:
Certification claim: Thank you for the suggestion to clarify Theorem 1 and tone down the certification claim, as we certainly do not want our results to be misinterpreted! As for asymptotic consistency, we highlight that this requirement is satisfied for many auditor classes:
Detection vs discovery: We believe this question is due, in part, to a miscommunication: the auditor does not have direct access to strata information in any experiment apart from Experiment 1B, where this information is required. Rather, the auditor searches over embedding space to mimic real-world settings where strata information is often unavailable. In particular:
Statistical power of different methods in Exp 1a with question text alone:
Practical guidance for choosing parameters:
Power for detecting failure modes with q = 0.85: