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

面向大语言模型推理的离线学习与遗忘

Offline Learning and Forgetting for Reasoning with Large Language Models

Mila - Quebec AI Institute & Université de Montréal(魁北克AI研究所与蒙特利尔大学);Amazon Web Services(亚马逊网络服务)

Tianwei Ni, Allen Nie, Sapana Chaudhary, Yao Liu, Huzefa Rangwala, Rasool Fakoor

AI总结:

针对大语言模型推理时搜索成本高的问题,提出基于搜索生成的成功/失败路径进行离线学习与遗忘微调的方法,可提升推理成功率并大幅降低推理时间,效果优于监督微调和偏好类方法。

摘要:

在大语言模型中利用推理时搜索已被证实可有效进一步提升训练后模型解决复杂数学与推理问题的能力。但该方法会大幅增加计算成本与推理时间,因为模型必须生成并评估多个候选解以找出可行的推理路径。为解决这一问题,我们提出一种有效方法:通过在源自多种搜索方法的未配对成功推理路径(学习)与失败推理路径(遗忘)上微调模型,将搜索能力直接整合进模型中。我们发现的一个关键挑战是,朴素微调会降低模型的搜索能力;我们证明可通过更小的学习率缓解该问题。在具有挑战性的Game-of-24和Countdown算术谜题上的大量实验表明,用搜索生成的数据替代思维链(CoT)生成的数据进行离线微调,相比推理时搜索基线,成功率提升约23%,同时推理时间减少180倍。除此之外,我们的学习与遗忘目标始终优于监督微调和基于偏好的方法。

英文摘要:

Leveraging inference-time search in large language models has proven effective in further enhancing a trained model's capability to solve complex mathematical and reasoning problems. However, this approach significantly increases computational costs and inference time, as the model must generate and evaluate multiple candidate solutions to identify a viable reasoning path. To address this, we propose an effective approach that integrates search capabilities directly into the model by fine-tuning it on unpaired successful (learning) and failed reasoning paths (forgetting) derived from diverse search methods. A key challenge we identify is that naive fine-tuning can degrade the model's search capability; we show this can be mitigated with a smaller learning rate. Extensive experiments on the challenging Game-of-24 and Countdown arithmetic puzzles show that, replacing CoT-generated data with search-generated data for offline fine-tuning improves success rates by around 23% over inference-time search baselines, while reducing inference time by 180$\times$. On top of this, our learning and forgetting objective consistently outperforms both supervised fine-tuning and preference-based methods.

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

↑