及时一针省九针:面向语言模型的主动自我精炼
A Stitch in Time Saves Nine: Proactive Self-Refinement for Language Models
AI总结:
针对现有大语言模型自我精炼方法多为固定迭代次数的被动式流程、难以适配动态生成上下文的问题,提出可在生成过程中主动决策精炼时机与方式的PASR方法,在10项任务中提升了求解性能,在Qwen3-8B上降本增效显著。
摘要:
自我精炼领域的最新进展已展现出通过迭代优化提升大语言模型(LLM)输出质量的巨大潜力。然而,现有大多数自我精炼方法依赖固定迭代次数的被动式流程,难以根据不断变化的生成上下文确定最优的精炼时机与内容。受人类在执行任务过程中动态调整思路的方式启发,我们提出主动自我精炼(ProActive Self-Refinement,PASR)——一种让LLM能够在生成过程中优化输出的新方法。与需要重新生成完整回复的方法不同,PASR基于模型内部状态与动态变化的上下文,主动决策是否精炼、何时精炼以及如何精炼。我们在涵盖10种不同任务的多样化集合上开展了大量实验以评估PASR的有效性。实验结果表明,PASR显著提升了模型的问题求解性能。具体而言,在Qwen3-8B模型上,与标准生成方式相比,PASR将平均token消耗降低了41.6%,同时实现了8.2%的准确率提升。本文所用的代码与基线方法已在GitHub上开源。
英文摘要:
Recent advances in self-refinement have demonstrated significant potential for improving the outputs of large language models (LLMs) through iterative refinement. However, most existing self-refinement methods rely on a reactive process with a fixed number of iterations, making it difficult to determine the optimal timing and content of refinement based on the evolving generation context. Inspired by the way humans dynamically refine their thoughts during execution, we propose ProActive Self-Refinement (PASR), a novel method that enables LLMs to refine their outputs during the generation process. Unlike methods that regenerate entire responses, PASR proactively decides whether, when, and how to refine based on the model's internal state and evolving context. We conduct extensive experiments on a diverse set of 10 tasks to evaluate the effectiveness of PASR. Experimental results show that PASR significantly enhances problem-solving performance. In particular, on Qwen3-8B, PASR reduces average token consumption by 41.6% compared to standard generation, while also achieving an 8.2% improvement in accuracy. Our code and baselines used in the paper are available on GitHub.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。