TL;DR
OT-ALD improves Dual Diffusion Implicit Bridge (DDIB) methods for image-to-image translation by using Optimal Transport (OT) to mathematically align latent distributions. By eliminating the distribution mismatch caused by terminating diffusion at a finite number of time steps, it achieves a 20.29% average improvement in sampling efficiency and reduces the FID score by 2.6 across multiple high-resolution tasks.
What Problem Does This Paper Address?
Image-to-image (I2I) translation aims to change the style or domain of an image (e.g., turning a cat into a dog) while keeping its underlying structure intact. A popular approach relies on Dual Diffusion Implicit Bridges (DDIB), which connect two independently trained diffusion models—one for the source domain and one for the target domain. DDIB works by adding noise to a source image to get a latent code, and then denoising that code using the target domain's model. This is highly flexible and privacy-preserving because the two models don't need to be trained together.
However, DDIB has a major theoretical flaw. In practice, diffusion models must stop adding noise after a finite number of steps ($T$). Because $T$ is finite, the resulting latent distribution doesn't perfectly match a standard Gaussian distribution. This mismatch between the source and target latent distributions causes the translation trajectory to drift, leading to lower-quality images or requiring excessively long diffusion processes to compensate.
Methods
To fix this gap, the authors introduce OT-ALD (Optimal Transport - Latent Distribution alignment). Instead of assuming the latent codes from the source domain can be directly fed into the target domain's reverse process, OT-ALD mathematically maps the source latent distribution to the target latent distribution using semi-discrete Optimal Transport theory.
The framework operates in three distinct stages:
- Inversion: The source image is processed through the forward diffusion process of the source domain model to generate a latent code.
- Alignment: The latent code is mapped to the target domain's latent space using an optimal transport map ($M_{ot,T}^{A \to B}$). This map is computed by optimizing a convex energy function to find the Brenier potential, ensuring the source latent distribution perfectly aligns with the target latent distribution.
- Generation: The mapped latent code serves as the starting point for the target domain model's reverse diffusion process, reconstructing the final translated image.
Datasets
The authors evaluated OT-ALD on four translation tasks across three public high-resolution datasets:
- AFHQ (Animal Faces High Quality): $512 \times 512$ images of animal faces used for Cat $\to$ Dog and Wild $\to$ Dog translation tasks.
- CelebA-HQ: 30,000 facial images resized to $512 \times 512$ used for Male $\to$ Female translation.
- Summer2Winter: $256 \times 256$ landscape images used to evaluate seasonal style transfer (Summer $\to$ Winter).
Key Insights and Ideas
- The Contraction Property Paradox: Diffusion models naturally shrink the Wasserstein distance between different image domains as noise is added. However, because we cannot diffuse to infinity, a residual distribution gap always remains. OT-ALD recognizes that fixing this gap before denoising prevents trajectory errors.
- Decoupling Speed and Quality: In standard DDIB, users face a harsh trade-off: use fewer steps ($T$) for speed and get poor quality due to distribution mismatch, or use a massive $T$ for quality at the cost of high compute. By explicitly aligning the distributions, OT-ALD makes the translation quality much less sensitive to smaller values of $T$, unlocking faster generation without degrading the output.
- Error Accumulation in Cycle Consistency: While both DDIB and OT-ALD theoretically satisfy cycle consistency, DDIB's need for a high number of diffusion steps introduces significant numerical discretization errors. OT-ALD's shorter paths drastically reduce these accumulated computational errors, leading to superior empirical cycle consistency.
Key Results
OT-ALD was compared against a wide array of baselines, including CUT, CycleGAN, SDEdit, DDIB, and ILVR.
Quantitative Performance
- Realism: OT-ALD achieved the lowest Frechet Inception Distance (FID) scores across all four tasks, beating the closest baselines by an average of 2.6 points (e.g., achieving an FID of 44.31 on Cat $\to$ Dog compared to DDIB's 59.62).
- Efficiency: By enabling a lower termination time ($T=500$), OT-ALD reduced average GPU inference time per image by 20.29% compared to ILVR, the fastest diffusion baseline.
Qualitative Performance
Human evaluations using a 2-alternative forced-choice (2AFC) paradigm showed that images generated by OT-ALD had a higher "Fool Rate" (~29% on average), meaning they were significantly harder for humans to distinguish from real target-domain images compared to outputs from competing models.
Limitations and Future Work
While OT-ALD successfully mitigates the latent distribution gap, it introduces the overhead of computing the optimal transport map between the two domains. Although the authors provide a complexity analysis showing this optimization is manageable, it remains an extra step prior to translation.
Additionally, tuning the noise scale factor ($\eta$) and the diffusion termination time ($T$) still requires empirical balancing: setting $T$ too low can harm image diversity and quality, while setting it too high re-introduces computational errors. Future work could explore adaptive methods to automatically determine the optimal $T$ for a given pair of domains.
Summary updated