arXiv:2610.30562stat.MEOct 2026

Manuscript Offprint

arXiv:2610.30562

Lifetime-valid decisions by continually evolving AI analysts

Xiaojing Sun, Yuhan Zeng, Xiao Wang

Abstract

AI agents increasingly act as analysts whose decision can often be cast as hypothesis tests. Classical tests control the Type I error rate, the probability of rejecting a true null hypothesis, for fixed procedures. However, AI analysts introduce internal randomness and can evolve continuously over time. As AI analysts evolve, the risk of approving versions with Type I error rates above the target can accumulate, and adaptive use of evaluation feedback can lead to overfitting. We introduce continual validation, which evaluates each proposed AI analyst version before deployment using simulated data under the null hypothesis, with scenarios that can be randomized and expanded over time. We prove that, regardless of how updates are chosen or how many are proposed, the lifetime probability of ever deploying a version whose Type I error rate exceeds the allowed level remains bounded. This guarantees that every subsequent decision controls the Type I error rate at the target level across these scenarios. At the same time, updates with sufficiently low Type I error rates pass validation with high probability, allowing the analyst to continuously improve its performance without sacrificing rigor. In two examples involving evolving AI analysts for bioequivalence studies and product A/B tests, Type I error rates reached 0.098 and 0.183 without continual validation, compared with at most 0.045 and 0.044 with it, while retaining 82% and 96% of the power from optimally selected valid updates.

1 Introduction

As large language models and the systems built around them advance, AI agents are increasingly used to analyze data. They plan analyses, write and execute code, and report findings in tasks such as developing machine learning methods, studying cellular processes, and discovering new drugs [1,2,3,4][1, 2, 3, 4]. Recent benchmarks assess these capabilities across scientific and data science tasks [5,6,7,8][5, 6, 7, 8]. We refer to agents performing such analyses as AI analysts.

Although these analyses may involve complex workflows, including multiple stages of data processing, model selection, diagnostic evaluation, and iterative refinement, they often lead to decisions such as reporting a discovery, claiming bioequivalence of a drug product, or launching a product. Such decisions can often be formulated as hypothesis tests, which AI agents are increasingly trained to perform [9, 10]. For example, in bioequivalence studies [11, 12], the null hypothesis states that the test product is not bioequivalent to the reference product. A Type I error occurs when a true null hypothesis is rejected. Similarly, when deciding whether to launch a new product feature, the null hypothesis states that the feature provides no improvement, while the alternative states that it does. Classical statistical methods control the probability of this error at a prespecified level α\alpha, typically for procedures fixed before the data are observed, where randomness comes primarily from data sampling [13, 14].

AI analysts, however, pose two additional challenges to Type I error control. First, even a fixed version can make different decisions on the same data. A version fixes its model, prompts, and available tools, but sampling from the underlying language model may change which analyses and tools are selected [15, 16]. Each version therefore defines a randomized test, whose Type I error rate accounts for both data sampling and the analyst's internal randomness [17, 14].

Second, the analyst itself can change frequently in many ways. Developers edit prompts, add skills, redesign workflows, and upgrade models [18]. Self-improving agents can also repeatedly revise themselves to evolve [19, 20, 21, 22, 23, 24]. Together, these changes can produce a rapid and potentially unlimited sequence of versions, each modifying multiple parts of the analyst. We call each proposed change an update and the resulting configuration a new version of the analyst. Updates are often retained when they appear to improve the analyst's performance, but without appropriate validation, an increase in their Type I error rate may go undetected.

This adaptive selection makes the problem different from controlling a single randomized test. Updates can be selected based on feedback from earlier analyses and evaluations, potentially causing the analyst to overfit past results and inflate its Type I error rate [25, 26]. Even a single update can substantially change the Type I error rate. For example, at a target Type I error level of 0.10, replacing Claude Sonnet 3.5 with Claude Haiku 3.5 in a hypothesis-testing agent increased its estimated Type I error rate from 0.082 to 0.780 on one benchmark [9].

Existing methods provide important statistical guarantees, but they address different problems. Prediction-powered inference enables valid statistical inference using machine learning predictions [27], while conformal methods such as TxConformal control false discoveries when AI predictions are used to select therapeutic candidates [28]. Agentic falsification controls Type I error for a specified agent performing sequential hypothesis testing [9]. Other methods address adaptive analysis choices and repeated testing. The reusable holdout allows the same dataset to be used repeatedly to evaluate adaptively chosen analyses [29], while selective inference accounts for data-dependent analysis choices [30]. Online multiple testing controls false rejections across a sequence of hypotheses [31], and adaptive clinical trial designs allow prespecified modifications within a trial [32].

Other work examines how learning systems can be updated safely. High-confidence safety frameworks evaluate candidate algorithms against specified constraints [33], while approval policies for medical software control the risk of harmful updates and gradual deterioration in performance [34]. Recent methods for self-improving agents provide statistical guarantees for accepting beneficial modifications [35, 36], while Learn then Test calibrates a prespecified set of configurations to satisfy statistical risk constraints [37].

However, these methods do not directly guarantee Type I error control for AI analysts that continually evolve through adaptive updates to their models, tools, and decision rules. Our goal is to provide a lifetime guarantee by controlling the risk of ever deploying a version whose Type I error exceeds the required level. This allows the analyst to continue updating while maintaining Type I error control in future studies. We also aim to preserve statistical power at a reasonable computation cost.

We introduce continual validation, shown in Fig. 1A, which allows AI analysts to keep improving while maintaining Type I error control at modest cost. Developers or the analyst itself can propose any updates. Before deployment, each proposed version is fixed and tested on newly simulated datasets where the null hypothesis is true. We set a validation level α′\alpha' slightly below α\alpha. We prove that, regardless of how updates are proposed, the probability of ever deploying a version whose Type I error rate exceeds α′\alpha' under the simulated null conditions is at most a prespecified δ\delta. This guarantees Type I error control at the prespecified level α\alpha for every subsequent decision. At the same time, updates with sufficiently low Type I error rates can still be approved with high probability. We apply it to two AI analysts, one for bioequivalence studies of test products and another for product launching experiments. We compare it with four alternative deployment strategies, and Fig. 2 summarizes the comparison.

A Continual validation tests every update before it is deployed

Figure

References (48)