arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.07248cs.CLcs.LG
收藏

PaT:在试后进行规划以实现高效的测试时间代码生成

PaT: Planning-after-Trial for Efficient Test-Time Code Generation

Department of Computer Science and Engineering, POSTECH, South Korea(韩国POSTECH计算机科学与工程系);Graduate School of Artificial Intelligence, POSTECH, South Korea(韩国POSTECH人工智能研究生院);Microsoft Research Asia, Beijing, China(中国北京微软亚洲研究院)

Youngsik Yoon, Sungjae Lee, Seockbean Song, Siwei Wang, Wei Chen, Jungseul Ok

AI总结:

本文提出PaT方法,通过在试后规划来提高测试时间代码生成的效率,采用异构模型配置在多个基准和模型家族中显著提升了成本性能帕累托前沿。

摘要:

在训练时间优化之外,扩大测试时间计算已成为扩展大型语言模型(LLMs)推理能力的关键范式。然而,大多数现有方法采用刚性的规划前试(PbT)策略,即使在直接可解的问题上也会导致效率低下。我们提出规划后试(PaT),一种适应性的代码生成策略,仅在验证失败时调用规划器。这种适应性策略自然地使模型配置异构化:一个成本高效的模型处理生成尝试,而一个强大的模型则用于针对性的规划干预。实证研究表明,在多个基准和模型家族中,我们的方法显著推进了成本性能帕累托前沿。值得注意的是,我们的异构配置在性能上与大型同构模型相当,同时将推理成本降低了约69%。

英文摘要:

Beyond training-time optimization, scaling test-time computation has emerged as a key paradigm to extend the reasoning capabilities of Large Language Models (LLMs). However, most existing methods adopt a rigid Planning-before-Trial (PbT) policy, which inefficiently allocates test-time compute by incurring planning overhead even on directly solvable problems. We propose Planning-after-Trial (PaT), an adaptive policy for code generation that invokes a planner only upon verification failure. This adaptive policy naturally enables a heterogeneous model configuration: a cost-efficient model handles generation attempts, while a powerful model is reserved for targeted planning interventions. Empirically, across multiple benchmarks and model families, our approach significantly advances the cost-performance Pareto frontier. Notably, our heterogeneous configuration achieves performance comparable to a large homogeneous model while reducing inference cost by approximately 69\%.

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

↑