Abstract
ScienceAgentBench is a new, rigorous benchmark designed to evaluate how well Large Language Model (LLM) agents handle the practical complexities of data-driven scientific discovery. By shifting focus from abstract hypothesis generation to concrete, verifiable Python code generation across four scientific disciplines, the benchmark provides a sobering reality check. Current state-of-the-art agents solve only about 32% of real-world scientific tasks independently, highlighting a significant gap between current capabilities and the goal of fully automated science.
Introduction
The AI community has recently seen a surge in "AI Scientist" agents claiming to automate the entire research cycle. However, these claims often overlook the "messy" reality of scientific work: complex data processing, specialized libraries, and nuanced visualizations. Existing benchmarks often rely on synthetic tasks or simple code snippets that fail to reflect the heterogeneous nature of real-world science, such as handling cell images, molecular structures, or geospatial data. ScienceAgentBench addresses this by providing a framework to rigorously test agents on authentic tasks extracted from peer-reviewed literature.
The ScienceAgentBench Framework
ScienceAgentBench comprises 102 tasks extracted from 44 peer-reviewed publications across four disciplines: Bioinformatics, Computational Chemistry, Geographic Information Science (GIS), and Psychology & Cognitive Neuroscience. Each task requires the agent to produce a self-contained Python program. Success is determined by whether the generated code executes correctly and produces results—such as specific ROC-AUC scores or visualizations—that match the original paper’s findings.
The benchmark emphasizes heterogeneous data processing, involving diverse formats like EEG time series, NetCDF climate data, molecular fingerprints, and microscopy images. To prevent models from simply "memorizing" paper results, the authors implemented contamination mitigation strategies, such as modifying datasets with random noise or dummy labels, forcing agents to rely on functional reasoning rather than retrieval.
Experimental Evaluation
The authors evaluated several leading LLMs, including Llama-3.1, Mistral-Large-2, GPT-4o, and Claude 3.5 Sonnet, using three distinct setups:
- Direct Prompting: A one-shot generation approach.
- OpenHands CodeAct: An agentic framework allowing tool use.
- Self-Debug: An iterative process where the model runs its own code and fixes errors based on execution feedback.
Key Results and Insights
The quantitative results underscore the difficulty of real-world scientific tasks. Claude 3.5 Sonnet, using the Self-Debug framework, achieved the highest independent success rate among standard models at 32.4%. OpenAI’s o1-preview model, which utilizes significantly more inference-time compute, pushed this success rate to 42.2%, albeit at a much higher cost.
Several key insights emerged from the evaluation:
- Execution Feedback is Critical: The Self-Debug framework nearly doubled success rates compared to direct prompting, proving that the ability to iterate based on error messages is the most significant performance booster.
- The Complexity Wall: Models performed well on short code tasks (~20 lines) but struggled significantly as task complexity increased, with almost universal failure for solutions exceeding 60 lines of code.
- Efficiency vs. Complexity: Claude 3.5 Sonnet with a simple self-debug loop outperformed more complex agentic frameworks like OpenHands while being significantly more cost-effective.
- Disciplinary Challenges: Performance was lowest in Bioinformatics and Computational Chemistry due to highly specialized data formats that are more difficult to process than standard tabular data.
Discussion and Limitations
While ScienceAgentBench provides a rigorous hurdle for AI agents, it has limitations. It is currently restricted to Python, excluding scientists who use R, Stata, or Matlab. Additionally, tasks were limited to those executable within 10 minutes to ensure evaluation efficiency, potentially omitting more intensive deep learning or big data tasks. Finally, while rubric-based grading is proposed, fully automating the evaluation of complex scientific figures remains a challenge.
Conclusion
ScienceAgentBench serves as a necessary reality check for the "AI Scientist" narrative. By focusing on the verifiable "nuts and bolts" of scientific discovery, it reveals that while LLMs show promise, they are not yet ready for end-to-end automation. The authors advocate for the community to adopt this benchmark as a standard for assessing the reasoning and coding robustness required for genuine scientific discovery.
Summary updated