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

在大语言模型(LLM)上迭代,在小语言模型(SLM)上部署

Iterate on an LLM, Serve on an SLM

Carnegie Mellon University(卡内基梅隆大学)

Keegan Wang

AI总结:

该研究提出先在前沿LLM上迭代开发所需行为,再将记录的生产行为蒸馏到SLM中,在家庭护理调度任务中,经SFT微调的Qwen3-8B一致性达0.913,延迟更低、成本更少。

摘要:

随着前沿大语言模型(LLM)能力不断提升,其运行成本也随之上涨;与此同时,小语言模型(SLM)能力也在增强,但成本基本保持稳定,在智能体分解出的狭窄、重复性子任务中,推理成本仅为前者的5至40倍。然而,当前的主要限制在于如何让小模型以快速、高效且经济的方式输出正确行为。遗憾的是,多数情况下,零样本小模型无法完成狭窄的生产任务;此外,每次行为变更就重新训练小模型的迭代速度过慢。我们提出按顺序完成两项工作:首先,在前沿模型的提示空间中开发所需行为,并利用实时流量提供即时反馈;待行为收敛后,通过监督微调(SFT)将记录的生产行为(而非其合成模仿内容)蒸馏到SLM中。我们通过家庭护理机构的调度智能体展示了该方法的实际应用案例:该智能体针对每位护理员轮班对,在GPT-5.4-nano上生成单个是/否安全决策。基于11600条记录的生产决策进行LoRA微调的Qwen3-8B,达成了0.913的一致性;而作为教师模型的GPT-5.4-nano在自身记录的提示上重新运行时,仅72.7%的时间与自身一致,这表明SLM可能更具一致性。此外,当两者意见不一致时,盲测的专业调度员48次支持学生模型,29次支持教师模型。最后,我们发现SLM的中位延迟约低2.5倍,成本仅为前者的一小部分。我们认为,这种快速构建、实时反馈及低成本推理的生命周期,是其他构建类似系统的蓝图。

英文摘要:

As frontier LLMs gain more capabilities, the cost to run them also goes up. At the same time, small language models (SLMs) also gain more capabilities but have largely been able to keep their cost stable, offering 5-40 times cheaper inference for the narrow, repetitive subtasks that agents decompose work into. However, the standing limiting factor is getting the correct behavior out of a small model in a fast, efficient, and economical way. Unfortunately, in most cases, zero-shot small models fail narrow production tasks. Furthermore, retraining one every time the behavior changes is too slow to iterate on. We propose doing both in sequence. First, develop the desired behavior in prompt space, on a frontier model, with immediate feedback from live traffic. Then, once the behavior converges, distill the recorded production behavior (not synthetic imitations of it) into an SLM through supervised fine-tuning (SFT). We show a proper use case of this method through a scheduling agent for home-care agencies that fans out a single yes/no safety decision per caregiver-shift pair on GPT-5.4-nano. A LoRA-tuned Qwen3-8B trained on 11.6k recorded production decisions reaches 0.913 agreement, while the teacher (GPT-5.4-nano), re-run on its own recorded prompts, agrees with itself only 72.7% of the time, pointing to the fact that the SLM may also be more consistent. Furthermore, when the two disagreed, a blinded professional scheduler sided with the student 48-29. Finally, we find that the SLM has approximately 2.5 times lower median latency and is a fraction of the cost. We believe this lifecycle of quick building, live feedback, and cheap inference is a blueprint for others building similar systems.

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

↑