TridentServe: A Stage-level Serving System for Diffusion Pipelines

Yifei Xia, Fangcheng Fu, Hao Yuan, Hanke Zhang, Xupeng Miao, Yijun Liu, Suhan Ling, Jie Jiang, Bin CuiarXiv 2025 · DOI

TL;DR

Diffusion models are powerful but computationally demanding, and existing serving systems struggle to efficiently handle their varying resource needs. TridentServe introduces a novel "stage-level" dynamic resource allocation system that intelligently deploys model stages and dispatches requests, significantly improving serving efficiency and reducing latency.

What Problem Does This Paper Address?

Generative vision tasks, particularly those using diffusion pipelines (like text-to-image and text-to-video), have exploded in popularity. These pipelines typically consist of three distinct stages: Encode, Diffuse, and Decode. However, current systems serving these pipelines operate with a static, "one-size-fits-all" approach. They allocate the same resources to every stage of every request, regardless of their individual computational demands. This is highly inefficient because:

  1. Stage Heterogeneity: The Encode, Diffuse, and Decode stages have fundamentally different computational profiles (e.g., Diffuse is compute-bound and iterative, while Decode is memory-bound).
  2. Request Heterogeneity: Different requests (e.g., varying image resolutions, video lengths) have vastly different resource requirements.
  3. Workload Dynamism: The arrival patterns of requests can change dynamically, further exacerbating the mismatch between static resource allocation and actual needs.

This static approach leads to wasted resources, performance bottlenecks, and an inability to meet service-level objectives (SLOs), especially under fluctuating workloads.

Methods

TridentServe tackles this problem by introducing a dynamic, stage-level serving paradigm. Its core innovation lies in two key components:

  1. Dynamic Placement Plan: Instead of a fixed deployment, TridentServe's Dynamic Orchestrator automatically determines where each stage of the diffusion pipeline should reside on the available GPUs. This plan can be adapted dynamically ("Adjust-on-Dispatch") as workloads change, ensuring optimal resource utilization without downtime.
  2. Dynamic Dispatch Plan: The Resource-Aware Dispatcher then intelligently routes incoming requests. It considers the current placement of model stages, request characteristics, and SLOs to decide which GPUs to use and how to parallelize each stage for a given request. This is achieved through a novel, myopic, Diffuse-first ILP solver that prioritizes SLO attainment.

These plans are executed by a high-performance Runtime Engine, supported by a Profiler (for offline performance characterization) and a Monitor (for real-time system status).

Datasets

Not discussed in the paper. The paper focuses on evaluating its system on existing diffusion models and workloads.

Key Insights and Ideas

  • Stage-level is Crucial: The significant differences in resource demands between the Encode, Diffuse, and Decode stages are the primary driver of inefficiency in current systems. A stage-aware approach is essential.
  • Dynamic Adaptation is Key: Workloads are not static. The ability to dynamically adjust both model placement and request dispatching in response to changing request arrival patterns and resource demands is critical for high performance.
  • Co-optimization is Powerful: By jointly optimizing model placement and request dispatching, TridentServe can achieve a synergistic effect, leading to much greater efficiency than optimizing each independently.
  • The Diffuse Stage is the Bottleneck: The Diffuse stage is the most computationally intensive and has the most complex scaling behavior, making it the primary target for optimization in scheduling and parallelism.

Key Results

TridentServe demonstrates significant improvements over existing methods across various workloads and diffusion models (Stable Diffusion 3, Flux.1, CogVideoX1.5-5B, HunyuanVideo):

  • SLO Attainment: Up to 2.1x-6.6x higher compared to the xDiT baseline (B1) and 1.2x-4.6x higher than stage-level baselines (B5/B6).
  • Average Latency: Speedups of 2.4x-6.2x over B1 and 1.4x-4.0x over B5/B6.
  • P95 Latency: Speedups of 2.0x-4.8x over B1 and 1.2x-4.1x over B5/B6.
  • OOM Elimination: Unlike many baselines, TridentServe successfully avoids Out-Of-Memory (OOM) errors.
  • Dynamic Adaptation: The system's ability to adapt placement plans (e.g., switching between EDC, ED, C configurations) significantly improves throughput under dynamic workloads.

Limitations and Future Work

  • Heuristics: The current solution relies on certain heuristics for plan generation, which the authors aim to refine in future work.
  • GPU Heterogeneity: While the system supports multiple GPUs, it could be extended to better exploit heterogeneous GPU pools (e.g., different tiers of GPUs) by mapping stages to the most cost-effective tier.
  • Multi-Model Serving: The current system focuses on serving a single diffusion pipeline. Extending it to efficiently serve multiple different models concurrently is a future direction.
  • Model Parallelism Integration: While the paper discusses integrating model parallelism, it primarily focuses on sequence parallelism. Further refinement in this area is planned.

Summary updated

BibTeX
@misc{xia2025tridentserve,
  author = {Yifei Xia and Fangcheng Fu and Hao Yuan and Hanke Zhang and Xupeng Miao and Yijun Liu and Suhan Ling and Jie Jiang and Bin Cui},
  title = {{TridentServe: A Stage-level Serving System for Diffusion Pipelines}},
  year = {2025},
  eprint = {2510.02838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.02838},
}
Figure