Manuscript Offprint

arXiv:2611.09028

Scout Before You Route: Predicting Task Success and Token Count from a Small LLM Prefill

Aristides Milios, Christopher Pal

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Routers typically choose a model per query by trading predicted correctness against cost. Most price each model at a fixed cost, as if every query used the same number of output tokens, but the output length of reasoning models varies by an order of magnitude across queries. When is per-query cost worth predicting? What factors drive cost? How cheaply can predictions be made? We predict both the success probability and the output length of candidate models from the prefill activations of a single small frozen LLM, the scout. With reasoning candidates, perfect per-query cost knowledge would save 29–61% of spending on eight of nine datasets, and much less with non-reasoning candidates on the same problems. On those eight datasets, our predicted costs save 9–33% at matched accuracy relative to median-length pricing, up to 69% of what perfect knowledge would save. They are significantly cheaper than each estimator we reimplemented or adapted from published work, including ZeroRouter and a MixLLM-style predictor, on a majority of datasets. Output length depends mostly on the problem. On most math and code datasets, harder problems are longer, so predicted success alone prices cost nearly as well. On knowledge and mixed-format datasets they are not, and predicted success falls well behind a probe trained on length. The probe keeps most of its saving with 20 labelled problems and transfers without labels to four of seven new benchmarks. On a mixture of all nine benchmarks, it saves 22% beyond pricing each benchmark at its own median length. Savings stop growing at about a 2B scout, so above 4B a larger scout costs more than it adds.

1 Introduction

Routing reasoning models requires predicting both correctness and cost before generation. A model's price per token is known in advance, but the number of tokens it will write for a given problem is not. A model that is cheap on average can be expensive on a particular problem: on LiveCodeBench, a single model's output length differs 11–121× between its 10th- and 90th-percentile problems (Table 8).

Prefill routers predict correctness from a small encoder's prompt activations; the prefill router of Varshney et al. (Varshney et al., 2026) explicitly prices outputs at median training length. We predict output length from the same activations of a small frozen scout model, which only processes the prompt and generates nothing. The scout is in effect an actuarial scout: as an actuary prices each policy from the applicant rather than charging everyone the average premium, it prices each query before any model is called. Cost prediction adds one linear probe per candidate to an existing prefill router, without another encoder pass. Most routers that do predict per-query cost evaluate it only inside their full system; the one that isolates it finds that it adds little (Somerstep et al., 2025), on pools with almost no reasoning models. We isolate it on reasoning candidates, against both constant pricing and perfect per-query cost knowledge.

Figure

Figure

Figure 1: What predicting cost saves, and where the queries go. Left: cost saved relative to median pricing on all nine datasets at each of 12 matched accuracies, from the lowest (light, low in the row) to the highest (dark, high in the row) in the range both routers reach, averaged over ten training sets. Ticks mark our average over the range and diamonds the same average for perfect per-query cost knowledge (Table 3 gives 95% intervals). Right: share of LiveCodeBench test queries sent to each candidate at 77% accuracy by three routers that price a query by median length, by our cost probes, or by its actual length (perfect knowledge), with the spend per 1,000 queries (one training set). Ours moves queries from gpt-oss-20b at low effort to gpt-oss-120b at medium effort.

This raises three questions:

  1. When is per-query cost worth predicting?

  2. What factors drive cost for a given input?

  3. How cheaply can a router obtain a cost prediction: with how many labels, and with a prefill pass from how small an LLM?

We contribute:

  1. a measurement of what perfect knowledge of per-query cost saves: 29–61% of spending at matched accuracy on eight of nine datasets with reasoning candidates, and much less with non-reasoning candidates on the same problems (Section 4);

  2. a prefill cost probe that saves 9.4–33.0% relative to median pricing on eight of nine datasets, up to 69% of what perfect knowledge would save. Against external estimators it is ahead in 69 of 72 comparisons and significantly ahead in 50. It is significantly ahead of all of them on LiveCodeBench, MMLU-Pro, AIME and SuperGPQA, and of all but one on Omni-MATH (Fig. 1 and Table 1);

  3. a mechanism: length depends mostly on the problem (model lengths co-vary, and models output relatively consistent lengths across samples on the same query). Where length correlates with difficulty, length from predicted success suffices. Where it does not, a predictor trained on length is needed, and on MMLU-Pro only the cost probe captures it. Our two failures come from too little headroom, or headroom no estimator we tried can capture (Sections 6 and 7);

  4. generalisation: the cost probe keeps most of its saving with 20 labelled problems and for a new model onboarded from 10 examples; it transfers with no target labels to four of seven benchmarks; and in mixed traffic it saves 22.4% beyond pricing by benchmark identity (Section 8);

  5. scout size and controls: savings do not grow with the scout from 1.7B to 14B, so above 4B a larger scout costs more than it adds, while a text-embedding model of the same size and fully fine-tuned small models predict cost worse (Sections 8 and 9).

Related work. Learned routers pick one model per query from the prompt, trading predicted quality against price: RouteLLM learns a strong-versus-weak decision from preference data (Ong et al., 2024), RouterBench standardizes the evaluation (Hu et al., 2024), and IRT-Router models query difficulty and model ability with item response theory (Song et al., 2025). Closest to us, the prefill router of Varshney et al. predicts each model's correctness from a small encoder's prompt activations (Varshney et al., 2026), and pre-generation activations are known to encode whether a model will fail (Lugoloobi et al., 2026). These routers, like SWE-Router for agentic software engineering (Son et al., 2026), price each model at a per-model constant; the prefill router uses the median training output length, which is our main reference.

Fewer routers predict per-query cost: MixLLM regresses output length on query embeddings (Wang et al., 2025), CARROT uses embedding nearest neighbours or a fine-tuned RoBERTa (Somerstep et al., 2025), GraphRouter predicts cost on a query-model graph (Feng et al., 2024), Route-To-Reason predicts reasoning-model length from text embeddings (Pan et al., 2025), ZeroRouter prices queries by item-response difficulty bins (Yan et al., 2026), and SCOPE estimates a query's cost from retrieved past behaviour (Cao et al., 2026). R2-Router routes over pairs of a model and an output-length budget, so length is controlled rather than predicted (Xue et al., 2026), and SCX Router predicts task type, difficulty and an expected output length from a small decoder's KV cache as properties of the task, not of each candidate model (Stepanov et al., 2026). Activation-based length prediction also supports serving and scheduling of a single model (Messenger, 2026; Xie et al., 2026; Wen et al., 2026); we predict the lengths of other models from one shared scout. Of MixLLM, CARROT and Route-To-Reason, only CARROT isolates its cost predictor, against the same router pricing each model at its training-average cost, and it finds that per-query cost adds little on RouterBench and SPROUT (Somerstep et al., 2025); none of the three compares with perfect per-query cost knowledge. We compare cost estimators directly, including reimplementations of these and ZeroRouter, with every estimator given the same success predictions and measured against both constant pricing and perfect cost knowledge.

Recent large-scale evaluations find that routers land close to an oracle that assigns each dataset its best model, and attribute much of their gain to coarse domain structure (Li et al., 2026a); a static assignment by task type closes most of the gap to the per-query oracle on a small benchmark (Lee, 2026). Both concern which model answers correctly; we measure what per-query cost is worth beyond the benchmark a query comes from.

References (64)