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

无需演示的大语言模型工具使用自训练

Self-Training Large Language Models for Tool-Use Without Demonstrations

University of Edinburgh(爱丁堡大学);University College London(伦敦大学学院);University of Cambridge(剑桥大学)

Ne Luo, Aryo Pradipta Gema, Xuanli He, Emile van Krieken, Pietro Lesci, Pasquale Minervini

AI总结:

针对大语言模型(LLMs)存在的事实错误等问题,本文研究无演示下LLMs的工具使用学习,提出自训练方法合成工具使用轨迹并对比微调技术,发现工具使用在长尾知识任务上有提升但其他任务结果不一。

摘要:

大语言模型(LLMs)仍易出现事实不准确和计算错误,包括幻觉和数学推理失误。近期研究通过为LLMs配备工具来缓解这些缺陷,但通常需要精心整理的优质工具使用演示。本文研究LLMs能否在无演示的情况下学习使用工具。首先,我们分析零样本提示策略以引导LLMs进行工具利用;其次,提出一种自训练方法,利用LLM自身合成工具使用轨迹。我们比较监督微调与偏好微调技术,在基于现有问答(QA)数据集(即TriviaQA和GSM8K)构建的数据集上对模型进行微调。实验表明,工具使用提升了长尾知识任务的性能:在仅用于评估的PopQA上提升3.7%,但在TriviaQA、GSM8K和NQ-Open等其他数据集上结果喜忧参半。我们的发现凸显了在无演示情况下将外部工具集成到LLMs中的潜力与挑战。

英文摘要:

Large language models (LLMs) remain prone to factual inaccuracies and computational errors, including hallucinations and mistakes in mathematical reasoning. Recent work augmented LLMs with tools to mitigate these shortcomings, but often requires curated gold tool-use demonstrations. In this paper, we investigate whether LLMs can learn to use tools without demonstrations. First, we analyse zero-shot prompting strategies to guide LLMs in tool utilisation. Second, we propose a self-training method to synthesise tool-use traces using the LLM itself. We compare supervised fine-tuning and preference fine-tuning techniques for fine-tuning the model on datasets constructed using existing Question Answering (QA) datasets, i.e., TriviaQA and GSM8K. Experiments show that tool-use enhances performance on a long-tail knowledge task: 3.7% on PopQA, which is used solely for evaluation, but leads to mixed results on other datasets, i.e., TriviaQA, GSM8K, and NQ-Open. Our findings highlight the potential and challenges of integrating external tools into LLMs without demonstrations.

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

↑