arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.04115cs.SEcs.PL
收藏

自然语言熟练度如何塑造面向软件工程任务的 GenAI 代码

How Natural Language Proficiency Shapes GenAI Code for Software Engineering Tasks

Nara Institute of Science and Technology(奈良先端科学技术大学院大学);The University of Osaka(大阪大学)

Ruksit Rojpaisarnkit, Youmei Fan, Kenichi Matsumoto, Raula Gaikovina Kula

AI总结:

本文通过 HumanEval 数据集系统变化提示的英语熟练度,发现 LLM 默认采用 B2 水平,且更高熟练度的提示能一致提升生成代码的正确性,表明自然语言熟练度是控制代码生成的关键杠杆。

摘要:

随着基础模型(FM)驱动的工具在软件工程中被广泛采用,自然语言提示已成为开发者与大型语言模型(LLM)之间的关键接口。虽然许多研究聚焦于提示结构,但自然语言熟练度是一个尚未被充分探索的因素,它可能影响生成代码的质量。本文研究英语语言熟练度本身——独立于提示技术——是否会影响 LLM 生成代码的熟练度和正确性。我们使用 HumanEval 数据集,针对 164 个编程任务,系统地将提示的英语熟练度从基础水平变化到高级水平,并测量所生成代码的熟练度和正确性。我们的研究发现,LLM 默认使用中级(B2)自然语言水平。虽然对生成代码熟练度的影响因模型而异,但我们发现,在所有模型上,更高熟练度的提示一致地生成了更正确的代码。这些结果表明,自然语言熟练度是控制代码生成的一个关键杠杆,有助于开发者定制 AI 输出并提高解决方案的可靠性。

英文摘要:

With the widespread adoption of Foundation Model (FM)-powered tools in software engineering, the natural language prompt has become a critical interface between developers and Large Language Models (LLMs). While much research has focused on prompt structure, the natural language proficiency is an underexplored factor that can influence the quality of generated code. This paper investigates whether the English language proficiency itself independent of the prompting technique affects the proficiency and correctness of code generated by LLMs. Using the HumanEval dataset, we systematically varied the English proficiency of prompts from basic to advanced for 164 programming tasks and measured the resulting code proficiency and correctness. Our findings show that LLMs default to an intermediate (B2) natural language level. While the effect on the resulting code proficiency was model-dependent, we found that higher-proficiency prompts consistently yielded more correct code across all models. These results demonstrate that natural language proficiency is a key lever for controlling code generation, helping developers tailor AI output and improve the reliability of solutions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑