不要为小型语言模型适应工具;而是将工具模式适应模型
Don't Adapt Small Language Models for Tools; Adapt Tool Schemas to the Models
AI总结:
本文提出PA-Tool方法,通过调整工具模式以匹配预训练知识,提升小型语言模型在工具使用任务中的准确性,实验显示性能提升达17%。
摘要:
小型语言模型(SLMs)能够构建可扩展的工具增强多智能体系统,但它们在工具使用任务中表现不佳,特别是在选择合适工具和确定正确参数方面。一种常见故障模式是模式错位:模型生成 plausible 的工具名称,这些名称在提供的工具模式中不存在,因为预训练过程中内部化了不同的命名约定。而不是训练模型以适应不熟悉的模式,我们提出调整模式以与模型的预训练知识对齐。我们引入PA-Tool(预训练对齐的工具模式生成),一种无需训练的方法,利用 peakedness,一种用于污染检测的信号,表明预训练熟悉度,来重命名工具组件。通过生成多个候选并选择 peakedness 最高的候选,PA-Tool 识别出预训练对齐的命名模式。在MetaTool和RoTBench上的实验显示,性能提高了高达17%,模式错位错误减少了80%。PA-Tool使小型模型在不重新训练的情况下显著提高工具使用准确性,表明模式层面的干预可以释放资源高效的模型的工具使用潜力。我们的代码可在 https://github.com/holi-lab/PA-Tool 上获得。
英文摘要:
Small language models (SLMs) enable scalable tool-augmented multi-agent systems where multiple SLMs handle subtasks orchestrated by a powerful coordinator. However, they struggle with tool-use tasks, particularly in selecting appropriate tools and identifying correct parameters. A common failure mode is \textit{schema misalignment}: models hallucinate plausible tool names that are absent from the provided tool schema, due to different naming conventions internalized during pretraining. Rather than training models to adapt to unfamiliar schemas, we propose adapting schemas to align with models' pretrained knowledge. We introduce \textbf{PA-Tool} (Pretraining-Aligned Tool Schema Generation), a training-free method that leverages peakedness, a signal used in contamination detection that indicates pretraining familiarity, to rename tool components. By generating multiple candidates and selecting the candidate with the highest peakedness, PA-Tool identifies pretraining-aligned naming patterns. Experiments on MetaTool and RoTBench show improvements of up to 17\%, with schema misalignment errors reduced by 80\%. PA-Tool enables small models to substantially improve tool-use accuracy without retraining, showing that schema-level interventions can unlock the tool-use potential of resource-efficient models. Our code is available at https://github.com/holi-lab/PA-Tool.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。