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

元工具:用于小语言模型的高效少样本工具适应

Meta-Tool: Efficient Few-Shot Tool Adaptation for Small Language Models

LexisNexis, USA(LexisNexis美国公司)

Sachin Kumar

AI总结:

本文通过Meta-Tool研究小语言模型是否能在不复杂适应机制下实现强工具使用性能,发现超网络适应无显著提升,提示应关注提示工程与示例整理。

摘要:

小语言模型能否在不复杂适应机制下实现强工具使用性能?本文通过Meta-Tool,对比超网络基于LoRA适应与精心设计的少样本提示,使用Llama-3.2-3B-Instruct作为基础模型,在四个基准测试中评估四种适应机制。核心发现是负结果:尽管生成非平凡权重矩阵,227.8M参数的超网络在少样本提示基础上无显著提升。消融研究显示,少样本示例贡献+21.5%,文档贡献+5.0%,超网络无贡献。3B模型在设计良好的提示下,性能达到GPT-5的79.7%,且延迟低10倍。误差分析显示,5-shot配置下任务依赖性明显:Spider 2.0和WebArena几乎无格式错误,而Gorilla和InterCode则以格式错误为主。这些发现引导实践者关注提示工程与示例整理而非复杂适应架构。

英文摘要:

Can small language models achieve strong tool-use performance without complex adaptation mechanisms? This paper investigates this question through Meta-Tool, a controlled empirical study comparing hypernetwork-based LoRA adaptation against carefully designed few-shot prompting. Using a Llama-3.2-3B-Instruct backbone, we evaluate four adaptation mechanisms--few-shot prompting, documentation encoding, hypernetwork-generated LoRA weights, and value-guided beam search--across four diverse benchmarks: Gorilla APIBench, Spider 2.0, WebArena, and InterCode. Our central finding is a well-supported negative result: despite generating non-trivial weight matrices, the 227.8M-parameter hypernetwork provides no measurable improvement over few-shot prompting alone. Comprehensive ablation studies reveal that few-shot examples contribute +21.5% to performance and documentation contributes +5.0%, while the hypernetwork adds 0%. A 3B model with well-designed prompts achieves 79.7% of GPT-5's average performance at $10 \times$ lower latency. Error analysis across 722 failure cases spanning all shot counts (0--5) shows that at the 5-shot configuration (106 failures), failure modes are task-dependent: schema-heavy tasks (Spider 2.0, WebArena) show near-zero format errors with remaining failures semantic, while format errors dominate on Gorilla (100%) and InterCode (70%). These findings redirect practitioners toward prompt engineering and example curation rather than complex adaptation architectures.

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

↑