Teaching LLMs to Refine with Tools
Dian Yu, Yuheng Zhang, Jiahao Xu, Tian Liang, Linfeng Song, Zhaopeng Tu, Haitao Mi, Dong Yu
TL;DR
CaP introduces a framework that uses external tools to refine chain-of-thought (CoT) responses, enabling cross-reasoning refinement across different LLMs. It employs a two-stage training process—supervised fine-tuning (SFT) and preference optimization via DPO variants—to align refinement behavior, and it explores Best-of-N sampling and BoNBoN inference strategies to balance quality and compute. The approach demonstrates that preference optimization is essential for effective refinement, achieving improved accuracy on Chinese mathematical benchmarks and enabling efficient inference even when refining weaker CoT sources. The work highlights potential for cross-model and cross-reasoning refinement, with implications for multilingual deployment, adaptive compute, and more expressive error-aware critics that focus on processes and outcomes.
Abstract
Large language models (LLMs) can refine their responses based on feedback, enabling self-improvement through iterative training or test-time refinement. However, existing methods predominantly focus on refinement within the same reasoning format, which may lead to non-correcting behaviors. We propose CaP, a novel approach that uses external tools to refine chain-of-thought (CoT) responses generated by the same or other LLMs. CaP employs a two-stage training process: supervised fine-tuning followed by preference optimization with DPO variants. Our observations highlight the critical role of preference optimization in enabling effective refinement. Additionally, we compare several sampling strategies to leverage CoT and tools at inference time. Experimental results demonstrate CaP's potential for effective cross-reasoning refinement and efficient inference.
