Metraipolis › archive › dc_d094fce73366
Embedding Geometry Shapes LLM Routing: Tracing Failure Modes and Improving Generalization — arXiv:2610.19198
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.19198
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T14:23:17.326Z
- SHA-256 of the archived text
a901918a8499d5e1876ece5afcb517ac207b01d828b96feabd24bff5a3b9575e- Stable URL of this page
https://metraipolis.com/documento/dc_d094fce73366
How to cite
Embedding Geometry Shapes LLM Routing: Tracing Failure Modes and Improving Generalization — arXiv:2610.19198 — arXiv (en), https://arxiv.org/abs/2610.19198 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d094fce73366 (Metraipolis archive dc_d094fce73366, sha256 a901918a8499d5e1876ece5afcb517ac207b01d828b96feabd24bff5a3b9575e)
BibTeX
@misc{dcd094fce73366,
title = {Embedding Geometry Shapes LLM Routing: Tracing Failure Modes and Improving Generalization — arXiv:2610.19198},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.19198},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d094fce73366; sha256 a901918a8499d5e1876ece5afcb517ac207b01d828b96feabd24bff5a3b9575e},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.19198. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
With the growing number of LLMs available, selecting which one to use for a prompt has become a key question. A large part of the routing literature relies on semantically embedding prompts into a vector space and then applying a lightweight classifier to the embedded representations. These methods perform robustly in-distribution but they struggle to generalize to unseen tasks. By studying the geometry of semantic embeddings, we trace a clear failure mode: features that determine the neighbors of unseen prompts are an unreliable proxy for LLM selection. We therefore replace the semantic embedding with the following map: we run a partial forward pass of Qwen2.5-7B-Instruct on the prompt and use the hidden state of its last token at a deep layer as the representation. When applying kNN and other simple classifiers to this new representation, we obtain a clear result in generalization: on average across cost penalties, their performance improves. Moreover, kNN and another simple classifier that we propose outperform every evaluated semantic-embedding baseline. Our two simple methods also beat a recent SoTA hidden-states based router on RouterBench. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.LG, nuovi lavori del giorno). Categorie arXiv: Artificial Intelligence (cs.AI) ; Machine Learning (cs.LG); Machine Learning (stat.ML). Pagina del lavoro: https://arxiv.org/abs/2610.19198 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-15T13:53:35.840Z dalla pagina https://arxiv.org/list/cs.LG/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).