[论文解读] Efficient Tool Use with Chain-of-Abstraction Reasoning
论文引入 Chain-of-Abstraction (CoA) 推理,以实现将一般多步推理与特定领域工具使用解耦,使抽象推理链能够被工具具体化,从而在数学与 Wiki 问答任务中实现更准确且更快速的多步问题求解。
To achieve faithful reasoning that aligns with human expectations, large language models (LLMs) need to ground their reasoning to real-world knowledge (e.g., web facts, math and physical rules). Tools help LLMs access this external knowledge, but there remains challenges for fine-tuning LLM agents (e.g., Toolformer) to invoke tools in multi-step reasoning problems, where inter-connected tool calls require holistic and efficient tool usage planning. In this work, we propose a new method for LLMs to better leverage tools in multi-step reasoning. Our method, Chain-of-Abstraction (CoA), trains LLMs to first decode reasoning chains with abstract placeholders, and then call domain tools to reify each reasoning chain by filling in specific knowledge. This planning with abstract chains enables LLMs to learn more general reasoning strategies, which are robust to shifts of domain knowledge (e.g., math results) relevant to different reasoning questions. It also allows LLMs to perform decoding and calling of external tools in parallel, which avoids the inference delay caused by waiting for tool responses. In mathematical reasoning and Wiki QA domains, we show that our method consistently outperforms previous chain-of-thought and tool-augmented baselines on both in-distribution and out-of-distribution test sets, with an average ~6% absolute QA accuracy improvement. LLM agents trained with our method also show more efficient tool use, with inference speed being on average ~1.4x faster than baseline tool-augmented LLMs.
研究动机与目标
- 通过利用外部工具的领域知识,促进 LLM 的忠实、扎根推理。
- 开发一个训练管道,教会 LLM 产生带占位符的抽象推理链。
- 将通用推理与基于工具的扎根解耦,以实现并行解码和工具填充。
- 在数学推理和维基百科问答上评估 CoA,以评估对知识变动的鲁棒性。
提出的方法
- 微调 LLM 以生成带有抽象占位符的推理链(CoA 跟踪)。
- 使用领域特定工具通过计算或检索知识来将占位符具体化,从而对推理链进行扎根。
- 通过将金标准答案改写为抽象链并用工具进行验证,构造 CoA 微调数据。
- 在抽象链生成后启用并行工具调用来评估解码效率,从而摊销推理时间。
- 在数学和 Wiki QA 数据集上将 CoA 与 CoT-FSP、CoT-FT、Toolformer 和 FireAct 基线进行比较。
实验结果
研究问题
- RQ1抽象推理链是否可以提高对领域知识变动的鲁棒性,在多步推理中?
- RQ2将抽象推理与工具使用解耦,是否在数学和 Wiki QA 中带来更高效、准确的工具增强推理?
- RQ3相对于现有的工具增强和思维链基线,在分布内和分布外的测试集中 CoA 的表现如何?
- RQ4在扩展到多步推理任务时,CoA 对推理速度的影响如何?
主要发现
- CoA 在数学和 Wiki QA(分布内和分布外)上平均绝对 QA 准确率提升大约 7.5% 与 4.5%。
- 与基线相比,CoA 在数学任务上的推理速度约快 1.47 倍,在 Wiki QA 上快 1.33 倍。
- 人工评估显示,与基线相比,CoA 的推理错误减少约 8%。
- CoA 在复杂多步推理和长推理链上优于 Toolformer 和其他基线,即使没有域内工具增强。
- 将抽象推理与工具调用分离实现并行解码和工具填充,减少等待时间并提高效率。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。