Ensemble Routing for Prompt-Adaptive Cost-Aware LLM Inference
Abstract
PISA and PISA-E use prompt-adaptive capability estimation to route prompts or select cost-aware ensembles, improving cost-performance trade-offs across LLM routing benchmarks.
Large language models (LLMs) increasingly support Web-based services that 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. We introduce PISA, a prompt-adaptive, cost-aware single-model router, and PISA-E, its extension to ensemble routing. At the core of both methods, PISA combines soft cluster memberships with model-specific predictors to estimate individual model capabilities. Building on these estimates, PISA-E jointly selects ensemble composition and cardinality under an explicit cost--quality preference that can be adjusted at inference time without retraining. A tractable ensemble-success surrogate and efficient candidate selection enable this extension without ensemble-specific training. Across four LLM routing benchmarks under in-distribution (ID) and out-of-distribution (OOD) conditions, PISA achieves the highest macro-average cost--performance hypervolume among the evaluated single-model routers in both settings. Meanwhile, PISA-E achieves the highest macro-average task performance among the evaluated ensemble approaches when prioritizing response quality, surpassing the strongest competitors by 2.09 and 2.87 percentage points under ID and OOD conditions, respectively. At selected lower-cost operating points, it also exceeds the strongest ensemble competitors' macro-average task performance while reducing average inference cost by approximately 36% and 25%, respectively. These results demonstrate the effectiveness of prompt-adaptive capability estimation for both single-model routing and selective ensembling.
Community
Most LLM routing approaches select a single model per prompt, while ensembling introduces a different question: which models should we combine, and how many are actually worth invoking?
In this paper, we introduce PISA, a cost-aware single-model router, and PISA-E, which extends routing to ensembles with prompt-adaptive composition and size.
PISA-E estimates ensemble utility from individual model capability predictions, without requiring ensemble-specific training. It then selects the models to invoke based on the prompt and a configurable cost–quality preference.
We evaluate both methods across four routing benchmarks under in-distribution and out-of-distribution settings. PISA achieves the highest macro-average cost–performance hypervolume among the evaluated single-model routers. PISA-E achieves the highest macro-average ensemble task performance when prioritizing quality, while also offering operating points with higher performance at approximately 36% (ID) and 25% (OOD) lower average inference cost than the strongest competing ensembles.
Feedback and discussion are welcome, particularly on the ensemble-selection formulation and adaptive ensemble cardinality.
Get this paper in your agent:
hf papers read 2611.10193 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper