A Stitch in Time Saves Nine: Proactive Self-Refinement for Language Models
Jinyi Han, Xinyi Wang, Haiquan Zhao, Tingyun li, Zishang Jiang, Sihang Jiang, Jiaqing Liang, Xin Lin, Weikang Zhou, Zeye Sun, Fei Yu, Yanghua Xiao
TL;DR
This paper addresses the limitations of reactive self-refinement in large language models by introducing ProActive Self-Refinement (PASR), which refines outputs during generation. PASR employs a reinforcement learning framework using Group Relative Policy Optimization and a comparison-based reward to decide when and how to refine, with a structured generation trace conveyed through <think>, <refine>, and <answer> tags. Evaluations across ten open-domain tasks on Qwen backbones show substantial gains in efficiency and accuracy, notably a 41.6% reduction in token usage and an 8.2% accuracy improvement on Qwen3-8B. The approach demonstrates robust generalization beyond domain-specific data and provides open-source code and data for replication and further development.
Abstract
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.
