Reproduce “SWRouter: Similarity-Contractive Window Routing for Multi-Turn Large Language Model Conversations” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Yu Wang, Yuchen Li, Rui Kong, Xinran Chen, Jiamin Chen, Hengyi Cai, Shuaiqiang Wang, Jiashu Zhao and 6 more
SWRouter constructs a semantic window from adjacent user turns before selecting a model for the resulting prompt. It uses cosine similarity and contrastive training to segment dialogue and match prompts with candidate models, separating prompt quality from selection quality. Across ShareGPT and MTBench, it achieves 40.89% judge-scored evaluation accuracy versus 24.63% for the best individual model, within a tested 7B/8B-scale pool.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.