Navigation menu
Ensemble Routing for Prompt-Adaptive Cost-Aware LLM Inference
Ensemble Routing for Prompt-Adaptive Cost-Aware LLM Inference
Saul Urso, Emanuele Carlini, Patrizio Dazzi, Matteo Mordacchini
2026-11-12▲ 14arXiv 2611.10193v1Hugging Face
AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.
TL;DR
PISA and PISA-E use prompt-adaptive capability estimates for cost-aware single-model routing and selective ensembling, adjusting ensemble composition and cardinality at inference time.
Problem
Web-based LLM services must balance response quality and inference cost across heterogeneous requests. Conventional routing selects one model per prompt, while fixed ensembles cannot adapt their composition and cost to individual requests. Existing ensemble approaches often optimize composition without explicit cost, rely on classification-specific aggregation or sequential execution, or fix cardinality during training or configuration. This leaves open dynamic selection of both ensemble composition and cardinality under an explicit cost-quality preference at inference time.
Method
PISA represents each prompt by an embedding and computes soft memberships over X-means centroids; model-specific L2-regularized logistic predictors map these memberships to per-model correctness probabilities. Costs are estimated from average training-set cost per model and normalized by the maximum average model cost; PISA selects the model maximizing alpha times predicted correctness plus one minus alpha times one minus normalized cost. PISA-E reuses the same capability estimates and uses the strict-majority success probability of independent Bernoulli correctness variables, computed with a Poisson-binomial dynamic program, as an ensemble-success surrogate. Ensemble cost is normalized by the sum of the k_max largest average model costs, and candidate ensembles are odd-cardinality prefixes of models ranked by single-model utility up to k_max. The selected models are queried in parallel and their responses combined by self-weighted BERTScore, with weights proportional to estimated capabilities. The cost-quality preference alpha can be adjusted at inference time without retraining, and k_max=1 reduces PISA-E to PISA.
Results
- PISA has the highest macro-average hypervolume among evaluated single-model routers in both ID and OOD settings, compared with EmbedLLM-MF. §4.2
- At alpha=0.75 on ID benchmarks, PISA-E reaches 73.78% macro-average task performance at 84 USD/query x10^-4, versus 73.18% at 132 for SelectLLM, a 0.60 percentage-point improvement with about 36% lower cost. §4.3
- At alpha=0.85 on OOD benchmarks, PISA-E reaches 60.85% macro-average task performance at 292 USD/query x10^-4, versus 60.37% at 387 for DFPE, a 0.48 percentage-point improvement with about 25% lower cost. §4.3
- When prioritizing response quality at alpha=1, PISA-E reaches 75.27% macro-average task performance on ID and 63.24% on OOD, exceeding strongest ensemble competitors by 2.09 and 2.87 percentage points. §4.3
- PISA-E achieves macro-average HV of 39.35 under ID and 26.30 under OOD, outperforming strongest fixed-cardinality alternatives by 0.28 and 1.80 HV points. §4.4
- Prompt-dependent model ranking improves macro-average HV by 4.96 points under ID and 0.91 under OOD over a fixed-global ranking baseline; across all eight scenarios PISA-E reaches 32.82 versus 29.89. §4.6
Limitations
- Greedy candidate construction restricts the search space and does not guarantee the globally optimal subset; the paper states this in section 3.2 and compares with exhaustive surrogate optimization in Appendix E.
- The Poisson-binomial ensemble-success surrogate assumes conditional independence among model correctness events; the paper states this and presents a Gaussian-copula alternative in Appendix B.
- The strict-majority surrogate is not the actual response-resolver outcome, since final correctness also depends on relationships among generated responses; the paper states this in section 3.2.
- Fixed-cardinality strategies remain competitive and occasionally outperform PISA-E, such as fixed k=1 on RouterBench in both settings; the paper reports this in section 4.4.
Key points
- PISA uses X-means to learn centroids and represents each prompt by soft memberships computed from cosine distances with concentration beta. §3.1
- Each model has an independent L2-regularized logistic predictor trained on soft memberships and binary correctness labels thresholded at 0.5. §3.1
- PISA normalizes each model average training cost by the maximum average model cost and selects the model with maximum cost-aware utility for a given alpha. §3.1
- PISA-E uses strict-majority success probability over independent Bernoulli correctness variables as a tractable ensemble-success surrogate, computed by a Poisson-binomial dynamic program. §3.2
- PISA-E normalizes ensemble cost by the sum of the k_max largest average model costs so subsets of different cardinalities are compared under one objective. §3.2
- PISA-E ranks models by single-model utility and evaluates odd-cardinality prefixes up to k_max; even cardinalities are dominated under the surrogate. §3.2
- The final ensemble response is chosen by self-weighted BERTScore, with capability weights normalized over the selected ensemble. §3.2
- PISA-E selects a single model for 21.56% of ID and 9.31% of OOD queries even at alpha=1.0, with average cardinalities 6.42 and 7.39. §4.3
Mind map
Sign In
Choose a method to continue
By signing in, you agree to our Terms and Privacy Policy

