TL;DR
Multi-GPU parallelization for diffusion models is typically bottlenecked by the massive communication overhead required to sync activations between devices at every denoising step. Otil (Only Transmit Informative Latents) bypasses this bottleneck by transmitting only the most dynamic latent sub-blocks combined with a cyclic polling mechanism to ensure full spatial coverage. This training-free, plug-and-play framework reduces inter-GPU communication by up to 93.75%, delivering up to a 2.84× speedup on two GPUs with minimal impact on image quality.
What Problem Does This Paper Address?
While diffusion models (DMs) excel at generating high-fidelity images and videos, their iterative, sequential denoising process introduces significant latency. To speed things up, researchers often turn to multi-GPU parallelization. However, existing approaches like patch-based or pipeline-based parallelization hit a major bottleneck: communication overhead.
As shown in Figure 1, standard methods require GPUs to frequently exchange large, full-sized activation tensors over relatively low-bandwidth interconnects like PCIe. This communication delay often completely offsets the computational gains of adding more GPUs. Furthermore, some parallel methods are incompatible with popular architectural or algorithmic acceleration techniques like few-step samplers or LoRA blocks.
Methods
Otil introduces a communication-efficient parallel framework based on a key insight: latent activations change only marginally between consecutive denoising steps, and these changes are highly concentrated in specific spatial regions.
The framework operates via three core components:
- Spatial Partitioning: The latent space is first divided into $N$ contiguous segments along the row or column dimension, where $N$ is the number of GPUs. Each GPU independently handles the denoising math for its assigned segment. Each segment is then further broken down into $K$ uniform square sub-blocks.
- Information-Guided Sub-Block Transmission: Instead of broadcasting the entire activation segment after a denoising step, Otil computes the cosine similarity between the current sub-blocks and those from the previous timestep. It ranks them by a dissimilarity score and selects only the top-$k$ most dynamic sub-blocks to transmit to neighboring GPUs.
- Dynamic Polling Mechanism: Relying solely on the top-$k$ updates could cause the system to repeatedly ignore low-variation regions, leading to spatial drift or loss of fine details over many steps. To fix this, Otil maintains a set of unvisited sub-blocks and forces a cyclic update schedule, ensuring every single region is periodically synchronized.
Because Otil only alters the communication layer and leaves the underlying model architecture untouched, it is entirely plug-and-play and fully compatible with fast samplers and LoRA weights.
Datasets
The authors evaluated Otil on a randomly sampled subset of 5,000 image-caption pairs from the COCO Captions 2014 validation dataset. No new benchmarks were introduced.
Key Insights and Ideas
- Temporal and Spatial Redundancy: The average mean absolute error (MAE) between adjacent timesteps is a mere 0.01. Reusing slightly stale activations from a previous step introduces negligible error, meaning full activation exchanges are fundamentally wasteful.
- Locality of Updates: When stale activations are reused, only a tiny subset of spatial regions shows noticeable updates in the subsequent denoising output.
- Cosine Similarity Suffices: A simple, lightweight cosine similarity metric computed in the latent domain correlates remarkably well with perceptually meaningful changes in the final pixel-space image.
Key Results
Otil was evaluated using NVIDIA A100 GPUs connected via PCIe across several popular base models (Stable Diffusion 1.5, SDXL 1.0, and Stable Diffusion 3):
Speed and Latency
- Stable Diffusion v1.5 (512×512): Achieved a 1.74× speedup on 2 GPUs compared to the single-GPU baseline.
- Stable Diffusion XL (1024×1024): Attained a 1.88× speedup on 2 GPUs and 2.23× speedup on 4 GPUs.
- With Fast Samplers & LoRA: When combined with DPM-Solver or UniPC (30 steps) and LoRA models, the acceleration reached up to 2.84× on 2 GPUs.
Communication Reduction
Compared to the state-of-the-art AsyncDiff parallel framework, Otil reduced total GPU-GPU communication volume by 87.5% on 2 GPUs and 93.75% on 4 GPUs (when configured to transmit a fraction of $k/K = 1/4$ sub-blocks).
Generation Quality
Despite the massive reduction in data transfer, Otil preserved high visual fidelity. For instance, on SD v1.5, it incurred a negligible 0.05 drop in CLIP score and maintained highly competitive FID and LPIPS metrics relative to full-communication baselines.
Limitations and Future Work
While Otil delivers impressive communication savings, the authors note a clear trade-off regarding sub-block granularity. If the chosen sub-block size is too small (e.g., $4 \times 4$), the computational overhead of sorting and ranking the blocks can actually slow down inference. Conversely, if the sub-block size is too large, the system may miss subtle local variations, degrading image quality.
Future work could explore adaptive methods for dynamically adjusting the $k/K$ transmission ratio or sub-block sizes on the fly based on the current denoising timestep's variance.
Summary updated