SciCode: A Research Coding Benchmark Curated by Scientists

Minyang Tian, Luyu Gao, S. Zhang, Xinan Chen, Cunwei Fan, Xuefei Guo, R. Haas, Pan Ji, Kittithat Krongchon, Yaohui Li, Shengyan Liu, Di Luo, Yutao Ma, Hao Tong, Kha Trinh, Chenyu Tian, Zihan Wang, Bohao Wu, Yanyu Xiong, Sheng Yin, Min Zhu, Kilian Adriano Lieret, Yanxin Lu, Genglin Liu, Yufeng Du, Tianhua Tao, Ofir Press, Jamie Callan, E. Huerta, Hao Peng

arXiv:2407.13168 · 2026-07-27 공개 · arXiv · PDF

language-models code-generation evaluation-metrics scientific-research ai-assistants coding-benchmark scientist-curated research-problems

Abstract

Since language models (LMs) now outperform average humans on many challenging tasks, it has become increasingly difficult to develop challenging, high-quality, and realistic evaluations. We address this issue by examining LMs' capabilities to generate code for solving real scientific research problems. Incorporating input from scientists and AI researchers in 16 diverse natural science sub-fields, including mathematics, physics, chemistry, biology, and materials science, we created a scientist-curated coding benchmark, SciCode. The problems in SciCode naturally factorize into multiple subproblems, each involving knowledge recall, reasoning, and code synthesis. In total, SciCode contains 338 subproblems decomposed from 80 challenging main problems. It offers optional descriptions specifying useful scientific background information and scientist-annotated gold-standard solutions and test cases for evaluation. Claude3.5-Sonnet, the best-performing model among those tested, can solve only 4.6% of the problems in the most realistic setting. We believe that SciCode demonstrates both contemporary LMs' progress towards becoming helpful scientific assistants and sheds light on the development and evaluation of scientific AI in the future.

한국어 요약

한 줄 요약

SciCode는 과학자들이 직접 큐레이팅한 과학 연구 코드 생성 평가 벤치마크로, Claude3.5-Sonnet가 4.6%의 문제만 해결할 수 있을 정도로 매우 어려운 평가를 제공한다.

핵심 기여도

핵심 아이디어

SciCode는 기존 LLM 평가가 과학적 현실성과 깊이를 반영하지 못함을 문제로 삼아, 과학자들이 직접 문제를 제시하고 테스트 케이스를 검증하는 방식으로 구성되었다.
각 주문제는 여러 하위 문제로 분해되며, 이를 해결하기 위해 모델은 복수의 Python 함수를 작성하고 통합해야 한다. 이는 과학적 지식 회복, 추론, 코드 생성 능력을 종합적으로 평가하는 구조이다.
또한, 과학적 배경 정보가 제공되는 옵션을 통해 모델이 외부 지식을 활용하는 능력을 평가할 수 있도록 설계되었다.

기술적 접근법

주요 결과

의의 및 한계

SciCode는 과학적 현실성과 깊이를 반영한 첫 번째 과학 연구 코드 생성 평가 벤치마크로, LLM이 과학적 문제를 해결하는 능력을 종합적으로 평가할 수 있는 기반을 제공한다.
또한, 과학적 배경 정보가 모델 성능에 큰 영향을 미친다는 점을 통해, 과학 AI 개발에서 외부 지식 활용의 중요성을 강조한다.
하지만, 과학 문제의 복잡성과 모델의 한계로 인해 대부분의 문제는 여전히 해결되지 않으며, 모델이 부분 문제는 해결하더라도 통합 해결 능력이 부족한 것으로 드러났다.

실용적 활용

SciCode는 과학 연구 분야에서 LLM의 코드 생성 능력을 평가하고 개선하는 데 활용될 수 있으며, 특히 물리, 화학, 생물학 등 실험적 연구에서 코드 기반 해석과 시뮬레이션을 지원하는 데 유용할 수 있다.
또한, 과학 AI 모델 개발자들이 모델의 과학적 추론과 코드 생성 능력을 향상시키기 위한 연구에 활용될 수 있다.