TRANSMISSION // 2611.39123v1

How AI agents can search experiment data without fooling themselves

Source published

Repeatedly searching experiment results can inflate false positives. A preprint tests a timing rule that lets an AI agent learn from earlier batches without changing their analyses.

AI-generated conceptual illustration for How AI agents can search experiment data without fooling themselves
AI-generated conceptual illustration; not documentary evidence.

When an AI agent searches for a better way to analyze a randomized experiment, it may use results both to choose its method and to claim evidence of an effect. A preprint proposes a timing rule to separate those steps, then tests it on simulated experiments built from real database records.

When searching and measuring use the same results

Randomized experiments help researchers estimate whether a treatment caused a change. But trying many analyses and reporting the most promising one can make a false signal more likely. An ordinary confidence interval may not account for the search that led to the reported analysis. This problem can arise whether the analyst is a person or an AI.

Self-improving AI agents pose a particular version of the challenge: they propose an analysis, assess its performance, and use that feedback to suggest another. If the same experimental outcomes guide the search and then serve as evidence for the final estimate, the reported uncertainty can be misleading.

In Recursively Self-Improving LLM Agents with Causality-Driven Exploration, Langzhou He and colleagues propose Lock Before Reveal (LBR). Their central question is how an agent can learn from experiment outcomes without using those outcomes to choose the analysis that evaluates them.

Fix each batch’s analysis first

The researchers divide the experiment into batches. Before seeing a batch’s treatment assignments and outcomes, the system fixes the analysis it will use for that batch. It then calculates and records the batch’s contribution to the treatment-effect estimate. Only afterward can the newly revealed outcomes help the agent improve the analysis for later batches. Earlier batches are not reanalyzed using what the agent learns from them.

The agent searches for programs that build features from linked databases—for example, summaries of a user’s or product’s history before entering an experiment. These pre-treatment features can help predict outcomes. More accurate predictions can reduce the variability of an estimated treatment effect and, in turn, narrow its confidence interval.

A candidate program earns a reward if adding it improves prediction on the newly revealed batch compared with the current pool of programs. Candidates that help can join the pool used for future batches. The paper calls this a causal reward because the search is aimed at improving the precision of a causal-effect estimate, not simply prediction for its own sake.

The authors prove that, under stated assumptions, the treatment-effect estimate remains unbiased even when the search adapts to earlier outcomes. The key condition is that each batch’s analysis is fixed using information available before that batch is revealed. The confidence-interval result is asymptotic and depends on additional statistical regularity conditions; it is not a guarantee for every experiment or analysis workflow.

What the experiments found

The evaluation used ten tasks from eight relational databases, covering areas including retail, social platforms, sports, and clinical trials. The researchers constructed randomized treatment assignments using real database records and added a known effect for the main precision experiments. They also ran a separate set of experiments with no true effect to test false positives. The method was tested with twelve language models from eight model families.

In the no-effect experiments, repeated searching on the same full set of outcomes produced false positives at a pooled rate of 11.1%, compared with the nominal 5%. Under LBR, the pooled rate was 6.8%. The authors describe this as being at the level of the first program, which was chosen before any results were seen; that first-analysis rate was 7.5%. Neither comparison means the observed LBR rate was exactly 5%. When the researchers instead reanalyzed LBR proposals on the complete data and selected the most significant result, the false-positive rate rose again.

For the experiments with a known treatment effect, LBR produced confidence intervals that were 13–17% narrower on average than estimates with no adjustment, across the tested language models. The reported average reduction versus separate-data search was 18.3%. That comparison matters because separate-data search uses some batches to select analyses and reserves the others for estimation.

In the reported protocol, all ten validation batches entered the treatment-effect estimate. The training split was used to fit initial outcome models but did not enter that estimate, and a separate diagnostic batch was excluded. The authors report that LBR intervals were narrower than those from separate-data search across the tested tasks and models, while preserving coverage in their evaluation.

What the evidence can—and cannot—show

The coverage results are checks within this study, not proof of valid coverage in all settings. For the main evaluation, the authors’ task-level check required at least 26 of 30 intervals to contain the known effect on each task. A larger check with 2,000 fresh treatment assignments reported coverage of 94.9–95.0%. The theoretical guarantees rely on assumptions about randomization, information available before each batch, and statistical regularity. Coverage can depend on whether those conditions apply.

The study uses simulated treatment assignments on real database records, ten specified tasks, a constrained feature-program language, particular outcome models, and a defined batch protocol. It does not demonstrate performance on arbitrary live experiments, other statistical methods, or data with different properties. The paper is marked as a preprint, so its findings should be treated as preliminary rather than as settled results from peer-reviewed publication.

LBR offers a carefully specified way to let search learn from earlier outcomes while protecting the analysis of each batch from being changed after its results are known. Whether that approach works well elsewhere remains an empirical question.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.