TL;DR
When you ask a massive image-editing model to put a magician's hat on a cat, it wastes enormous compute redrawing every single blade of grass in the background from scratch. Simply skipping those static background pixels breaks multi-GPU pipelines because some GPUs finish instantly and sit idle waiting for the GPU stuck redrawing the hat. AsymPipe solves both the algorithmic waste and the hardware bottleneck simultaneously, speeding up 80-billion-parameter image editors by nearly 3× without retraining or losing visual fidelity.
What Problem Does This Paper Address?
Modern instruction-driven image editing uses massive Diffusion Transformers (DiTs) to modify images from text prompts alone—no manual user masks required. However, this creates a severe semantic–computation mismatch. Even if an edit is tiny and localized, the Transformer performs dense, heavy computations over every high-resolution token across dozens of denoising steps.
Prior works noticed that unedited background regions stabilize early and tried caching them on single GPUs. Put an 80B-parameter model into production, though, and it won't fit on one GPU. You need pipeline parallelism—slicing the image into spatial patches and passing them across an assembly line of GPUs. If you naively skip computations on background tokens, the GPU holding the "sky" patch finishes in milliseconds, while the GPU holding the "cat's hat" patch grinds away. This workload skew creates massive idle gaps ("pipeline bubbles"), preventing theoretical FLOP savings from becoming real-world speedups.
Methods
AsymPipe is a training-free algorithm–system co-design built on three novel components that wrap around standard Flow-Matching DiTs:
- Velocity-to-Reference Alignment Detection (VRA-Detect): After a few normal warm-up steps, AsymPipe locates the edit region with zero extra neural networks or forward passes. In flow-matching models, the network predicts a "velocity" vector pointing toward the clean image. VRA-Detect simply takes the cosine similarity between each token's predicted velocity and the straight-line path back to the original source image. Tokens pointing straight back to the original image are labeled "non-edit"; tokens steered elsewhere are labeled "edit."
- Reuse-Equalized Pipeline (REP-Pipe): Once the mask is found, non-edit tokens only refresh their DiT block outputs and Key/Value (KV) states every $\Delta$ steps, reusing cached outputs in between. To eliminate pipeline bubbles, REP-Pipe scrambles the spatial patches—deconstructing the 2D image layout so every GPU gets an identical ratio of heavy "edit" tokens and cached "non-edit" tokens. Because each token retains its original 2D positional encoding (
position_ids), spatial semantics stay completely intact. - Source-Partitioned Attention (SPA): Even inside the active edit region, attention isn't uniformly dynamic. Every token attends to three sources: text prompt, original reference image, and the evolving generated image. SPA caches the static text and reference-image attention outputs, recomputing attention only against the evolving image tokens, and merges them losslessy using online softmax (Log-Sum-Exp).
Datasets
Because AsymPipe is entirely training-free, no training datasets are used. It is evaluated on two established instruction-based image editing benchmarks: GEdit-Bench and KontextBench (detailed in the paper's appendix). No new benchmarks are introduced.
Key Insights and Ideas
- Free Error Absorption via Staleness Alignment: Standard multi-GPU patch pipelines (like PipeFusion) already force GPUs to read slightly outdated, 1-step-stale KV caches from neighboring GPUs to overlap communication with computation. AsymPipe's intentional multi-step KV caching on static background regions aligns directly with this unavoidable hardware staleness—meaning algorithmic and system approximations don't stack up as separate quality penalties.
- The Model Already Knows Where It's Editing: You don't need auxiliary segmentation models or attention-map heuristics to find an edit mask; the flow velocity vector commits to preserving unedited background pixels within the very first few denoising steps.
- Decoupling Physical Layout from Spatial Meaning: Because Transformers rely on positional embeddings rather than physical memory adjacency to understand 2D space, you can freely shuffle tokens across GPUs like a deck of cards to balance hardware load without confusing the model.
Key Results
Tested on an 8× NVIDIA H20 GPU server using two massive open-source models—HunyuanImage-3.0-Instruct (80B) and Qwen-Image-Edit-2511 (20B)—on GEdit-Bench:
- End-to-End Speedup: Achieved a 2.862× speedup (cutting latency from 173.76s down to 60.72s) on the 80B Hunyuan model, and a 2.707× speedup (129.13s down to 47.70s) on the 20B Qwen model.
- Preserved Visual Quality: Maintained high fidelity against dense baselines with PSNRs of 33.69 (Hunyuan) and 29.74 (Qwen), outperforming existing parallel (PipeFusion) and caching (TeaCache, RegionE) baselines in GPT-5.5 semantic and perceptual evaluations.
- Load-Balancing Impact: Turning on edit-aware token reordering consistently shaved off pipeline bubbles across 2, 4, and 8 GPU setups, adding up to an extra ~9% speedup on top of algorithmic caching alone.
Limitations and Future Work
When split across 8 GPUs, the number of active edit-query tokens per GPU becomes quite small. Consequently, Source-Partitioned Attention (SPA) only yields a modest 1.047× incremental speedup in the 8-GPU setup (compared to 1.602× when patch partitioning is disabled), because separate kernel launches and Log-Sum-Exp merging overheads eat into the compute savings. The authors note that writing a dedicated, custom-fused GPU kernel is a promising direction to unlock SPA's full speed potential at high GPU counts.
Summary updated