随着基础模型(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.
An Empirical Study of Generative AI Adoption in Software Engineering
Eindhoven University of Technology(埃因霍温理工大学);Izmir Institute of Technology(伊兹密尔理工学院);Pontifical Catholic University of Rio de Janeiro (PUC-Rio)(里约热内卢天主教大学);Blekinge Institute of Technology(布莱金厄理工学院);fortiss
Taking a Pulse on How Generative AI is Reshaping the Software Engineering Research Landscape
Colorado State University(科罗拉多州立大学);University of Bari(巴里大学);University of Auckland(奥克兰大学);IT University of Copenhagen(哥本哈根信息技术大学);University of California Irvine(加州大学尔湾分校);University of Victoria(维多利亚大学)
GenAI for Simulation Model in Model-Based Systems Engineering
School of Automation Science and Electrical Engineering, Beihang University(北京航空航天大学自动化科学与电气工程学院);Hangzhou International Innovation Institute, Beihang University(北京航空航天大学杭州国际创新研究院);State Key Laboratory of Intelligent Manufacturing Systems Technology(智能制造系统技术国家重点实验室);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);University of Genoa(热那亚大学)
The Future of Generative AI in Software Engineering: A Vision from Industry and Academia in the European GENIUS Project
Akkodis Germany Solutions GmbH(德国Akkodis解决方案公司);University of Hildesheim(希尔德斯海姆大学);University of Innsbruck(因斯布鲁克大学);Bilkent University(比尔肯特大学);King’s College London(伦敦国王学院)
A Research Roadmap for Augmenting Software Engineering Processes and Software Products with Generative AI
University of Naples "Federico II" Napoli Italy;Ruhr Institute for Software Technology (paluno), University of Duisburg-Essen Essen Germany;Karlsruhe Institute of Technology (KIT) Karlsruhe Germany;Gran Sasso Science Institute (GSSI) L'Aquila Italy;University of Naples "Federico II";Ruhr Institute for Software Technology (paluno), University of Duisburg-Essen;Karlsruhe Institute of Technology (KIT);Gran Sasso Science Institute (GSSI)
Teaching Agile Requirements Engineering: A Stakeholder Simulation with Generative AI
University of Applied Sciences Emden/Leer(埃姆登/莱尔应用科学大学);University of Applied Sciences and Arts Hannover(汉诺威应用科学与艺术大学);Federal University of São Paulo(圣保罗联邦大学)
Forecasting Developer Environments with GenAI: A Research Perspective
The University of Osaka(大阪大学);Singapore Management University(新加坡管理大学);Zhejiang University(浙江大学);Heidelberg University(海德堡大学);University College London(伦敦大学学院);University of Auckland(奥克兰大学);University of Bari(巴里大学);Tianjin University(天津大学);University of Melbourne(墨尔本大学);Nara Institute of Science and Technology(奈良先端科学技术大学院大学);University of Victoria(维多利亚大学);Northern Arizona University(北亚利桑那大学)
Between Policy and Practice: GenAI Adoption in Agile Software Development Teams
University of Applied Sciences and Arts Hannover(汉诺威应用科学与艺术大学);University of Applied Sciences Emden/Leer(埃姆登/莱尔应用科学大学);Bagilstein GmbH(巴吉尔斯坦有限公司);IU International University(IU国际大学);Volkswagen AG(大众汽车股份公司)
From Code-Centric to Intent-Centric Software Engineering: A Reflexive Thematic Analysis of Generative AI, Agentic Systems, and Engineering Accountability