← Latest papers
💻 computer science

SwiftFusion: Scalable Sequence Parallelism for Distributed Inference of Diffusion Transformers on GPUs

The paper introduces StreamFusion, a topology-aware distributed inference engine for Diffusion Transformers that utilizes novel Torus Attention and one-sided communication to overcome latency and synchronization bottlenecks, achieving up to 1.77x speedup over state-of-the-art methods. *(Note: The provided abstract contains a discrepancy where the title mentions "SwiftFusion" but the body text describes "StreamFusion"; the summary above uses "StreamFusion" as it is the name used in the detailed description of the proposed system.)*

Original authors: Jiacheng Yang, Jun Wu, Yaoyao Ding, Zhiying Xu, Yida Wang, Gennady Pekhimenko

Published 2026-05-26
📖 4 min read☕ Coffee break read

Original authors: Jiacheng Yang, Jun Wu, Yaoyao Ding, Zhiying Xu, Yida Wang, Gennady Pekhimenko

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to bake a massive, multi-layered cake (a high-quality image or video) using a recipe that requires thousands of tiny steps. In the world of AI, this "cake" is created by a Diffusion Transformer (DiT).

The problem is that as the cake gets bigger (higher resolution or longer videos), a single kitchen oven (a single GPU) can't handle the workload. It gets too slow, and the ingredients (data) take up too much space. So, we hire a team of ovens (multiple GPUs) to work together.

However, just putting ovens side-by-side isn't enough. They need to pass ingredients back and forth constantly. If they spend more time passing bowls than baking, the whole process slows down. This is the problem SwiftFusion solves.

Here is how the paper explains their solution using three main ideas:

1. The "Highway vs. Dirt Road" Problem (Topology-Aware Scheduling)

Imagine your team of ovens is split into two groups:

  • Group A: Ovens in the same kitchen, connected by a super-fast, wide conveyor belt (Intra-machine network).
  • Group B: Ovens in different buildings, connected by a slower, narrow dirt road (Inter-machine network).

Previous methods tried to use the slow dirt road for heavy lifting and the fast conveyor belt for light tasks. This was like trying to move a giant sofa down a narrow alley—it caused traffic jams.

SwiftFusion's Fix: They flipped the strategy.

  • They use the fast conveyor belt for the heavy, messy passing of ingredients (Ring Attention).
  • They use the slow dirt road only for the organized, bulk shipping of large crates (Ulysses Attention).
    By matching the task to the right "road," they avoid clogging the slow connection.

2. The "Assembly Line" Trick (Torus Attention)

In the old methods, the ovens had to wait in a line. Oven 1 would pass a bowl to Oven 2, wait for Oven 2 to finish, then Oven 2 would pass to Oven 3. This created a lot of "dead time" where ovens were just waiting.

SwiftFusion's Fix: They turned this into a busy assembly line.
Instead of waiting for the entire bowl to arrive before starting work, they break the bowl into chunks.

  • As soon as Oven 1 receives the first chunk of ingredients from the neighbor, it starts baking that chunk immediately.
  • While it is baking that first chunk, it is simultaneously receiving the second chunk.
  • By the time the second chunk arrives, the oven is ready to bake it instantly.

This is called Torus Attention. It's like a chef who starts chopping vegetables while the delivery truck is still unloading the rest of the produce. They overlap the "waiting" (communication) with the "working" (computation) so no time is wasted.

3. The "Self-Service" Delivery (One-Sided Communication)

In the old system, passing ingredients required a "handshake." Oven 1 would shout, "I'm sending this!" and Oven 2 would have to shout back, "I'm ready to receive!" This constant shouting and waiting created a lot of noise and delay (synchronization overhead).

SwiftFusion's Fix: They switched to a "self-service" model using a special library called NVSHMEM.

  • Now, Oven 1 can just slide a tray of ingredients onto Oven 2's counter without asking for permission first.
  • Oven 2 can grab the tray whenever it's ready.
  • This removes the need for constant shouting and waiting, making the whole kitchen run much more smoothly.

The Result

The paper tested this new system on creating high-resolution images and long videos. They found that by using these three tricks:

  • SwiftFusion is 1.35 times faster on average than the current best methods.
  • In the best cases, it was 1.77 times faster.
  • It didn't require more memory (ingredients), just a smarter way of moving them.

In short, SwiftFusion makes AI image and video generation faster by organizing the "kitchen" better, letting the ovens work while they wait, and removing the unnecessary "handshakes" between them.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →