arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.03847cs.AIcs.LG
收藏

面向智能体系统的小语言模型:架构、能力与部署权衡综述

Small Language Models for Agentic Systems: A Survey of Architectures, Capabilities, and Deployment Trade offs

Northeastern University(东北大学);University of Southern California(南加州大学)

Raghav Sharma, Manan Mehta

AI总结:

本综述梳理了小语言模型在智能体系统中的架构、能力与部署权衡,提出SLM默认+LLM兜底的系统方案与工程指标,给出适配设计模式,明确适用场景与局限,为低成本可靠智能体构建提供实用蓝图。

摘要:

小语言模型(SLMs;参数量10亿-120亿,有时最高达200亿)对于以模式约束和API约束下的准确率为目标而非开放式生成的智能体工作负载而言已经足够,且往往表现更优。我们综合了开源与专有SLMs(Phi-4-Mini、Qwen-2.5-7B、Gemma-2-9B、Llama-3.2-1B/3B、Ministral-3B/8B、Apple端侧3B模型、DeepSeek-R1-Distill)的最新研究证据,并将其与现代评测基准(BFCL v3/v4、StableToolBench)、服务栈(vLLM、SGLang、TensorRT-LLM)及配套的引导解码库(XGrammar、Outlines)相关联。我们形式化了具备不确定性感知路由和验证器级联的“SLM默认调用、LLM兜底”系统,并提出了反映实际生产目标的工程指标:单次成功任务成本(CPS)、模式有效率、可执行调用率、p50/p95延迟,以及单请求能耗。引导解码、严格的JSON Schema输出、优先验证的工具执行机制大幅缩小了与更大模型的能力差距,通常能让SLMs在工具使用、函数调用和RAG任务上达到甚至超越LLMs的表现,同时token成本降低10倍至100倍,延迟和能耗也有实质性改善。我们给出了优先使用SLMs的智能体技术栈设计模式:模式优先的提示工程、类型安全的函数注册表、带验证器汇总的置信度评分,以及通过LoRA/QLoRA实现的轻量适配。我们也明确了兜底机制仍有价值的局限场景:开放域推理和部分长程规划任务。本研究最终为构建快速、低成本且可靠的智能体提供了实用蓝图,这类智能体默认使用SLMs,同时通过有针对性的LLM辅助保留性能上限。

英文摘要:

Small language models (SLMs; 1-12B params, sometimes up to 20B) are sufficient and often superior for agentic workloads where the objective is schema- and API-constrained accuracy rather than open-ended generation. We synthesize recent evidence across open and proprietary SLMs (Phi-4-Mini, Qwen-2.5-7B, Gemma-2-9B, Llama-3.2-1B/3B, Ministral-3B/8B, Apple on-device 3B, DeepSeek-R1-Distill) and connect it to modern evaluations (BFCL v3/v4, StableToolBench) and serving stacks (vLLM, SGLang, TensorRT-LLM) paired with guided decoding libraries (XGrammar, Outlines). We formalize SLM-default, LLM-fallback systems with uncertainty-aware routing and verifier cascades, and propose engineering metrics that reflect real production goals: cost per successful task (CPS), schema validity rate, executable call rate, p50/p95 latency, and energy per request. Guided decoding, strict JSON Schema outputs, and validator-first tool execution close much of the capability gap with larger models and often let SLMs match or surpass LLMs on tool use, function calling, and RAG at 10x-100x lower token cost with materially better latency and energy. We provide design patterns for agent stacks that prioritize SLMs: schema-first prompting, type-safe function registries, confidence scoring with verifier rollups, and lightweight adaptation via LoRA/QLoRA. We also delineate limits where fallback remains valuable (open-domain reasoning and some long-horizon planning). The result is a practical blueprint for building fast, inexpensive, and reliable agents that default to SLMs while preserving headroom with targeted LLM assistance. Keywords: small language models, agents, function calling, structured outputs, JSON Schema, guided decoding, LoRA/QLoRA, routing, energy efficiency, edge inference

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

↑