Ensemble Routing for Prompt-Adaptive Cost-Aware LLM Inference

Saul Urso, Emanuele Carlini, Patrizio Dazzi, Matteo Mordacchini

arXiv:2611.10193 · 2026-11-13 공개 · arXiv · PDF

llm-inference llm-benchmarks cost-aware single-model-router capability-estimation hypervolume-optimization ood-routing cost-performance-tradeoff

Abstract

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.

한국어 요약

한 줄 요약

PISA와 PISA-E는 프롬프트별로 모델 선택과 앙상블 구성, 크기를 동적으로 조정하여 추론 비용과 성능을 균형 있게 최적화하는 LLM 라우팅 방법이다.

핵심 기여도

핵심 아이디어

PISA와 PISA-E는 프롬프트에 따라 모델의 능력을 추정하고, 이를 기반으로 추론 비용과 성능을 동시에 고려한 라우팅을 수행한다. PISA는 각 모델의 소프트 클러스터 멤버십과 모델별 예측기(predictor)를 결합하여 모델의 프롬프트별 능력을 추정한다. PISA-E는 이 추정값을 앙상블 성공 예측에 활용하여, 앙상블 구성과 크기를 동시에 선택한다. 이는 앙상블별 별도 학습 없이도 가능하며, 추론 시 비용-성능 선호도를 조정할 수 있다. 이는 기존 방법들이 고정된 앙상블 크기나 분류기 기반 집계에 의존하는 한계를 극복한다.

기술적 접근법

주요 결과

의의 및 한계

PISA와 PISA-E는 LLM 서비스에서 다양한 사용자 요청과 비용-성능 선호도에 유연하게 대응할 수 있는 라우팅 프레임워크를 제공한다. 특히, 동일한 능력 추정 프레임워크를 기반으로 단일 모델 라우팅과 선택적 앙상블을 모두 지원하며, 추론 시 비용-성능 선호도를 조정할 수 있어 실용적 유연성이 높다. 그러나, 모델별 능력 추정이 정확하지 않을 경우 성능이 저하될 수 있으며, 모든 앙상블 조합을 고려하지 못하는 경우도 존재한다. 또한, 특정 앙상블 크기 고정 경쟁자보다는 유연하지만, 모든 상황에서 최적의 앙상블 크기를 보장하지는 않는다.

실용적 활용

PISA와 PISA-E는 검색, 추천, 인지 에이전트 등 다양한 웹 기반 서비스에서 사용자 요청에 따라 추론 비용과 응답 품질을 균형 있게 조절하는 데 활용할 수 있다. 특히, 다양한 모델이 제공되는 공개 LLM 서비스에서 효율적인 모델 선택과 앙상블 구성이 필요한 경우에 적합하며, 비용 효율적인 서비스 운영을 지원한다.