Abstract
Large Language Models (LLMs) demonstrate a significant gap between their ability to generate a correct mathematical solution and their ability to identify it among multiple candidates. Researchers from Yale and Google DeepMind have developed a multi-stage fine-tuning recipe designed to bridge this gap. By combining high-quality step-by-step reasoning data, a novel Solution-Cluster Re-ranking (SCR) strategy, and sequential multi-task training, they improved PaLM 2-L's performance on the MATH dataset to 58.8%—an 11.2% absolute improvement over standard few-shot methods.
Introduction: The Selection Problem
Current LLMs exhibit a "selection" bottleneck in mathematical reasoning. While a model like PaLM 2-L may find a correct solution in one of 64 attempts (Pass@64) nearly 80% of the time, its single-attempt accuracy (Pass@1) is often much lower. This discrepancy suggests that the model possesses the necessary knowledge to solve complex problems but lacks the discriminative power to verify and select the correct reasoning path from its own output.
Methods
The study investigated three primary fine-tuning strategies to enhance model performance:
- Supervised Step-by-Step Fine-tuning (SSFT): Models are trained using Maximum Likelihood Estimation (MLE) to produce detailed, chain-of-thought solutions rather than just final answers.
- Solution-Cluster Re-ranking (SCR): Instead of scoring every generated candidate, SCR groups solutions into clusters based on their final numerical answer. The model then re-ranks only the top-K most frequent clusters, combining the statistical robustness of majority voting with the precision of a learned verifier.
- Multi-task Sequential Fine-tuning: To avoid interference between generation and evaluation tasks, a sequential "sandwich" approach was used: first fine-tuning for generation (SSFT), then for evaluation (SCR), and finally refining the generator using the evaluation signal.
Data and Model Scale
The study utilized the MATH dataset and PRM800K, which contains detailed step-by-step solutions generated by GPT-4. Interestingly, the GPT-4 generated solutions proved superior for training because their verbose and explicit style helped the model learn reasoning chains more effectively than human-written solutions.
The benefits of these techniques were found to be highly dependent on model scale. While PaLM 2-L showed significant gains, the smaller PaLM 2-S struggled to act as an effective evaluator, suggesting that logical verification is an emergent property of larger models.
Results and Efficiency
The best-performing PaLM 2-L model achieved 58.8% accuracy on the MATH dataset. A key finding was the efficiency of the Solution-Cluster Re-ranking (SCR) method. By focusing on clusters rather than individual solutions, the model achieved higher accuracy while significantly reducing computational overhead.
As shown in the figures above, re-ranking clusters (e.g., W.RR.MajK) maintains high accuracy even when evaluating a small fraction of the total examples, providing a favorable trade-off between performance and inference cost.
Conclusion
This research demonstrates that the gap between generation and selection in LLM math reasoning can be narrowed through targeted fine-tuning. Key insights include the importance of reasoning "style" in training data and the effectiveness of cluster-based re-ranking. Future work may involve integrating external tools like Python interpreters to further enhance internal reasoning capabilities.
Summary updated