TetriServe: Efficiently Serving Mixed DiT Workloads

Runyu Lu, Shiqi He, Wenxuan Tan, Shenggui Li, Ruofan Wu, Jeff J. Ma, Ang Chen, Mosharaf Chowdhury

TL;DR

Serving Diffusion Transformer (DiT) models for image generation is challenging due to their high computational cost and strict latency requirements. TetriServe introduces a novel step-level parallelism strategy that dynamically adjusts resource allocation for each request, significantly improving the ability to meet deadlines and overall system efficiency compared to existing methods.

What Problem Does This Paper Address?

Diffusion Transformer (DiT) models have revolutionized image generation, producing photorealistic content with unprecedented quality. However, deploying these models for real-time serving presents a significant challenge. DiTs are computationally intensive, especially for high-resolution images, and often come with strict Service Level Objectives (SLOs) – essentially, deadlines for generating an image. Existing serving systems typically use fixed parallelism strategies, which are inefficient because the optimal degree of parallelism for a DiT model depends heavily on the input image resolution and the request's deadline. This leads to underutilization of GPUs for smaller images or insufficient speed for larger ones, ultimately resulting in missed deadlines and poor user experience. The problem is further complicated by the heterogeneous nature of real-world workloads, where requests arrive with varying resolutions and deadlines, making static resource allocation ineffective.

Methods

TetriServe tackles this problem by introducing step-level sequence parallelism. Instead of fixing the parallelism degree for an entire request, TetriServe dynamically adjusts it at each denoising step. This is achieved through a novel deadline-aware round-based scheduler.

Here's a breakdown of the key techniques:

  • Step-Level Sequence Parallelism: The core idea is to adapt the number of GPUs used for each denoising step based on the request's deadline and resolution. Urgent or high-resolution requests can utilize more GPUs for faster processing, while less critical ones can use fewer to conserve resources.
  • Round-Based Scheduling: The continuous time of the serving problem is discretized into fixed-duration "rounds." Within each round, the scheduler makes decisions about which requests to serve and at what parallelism degree. This makes scheduling tractable and allows for preemption between rounds.
  • Deadline-Aware GPU Allocation: For each request, TetriServe identifies the minimal GPU allocation required to meet its deadline. This is done by profiling per-step latencies offline and using a cost model. This avoids over-allocating resources.
  • Request Packing: After determining feasible GPU allocations, TetriServe employs a packing strategy to maximize the number of requests that can be scheduled within a round, further improving SLO attainment.
  • Placement Preservation and Elastic Scale-Up: To minimize overhead, TetriServe tries to keep requests on the same GPUs across rounds. Additionally, any idle GPUs are dynamically allocated to requests that can benefit from them, ensuring efficient resource utilization.

Datasets

The paper uses prompts from DiffusionDB [42] to generate requests for evaluation. The authors consider two resolution mixes:

  • Uniform: An equal number of requests across resolutions {256, 512, 1024, 2048}.
  • Skewed: Resolutions are sampled with an exponential weight bias towards larger resolutions.

The models evaluated are FLUX.1-dev [21] and Stable Diffusion 3 Medium (SD3) [3].

Key Insights and Ideas

  • The "one-size-fits-all" parallelism approach is fundamentally flawed for DiT serving. Fixed parallelism degrees lead to a trade-off where a configuration optimal for one resolution is detrimental to others, resulting in poor SLO attainment across the board.
  • DiT inference is highly predictable. The per-step execution time for a given resolution and parallelism degree is remarkably stable, which is crucial for effective deadline-aware scheduling.
  • Step-level adaptation is key. Dynamically adjusting parallelism at each denoising step allows TetriServe to precisely match resource allocation to the immediate needs of each request, maximizing efficiency and SLO attainment.
  • The problem of DiT serving is NP-hard. This theoretical result justifies the need for efficient heuristic scheduling approaches like TetriServe's round-based dynamic programming.
  • Combining caching (like Nirvana) with adaptive parallelism offers complementary benefits. Cache-based methods reduce computation by skipping steps, while TetriServe optimizes resource allocation for the remaining steps, leading to significant gains.

Key Results

  • Up to 32% higher SLO Attainment Ratio (SAR) compared to state-of-the-art baselines (like xDiT with fixed parallelism) across various workloads and SLO scales.
  • TetriServe consistently outperforms fixed-parallelism strategies and even a resolution-specific static configuration (RSSP) by dynamically adapting to individual request needs.
  • The system demonstrates robustness to bursty arrival patterns and changing resolution mixes, maintaining high SAR where fixed approaches show significant performance oscillations.
  • Latent transfer overhead is negligible (< 0.05% of step latency), validating the feasibility of step-level parallelism reconfiguration.
  • Ablation studies show that GPU Placement Preservation and Elastic Scale-Up are crucial components contributing to TetriServe's performance gains.

Limitations and Future Work

  • NP-Hardness of Scheduling: The paper proves that finding the globally optimal schedule is NP-hard, necessitating heuristic approaches like TetriServe's round-based DP. While TetriServe is efficient, it's an approximation.
  • Future Work: The authors suggest that TetriServe is orthogonal and compatible with cache-based diffusion acceleration techniques (like Nirvana [2]), implying that integrating these could lead to further performance improvements. They also note that TetriServe's adaptive scheduling is effective for both mixed and homogeneous workloads, suggesting its general applicability. The paper also hints at exploring more advanced scheduling strategies and optimizations for even greater efficiency.

Summary updated

BibTeX
@inproceedings{lu2026tetriserve,
  author = {Runyu Lu and Shiqi He and Wenxuan Tan and Shenggui Li and Ruofan Wu and Jeff J. Ma and Ang Chen and Mosharaf Chowdhury},
  title = {{TetriServe: Efficiently Serving Mixed DiT Workloads}},
  booktitle = {ASPLOS},
  year = {2026},
  doi = {10.1145/3779212.3790233},
}
Figure