arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.08197cs.CLcs.AI
收藏

从探索到精通:通过自我驱动交互使LLMs掌握工具

From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactions

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Baidu Inc.(百度公司);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Changle Qu, Sunhao Dai, Xiaochi Wei, Hengyi Cai, Shuaiqiang Wang, Dawei Yin, Jun Xu, Ji-Rong Wen

AI总结:

针对现有工具文档不足导致LLMs理解差距的问题,提出DRAFT框架,通过试错学习迭代优化文档,实验证明其显著提升文档质量并具备跨模型泛化能力。

摘要:

工具学习使大型语言模型(LLMs)能够通过调用工具与外部环境交互,这是缓解其预训练数据固有局限性的有效策略。在此过程中,工具文档通过为LLMs提供使用说明,在促进有效工具利用方面发挥着关键作用。本文聚焦于因现有以人为中心的工具文档存在不足和不准确而导致的LLMs与外部工具之间的理解差距这一关键挑战。我们提出了一种新颖框架DRAFT,旨在通过分析LLMs与外部工具交互产生的反馈和试验,动态优化工具文档。该方法基于一种创新的试错方法,包含三个不同的学习阶段:经验收集、从经验中学习和文档重写,以迭代地改进工具文档。该过程通过实施促进探索多样性的多样性提升探索策略和防止过拟合同时提高效率的工具自适应终止机制进一步优化。在多个数据集上的广泛实验表明,DRAFT的基于反馈的迭代优化显著改善了文档质量,促进了LLMs对工具的更深理解和更有效利用。值得注意的是,我们的分析揭示,通过我们方法优化的工具文档展现出强大的跨模型泛化能力。

英文摘要:

Tool learning enables Large Language Models (LLMs) to interact with external environments by invoking tools, serving as an effective strategy to mitigate the limitations inherent in their pre-training data. In this process, tool documentation plays a crucial role by providing usage instructions for LLMs, thereby facilitating effective tool utilization. This paper concentrates on the critical challenge of bridging the comprehension gap between LLMs and external tools due to the inadequacies and inaccuracies inherent in existing human-centric tool documentation. We propose a novel framework, DRAFT, aimed at Dynamically Refining tool documentation through the Analysis of Feedback and Trials emanating from LLMs' interactions with external tools. This methodology pivots on an innovative trial-and-error approach, consisting of three distinct learning phases: experience gathering, learning from experience, and documentation rewriting, to iteratively enhance the tool documentation. This process is further optimized by implementing a diversity-promoting exploration strategy to ensure explorative diversity and a tool-adaptive termination mechanism to prevent overfitting while enhancing efficiency. Extensive experiments on multiple datasets demonstrate that DRAFT's iterative, feedback-based refinement significantly ameliorates documentation quality, fostering a deeper comprehension and more effective utilization of tools by LLMs. Notably, our analysis reveals that the tool documentation refined via our approach demonstrates robust cross-model generalization capabilities.

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

↑