How uncertainty, cost and evidence shape the next useful experiment.
As AI systems take on more research, a difficult question moves to the foreground: Which test is worth doing next?
An AI system produces a faster program. The measurements look promising, and the next step seems obvious: keep improving it. But suppose the program runs faster because the test repeatedly feeds it unusually convenient inputs. The system may have discovered a shortcut that works beautifully inside the experiment and poorly everywhere else. Before investing in another improvement, it needs to determine what caused the first one. That investigation could begin with a test designed to make its apparent success disappear.
This is the difference between improving an outcome and understanding an explanation. Bayesian optimization, a method used to tune expensive computational systems, searches for settings that perform well. It balances trying promising settings with exploring uncertain ones. Bayesian experimental design asks a broader question: What experiment would provide the most useful evidence? The two approaches can cooperate, but their immediate priorities may differ. The fastest route to a higher score is not necessarily the fastest route to discovering why that score improved.
For AI research systems, the distinction belongs at the center of their design. A machine rewarded only for favorable results has little incentive to examine the assumptions behind them. A machine also rewarded for resolving uncertainty has a reason to investigate inconvenient possibilities. In the faster program’s case, changing the input distribution could be more valuable than another round of optimization. A disappointing result would narrow the claim and redirect the work before an expensive mistake became embedded in the software.
Consider a code model that performs exceptionally well on familiar programming exercises. It might have learned rules it can apply broadly. It might also be relying heavily on patterns encountered during training. Another familiar exercise may not distinguish those explanations because both predict success. A carefully constructed task that combines familiar operations in an unfamiliar way could be more revealing. Its value comes from the difference between what the competing explanations predict, rather than from its difficulty alone.
Bayesian experimental design gives this intuition a mathematical form. The system assigns provisional probabilities to its hypotheses, considers the possible outcomes of a proposed experiment and estimates how those outcomes would change its beliefs. One common measure, expected information gain, describes the anticipated reduction in uncertainty. For choosing between explanations, the relevant uncertainty concerns which explanation best accounts for the evidence. The calculation averages over possible outcomes because the answer is still unknown when the experiment is selected.
This also explains why simply seeking failure is misguided. If every credible explanation predicts that the code model will fail, observing failure settles little. If their predictions differ substantially relative to the noise in the measurement, either success or failure can be informative. The challenge is to construct a fair comparison, preserving the ability being tested while changing the feature under suspicion. Such experiments turn skepticism into a computational procedure. They give the leading hypothesis a meaningful chance to survive, while making room for evidence that could displace it.
Software synthesis already offers a striking example. A system proposes a sorting program that handles its initial tests correctly. A checker then discovers that it mishandles repeated values. That input becomes a requirement for the next version, which must satisfy the earlier tests and the newly discovered counterexample. This process, called counterexample guided inductive synthesis, uses a failed test to eliminate both the current program and other candidates that make the same mistake. The failure actively shapes the search.
The structure suggests a useful direction for neurosymbolic AI, which combines learned pattern recognition with explicit reasoning. A neural model could propose candidate programs or explanations. A symbolic component could express their requirements precisely and check their consequences. A probabilistic planner could choose informative tests when exhaustive checking is impossible. The division matters because generating a plausible answer and establishing its validity are different tasks. Formal verification can sometimes establish correctness within stated assumptions; empirical testing generally provides evidence whose strength depends on coverage and uncertainty.
There is an evolutionary pattern here: generate variation, subject it to selection and retain information that improves subsequent attempts. Turning that pattern into reliable engineering requires careful choices about what survives and why. Human expertise helps define meaningful requirements, recognize missing conditions and challenge assumptions built into the checker. In the sorting example, a system cannot establish that it meets an unstated requirement. A rigorous search inside an incomplete specification can still produce the wrong software for the job.
A useful test gives the leading explanation a fair chance to fail. Contradictory evidence can guide the next revision.
Imagine an AI system tuning a server configuration. One trial processes requests quickly but exceeds the available memory. Another completes successfully but performs poorly. A third stops when the testing infrastructure loses its connection. These outcomes should not become identical entries marked “failure.” They reveal different things: a feasibility limit, an unfavorable performance measurement and an incomplete observation. Preserving those distinctions allows the next decision to reflect what actually happened rather than an oversimplified score.
Constrained Bayesian optimization addresses this problem by considering performance alongside requirements that may themselves be uncertain. Work applied to Facebook’s ranking systems and server compiler settings showed how optimization could incorporate noisy measurements, constraints and multiple evaluations. For the hypothetical server, repeating a trial may be worthwhile when ordinary variation could reverse the conclusion. Exploring a different configuration makes more sense when the present region offers little promise. Refining a promising setting becomes useful once the evidence is stable enough to justify closer attention.
Parallel testing complicates the decision. Filling every available machine with nearly identical trials may produce less knowledge than a deliberately varied batch. The planner should consider what each experiment adds beyond the others, while retaining repetitions that are needed to measure noise. BatchBALD demonstrates this principle in selecting data for labeling by accounting for dependencies within a batch. Applied to experimental planning, the lesson is that useful diversity concerns the information collected, not merely differences between settings. Ten simultaneous tests need not provide ten independent pieces of evidence.
Suppose an AI team compares two training methods, and one finishes slightly ahead. Further trials could show whether the advantage persists across random initializations, but each consumes substantial computing time. The decision depends on what remains uncertain and whether resolving it would change the team’s choice. A tiny gain may matter enormously in a widely deployed system and hardly at all in a temporary prototype. Recent research on stopping Bayesian optimization explicitly incorporates evaluation costs, treating the decision to continue as part of the optimization problem itself.
The budget must also include the work needed to trust the result. Comparing training methods requires preserved code, data versions and configurations, together with enough independent evaluation to assess variability. Repeatedly choosing winners using the same test set introduces another danger: the research process gradually adapts to that set. A final evaluation on untouched data helps reveal whether the apparent improvement travels beyond the conditions that guided its development. Reproducibility and validation are therefore part of the experiment’s real cost.
An honest stopping decision can take several forms. The evidence may be sufficient for the practical choice. The expected benefit of further testing may be too small. Or the remaining question may exceed the available resources. A research system should preserve those distinctions instead of turning every completed search into a declaration of certainty. Its most valuable contribution may be a better result, a narrower claim or a convincing reason to abandon an attractive idea. The next experiment earns its place by helping determine which of those outcomes the evidence supports.
Key references: Modern Bayesian Experimental Design. Statistical Science, 2024. Counterexample Guided Inductive Synthesis. MIT course materials. Bayesian Optimization with Unknown Constraints. 2014. Constrained Bayesian Optimization with Noisy Experiments. 2018 revision. BatchBALD: Efficient and Diverse Batch Acquisition for Deep Bayesian Active Learning. NeurIPS, 2019. Cost Aware Stopping for Bayesian Optimization. 2025 preprint. Avoiding Common Machine Learning Pitfalls. Patterns, 2024.
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.