Abstract
We present a novel pipeline, ReflectEvo, to demonstrate that small language models (SLMs) can enhance meta introspection through reflection learning. This process iteratively generates self-reflection for self-training, fostering a continuous and self-evolving process. Leveraging this pipeline, we construct ReflectEvo-460k, a large-scale, comprehensive, self-generated reflection dataset with broadened instructions and diverse multi-domain tasks. Building upon this dataset, we demonstrate the effectiveness of reflection learning to improve SLMs’ reasoning abilities using SFT and DPO with remarkable performance, substantially boosting Llama-3 from 52.4% to 71.2% and Mistral from 44.4% to 71.1%. It validates that ReflectEvo can rival or even surpass the reasoning capability of the three prominent open-sourced models on BIG-bench without distillation from superior models or fine-grained human annotation. We further conduct a deeper analysis of the high quality of self-generated reflections and their impact on error localization and correction. Our work highlights the potential of continuously enhancing the reasoning performance of SLMs through iterative reflection learning in the long run.
Introduction
Large Language Models (LLMs) like GPT-4 have demonstrated a remarkable capacity for self-correction—a "meta-introspection" capability often considered an emergent property of scale. However, for Small Language Models (SLMs), this ability is typically weak, often resulting in low-quality or hallucinated critiques that lead to a "garbage in, garbage out" training loop.
This paper introduces ReflectEvo, a novel pipeline that treats self-reflection as a learnable skill rather than a byproduct of size. By training models like Llama-3-8B and Mistral-7B on iterative self-reflection data, the authors achieve performance gains of up to 20%, rivaling models eight times their size without human intervention or distillation from larger teachers.
The ReflectEvo Pipeline
The ReflectEvo framework is structured into four distinct stages to foster a continuous, self-evolving reasoning process.
- Data Collection: QA pairs are gathered across 10 diverse tasks and 17 datasets, including logic, math, and coding.
- Reflection Generation: A "Generator" model produces initial answers, while a "Reflector" model analyzes the reasoning process, identifies errors, and outlines correction strategies.
- Reflection Curation: Data is categorized into successful reflections (D+), pairwise preference data (D_pref), and successful vs. unsuccessful correction pairs (D±).
- Reflection Tuning: The model undergoes Supervised Fine-Tuning (SFT) on D+ and Direct Preference Optimization (DPO) on the pairwise sets, teaching it to distinguish helpful critiques from flawed ones.
The ReflectEvo-460k Dataset
To support this training, the authors constructed ReflectEvo-460k, a comprehensive dataset of 460,000 self-generated reflection samples. Unlike standard datasets that focus on final answers, ReflectEvo-460k captures the full "thought-reflection-correction" pathway.
The dataset spans logical reasoning (47.8%), mathematics (30.9%), and other domains like coding and reading comprehension. The error taxonomy reveals that the pipeline primarily addresses logic and reasoning errors (55.3%) and instruction violations (35.8%), providing a rich training ground for meta-introspection.
Key Results and Insights
The impact of reflection learning is most evident in the performance leaps on reasoning benchmarks like BIG-bench:
- Llama-3-8B: Accuracy surged from 52.4% to 71.2%.
- Mistral-7B: Accuracy jumped from 44.4% to 71.1%.
These SLMs now rival the performance of much larger models, such as Llama-3-70B, on specific reasoning tasks. A key insight is the importance of the "False to True" pathway: successful corrections occur when the reflection precisely recaps the cause of error and bridges the logical gap. Furthermore, the authors found that reflection is a generalizable skill; training on reflection data from one domain often improved the model's ability to reflect in others.
Limitations and Future Outlook
While highly effective for general reasoning, ReflectEvo showed more modest gains in specialized fields like MATH and Coding, which require more granular, step-by-step critiques. The quality of reflection remains somewhat bounded by the model's base reasoning capability; if a model is fundamentally "blind" to a specific error type, it cannot reflect on it. Future work will explore more sophisticated feedback mechanisms, such as optimized verifiers or reward functions during inference, to further drive the self-evolution loop.
Summary updated