AutoCodeBench: Large Language Models are Automatic Code Benchmark Generators

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chou, Jason, Liu, Ao, Deng, Yuchi, Zeng, Zhiying, Zhang, Tao, Zhu, Haotian, Cai, Jianwei, Mao, Yue, Zhang, Chenchen, Tan, Lingyun, Xu, Ziyan, Zhai, Bohui, Liu, Hengyi, Zhu, Speed, Zhou, Wiggin, Lian, Fengzong
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909734434504704
author Chou, Jason
Liu, Ao
Deng, Yuchi
Zeng, Zhiying
Zhang, Tao
Zhu, Haotian
Cai, Jianwei
Mao, Yue
Zhang, Chenchen
Tan, Lingyun
Xu, Ziyan
Zhai, Bohui
Liu, Hengyi
Zhu, Speed
Zhou, Wiggin
Lian, Fengzong
author_facet Chou, Jason
Liu, Ao
Deng, Yuchi
Zeng, Zhiying
Zhang, Tao
Zhu, Haotian
Cai, Jianwei
Mao, Yue
Zhang, Chenchen
Tan, Lingyun
Xu, Ziyan
Zhai, Bohui
Liu, Hengyi
Zhu, Speed
Zhou, Wiggin
Lian, Fengzong
contents Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains, with code generation emerging as a key area of focus. While numerous benchmarks have been proposed to evaluate their code generation abilities, these benchmarks face several critical limitations. First, they often rely on manual annotations, which are time-consuming and difficult to scale across different programming languages and problem complexities. Second, most existing benchmarks focus primarily on Python, while the few multilingual benchmarks suffer from limited difficulty and uneven language distribution. To address these challenges, we propose AutoCodeGen, an automated method for generating high-difficulty multilingual code generation datasets without manual annotations. AutoCodeGen ensures the correctness and completeness of test cases by generating test inputs with LLMs and obtaining test outputs through a multilingual sandbox, while achieving high data quality through reverse-order problem generation and multiple filtering steps. Using this novel method, we introduce AutoCodeBench, a large-scale code generation benchmark comprising 3,920 problems evenly distributed across 20 programming languages. It is specifically designed to evaluate LLMs on challenging, diverse, and practical multilingual tasks. We evaluate over 30 leading open-source and proprietary LLMs on AutoCodeBench and its simplified version AutoCodeBench-Lite. The results show that even the most advanced LLMs struggle with the complexity, diversity, and multilingual nature of these tasks. Besides, we introduce AutoCodeBench-Complete, specifically designed for base models to assess their few-shot code generation capabilities. We hope the AutoCodeBench series will serve as a valuable resource and inspire the community to focus on more challenging and practical multilingual code generation scenarios.
format Preprint
id arxiv_https___arxiv_org_abs_2508_09101
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AutoCodeBench: Large Language Models are Automatic Code Benchmark Generators
Chou, Jason
Liu, Ao
Deng, Yuchi
Zeng, Zhiying
Zhang, Tao
Zhu, Haotian
Cai, Jianwei
Mao, Yue
Zhang, Chenchen
Tan, Lingyun
Xu, Ziyan
Zhai, Bohui
Liu, Hengyi
Zhu, Speed
Zhou, Wiggin
Lian, Fengzong
Computation and Language
Software Engineering
Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains, with code generation emerging as a key area of focus. While numerous benchmarks have been proposed to evaluate their code generation abilities, these benchmarks face several critical limitations. First, they often rely on manual annotations, which are time-consuming and difficult to scale across different programming languages and problem complexities. Second, most existing benchmarks focus primarily on Python, while the few multilingual benchmarks suffer from limited difficulty and uneven language distribution. To address these challenges, we propose AutoCodeGen, an automated method for generating high-difficulty multilingual code generation datasets without manual annotations. AutoCodeGen ensures the correctness and completeness of test cases by generating test inputs with LLMs and obtaining test outputs through a multilingual sandbox, while achieving high data quality through reverse-order problem generation and multiple filtering steps. Using this novel method, we introduce AutoCodeBench, a large-scale code generation benchmark comprising 3,920 problems evenly distributed across 20 programming languages. It is specifically designed to evaluate LLMs on challenging, diverse, and practical multilingual tasks. We evaluate over 30 leading open-source and proprietary LLMs on AutoCodeBench and its simplified version AutoCodeBench-Lite. The results show that even the most advanced LLMs struggle with the complexity, diversity, and multilingual nature of these tasks. Besides, we introduce AutoCodeBench-Complete, specifically designed for base models to assess their few-shot code generation capabilities. We hope the AutoCodeBench series will serve as a valuable resource and inspire the community to focus on more challenging and practical multilingual code generation scenarios.
title AutoCodeBench: Large Language Models are Automatic Code Benchmark Generators
topic Computation and Language
Software Engineering
url https://arxiv.org/abs/2508.09101