arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.05707cs.CLcs.AIcs.LG
收藏

用规划令牌引导语言模型推理

Guiding Language Model Reasoning with Planning Tokens

University of California, Santa Barbara(加州大学圣巴巴拉分校);Microsoft Research(微软研究院);Mila — Quebec AI Institute(米拉-魁北克人工智能研究所);Université de Montréal(蒙特利尔大学)

Xinyi Wang, Lucas Caccia, Oleksiy Ostapenko, Xingdi Yuan, William Yang Wang, Alessandro Sordoni

AI总结:

本文提出在每个推理步骤开始时生成规划令牌作为高层计划,以极少的可训练参数增加引导语言模型进行结构化思维链推理,并在多个数学和问答数据集上取得显著准确率提升。

摘要:

大型语言模型(LLMs)最近因其执行复杂推理任务(如思维链(CoT)推理)的能力而引起了相当大的关注。然而,现有增强这种能力的方法大多严重依赖数据驱动手段,而忽视了模型推理能力的结构方面。为了鼓励更具结构性地生成思维链步骤,我们提出了一种分层生成方案:让语言模型在每个推理步骤开始时生成一个规划令牌,直观上作为当前步骤的高层计划,并将其嵌入添加到模型参数中。我们的方法所需的可训练参数增加可以忽略不计(0.001%),并且可以通过全量微调或更具参数效率的方案来应用。我们通过将该方法应用于三个不同的LLM来证明其有效性,在三个数学应用题数据集和一个多跳问答数据集上,相对于标准微调基线,展示了显著的准确率提升。

英文摘要:

Large language models (LLMs) have recently attracted considerable interest for their ability to perform complex reasoning tasks, such as chain-of-thought (CoT) reasoning. However, most of the existing approaches to enhance this ability rely heavily on data-driven methods, while neglecting the structural aspects of the model's reasoning capacity. To encourage a more structural generation of CoT steps, we propose a hierarchical generation scheme: we let the LM generate a planning token at the start of each reasoning step, intuitively serving as a high-level plan of the current step, and add their embeddings to the model parameters. Our approach requires a negligible increase in trainable parameters (0.001%) and can be applied through either full fine-tuning or a more parameter-efficient scheme. We demonstrate our method's effectiveness by applying it to three different LLMs, showing notable accuracy improvements across three math word problem datasets and one multihop QA dataset with respect to standard fine-tuning baselines.

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

↑