arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.16871cs.CL
收藏

教大型语言模型用工具进行精炼

Teaching LLMs to Refine with Tools

Tencent AI Lab(腾讯AI实验室)

Dian Yu, Yuheng Zhang, Jiahao Xu, Tian Liang, Linfeng Song, Zhaopeng Tu, Haitao Mi, Dong Yu

AI总结:

针对LLM在同格式内精炼导致的非纠正行为,提出CaP方法,通过两阶段训练(监督微调与DPO偏好优化)利用外部工具精炼CoT回复,实现有效的跨推理精炼与高效推理。

摘要:

大型语言模型(LLMs)能基于反馈精炼其回复,通过迭代训练或测试时精炼实现自我改进。然而,现有方法主要侧重于在同一推理格式内进行精炼,这可能导致非纠正行为。我们提出CaP,一种新方法,利用外部工具精炼由相同或其他LLMs生成的思维链(CoT)回复。CaP采用两阶段训练过程:监督微调,随后使用DPO变体进行偏好优化。我们的观察强调了偏好优化在实现有效精炼中的关键作用。此外,我们比较了几种采样策略,以在推理时利用CoT和工具。实验结果证明CaP在有效跨推理精炼和高效推理方面的潜力。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑