arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.19100cs.SE
收藏

软件任务中强化学习的奖励工程

Reward Engineering for Software Tasks: A Survey of Reinforcement Learning Approaches

University of California, Riverside(加州大学河滨分校);Shahjalal University of Science and Technology(沙贾拉勒科技大学);University of California, Los Angeles(加州大学洛杉矶分校);Qatar Computing Research Institute (QCRI)(卡塔尔计算机研究所)

Md Rayhanul Masud, Azmine Toushik Wasi, Salman Rahman, Md Rizwan Parvez

AI总结:

本文系统综述了强化学习在软件任务中奖励工程的方法与挑战,旨在整合现有奖励设计方法并提供全面的指导。

摘要:

强化学习正越来越多地用于以代码为中心的任务。这些任务包括代码生成、摘要、理解、修复、测试和优化。这种趋势随着大语言模型和自主代理的出现而加速增长。一个关键挑战是如何设计适用于软件的奖励信号。在许多RL问题中,奖励是一个清晰的数字。在软件中,这往往不可能。目标 rarely 是单一的数值目标。相反,奖励通常是代理。常见的代理检查代码是否编译、通过测试或满足质量指标。许多奖励设计已针对代码相关任务提出。然而,这些工作分散在不同领域和论文中。没有单一的综述将这些方法汇集并展示强化学习在软件中的完整奖励设计景观。在本次综述中,我们提供了强化学习在软件任务中奖励工程的第一个系统和全面的回顾。我们专注于现有方法和技术。我们沿着三个互补的维度组织文献,总结每个维度内的奖励设计选择。最后,我们得出奖励设计空间在SE任务中的挑战和建议。

英文摘要:

Reinforcement learning is increasingly used for code-centric software engineering tasks, including code generation, understanding, repair, testing, and optimization, especially with the rise of large language models and autonomous agents. A core challenge in these settings is reward design. Unlike standard RL domains with clear scalar objectives, software tasks involve competing goals such as correctness, security, efficiency, and readability, which are difficult to capture with a single reward. As a result, RL-for-SE systems rely on heterogeneous signals, including compilation results, unit tests, coverage metrics, retrieval scores, and learned preferences. Yet this work remains scattered across tasks and communities. This survey provides the first systematic review of reward engineering for RL in software tasks. We organize prior work by reward source, granularity, and aggregation. We then distill the findings into practical guidance, including a decision matrix, a design guide, and a reward engineering reporting standard for future RL-for-SE systems.

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

↑