DCLGJun 19

BatchGen: An Architecture for Scalable and Efficient Batch Inference

arXiv:2606.2171216.4Has Code
Predicted impact top 7% in DC · last 90 daysOriginality Highly original
AI Analysis

For AI practitioners running large-scale batch inference, BatchGen addresses the critical bottleneck of runtime load variation and low GPU utilization, offering substantial throughput gains.

BatchGen introduces a sequence coroutine compute model for batch inference that dynamically reorganizes work, achieving up to 2.3× reduction in batch completion time on a 128-GPU cluster and up to 9.6× improvement over offloading baselines on memory-constrained accelerators.

Batch inference has become a central mode of AI computation, yet existing inference engines still rely on execution models designed for interactive serving. When scaled to millions of sequences, batch workloads reveal two fundamental requirements: the ability to handle extreme inter- and intra-sequence load variation that emerges only at runtime, and the ability to sustain high utilization across large fleets of GPUs. Existing systems fail to meet these requirements, losing substantial fractions of achievable throughput. We introduce a new architectural foundation for batch inference: the sequence coroutine compute model, which represents each sequence as a fine-grained, event-driven coroutine. This model exposes expressive primitives that allow the runtime to reorganize work dynamically, enabling larger expert-level batches, mitigating stragglers, reallocating work across devices, and maintaining utilization even on cost-effective or memory-constrained GPUs. Building on this abstraction, we implement BatchGen, a production-ready system that uses the coroutine model at cluster scale. On a 128-GPU cluster, BatchGen reduces batch completion time by up to $2.3\times$, and on memory-constrained accelerators it outperforms the strongest offloading baseline by up to $9.6\times$. We will open-source BatchGen at https://github.com/batchgen-project/batchgen

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes