Scientific progress increasingly depends on computation, but turning an idea into working code remains a stubborn choke point.

Scientific progress increasingly depends on computation, but turning an idea into working code remains a stubborn choke point. Building reliable software for simulations, data analysis, and forecasting is often slow, painstaking work—even for experienced researchers—and that delay can stall the wider cycle of hypothesis, experiment, and refinement.

A new system described in Nature aims to compress that timeline. Called Empirical Research Assistance (ERA), the platform is designed to generate “expert-level” empirical research software automatically, with the explicit objective of optimizing a chosen quality score. Rather than producing a single pass of code and stopping there, ERA treats scientific programming as an iterative search problem: it repeatedly proposes candidate solutions, evaluates them against a metric, and then refines its approach.

At the core of ERA is a combination of a large language model (LLM) and a tree-search strategy. The LLM supplies the generative capacity—writing and revising code and proposing methodological ideas—while tree search provides a structured way to explore alternatives and avoid getting trapped in a narrow set of choices. By branching into many possibilities, scoring them, and selectively expanding the most promising paths, the system is intended to navigate the enormous space of potential implementations more systematically than a one-shot prompt-and-response workflow.

The researchers report that ERA performs best when it can seek out and incorporate complex ideas from external research sources, integrating them into working software as part of its search-and-improve loop. They present results across a wide range of problems to show that the tree-search component is not limited to one niche domain.

In bioinformatics, ERA was tested on single-cell data analysis—a field with rapidly evolving methods and competitive benchmarks. The system identified 40 new analysis approaches that surpassed the best human-developed entries on a public leaderboard, according to the authors. In epidemiology, ERA produced 14 forecasting models for COVID-19 hospitalizations that outperformed both the U.S. Centers for Disease Control and Prevention (CDC) ensemble and every other individual model used for comparison.

Beyond these headline demonstrations, the paper describes additional expert-level software produced by ERA for geospatial analysis tasks, predicting neural activity patterns in zebrafish, and numerically computing integrals. The system also generated what the authors characterize as a new rule-based method for time-series forecasting, suggesting it can contribute not only implementation skill but also fresh construction of modeling ideas.

The work is presented as a step toward accelerating scientific discovery by reducing the time and expertise required to build high-quality computational tools. The author list spans multiple institutions, including Google Platforms and Devices in Mountain View, the Massachusetts Institute of Technology, Harvard University, McGill University, and the California Institute of Technology. The paper notes equal contributions from several researchers and is published as: Aygün, E., Belyaeva, A., Comanici, G. et al. “An AI system to help scientists write expert-level empirical software.” Nature (2026), https://doi.org/10.1038/s41586-026-10658-6.