arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.17774cs.CL
收藏

通过QLoRA微调将工具知识内化到小型语言模型中

Internalizing Tool Knowledge in Small Language Models via QLoRA Fine-Tuning

Columbia School of General Studies, Columbia University, NY, USA(哥伦比亚大学泛研学院);Columbia Engineering, Columbia University, NY, USA(哥伦比亚大学工程学院);IBM Research, NY, USA(IBM研究院)

Yuval Shemla, Ayal Yakobe, Tanmay Agarwal, Dhaval Patel, Kaoutar El Maghraoui

AI总结:

本文研究通过QLoRA参数高效微调将工具知识内化到小型语言模型中,在AssetOpsBench基准上,微调后的Gemma 4 E4B和Qwen3-4B模型在无描述推理下优于有完整工具描述的未微调基线,输入长度减少82.6%,规划分数提升。

摘要:

大型语言模型越来越多地被用作代理系统中的规划组件,但当前的工具使用流程通常需要将完整的工具模式包含在每个提示中,这产生了大量的令牌开销,并限制了较小模型的实用性。本文研究了是否可以通过参数高效微调将工具使用知识内化到小型语言模型中,从而在推理时无需显式的工具描述即可进行结构化规划。使用AssetOpsBench作为主要基准,我们使用8位QLoRA在约1700个工具使用示例上微调了Gemma 4 E4B和Qwen3-4B,这些示例涵盖工具知识、问题到规划的映射以及执行风格的轨迹。我们在无描述推理下评估了生成的模型,其中提示完全省略了工具目录。微调后的模型优于接收完整工具描述的有信息未微调基线,输入长度减少了82.6%,同时提高了结构性和LLM评判的规划分数。在最佳的Gemma运行中,模型达到了0.65的AT-F1和3.88的整体评判分数,而信息基线的分数分别为0.47和2.88。Qwen3-4B达到了3.78的强劲整体评判分数,同时使用的内存比Gemma少62%,运行速度快2.5倍,尽管它在一般多项选择基准上也表现出更大的灾难性遗忘。额外的消融实验表明,LoRA秩控制着质量与保留之间的权衡,其中$r=32$最大化规划质量,而较小的秩保留了更多的一般知识。这些结果表明,对于固定的工具目录,QLoRA微调可以将工具知识从提示上下文转移到模型权重中,从而在保持或提高工具规划质量的同时,大幅减少推理开销。

英文摘要:

Large language models are increasingly used as planning components in agentic systems, but current tool-use pipelines often require full tool schemas to be included in every prompt, creating substantial token overhead and limiting the practicality of smaller models. This paper investigates whether tool-use knowledge can be internalized into small language models through parameter-efficient fine-tuning, enabling structured planning without explicit tool descriptions at inference time. Using AssetOpsBench as the primary benchmark, we fine-tune Gemma 4 E4B and Qwen3-4B with 8-bit QLoRA on approximately 1,700 tool-use examples spanning tool knowledge, question-to-plan mappings, and execution-style traces. We evaluate the resulting models under description-free inference, where the prompt omits the tool catalog entirely. The fine-tuned models outperform an informed unfine-tuned baseline that receives full tool descriptions, reducing input length by 82.6\% while improving structural and LLM-judge planning scores. In the best Gemma run, the model achieves an AT-F1 of 0.65 and an overall judge score of 3.88, compared with 0.47 and 2.88 for the informed baseline. Qwen3-4B achieves a strong overall judge score of 3.78 while using 62\% less memory and running 2.5$\times$ faster than Gemma, though it also exhibits greater catastrophic forgetting on general multiple-choice benchmarks. Additional ablations show that LoRA rank controls a quality--retention trade-off, with $r=32$ maximizing planning quality and smaller ranks preserving more general knowledge. These results suggest that, for fixed tool catalogs, QLoRA fine-tuning can shift tool knowledge from prompt context into model weights, substantially reducing inference overhead while maintaining or improving tool-planning quality.

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

↑