SWRouter: Similarity-Contractive Window Routing for Multi-Turn Large Language Model Conversations

Yu Wang, Yuchen Li, Rui Kong, Xinran Chen, Jiamin Chen +9 more
9/10/2026
cs.CLcs.AIcs.IR

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Large language models exhibit complementary strengths, motivating routing methods that dispatch each query to the most suitable model. Although existing routers are effective in single-turn settings, they do not directly transfer to multi-turn dialogue, where routing performance critically depends on how historical context is segmented, retained, and incorporated into the current prompt. This introduces two fundamental challenges: preventing information loss and information confusion during context construction, and evaluating routing quality without conflating model selection with prompt construction quality. In this paper, we propose SWRouter, a Similarity-Contractive Window Router for multi-turn large language model routing. SWRouter combines a similarity-based context segmentation mechanism for prompt construction with a dual-metric evaluation framework that decouples construction accuracy from router performance. Experiments on multi-turn dialogue benchmarks demonstrate that SWRouter consistently surpasses strong baselines, achieving a 16.26% improvement in evaluation accuracy over the best individual large language model and an additional 8.22% gain over the Conv-ID Context baseline. Our results highlight that multi-turn large language model routing requires a joint design of context construction and evaluation, rather than a direct extension of single-turn routing methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026swrouter,
  title  = {SWRouter: Similarity-Contractive Window Routing for Multi-Turn Large Language Model Conversations},
  author = {Yu Wang and Yuchen Li and Rui Kong and Xinran Chen and Jiamin Chen and Hengyi Cai and Shuaiqiang Wang and Jiashu Zhao and Yulun Zhang and Zhonghao Lyu and Haoyi Xiong and Linghe Kong and Jimmy Xiangji Huang and Dawei Yin},
  year   = {2026},
  eprint = {2609.11414},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.11414v1}
}

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/2609.11414.svg)](https://codeofpaper.com/paper/2609.11414)

Discussion