﻿# Robust batch routing: why 177 versus 800 GPUs is a simulation result

A batch-routing study combines quality prediction, cost limits and model-instance allocation. Its GPU headline depends on simulated capacity assumptions.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/robust-batch-routing-gpu-allocation-simulation-evidence/
Language: en

## Optimize assignments under explicit constraints

[Robust Batch-Level Query Routing for Large Language Models under Cost and Capacity Constraints](https://arxiv.org/abs/2603.26796) formulates routing as an integer optimization problem. Each query receives a model assignment, while a batch-level budget and available model-instance capacity constrain the choices. An additional offline optimization chooses how many instances of each model to allocate.

The robust variant replaces a point estimate of model quality with a conservative bound derived from resampled training data. This addresses uncertainty in the quality predictor; it does not make an incorrect answer impossible or guarantee calibration after the traffic distribution changes. The [model-routing guide](/journal/model-routing-vs-provider-routing/) explains why changing the model also changes the behavior that applications must evaluate.

## The experiment reuses stored responses

The [full paper](https://arxiv.org/html/2603.26796) explicitly describes a simulation environment. Two public routing datasets provide queries, fixed model responses, scores and historical costs. The experiments assess optimization decisions over those records, rather than generating all answers on a newly deployed GPU cluster.

The quality estimators include XGBoost and nearest-neighbor methods. For robust estimates, the authors refit on 100 bootstrap samples and use an empirical lower quantile, with the main setting Q=10. The uncertainty is conditional on the data and estimator; it does not cover arbitrary model updates or unobserved deployment failures.

Adversarial batches are also constructed in a specific way: queries are sorted by the cost of the independently selected model, then grouped consecutively. This concentrates expensive choices and tests a weakness of per-query budgeting. It is a defined stress condition, rather than measured evidence that ordinary traffic has the same arrangement.

## Unpack the GPU-count headline

The full-optimization example reports 177 GPUs to match the performance of DeepSeek_Chat alone at 800 GPUs. Its main batch size is 100, with an average per-query cost budget of 0.000001 in the simulated monetary units. The deployment table assigns 8 GPUs to a DeepSeek-Chat instance, and open-model concurrency is fixed at 1.

Under those assumptions, serving the whole batch with that model implies one instance per simultaneous query. The resulting 800 count is therefore tied to the chosen capacity model. It is not a measured minimum for an optimized continuously batched DeepSeek serving system, nor evidence that replacing an existing fleet would remove the same number of devices.

External API models consume no locally allocated GPUs in the simulation, while internally hosted models incur zero additional per-inference monetary charge. These are accounting assumptions, not free physical computation. The [complete router-cost guide](/journal/token-router-total-cost/) explains why infrastructure ownership and API charges need separate treatment.

## Transfer requires a new capacity model

For instance allocation, the study uses 10% of its test set as calibration batches and evaluates the remaining 90%. Preserve those roles instead of describing the entire test split as untouched final evaluation. Reported solver timing is also the optimization step, not the complete time to collect a batch, run models and return answers.

The paper names fixed batching, stationary distributions, static allocation and independent queries as limitations. A production comparison needs measured per-instance capacity under actual context lengths, model representations and scheduling. Model switching can also lose reusable conversation state.

The contribution is a reproducible way to coordinate quality estimates and resource constraints. Its numerical allocation example becomes useful for planning only after replacing the paper's assumed costs and capacities with verified values for the intended deployment.
