Evolving LLMs' Self-Refinement Capability via Synergistic Training-Inference Optimization

Yongcheng Zeng, Xinyu Cui, Xuanfa Jin, Qirui Mi, Guoqing Liu, Zexu Sun, Mengyue Yang, Dong Li, Weiyu Ma, Ning Yang, Jian Zhao, Jianye Hao, Haifeng Zhang, Jun Wang

TL;DR

While we often assume large language models (LLMs) can naturally correct their own mistakes, standard models actually get worse when asked to refine their answers without external feedback. To fix this, the authors introduce EVOLVE, a framework that pairs a modified training objective with a structured inference strategy to successfully unlock and continually mature an LLM's self-refinement capabilities. Remarkably, applying EVOLVE to a Llama-3.1-8B base model allows it to outperform GPT-4o on major instruction-following benchmarks.

What Problem Does This Paper Address?

As high-quality human data becomes increasingly scarce, researchers are turning to "self-improvement" methods where LLMs generate and refine their own training data. However, this hinges on a critical assumption: that LLMs can autonomously recognize and fix errors in their own drafts (self-refinement).

Through rigorous testing across models like Llama-3, Qwen, Mistral, and Gemma, the authors discover a harsh reality: contemporary LLMs do not possess an inherent self-refinement capability. In fact, across multiple iterations of self-correction, response quality steadily degrades.

Figure 1: Evaluation of Self-Refinement Capability Across Various Models. We use three refinement templates to minimize prompt bias. The x-axis denotes the inference iteration number. For each turn, responses are generated from 256 UltraFeedback test set samples, using the original prompt and the prior turn’s output. These are then scored by the Skywork Reward Model (Liu et al., 2024). To eliminate potential randomness, the reported values are the mean score of three independent runs with different random seeds; higher scores indicate better quality. Templates are detailed in Section I.

The paper addresses this bottleneck by investigating how to explicitly activate, stabilize, and iteratively evolve self-refinement behavior through a unified training and inference loop.

Methods

The authors propose EVOLVE, an iterative framework that alternates between synthetic preference data creation (inference) and preference optimization (training).

Figure 2: Our framework, EVOLVE, iteratively alternates between inference and training processes. In iteration t, Model Mt uses the Self-Refinement strategy to collect preference data, which is then utilized to enhance the model’s intrinsic capabilities via preference training (Eq. 5), yielding the next iteration model Mt+1. The dataset is filtered through either a rule-based method or a reward model.

1. Synergistic Training Stage

EVOLVE splits training into two tightly coupled phases:

  • Supervised Fine-Tuning (SFT): Instead of standard next-token prediction, the SFT loss is modified to explicitly teach the model to take a prompt and a suboptimal response, and map them to a preferred, higher-quality response. This "activates" the basic rewriting behavior.
  • Preference Training (PT): To stabilize the model, the authors introduce a novel Self-Refinement loss ($\mathcal{L}_{SR}$) derived from preference probabilities, combined with standard Direct Preference Optimization ($\mathcal{L}_{DPO}$). This ensures the model maintains high-quality initial answers while maximizing its capacity to improve them during subsequent steps.

2. Inference Stage (Chain of Self-Refinement)

The authors evaluated four dynamic generation strategies to determine how best to exploit this newly trained capability at inference time. They found that a Chain of Self-Refinement—where the model iteratively updates its response based solely on the prompt and its immediate prior draft—yields the most stable and significant quality improvements.

Datasets

The framework was trained and evaluated using several prominent open-source datasets:

  • UltraFeedback: Used both for the initial SFT phase (via a preference mixture subset) and to provide the 30K preference pairs for the offline Preference Training phase.
  • AlpacaEval 2 & Arena-Hard: Utilized as the primary benchmarks to evaluate general instruction-following and win rates against baseline models.
  • GSM8K & MATH: Used to test how well the self-refinement capabilities generalize to out-of-domain mathematical reasoning tasks.
  • MT-Bench: Used to evaluate multi-turn conversational performance.

Key Insights and Ideas

  • The Self-Refinement Illusion: Standard models suffer heavily from prompt bias. Without explicit training, telling a model to "review and improve" its work simply causes it to over-correct, introduce artifacts, or dilute the quality of its original answer.
  • SFT and PT are Complementary: SFT acts as the spark that ignites self-refinement behavior, but without Preference Training (PT), the model's performance oscillates wildly across inference turns. PT acts as the steering wheel, providing steady, incremental gains.
Figure 3: Ablation of training combinations. SFT activates Self-Refinement, PT enhances it, and their synergy (blue, ours) yields the best performance.
  • Critique Generation is a Trap for Small Models: Intuitively, asking a model to analyze its weaknesses before rewriting should help. However, the authors found that "Self-Refinement with Self-Evaluation" performed worse than a blind refinement chain. Smaller base models (like 8B parameters) have weak self-evaluation capabilities; their critiques are often superficial or incorrect, which misleads the subsequent refinement step.

Key Results

  • Outperforming Frontier Models: Starting from a humble Llama-3.1-8B base model, EVOLVE achieved a 62.3% length-controlled win rate on AlpacaEval 2 and 50.3% on Arena-Hard. This allows the 8B model to comfortably surpass proprietary giants like GPT-4o and massive open models like Llama-3.1-405B-Instruct.
  • Cross-Domain Generalization: Despite being trained on general conversational data, the self-refinement capability successfully transferred to complex math. On the MATH benchmark, EVOLVE boosted the model's direct accuracy from 32.8% to 50.1% after three rounds of self-refinement.

Limitations and Future Work

While EVOLVE shows impressive capabilities when paired with an external reward model (like Skywork) to filter data, the authors note that running it in a completely unsupervised, rule-based setting (e.g., blindly trusting the 4th refinement over the 1st) introduces substantial data noise. This noise slows down the rate of self-improvement.

Additionally, because the model lacks domain-specific training, it can still struggle with advanced, multi-step problem-solving strategies in technical fields. The authors point to incorporating domain-specific training for complex reasoning tasks (like coding and advanced mathematics) as a vital direction for future work.

Summary updated

BibTeX
@misc{zeng2025evolving,
  author = {Yongcheng Zeng and Xinyu Cui and Xuanfa Jin and Qirui Mi and Guoqing Liu and Zexu Sun and Mengyue Yang and Dong Li and Weiyu Ma and Ning Yang and Jian Zhao and Jianye Hao and Haifeng Zhang and Jun Wang},
  title = {{Evolving LLMs' Self-Refinement Capability via Synergistic Training-Inference Optimization}},
  year = {2025},
  eprint = {2502.05605},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.05605},
}
Figure