Abstract
Automating scientific discovery requires Large Language Models (LLMs) to move beyond simple summarization toward complex experimental planning. However, evaluating an LLM’s ability to generate laboratory protocols is hindered by the inherent ambiguity of natural language and the high cost of physical validation. We present BioPlanner, a novel framework that evaluates LLMs by converting natural language protocols into structured pseudocode. Using BIOPROT, a curated dataset of 100 biology protocols, we employ a "Teacher-Student" framework to measure planning accuracy. Our findings demonstrate that GPT-4 excels at long-horizon planning and can generate protocols robust enough for successful real-world laboratory execution, while highlighting significant gaps in the capabilities of smaller, open-source models.
Introduction
The ability to design and execute experiments is a cornerstone of the scientific method. While LLMs have shown proficiency in processing scientific literature, their capacity for autonomous planning remains difficult to quantify. Evaluating a laboratory protocol is notoriously complex for two primary reasons: first, the high degree of variability in how scientists describe the same task (ambiguity and granularity); and second, the lack of a low-cost "compiler" or simulator to verify if a natural language protocol is actually functional.
Traditional metrics such as BLEU or BERTScore, which rely on word overlaps, are insufficient for this domain. They fail to capture whether the logical sequence of operations is correct or if critical parameters—such as reagent volumes or incubation temperatures—are accurate. BioPlanner addresses these challenges by using pseudocode as a universal intermediary language.
The BIOPROT Dataset
To facilitate rigorous evaluation, the researchers introduced BIOPROT, a dataset of 100 high-quality biology protocols sourced from Protocols.io. The selection process involved filtering over 9,000 entries to identify protocols that were biology-centric, reproducible, and sufficiently complex (requiring at least three distinct steps). To ensure the integrity of the ground truth, a competent laboratory scientist manually audited 59% of the generated pseudocode to confirm that the distillation process did not introduce hallucinations or technical errors.
Methodology: The Teacher-Student Framework
BioPlanner utilizes a structured "Teacher-Student" evaluation loop to bypass the ambiguities of natural language:
- The Teacher: A high-performing model (GPT-4) is provided with a complete, detailed protocol. It distills this into two components: a library of admissible pseudofunctions (the available laboratory tools) and a ground-truth pseudocode sequence (the correct program).
- The Student: The model under evaluation is given only the high-level experimental goal and the list of functions defined by the Teacher. It must then reconstruct the step-by-step pseudocode.
- Automated Feedback: The framework includes a feedback mechanism that identifies syntax errors or calls to undefined functions, allowing the Student model to self-correct before the final evaluation.
This structured output allows for the use of robust metrics, including Levenshtein distance to evaluate the sequence of operations and SciBERTscore to verify the accuracy of function arguments.
Key Insights and Results
Planning vs. Knowledge
A critical finding of the study is the distinction between a model's biological knowledge and its planning logic. When the order of functions provided in the prompt was shuffled, model performance dropped significantly. This suggests that many LLMs rely on the order of information in the prompt rather than a deep, logical understanding of the experimental requirements.
Model Performance
GPT-4 emerged as the superior "architect" for biological experiments:
- Next-Step Prediction: In predicting the immediate next action in a sequence, GPT-4 achieved 70.6% accuracy, outperforming GPT-3.5’s 65%.
- Full Protocol Generation: GPT-4 demonstrated significantly better logical flow, achieving a Levenshtein distance of 0.396 compared to GPT-3.5’s 0.498 (where lower scores indicate higher similarity to the ground truth).
- Open-Source Gap: Smaller models, such as Llama-2-7B, struggled with the task, often failing to adhere to the required pseudocode format entirely.
Real-World Validation
To demonstrate the practical utility of the framework, the authors used BioPlanner to generate a protocol for culturing E. coli and creating a glycerol stock. This LLM-generated protocol was taken into a physical wet lab and successfully executed. The resulting bacteria remained viable after storage at -80°C, proving that the model's planning was robust enough for real-world application.
Discussion and Future Work
While BioPlanner represents a significant step forward, it also highlights the dual-use risks associated with automated scientific planning. The same capabilities that assist in legitimate research could potentially be used to plan the synthesis of harmful biological agents. The authors emphasize the urgent need for safety guardrails and alignment research in scientific LLMs.
Future work will focus on expanding the framework to chemistry and materials science, as well as integrating these automated planners directly with laboratory robotics to create fully autonomous discovery loops.
Summary updated