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

小型语言模型用于高效的代理工具调用:通过针对性微调超越大模型

Small Language Models for Efficient Agentic Tool Calling: Outperforming Large Models with Targeted Fine-tuning

Polaris Jhandi, Owais Kazi, Shreyas Subramanian, Neel Sendas

AI总结:

本文通过针对性微调小型语言模型,在工具调用任务中超越大模型,展示了SLMs在成本优化和效率提升方面的潜力。

摘要:

随着组织在生成式AI的普及方面不断扩大,模型成本优化和运营效率已成为决定可持续性和可访问性的关键因素。尽管大型语言模型(LLMs)在各种任务上表现出色,但其庞大的计算需求使其在日常企业使用中成本过高。这一限制促使探索小型语言模型(SLMs),它们可以在特定应用中提供可比的性能,同时大幅降低基础设施开销(Irugalbandara等人,2023)。在本研究中,我们探讨了用优化后的SLMs替代LLM驱动的工作流的可行性。我们训练了一个领域适应的SLM来执行传统由LLMs处理的任务,如文档摘要、查询回答和结构化数据解释。作为实验的一部分,我们研究了对facebook/opt-350m模型(仅单个epoch)进行微调,使用Hugging Face TRL(Transformer Reinforcement Learning),特别是监督微调(SFT)训练器。OPT-350M模型于2022年由Meta AI发布,作为OPT(开放预训练转换器)系列模型的一部分。类似的研究表明,即使在350M参数规模的模型也能有意义地贡献于指令微调流水线(Mekala等人,2024)。实验结果表明,我们的微调SLM在ToolBench评估中实现了77.55%的通过率,显著超越了所有基线模型,包括ChatGPT-CoT(26.00%)、ToolLLaMA-DFS(30.18%)和ToolLLaMA-CoT(16.27%)。这些发现强调了通过精心设计和针对性训练SLMs可以显著降低采用门槛,使生成式AI在生产系统中的大规模集成变得成本效益高。

英文摘要:

As organizations scale adoption of generative AI, model cost optimization and operational efficiency have emerged as critical factors determining sustainability and accessibility. While Large Language Models (LLMs) demonstrate impressive capabilities across diverse tasks, their extensive computational requirements make them cost-prohibitive for routine enterprise use. This limitation motivates the exploration of Small Language Models (SLMs), which can deliver comparable performance in targeted applications while drastically reducing infrastructure overhead (Irugalbandara et al., 2023). In this work, we investigate the feasibility of replacing LLM-driven workflows with optimized SLMs. We trained a domain-adapted SLM to execute representative tasks traditionally handled by LLMs, such as document summarization, query answering, and structured data interpretation. As part of the experiment, we investigated the fine-tuning of facebook/opt-350m model (single epoch only) using the Hugging Face TRL (Transformer Reinforcement Learning), specifically the Supervised Fine-Tuning (SFT) trainer. The OPT-350M model was released by Meta AI in 2022 as part of the OPT (Open Pretrained Transformer) family of models. Similar studies demonstrate that even models at the 350M parameter scale can meaningfully contribute to instruction-tuning pipelines (Mekala et al., 2024). Experimental results demonstrated that our fine-tuned SLM achieves exceptional performance with a 77.55\% pass rate on ToolBench evaluation, significantly outperforming all baseline models including ChatGPT-CoT (26.00\%), ToolLLaMA-DFS (30.18\%), and ToolLLaMA-CoT (16.27\%). These findings emphasize that thoughtful design and targeted training of SLMs can significantly lower barriers to adoption, enabling cost-effective, large-scale integration of generative AI into production systems.

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

↑