Embedding Geometry Shapes LLM Routing: Tracing Failure Modes and Improving Generalization
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 33 of its 44 references that are in the map. First posted on arXiv 13 Oct 2026.
Builds on
33 of 44 references.
References · 33
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
21 more
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 723
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 682
- 2024RouterBench: A Benchmark for Multi-LLM Routing Systemcited by 238
- 2023MuSR: Testing the Limits of Chain-of-thought with Multistep Soft Reasoningcited by 201
- 2023Large Language Model Routing with Benchmark Datasetscited by 172
- 2024RAGBench: Explainable Benchmark for Retrieval-Augmented Generation Systemscited by 117
- 2025Universal Model Routing for Efficient LLM Inferencecited by 86
- 2018Algorithms and Theory for Multiple-Source Adaptationcited by 54
- 2025CARROT: A Cost Aware Rate Optimal Routercited by 39
- 2025No Answer Needed: Predicting LLM Answer Accuracy from Question-Only Linear Probescited by 38
- 2026LLMRouterBench: A Massive Benchmark and Unified Framework for LLM Routingcited by 38
- 2025Beyond GPT-5: Making LLMs Cheaper and Better via Performance-Efficiency Optimized Routingcited by 34
- 2026LLMs Encode Their Failures: Predicting Success from Pre-Generation Activationscited by 14
- 2025Rethinking Predictive Modeling for LLM Routing: When Simple kNN Beats Complex Learned Routerscited by 11
- 2026Task-Aware LLM Routing with Multi-Level Task-Profile-Guided Data Synthesis for Cold-Start Scenarioscited by 10
- 2025ProxRouter: Proximity-Weighted LLM Query Routing for Improved Robustness to Outlierscited by 6
- 2026LLM Router: Rethinking Routing with Prefill Activationscited by 5
- 2026Most of the LLM Routing Gap Is Task Typecited by 4
- 2026Towards Fair and Comprehensive Evaluation of Routers in Collaborative LLM Systemscited by 3
- 2026The Routing Plateau: Understanding the Accuracy Limits of LLM Routerscited by 1
- 2026Training-Free versus Training-Based Intent Classification in LLMs: Accuracy, Robustness, and Failure Modescited by 1
Built on by
Not cited yet.