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

Xueqi Cheng, Qiong Wu, Zhengyi Zhou, Xugui Zhou, Tyler Derr +1 more
5/11/2026
cs.CLcs.AI

No official code found. Best implementation: XueqiC/SOMA (0 stars, last commit 2025-09-25).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

XueqiC/SOMACommunity57%

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

00Sep 25, 20251 years ago

Similar Papers

Cite this paper

@article{cheng2026soma,
  title  = {SOMA: Efficient Multi-turn LLM Serving via Small Language Model},
  author = {Xueqi Cheng and Qiong Wu and Zhengyi Zhou and Xugui Zhou and Tyler Derr and Yushun Dong},
  year   = {2026},
  eprint = {2605.11317},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.11317v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.11317.svg)](https://codeofpaper.com/paper/2605.11317)

Discussion