arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.12610cs.SE
收藏

针对自动化代码审查反馈的微调模型

Fine-Tuning Models for Automated Code Review Feedback

Heriot-Watt University(赫瑞瓦特大学)

Smitha S Kumar, Michael A Lones, Manuel Maarek, Hind Zantout

AI总结:

本文研究了通过参数高效微调和提示工程提升Code Llama生成代码反馈质量的方法,发现PEFT显著优于提示工程,且学生反馈认为其效果与ChatGPT相当,但需增加技术术语解释以提升教学效果。

摘要:

大型语言模型通过个性化支持、内容创作和自动反馈为编程教育带来了新可能。尽管近期研究展示了反馈生成的潜力,但许多技术依赖于专有模型,引发了成本、计算需求和共享学生代码的伦理问题。开源LLMs提供了一种替代方法,但目前缺乏专有模型的能力。为解决此问题,本文探讨了参数高效微调(PEFT)和提示工程是否能通过从大型更强大模型导出的数据集提炼知识,以适应和提升Code Llama生成反馈的质量。通过学生评估、人工标注和自动指标BLEU、ROUGE和BERTScore评估了有缺陷Java代码的反馈质量。研究发现,PEFT在反馈质量上带来了显著提升,并显著优于提示工程,为开发可自由部署的反馈工具提供了途径。学生评估表明,学习者认为PEFT模型的反馈价值高,效果与专有ChatGPT模型相当。参与者建议在PEFT模型反馈中增加技术术语的解释可能更具益处。本研究证明了微调模型可以有效支持批判性思维并指导可扩展的教学系统设计。

英文摘要:

Large Language Models have introduced new possibilities for programming education through personalized support, content creation, and automated feedback. While recent studies have demonstrated the potential for feedback generation, many techniques rely on proprietary models, raising concerns about cost, computational demands, and the ethical implications of sharing student code. Open LLMs provide an alternative approach, but they do not currently have the capabilities of proprietary models. To address this problem, we investigate whether parameter-efficient fine-tuning (PEFT) and prompt engineering, both of which distil knowledge from a dataset derived from a large, more capable model, can be used to adapt and enhance the quality of feedback generated by the open LLM Code Llama. Feedback quality on buggy Java code was assessed using a combination of student evaluation, manual annotation and the automated metrics BLEU, ROUGE, and BERTScore. Our findings indicate that PEFT leads to notable improvements in feedback quality and significantly outperforms prompt engineering, providing an avenue for developing freely deployable feedback tools that can be effectively used to guide student learning. Student evaluation indicates that learners value the PEFT model's feedback and see it as being equally effective as the proprietary ChatGPT model. Participants suggested that incorporating additional explanation for technical terms in the PEFT model's feedback could be more beneficial. This study demonstrates that fine-tuned models can effectively support critical thinking and guide the design of scalable pedagogical systems.

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

↑