通过经验知识集成与激活推动LLM工具调用极限
Pushing the Limits of LLM Tool Calling via Experiential Knowledge Integration and Activation
AI总结:
研究如何通过经验知识获取、激活和内化提升LLM多步工具调用性能,提出知识增强工具执行框架KATE,结合宽度扩展推理与知识感知训练,在BFCL-V3和AppWorld上显著优于基线。
摘要:
大型语言模型(LLM)依赖工具使用来充当自主代理,但由于缺乏足够的工具相关知识和无效的知识激活,在多步执行中常常失败。因此,我们进行了一项系统性研究,探讨知识如何影响工具使用性能,涵盖知识获取、激活和内化阶段。在知识获取阶段,我们获取并评估了各种形式的经验知识,分析表明简单的实例级知识已经能够提供强大且可靠的增益,而抽象的意图级知识收益有限。在推理时,为了激活知识,我们发现提示LLM扩展推理深度会产生递减收益,而通过并行采样与聚合扩展推理宽度能更有效地激活潜在经验知识。在训练时,对于知识内化,使用知识增强数据进行后训练进一步提升了性能,其中强化学习优于监督微调。基于这些见解,我们提出了知识增强工具执行(KATE)框架,该框架将经验知识与宽度扩展推理及知识感知训练相结合。在BFCL-V3和AppWorld上的实验表明,该方法在不同模型规模上均比强基线有一致且显著的改进。我们的代码可在该https URL获取。
英文摘要:
Large language models (LLMs) rely on tool use to act as autonomous agents, yet often fail in multi-step execution due to insufficient tool-related knowledge and ineffective knowledge activation. Therefore, we present a systematic study on how knowledge influences tool-use performance, covering the stages of knowledge acquisition, activation, and internalization. In the knowledge acquisition stage, we acquire and evaluate various forms of experiential knowledge, and our analysis shows that simple instance-level knowledge can already provide strong and reliable gains, while abstract intent-level knowledge offers limited benefits. At inference time, to activate knowledge, we find that prompting LLM to expand the depth of reasoning yields diminishing returns, whereas expanding the width of reasoning by parallel sampling with aggregation more effectively activates latent experiential knowledge. At training time, for knowledge internalization, post-training with knowledge-augmented data further improves performance, with reinforcement learning outperforming supervised fine-tuning. Based on these insights, we propose the Knowledge-Augmented Tool Execution (KATE), a knowledge-augmented tool execution framework that integrates experiential knowledge with reasoning-width-expanded inference and knowledge-aware training. Experiments on BFCL-V3 and AppWorld demonstrate consistent and substantial improvements over strong baselines across model scales. Our Code is available at https://github.com/hypasd-art/KATE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。