ECCOS: Efficient Capability and Cost Coordinated Scheduling for Multi-LLM Serving

Kai Mei, Wujiang Xu, Shuhang Lin, Yongfeng Zhang · OpenReview

Abstract

As large language models (LLMs) are increasingly deployed as service endpoints, the surge in query volume creates significant scheduling challenges. Existing frameworks mainly target latency while neglecting the capability of LLMs to serve different query levels, leading to resource waste. This paper proposes ECCOS (OmniRouter), an efficient capability-cost coordinated scheduling framework that explicitly constrains response quality and workload to optimize inference cost. By introducing a two-stage scheduling process with a multi-objective predictor and a constrained optimizer, OmniRouter improves success rates by 6.30% while reducing costs by 10.15% compared to existing methods.

Introduction: The Pitfalls of Greedy Routing

In the current landscape of diverse LLMs, matching query complexity to model capability is essential for efficiency. Not every task requires a high-parameter model like GPT-4; simpler queries can often be handled by smaller, cheaper models. However, existing routing solutions typically employ a "greedy" strategy, evaluating queries in isolation.

This approach leads to two primary inefficiencies:

  1. Resource Blocking: A simple query might occupy the last available slot on a high-capability model, forcing a subsequent complex query to be routed to a weaker model where it is likely to fail.
  2. Cost Explosions: Greedy routers struggle to maintain global budgets. As performance targets increase, they often default to the most expensive models for all queries, leading to non-linear cost growth.
Comparison between greedy selection in existing routers and global constrained optimization in OmniRouter.

Methodology: The OmniRouter Architecture

OmniRouter addresses these issues by transforming routing into a global constrained optimization problem. The framework consists of two main stages: a hybrid predictor and a Lagrangian-based optimizer.

1. Hybrid Retrieval-Augmented Predictor

To accurately estimate model performance, OmniRouter combines two signals:

  • Training-based: A BERT-based encoder predicts the success probability and expected output length (cost) for specific query-model pairs.
  • Retrieval-based: Inspired by Retrieval-Augmented Generation (RAG), this component queries a vector database of historical performance to find similar past queries and their outcomes.

The fusion of these signals allows for high-precision estimation of model capabilities and costs.

2. Constrained Optimizer

Instead of local heuristics, OmniRouter uses Lagrangian dual decomposition to solve the global routing problem. It assigns "penalties" (multipliers) for violating quality or capacity constraints. If the system's average accuracy falls below a target threshold ($\alpha$), the penalty for using weaker models increases. Similarly, if a model reaches its concurrency limit, the optimizer increases its virtual "cost," naturally balancing the workload across the available pool.

The two-stage architecture of OmniRouter, featuring a hybrid predictor and a Lagrangian-based optimizer.

Experimental Evaluation

The researchers evaluated OmniRouter using 2.7k questions from benchmarks including MMLU (general knowledge), GPQA (hard science), and MATH/GSM8K (mathematical reasoning). The model pool consisted of 10 models, ranging from smaller models like Qwen2.5-7B to frontier models like GPT-4o.

Key Results

  • Performance and Cost: OmniRouter achieved a 75.19% accuracy, outperforming the best baseline by 1.3% while being approximately 41% cheaper than performance-oriented routers like RouterDC.
  • Predictor Accuracy: The hybrid predictor reached 81.3% accuracy in success prediction, a 5.2% improvement over non-hybrid methods.
  • Scalability: Unlike greedy routers that exhibit exponential cost growth under strict performance constraints, OmniRouter maintains a flatter cost curve by identifying Pareto-efficient resource allocations.

Discussion and Future Work

OmniRouter demonstrates that global coordination is key to efficient LLM serving. By viewing workloads as distributions rather than isolated events, systems can reserve high-capability resources for the tasks that truly require them.

Future work will address the "cold-start" problem for new models, where historical data is unavailable for the retrieval-based predictor. Additionally, optimizing the latency of the Lagrangian iterations and vector search will be crucial for maintaining high throughput in real-time production environments.

Summary updated

BibTeX
@misc{mei2025eccos,
  author = {Kai Mei and Wujiang Xu and Shuhang Lin and Yongfeng Zhang},
  title = {{ECCOS: Efficient Capability and Cost Coordinated Scheduling for Multi-LLM Serving}},
  year = {2025},
  eprint = {2502.20576},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.20576},
}

Loading related content...

Figure