paper-with-me

Papers

Adaptive Inference Batching using Policy Gradients

2026-07-06 · Ruslan Sharifullin arxiv

Inference serving systems must balance throughput and latency under bursty, heterogeneous workloads, yet the industry standard remains static batching policies that require manual tuning and cannot adapt to shifting traffic. We investigate whether reinforcement learning (RL) can learn adaptive batching and routing policies that outperform these heuristics, training REINFORCE and PPO agents on a discrete-event simulator validated against queuing theory and production traces (Azure Functions, BurstGPT). We formulate the problem as an MDP over queue state, request type and GPU availability, evaluating across standard Poisson traffic, extreme bursts, real-world traces and heterogeneous multi-GPU routing. Our central finding is a clear boundary condition for RL's value in systems problems. In single-GPU settings, a well-tuned static batching policy is already near-optimal under Poisson-like arrivals and RL offers only marginal gains (+0.1% to +1.0%). In multi-GPU heterogeneous routing, however, where fast and slow requests compete for shared resources, the agent discovers a workload-segregation policy that eliminates Head-of-Line blocking, yielding a 3.5x (348%) improvement over Round-Robin and a 48% improvement over the strongest heuristic baseline (Shortest-Queue), with 60% higher throughput and 25% lower latency while respecting SLA constraints. The policy generalizes to unseen bursty and real-world traffic despite training only on synthetic Poisson arrivals and an attention-augmented policy network converges roughly 20% faster than an MLP baseline. These results suggest RL's advantage over engineered heuristics concentrates in combinatorial, multi-resource decisions rather than single-resource temporal scheduling, a practical distinction for deciding where learned policies justify their engineering cost in production inference infrastructure.

📄 PDF Abstract BibTeX arXiv:2607.05272

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

Quantifying the mini-batching error in Bayesian inference for Adaptive Langevin dynamics

2021-05-21 · Inass Sekkat, Gabriel Stoltz

Bayesian inference allows to obtain useful information on the parameters of models, either in computational statistics or more recently in the context of Bayesian Neural Networks. The computational cost of usual Monte Ca…

Bayesian InferenceFriction

FairBatching: Fairness-Aware Batch Formation for LLM Inference

2025-10-16 · Hongtao Lyu, Boyue Liu, Mingyu Wu, Haibo Chen arxiv

Large language model (LLM) inference systems face a fundamental tension between minimizing Time-to-First-Token (TTFT) latency for new requests and maintaining a high, steady token generation rate (low Time-Per-Output-Tok…

Multi-Bin Batching for Increasing LLM Inference Throughput

2024-12-03 · Ozgur Guldogan, Jackson Kunde, Kangwook Lee, Ramtin Pedarsani

As large language models (LLMs) grow in popularity for their diverse capabilities, improving the efficiency of their inference systems has become increasingly critical. Batching LLM requests is a critical step in schedul…

Scheduling

SGD for Variational Inference: Tackling Unbounded Variance via Preconditioning and Dynamic Batching

2026-05-08 · Hippolyte Labarrière, Cesare Molinari, Silvia Villa, Lorenzo Rosasco arxiv

Black-Box Variational Inference (BBVI) typically relies on Stochastic Gradient Descent (SGD) to optimize the Evidence Lower Bound (ELBO). However, the stochastic gradients in BBVI inherently exhibit unbounded variance, v…

Stochastic Optimization

SMDP-Based Dynamic Batching for Efficient Inference on GPU-Based Platforms

2023-01-30 · Yaodan Xu, Jingzhou Sun, Sheng Zhou, Zhisheng Niu

In up-to-date machine learning (ML) applications on cloud or edge computing platforms, batching is an important technique for providing efficient and economical services at scale. In particular, parallel computing resour…

Edge-computingGPU