StudentEval:一个由学生编写提示词的代码大语言模型基准
StudentEval: A Benchmark of Student-Written Prompts for Large Language Models of Code
AI总结:
该研究提出 StudentEval 基准,用初学学生与代码 LLM 交互编写的提示词评估5个模型,证明其比现有基准更能区分性能,并揭示提示技巧差异与非确定性采样的教学影响。
摘要:
代码大语言模型(Code LLMs)正被快速部署,并且有证据表明它们可以提高专业程序员的生产力。当前的代码生成基准衡量的是模型在给定专家提示词的情况下能否生成正确程序。本文提出一个新基准,每个问题包含多条提示词,且由一类特定的非专家提示词编写者——初学程序员——撰写。StudentEval 包含针对48个问题的1,749条提示词,由80名仅完成过一个学期 Python 编程学习的学生编写。这些学生在与 Code LLM 交互式协作时编写提示词,我们观察到成功率差异很大。我们使用 StudentEval 评估5个 Code LLM,发现与现有基准相比,StudentEval 能更好地区分模型性能。我们分析提示词后发现,学生的提示技巧存在显著差异。我们还发现,非确定性的 LLM 采样可能误导学生,使其认为自己的提示词比实际更有效(或更无效),这对如何使用 Code LLM 开展教学具有启示意义。
英文摘要:
Code LLMs are being rapidly deployed and there is evidence that they can make professional programmers more productive. Current benchmarks for code generation measure whether models generate correct programs given an expert prompt. In this paper, we present a new benchmark containing multiple prompts per problem, written by a specific population of non-expert prompters: beginning programmers. StudentEval contains 1,749 prompts for 48 problems, written by 80 students who have only completed one semester of Python programming. Our students wrote these prompts while working interactively with a Code LLM, and we observed very mixed success rates. We use StudentEval to evaluate 5 Code LLMs and find that StudentEval is a better discriminator of model performance than existing benchmarks. We analyze the prompts and find significant variation in students' prompting techniques. We also find that nondeterministic LLM sampling could mislead students into thinking that their prompts are more (or less) effective than they actually are, which has implications for how to teach with Code LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。