Feed-forward 3D survey

Embedding Geometry Shapes LLM Routing: Tracing Failure Modes and Improving Generalization

Last updated

Abstract

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.

Abstract screening

Datasets

โณ Dataset extraction pending.

Metadata and progress
  1. โœ… Discovered
  2. โœ… Metadata saved
  3. โœ… LLM screened
  4. โฌœ HTML optional

Discovery sources

  • feed-forward-3d ยท ((ti:"feed-forward" OR abs:"feed-forward" OR ti:feedforward OR abs:feedforward OR abs:"forward pass") AND (ti:3D OR ti:geometry OR ti:reconstruction OR ti:stereo OR ti:splatting OR abs:pointmap OR abs:pointmaps)) AND submittedDate:[202610010000 TO 202610312359]