TL;DR
TurboServe is the first serving system designed specifically for the emerging workload of interactive, streaming video generation. By tightly coupling migration-aware session placement with load-driven GPU autoscaling in a closed-loop framework, it slashes worst-case per-chunk latency by 37.5% and cuts total GPU operating costs by 37.2% on average.
What Problem Does This Paper Address?
Traditional AI video generation models (like Sora or HunyuanVideo) operate in a "one-shot," offline fashion: a user inputs a prompt and waits up to several minutes for the entire video to render. This paradigm is being replaced by streaming video generation (e.g., StreamDiffusionV2, LongLive), which generates videos progressively, chunk by chunk. This gives users real-time feedback and the ability to steer the generation mid-session.
However, serving streaming video at scale introduces unique infrastructure challenges that existing LLM or stateless video serving systems cannot handle:
- Stateful, Long-Lived Sessions: Unlike stateless requests, streaming sessions alternate between active generation bursts and idle periods, requiring the system to preserve large temporal states (like KV caches) across long periods.
- Session Duration Heterogeneity: Sessions vary wildly from a few seconds to tens of minutes, making initial static GPU placement decisions highly suboptimal over time.
- Temporal Demand Heterogeneity: User demand spikes and drops sharply, making static GPU provisioning either incredibly wasteful during idle times or bottlenecked during bursts.
Methods
The authors present TurboServe, an online scheduling framework that treats streaming video serving as a joint optimization problem of session placement and GPU provisioning under strict per-chunk latency constraints.
TurboServe's architecture consists of a closed-loop scheduling loop:
- Migration-Aware Placement Controller: Performs event-driven min-max rebalancing. It continuously calculates the optimal session distribution and uses a local search algorithm to migrate active sessions away from bottlenecked GPUs to less-loaded ones.
- Load-Driven Autoscaling Controller: Dynamically scales the GPU cluster size up or down based on a hysteresis-based trigger to prevent oscillations. It uses a proportional target-tracking policy to adapt the GPU budget to real-time workload volatility.
- Runtime Support Mechanisms: To make these high-level decisions efficient, TurboServe implements:
- Coalesced Chunk Processing: Batches concurrent active sessions on the same GPU to maximize compute efficiency.
- GPU-CPU Offloading: Evicts idle session states from precious GPU memory to host memory, freeing up slots without losing session context.
- NCCL-Based GPU-GPU Migration: Uses RDMA-based, one-sided memory access to transfer session states directly between GPUs at chunk boundaries, bypassing slow CPU staging.
Datasets
TurboServe was evaluated using real-world production traces provided by Shengshu Technology. These traces capture highly dynamic user behaviors, including time-varying online arrivals, departures, and active/idle transitions. The system was tested across multiple model sizes based on the autoregressive LongLive architecture (including LongLive-1.3B and larger variants) on clusters containing up to 16 NVIDIA H20 GPUs and 64 NVIDIA B300 GPUs.
Key Insights and Ideas
- Coordinated Control is Mandatory: Autoscaling and session migration cannot be treated independently. Scaling out requires immediate session rebalancing to utilize new GPUs, while scaling in requires session consolidation before safely releasing underutilized hardware.
- Migration Overhead is Negligible: A common fear is that moving large model states between GPUs causes massive latency spikes. TurboServe proves that with NCCL/RDMA-based direct transfers, migration overhead takes only 2-3% of the total per-chunk generation time—a tiny price to pay for fixing severe load imbalances.
- Decoupling Lifetime from Residency: By offloading idle sessions to CPU memory, TurboServe allows user sessions to remain open indefinitely without hogging expensive GPU resources during user "think time."
Key Results
- Latency Reduction: TurboServe reduced worst-case per-chunk latency by 37.5% on average (and up to 51.6%) compared to baseline configurations like Load-Aware Greedy or Memory-Aware Greedy placement.
- Cost Savings: Under identical latency constraints, TurboServe cut total GPU operating costs by 37.2% on average (and up to 49.0%).
- Near-Oracle Performance: The online scheduling algorithm achieved results within 3.6% of an exhaustive offline placement oracle and within 6.1% of an offline lower-bound autoscaling oracle, all while completing scheduling decisions in under 15 ms for a 64-GPU cluster.
Limitations and Future Work
While TurboServe scales efficiently up to 64 GPUs, the authors note that on extremely massive clusters (e.g., 256 GPUs), the scheduling time can approach 0.1 seconds. To mitigate this, they suggest partitioning very large clusters into independent sub-groups (e.g., 64 GPUs each) to run scheduling concurrently using additional CPU threads. Additionally, the paper focuses primarily on autoregressive streaming video models; adapting this closed-loop architecture to other emerging multi-modal streaming architectures remains an open area for exploration.
Summary updated