SciCodePile: A 128GB Corpus and Executable Benchmark for Challenging Scientific Code Generation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) excel at general-purpose code generation, yet how well they handle scientific code remains an open question. Existing datasets and benchmarks are limited in scale, domain coverage, or executable verification, leaving the true gap between current LLMs and reliable scientific code generators inadequately assessed. To address these limitations, we present SciCodePile, the largest scientific code corpus to date, constructed from 37,737 public repositories and collectively comprising 128GB of code that spans multiple computational science disciplines. From this corpus, we further curate an executable benchmark of 200 tasks, each equipped with a sandboxed execution environment and an automated test harness for functional verification. We evaluate 15 LLMs from both open-source and closed-source families on three tasks: prefix-to-suffix completion, fill-in-the-middle infilling, and executable code generation. Results show that scientific code generation remains highly challenging: The best CodeBLEU reaches only 38.13 and 38.37 on the two completion tasks, while the strongest model achieves just 12.30% Pass@1 on the executable benchmark, underscoring how far current models remain from reliable scientific code generation. To demonstrate the training utility of SciCodePile, we further show that continued pretraining on our corpus improves CodeBLEU by ×2.84 on scientific code completion, and instruction tuning on our data improves Pass@1 by ×4.79 on the executable benchmark. All code and data are available at https://huggingface.co/SciCodePile.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 37 references that are in the map. First posted on arXiv 21 Jul 2026.
Builds on
23 of 37 references.
References · 23
- 2025Qwen3 Technical Reportcited by 8,820
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
- 2024ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discoverycited by 235
11 more
- 2024SciCode: A Research Coding Benchmark Curated by Scientistscited by 178
- 2024DiscoveryBench: Towards Data-Driven Discovery with Large Language Modelscited by 109
- 2024Calibration and Correctness of Language Models for Codecited by 49
- 2024RLCoder: Reinforcement Learning for Repository-Level Code Completioncited by 44
- 2025Nature Language Model: Deciphering the Language of Nature for Scientific Discoverycited by 36
- 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Modelscited by 25
- 2025DSCodeBench: A Realistic Benchmark for Data Science Code Generationcited by 17
- 2023LM-CPPF: Paraphrasing-Guided Data Augmentation for Contrastive Prompt-Based Few-Shot Fine-Tuningcited by 16
- 2025MatTools: Benchmarking Large Language Models for Materials Science Toolscited by 12
- 2025ChemPile: A 250GB Diverse and Curated Dataset for Chemical Foundation Modelscited by 9
- 2024Out of style: Misadventures with LLMs and code style transfercited by 1
Built on by
Not cited yet.