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

将符号执行集成到代码生成大语言模型的微调中

Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMs

TU Darmstadt(图宾根大学)

Marina Sakharova, Abhinav Anand, Mira Mezini

AI总结:

本文研究利用符号执行增强奖励模型训练数据,并结合强化学习与直接偏好优化微调代码生成大语言模型,在代码质量评估上显著超越CodeRL基线,生成性能与CodeRL相当。

摘要:

代码生成大语言模型(LLMs)已成为现代软件开发中不可或缺的工具,提升了生产力并加速了开发进程。本文旨在研究利用强化学习和直接偏好优化对代码生成大语言模型进行微调,以进一步提升其性能。为实现这一目标,我们借助符号执行技术增强了奖励模型的训练数据,确保数据更加全面和客观。通过符号执行,我们创建了一个自定义数据集,能够更好地捕捉代码评估中的细微差别。我们在此数据集上微调的奖励模型,在评估生成代码质量方面相较于基线模型CodeRL表现出显著改进。我们借助奖励模型反馈训练的代码生成大语言模型,取得了与CodeRL基准相当的结果。

英文摘要:

Code-generating Large Language Models (LLMs) have become essential tools in modern software development, enhancing productivity and accelerating development. This paper aims to investigate the fine-tuning of code-generating LLMs using Reinforcement Learning and Direct Preference Optimization, further improving their performance. To achieve this, we enhance the training data for the reward model with the help of symbolic execution techniques, ensuring more comprehensive and objective data. With symbolic execution, we create a custom dataset that better captures the nuances in code evaluation. Our reward models, fine-tuned on this dataset, demonstrate significant improvements over the baseline, CodeRL, in estimating the quality of generated code. Our code-generating LLMs, trained with the help of reward model feedback, achieve similar results compared to the CodeRL benchmark.

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

↑