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

SOMA:通过小型语言模型实现高效的多轮LLM服务

SOMA: Efficient Multi-turn LLM Serving via Small Language Model

Florida State University(佛罗里达州立大学);AT&T Chief Data Office(AT&T首席数据办公室);Louisiana State University(路易斯安那州立大学);Vanderbilt University(范德比大学)

Xueqi Cheng, Qiong Wu, Zhengyi Zhou, Xugui Zhou, Tyler Derr, Yushun Dong

AI总结:

SOMA通过利用对话早期轮次估计局部响应流形,利用小型替代模型提升多轮对话效率,同时提供理论分析和实验验证。

摘要:

大型语言模型(LLMs)越来越多地应用于多轮对话场景,其中在轮次间保持对话上下文至关重要。标准的服务实践在每个轮次中拼接完整的对话历史,这可以可靠地保持连贯性,但会带来显著的延迟、内存和API支出成本,尤其是在查询路由到大型专有模型时。现有方法往往难以在响应质量和效率之间取得平衡。我们提出了一种框架,利用会话的早期轮次估计局部响应流形,然后将较小的替代模型适应到该局部区域以完成对话。具体而言,我们学习软提示,以最大化大型和替代小型语言模型响应之间的语义差异,以揭示最不一致的局部方向,通过反退化控制稳定训练,并将挖掘的案例转化为局部LoRA微调,使替代模型在推理时无需提示。一个简单的门控使一次性的切换和漂移回滚成为可能。我们进一步为SOMA中的关键组件提供了理论分析。广泛的实验显示了SOMA的有效性。源代码可在:https://github.com/LabRAI/SOMA提供。

英文摘要:

Large Language Models (LLMs) are increasingly deployed in multi-turn dialogue settings where preserving conversational context across turns is essential. A standard serving practice concatenates the full dialogue history at every turn, which reliably maintains coherence but incurs substantial cost in latency, memory, and API expenditure, especially when queries are routed to large proprietary models. Existing approaches often struggle to balance the trade-off between response quality and efficiency. We propose a framework that exploits the early turns of a session to estimate a local response manifold and then adapt a smaller surrogate model to this local region for the remainder of the conversation. Concretely, we learn soft prompts that maximize semantic divergence between the large and surrogate small language models' responses to surface least-aligned local directions, stabilize training with anti-degeneration control, and distill the mined cases into localized LoRA fine-tuning so the surrogate runs without prompts at inference. A simple gate enables a one-time switch with rollback on drift. We further provide a theoretical analysis for key components in SOMA. Extensive experiments show the effectiveness of SOMA. The source code is provided at: https://github.com/LabRAI/SOMA.

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

↑