[Paper Review] LLM Router: Prefill is All You Need
This paper introduces Encoder-Target Decoupling and a SharedTrunkNet routing architecture that uses prefill activations to predict target model correctness, achieving superior routing performance over semantic baselines and notable cost savings.
LLMs often share comparable benchmark accuracies, but their complementary performance across task subsets suggests that an Oracle router--a theoretical selector with perfect foresight--can significantly surpass standalone model accuracy by navigating model-specific strengths. While current routers rely on fragile semantic signals, we propose using internal prefill activations via Encoder-Target Decoupling--a functional separation between the model providing the predictive signal (the Encoder) and the model whose performance is being estimated (the Target). This allows optimized heterogeneous pairing between unique encoders and target models. We utilize Fisher Separability (J) and Effective Dimensionality (d_eff) as mathematical probes to isolate optimal layer-wise signals, providing the predictive foundation for our SharedTrunkNet architecture. SharedTrunkNet captures up to 45.58% of the accuracy gap between the strongest standalone model and the Oracle while achieving 74.31% cost savings relative to the highest-cost model.
Motivation & Objective
- Motivate routing via internal model activations rather than semantic query signals to better predict model-specific correctness and difficulty.
- Introduce Encoder-Target Decoupling to allow open-weight encoders to predict closed-source model performance.
- Identify informative layers using geometric probes, notably Fisher Separability (J), supplemented by Effective Dimensionality and anisotropy diagnostics.
- Propose SharedTrunkNet, a multi-output MLP that jointly predicts correctness across multiple candidate models using concatenated prefill features.
- Evaluate routing at per-model and global levels across frontier, small, and mixed model pools to demonstrate practical gains.
Proposed method
- Formulate a two-stage routing architecture: signal extraction from queries and confidence estimation for candidate targets.
- Extract prefill activations from the Encoder LLM and compute PCA-reduced features from selected upper layers.
- Train SharedTrunkNet to predict simultaneous correctness probabilities for all candidate targets using concatenated prefill features.
- Compare Encoder-Target based routing to semantic baselines across multiple model pools and benchmarks (MMLU-Pro, Humanity’s Last Exam, LiveCodeBench).
- Define routing scores s_k,q = λ * p_hat_k(q) - (1 - λ) * C̃_k,q and evaluate across a range of λ to trace accuracy-cost trade-offs.
- Use a partial cost model based on median input/output tokens and provider pricing to estimate C_k,q for routing.

Experimental results
Research questions
- RQ1Can open-weight encoders predict the performance of closed-source target models using prefill activations?
- RQ2Which internal activation layer properties best separate correct vs incorrect predictions for routing (e.g., Fisher J, d_eff, anisotropy)?
- RQ3Does a joint multi-output router (SharedTrunkNet) outperform semantic baselines in predicting target correctness?
- RQ4What are the gains in accuracy and cost when routing with prefill signals across frontier, small, and mixed model pools?
Key findings
- SharedTrunkNet consistently achieves the strongest per-model AUC and lowest Brier scores across pools.
- Across frontier, small, and mixed pools, SharedTrunkNet closes a substantial portion of the gap to the oracle while delivering notable cost savings (e.g., 74.31% cost savings relative to the most expensive model in the frontier pool).
- For encoder targets, large open-weight encoders (e.g., Qwen-3.5 122B) often yield the highest per-target AUC, outperforming many target models’ own hidden states.
- Fisher Separability (J) effectively identifies informative layers for prefill routing, while d_eff and anisotropy provide corroborative diagnostics.
- Encoder-Target Decoupling enables predicting target performance using open encoders, enabling cross-model context and better calibration.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.