Abstract
While Large Language Models (LLMs) have demonstrated remarkable instruction-following capabilities, they often struggle with self-correction, typically producing "one-shot" responses that fail to address internal errors. This paper introduces Alignment via Refinement (AvR), a two-stage framework designed to instill recursive thinking capabilities in LLMs. By optimizing for a refinement-aware reward and utilizing internal monologue tokens, AvR enables models to autonomously criticize and improve their outputs. Experiments with LLaMA-3-8B show significant improvements across general and mathematical benchmarks, outperforming traditional reinforcement learning methods with substantially less data.
Introduction
OpenAI’s o1-series models recently established a new paradigm in artificial intelligence by demonstrating that "slow thinking"—allowing a model to process problems through long-form Chain of Thought (CoT)—leads to substantial performance gains. However, most open-source models remain "one-shot" thinkers. If a model commits an error in its initial tokens, it rarely possesses the recursive capability to identify and rectify the mistake.
"Unlocking Recursive Thinking of LLMs: Alignment via Refinement (AvR)" addresses this gap. The researchers propose a framework that teaches models to criticize and improve their own outputs through a structured two-stage process, effectively transforming a standard LLaMA-3-8B model into a recursive reasoning engine.
The Challenge of Self-Correction
In a standard alignment setup, models are trained to map a prompt directly to a high-quality response. If the initial generation is flawed, the model lacks the internal alignment to recognize the error and iteratively improve it. Existing approaches to bridge this gap often rely on massive amounts of expert-curated data to distill reasoning capabilities. AvR seeks to unlock these capabilities without expensive human intervention by focusing on the process of reflection rather than just the final answer.
The AvR Framework
The AvR framework operates in two distinct stages to move a model from guided refinement to autonomous self-correction.
Stage I: Single-step Optimization
The first stage builds the foundation for refinement. The model is prompted to generate a "refinement tree" for a given query. This tree consists of an initial response, followed by multiple "criticisms" and subsequent "improvements" based on those criticisms.
To train the model, the authors introduce a Refinement-aware Reward. In this schema, a refined response is only considered superior if it improves upon the previous step and surpasses the original starting point. The model is then trained using Direct Preference Optimization (DPO) on these pairs, learning to favor the "improved" version over the "flawed" one.
Stage II: Multi-step Optimization
In the second stage, the model transitions from following external prompts to generating its own internal monologue. Using special control tokens (e.g., <|Start of recursive criticism and improvement|>), the model encapsulates its thoughts and learns to decide autonomously when a response is sufficient or when it requires further revision.
To prevent the model from becoming overly verbose—a common side effect where reinforcement learning models equate length with quality—the authors implement a final DPO stage to penalize unnecessary verbosity while maintaining output quality.
Experimental Results
The researchers evaluated AvR using a LLaMA-3-8B-Instruct base, utilizing the llama3-ultrafeedback-armorm dataset for synthetic refinement trees. The results across general and mathematical benchmarks were significant:
- AlpacaEval 2.0: The win rate improved from 25.0% (base) to 51.4% (AvR Stage II with length control).
- Arena-Hard v0.1: AvR achieved a score of 34.5%, surpassing GPT-3.5-Turbo (23.3%) and approaching the performance of much larger models.
- Mathematical Reasoning: On the AIME24 benchmark, the model’s score rose from 10.0 to 16.7, demonstrating that recursive thinking is particularly potent for logical and mathematical tasks.
Key Insights
Efficiency Over Scale
One of the most notable findings was that AvR trained on only 10,000 examples significantly outperformed standard reinforcement learning methods trained on 60,000 examples. This suggests that the structure of the data—specifically the "delta" or difference between a flawed and an improved version—is more critical for alignment than raw data volume.
Inference Scaling
Because the model learns to use internal control tokens, it can scale its "thinking time" during inference. For complex problems, the model can choose to execute more refinement rounds, effectively trading computational time for higher accuracy.
Cross-Model Correction
Interestingly, the model demonstrated a "correction capability" that allowed it to take outputs from stronger models, such as GPT-4o, and improve them through its internal refinement process.
Conclusion and Future Work
AvR provides a robust pathway for smaller, open-source models to achieve the recursive reasoning capabilities previously reserved for much larger, proprietary systems. While the framework currently relies on the quality of the underlying reward model (in this case, Skywork-Reward-Gemma-2-27B), it opens new doors for autonomous model improvement. Future research may explore more advanced reinforcement learning methods like PPO to further optimize the search for refinements and the use of "LLM-as-a-judge" for more nuanced feedback loops.
Summary updated