SMAI: Scientific Method as Infrastructure

Update, 2026-05-12. Since this post first went up (on 2026-04-08) two items have been added to the prior and related work section. Neither one informed the original post.

The verifiability tradeoff

Auto-research systems (Karpathy’s autoresearch, Google’s AlphaEvolve) allow agents to iteratively modify code, run experiments, and evaluate results, in order to search for optimizations. Given a baseline implementation to optimize, and a scoring function with which to evaluate modifications, agents are remarkably capable at hill-climbing in code space.

This requirement for existing evaluation mechanisms, though, restricts research agents to working on problems for which this “experiment infrastructure” has already been defined. What if, in order to remove this limitation, the research agent were additionally tasked with building the infrastructure needed to evaluate its own work?

Diagram 1

Several recent works have demonstrated the viability of this bootstrapped approach. A notable example, AI Scientist v2 (Sakana AI, 2025), tasks agents with designing experiments, choosing datasets, selecting metrics, and evaluating the results end-to-end, substantially expanding the breadth of problems to which auto-research can be applied.

But subsequent evaluations of purely agent-driven systems have revealed significant shortcomings [5]: methodological flaws can go undetected, results can be hallucinated, and metrics used inconsistently. These are the kinds of issues that pre-defined environments guarded against. How then can we allow agents to build experiment infrastructure, while keeping the same level of rigor that pre-defined environments provide?

The failure modes span multiple reproducibility types: methods, results, and inferential [1]. Some are catchable programmatically (hallucinated results live in code/data space); the harder ones, like methodology drift, post-hoc selection, and inferential breakdowns, live in reasoning space, where the apparent option is to delegate verification to the same agent whose work is being evaluated. The question is whether agent-driven research loops can be structurally constrained to catch these failure classes, without losing the exploratory breadth that bootstrapping enables.

Have your cake and eat it too

To bridge this gap, we propose SMAI (Scientific Method as Infrastructure), a structural framework against which agents can ground the design, implementation, execution, and evaluation of their experiments.

Diagram 2

A careful reader, upon inspection of Diagram 2, might reasonably ask: isn’t this just another end-to-end agent workflow? Doesn’t this leave unaddressed the same inferential gaps SMAI sets out to patch? The reader would be correct to flag this, because the structural verification doesn’t happen in the agent layer shown in the diagram; it happens in the orchestration layer upon which the agent layer is built. SMAI’s value lives in the validation contracts which serve as deterministic checkpoints between stages in the workflow.

These contracts take several forms throughout the workflow, but they originate in a DSL that SMAI provides for expressing experiment definitions. This DSL, drawing on prior work in scientific ontology and experiment design formalization [2][3], allows structural validity to be enforced independently of the agent’s reasoning at the most foundational part of the workflow, experiment design. Concretely, by forcing the agent to use the DSL, we get:

Diagram 3

Once techniques pass code review, the remainder of the workflow is fully mechanical (no agents). The orchestrator picks up the code artifacts, executes them, and aggregates the raw results.

The final link in the chain is evaluation. A validation config, compiled from the experiment definition and enriched by the method implementation, specifies what to compare, which metric to use, and the minimum threshold. A fixed evaluation runner takes this config and the raw results, and returns a boolean: did the results meet the validation criteria?

This boolean, the ultimate output of the workflow, answers the question of whether the experiment validated the hypothesis.

Diagram 4

With this, the full inferential chain is structurally grounded: from hypothesis through experiment design, implementation, execution, to evaluation.

Render unto agents the things that are reasoning

The careful reader will have noticed that, even with contracts that structurally verify each link in the inferential chain, we fall short of any claims to formal verification. This is because SMAI doesn’t verify experiments the way a proof engine verifies theorems, but rather in the way a code compiler verifies code. A compiler can’t tell you whether your code does what you intended, but it can guarantee syntactic and structural correctness. Similarly, SMAI’s experiment compiler can’t tell you whether the hypothesis is trivial, but it can ensure that the scaffolding is sound.

One reasonable objection: isn’t structural verification anti-Bitter-Lesson, imposing hand-engineered scaffolding where general methods plus scale should win? The argument doesn’t transfer. The Bitter Lesson concerns the modeling layer, where hand-engineered priors compete with scale-plus-search inside the learning algorithm. Verification infrastructure lives at a different layer. We don’t argue that compilers, type checkers, or test frameworks should be replaced by larger models; they’re the scaffolding that lets scaled systems be trustworthy. A larger agent that’s still self-evaluating is more sophisticated at fooling itself, not less.

This level of verification would have caught many of the specific failures documented in existing agent-driven systems [5]. Metric substitution is impossible when the validation config locks the metric at compile time. Hallucinated results don’t survive non-agentic execution. A parameter that should vary can’t be held fixed when the compiler enforces the experimental factor. The structural contracts may not provide formal guarantees for every failure mode, but they cover the ones that have emerged in practice.

The divergent paths in auto-research suggest that the tradeoff between exploratory freedom and experimental reliability is inherent. SMAI seeks to demonstrate that it is not zero-sum.

Appendix: Contract examples

The following pseudocode illustrates what these contracts look like in practice, using a simple augmentation experiment as an example.

Diagram 5

Diagram 6