Scheduling Backwards for LLM Batching under Progress Constraints
Abstract
Requests in an LLM decode batch generate their next tokens together, even though their attention workloads differ with context length. This motivates controlling resource disparity within a batch. We study an offline, nonpreemptive scheduling model with slots and a budget on generated-token progress differences; for equal prompt lengths, this also bounds context-length disparity. The constraint creates admission blackouts: a slot can be free even though no new request can join the running batch. We introduce Right-Aligned scheduling (RA), which constructs schedules backwards to coordinate request starts. A window invariant proves that RA never has a larger makespan than sorted static batching on any instance. Refined idle-time accounting yields a -approximation, with a tight factor on instances of at most requests for . An observation-based retiming rule preserves feasibility under valid duration upper bounds. On held-out conversational snapshots at a prespecified operating point, the retimed implementation improves logical throughput by over the strongest tested same-budget forward baseline, and by under bounded forecast perturbations.
Then back it, or bet against it.
Related papers
Open the market on this paper to see 7 more related papers.