Ph.D Student
Arizona State University
Robust LLM Serving under Output-Length Uncertainty: Where Should the Safety Margin Go?
Abstract: Every time an LLM service accepts a request, it has to set aside GPU memory for the answer before it knows how long that answer (output-token length) will be. Most answers are short, but a few are tens of times longer than usual, and the mix keeps changing from week to week. Setting aside too little memory means a long answer (output-token length) runs out of room and must be restarted. Setting aside too much leaves memory unused, so fewer users can be served at the same time. Today's systems usually rely on fixed rules of thumb, such as reserving for the 90th percentile of past answers. This talk asks a practical question: where should a provider put its safety margin against unknown output-token lengths?
I will present two recent works. The first work focuses on the memory reservation for each request. It shows that the right amount of memory depends on how costly each mistake is: running out versus wasting space. To protect against a past that may be a poor guide to the future, we use Wasserstein distributionally robust optimization. It plans against the worst output token-length distribution within a given Wasserstein distance of the observed data. No fixed percentile works well across all cost regimes, while this rule adjusts automatically. The second work looks at the whole system, where many requests share the same memory and a long answer may be restarted several times. Here, a bigger reservation for one request takes memory away from everyone else. The earlier rule is therefore right when memory is plentiful, but calls for smaller reservations when memory is tight, and measurements on real GPUs confirm both sides. This leads us to move the safety margin to the decisions a provider makes ahead of time. We formulate a retry-aware Wasserstein distributionally robust model that jointly selects admission, routing, GPU deployment and output budgets, and show that it reduces exactly to a mixed-integer linear program. We complement it with a robust queue limit that reacts to congestion as it happens. Experiments on real GPUs and trace-driven simulations show when this protection pays off, when it does not, and what it costs.
Bio: Jiaming Cheng is a Ph.D. student at Arizona State University, advised by Prof. Duong Tung Nguyen. Jiaming's research lies at the intersection of operations research, network economics, and optimization for large-scale AI systems and infrastructure. The research develops data-driven and robust decision-making methods for how AI workloads are served, scheduled, and powered. Topics include LLM serving under uncertainty, such as memory reservation, admission control, and capacity planning when information is not perfect in advance. This procedure also includes GPU resource allocation and scheduling across heterogeneous clusters, and sustainable AI computing, where training and inference workloads are planned with their energy use, carbon footprint, and impact on the power grid.