Teaching LLMs to Refine with Tools

Dian Yu, Yuheng Zhang, Jiahao Xu, Tian Liang, Linfeng Song +3 more
12/22/2024
cs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{yu2024teaching,
  title  = {Teaching LLMs to Refine with Tools},
  author = {Dian Yu and Yuheng Zhang and Jiahao Xu and Tian Liang and Linfeng Song and Zhaopeng Tu and Haitao Mi and Dong Yu},
  year   = {2024},
  eprint = {2412.16871},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.16871v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.16871.svg)](https://codeofpaper.com/paper/2412.16871)

Discussion