Preprint · 2025
BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions
| Venue | arXiv |
|---|---|
| DOI | 10.48550/arXiv.2406.15877 |
| URL | http://arxiv.org/abs/2406.15877 |
| Topics | ReplicHAI / Agent Evals / 02 Software engineering & coding |
| Tags | Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Software Engineering |
| archiveID | arXiv:2406.15877 |
| extra | arXiv:2406.15877 [cs.SE] |
| libraryCatalog | arXiv.org |
| shortTitle | BigCodeBench |
Abstract
Task automation has been greatly empowered by the recent advances in Large Language Models (LLMs) via Python code, where the tasks ranging from software engineering development to general-purpose reasoning. While current benchmarks have shown that LLMs can solve tasks using programs like human developers, the majority of their evaluations are limited to short and self-contained algorithmic tasks or standalone function calls. Solving challenging and practical tasks requires the capability of utilizing diverse function calls as tools to efficiently implement functionalities like data analysis and web development. In addition, using multiple tools to solve a task needs compositional reasoning by accurately understanding complex instructions. Fulfilling both of these characteristics can pose a great challenge for LLMs.To assess how well LLMs can solve challenging and practical tasks via programs, we introduce BigCodeBench, a benchmark that challenges LLMs to invoke multiple function calls as tools from 139 libraries and 7 domains for 1,140 fine-grained tasks. To evaluate LLMs rigorously, each task encompasses 5.6 test cases with an average branch coverage of 99%. In addition, we propose a natural-language-oriented variant of BigCodeBench, BigCodeBench-Instruct, that automatically transforms the original docstrings into short instructions only with essential information. Our extensive evaluation of 60 LLMs shows that LLMs are not yet capable of following complex instructions to use function calls precisely, with scores up to 60%, significantly lower than the human performance of 97%. The results underscore the need for further advancements in this area.
BibTeX
@misc{zhuo_bigcodebench_2025,
title = {{BigCodeBench}: {Benchmarking} {Code} {Generation} with {Diverse} {Function} {Calls} and {Complex} {Instructions}},
shorttitle = {{BigCodeBench}},
url = {http://arxiv.org/abs/2406.15877},
doi = {10.48550/arXiv.2406.15877},
abstract = {Task automation has been greatly empowered by the recent advances in Large Language Models (LLMs) via Python code, where the tasks ranging from software engineering development to general-purpose reasoning. While current benchmarks have shown that LLMs can solve tasks using programs like human developers, the majority of their evaluations are limited to short and self-contained algorithmic tasks or standalone function calls. Solving challenging and practical tasks requires the capability of utilizing diverse function calls as tools to efficiently implement functionalities like data analysis and web development. In addition, using multiple tools to solve a task needs compositional reasoning by accurately understanding complex instructions. Fulfilling both of these characteristics can pose a great challenge for LLMs.To assess how well LLMs can solve challenging and practical tasks via programs, we introduce BigCodeBench, a benchmark that challenges LLMs to invoke multiple function calls as tools from 139 libraries and 7 domains for 1,140 fine-grained tasks. To evaluate LLMs rigorously, each task encompasses 5.6 test cases with an average branch coverage of 99\%. In addition, we propose a natural-language-oriented variant of BigCodeBench, BigCodeBench-Instruct, that automatically transforms the original docstrings into short instructions only with essential information. Our extensive evaluation of 60 LLMs shows that LLMs are not yet capable of following complex instructions to use function calls precisely, with scores up to 60\%, significantly lower than the human performance of 97\%. The results underscore the need for further advancements in this area.},
urldate = {2026-11-06},
publisher = {arXiv},
author = {Zhuo, Terry Yue and Vu, Minh Chien and Chim, Jenny and Hu, Han and Yu, Wenhao and Widyasari, Ratnadira and Yusuf, Imam Nur Bani and Zhan, Haolan and He, Junda and Paul, Indraneil and Brunner, Simon and Gong, Chen and Hoang, Thong and Zebaze, Armel Randy and Hong, Xiaoheng and Li, Wen-Ding and Kaddour, Jean and Xu, Ming and Zhang, Zhihan and Yadav, Prateek and Jain, Naman and Gu, Alex and Cheng, Zhoujun and Liu, Jiawei and Liu, Qian and Wang, Zijian and Hui, Binyuan and Muennighoff, Niklas and Lo, David and Fried, Daniel and Du, Xiaoning and Vries, Harm de and Werra, Leandro Von},
month = apr,
year = {2025},
note = {arXiv:2406.15877 [cs.SE]},
keywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Software Engineering},
}