Papers › Beyond Correctness: Benchmarking Multi-dimensional Code Generation for Large Language Models

Beyond Correctness: Benchmarking Multi-dimensional Code Generation for Large Language Models

16 Jul 2024arXiv:2407.11470archive 2025-07-28

Jiasheng Zheng, Boxi Cao, Zhengzhao Ma, Ruotong Pan, Hongyu Lin, Yaojie Lu, Xianpei Han, Le Sun

In recent years, researchers have proposed numerous benchmarks to evaluate the impressive coding capabilities of large language models (LLMs). However, current benchmarks primarily assess the accuracy of LLM-generated code, while neglecting other critical dimensions that also significantly impact code quality in real-world development. Moreover, relying exclusively on correctness as the guiding metric renders LLMs susceptible to data contamination. Therefore, this paper proposes the RACE benchmark, which comprehensively evaluates the quality of code generated by LLMs across 4 dimensions: Readability, mAintainability, Correctness, and Efficiency. Specifically, considering the demand-dependent nature of dimensions beyond correctness, we design various types of user requirements for each dimension to assess the model's ability to generate correct code that also meets user demands. We analyze 28 representative LLMs based on RACE and find that: 1) current correctness-centric benchmarks fail to capture the multifaceted requirements of code in real-world scenarios, while RACE provides a comprehensive evaluation that reveals the defects of LLMs across multiple dimensions; 2) the RACE benchmark serves as an effective tool for resisting the risk of data contamination; 3) even the most advanced code LLMs still encounter significant challenges in customized requirements involving complex instructions; 4) most LLMs exhibit an inherent preference for specific coding style. These findings highlight the need for a multidimensional evaluation of code LLMs, emphasizing metrics beyond correctness for real-world applications. Future efforts should aim to develop novel learning algorithms to enhance code generation under varied constraints and improve coverage and usability for diverse user needs.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.11470")

Code

Syntology Ran 2 of 16 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jszheng21/race officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 2 ran; 0 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran
14unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jszheng21/race. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_leading_spaces jszheng21/race/race/codegen/utils.py official repository ran fingerprinted Apache-2.0 (permissive) · 1f9ac358e6dcdc7d · report
retry_get_openai_response jszheng21/race/race/codegen/utils.py official repository ran Apache-2.0 (permissive) · 4ed59fa1ec6ea391 · report
capitalize_after_underscore jszheng21/race/race/codeeval/evaluate_pipeline_evalplus.py official repository unverified Apache-2.0 (permissive) · 52e3021e90c7e1f4 · report
compatible_eval_result jszheng21/race/race/codeeval/evaluation_utils_evalplus.py official repository unverified Apache-2.0 (permissive) · 0fe1c97ce512eef9 · report
construct_prompt_customized jszheng21/race/race/codegen/prompts.py official repository unverified Apache-2.0 (permissive) · f77f0258d19b7231 · report
construct_prompt_evalplus jszheng21/race/race/codegen/prompts.py official repository unverified Apache-2.0 (permissive) · 7d55790d6fc57e9d · report
construct_prompt_leetcode_efficiency jszheng21/race/race/codegen/prompts.py official repository unverified Apache-2.0 (permissive) · 5b9243b85fe4c3ad · report
estimate_pass_at_k jszheng21/race/race/codeeval/evaluation_utils_evalplus.py official repository unverified Apache-2.0 (permissive) · 5a283b50e4b14e37 · report
extra_eos_for_direct_completion jszheng21/race/race/codegen/model.py official repository unverified Apache-2.0 (permissive) · cff3266598686087 · report
extract_class_names jszheng21/race/race/codeeval/metrics_utils.py official repository unverified Apache-2.0 (permissive) · 9f63a082cf9ac9d7 · report
extract_function_names jszheng21/race/race/codeeval/metrics_utils.py official repository unverified Apache-2.0 (permissive) · c496a7988b94902a · report
extract_variable_names jszheng21/race/race/codeeval/metrics_utils.py official repository unverified Apache-2.0 (permissive) · 93545955a0c6e69e · report
is_floats jszheng21/race/race/codeeval/evaluation_utils_evalplus.py official repository unverified Apache-2.0 (permissive) · 0b9209ad7ddba928 · report
retry_get_genai_response jszheng21/race/race/codegen/utils.py official repository unverified Apache-2.0 (permissive) · 7ae0c34bc3033b6d · report
test_time_and_memory_usage jszheng21/race/race/codeeval/execution_utils.py official repository unverified Apache-2.0 (permissive) · 63e64eea84bc55fa · report
trusted_exec jszheng21/race/race/codeeval/execution_utils_evalplus.py official repository unverified Apache-2.0 (permissive) · 9e1a929f64001008 · report

Tasks

BenchmarkingCode Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections