arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.02854cs.SEcs.AI
收藏

SELF-REDRAFT:在代码生成的测试时扩展中激发内在的探索-利用平衡

SELF-REDRAFT: Eliciting Intrinsic Exploration-Exploitation Balance in Test-Time Scaling for Code Generation

Department of Computer Science and Engineering, HKUST(计算机科学与工程系,香港科技大学)

Yixiang Chen, Tianshi Zheng, Shijue Huang, Zhitao He, Yi R. Fung

AI总结:

提出SELF-REDRAFT框架,通过鼓励模型为根本缺陷的方案重写新草稿,在无解释器反馈的代码生成中激发LLM内在的探索-利用平衡,建立了性能优于Self-Refine的基线并指出反馈与判别是未来改进关键。

摘要:

在没有解释器反馈的情况下进行测试时扩展,对于无法轻易获得测试用例的真实世界代码生成场景至关重要。虽然现有范式通常依赖于贪婪利用(即迭代精炼)或随机探索(即依赖基于样本的投票或重排序机制),但这两个维度之间的平衡仍未得到充分探索。为了研究LLM平衡利用和探索的内在能力,我们引入了SELF-REDRAFT,这是一个建立在Self-Refine之上的框架,鼓励模型为存在根本缺陷的解决方案提出新的草稿。我们的结果表明,当在相同的最大迭代次数下收敛时,SELF-REDRAFT始终取得比Self-Refine更好的性能。尽管如此,我们观察到仍有显著的改进空间,这主要归因于当前自我重写能力的两个核心方面:生成指导性反馈的能力受限,以及判别性判断脆弱。我们还发现,不同LLM之间的平衡策略存在显著差异,反映了独特的、特定于模型的行为。总体而言,我们的研究为测试时扩展中的内在探索-利用平衡建立了基线,并确定反馈和判别是未来具有潜在进展的关键领域。

英文摘要:

Test-time scaling without interpreter feedback is essential for real-world code generation scenarios where test cases are not readily available. While existing paradigms often rely on either greedy exploitation (i.e., iterative refinement) or stochastic exploration (i.e., relying on sample-based voting or reranking mechanisms), the balance between these two dimensions remains underexplored. To investigate the LLM's intrinsic ability to balance exploitation and exploration, we introduce SELF-REDRAFT, a framework built upon Self-Refine that encourages the model to propose new drafts for solutions that are fundamentally flawed. Our results show that SELF-REDRAFT consistently achieves better performance than Self-Refine when converged under the same maximum number of iterations. Still, we observe that significant room for improvement remains, largely due to two core aspects of current self-redraft capabilities: constrained capacity for generating instructive feedback and fragile discriminative judgment. We also find that balancing strategies vary notably across different LLMs, reflecting distinct, model-specific behaviors. Overall, our study establishes a baseline for intrinsic exploration-exploitation balancing in test-time scaling and identifies feedback and discrimination as key areas with potential for future advances.

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

↑