TL;DR
WarpI2I introduces a simple, model-agnostic "warp-unwarp" framework that temporarily magnifies salient image regions (like faces or text) before they are processed by a Latent Diffusion Model (LDM). By reallocating spatial representation within the downsampled latent space, it preserves fine-grained structural details during image-to-image translation with a negligible computational overhead of just 6 milliseconds.
What Problem Does This Paper Address?
Latent Diffusion Models (LDMs) excel at image-to-image (I2I) translation tasks, such as altering weather conditions in driving scenes or relighting portraits. However, compact and lightweight LDMs often struggle to preserve fine-grained foreground structures—such as facial expressions, eyes, or small text on traffic signs.
This limitation stems from the LDM's autoencoder, which typically compresses high-resolution inputs by a factor of 8x into a downsampled latent space. This spatial compression discards high-frequency structural details. While a straightforward fix would be to increase the input resolution or reduce the compression ratio, doing so causes computational costs to scale quadratically, making real-time deployment impractical.
Methods
The authors propose WarpI2I, a content-aware framework that redistributes latent pixels to where they matter most without changing the underlying LDM architecture.
The pipeline consists of three main steps:
- Saliency-Guided Warping: Before encoding, a part-level saliency map is generated (e.g., targeting faces/eyes for humans or specific objects for driving scenes). A non-uniform spatial transformation warps the image, locally magnifying these salient regions so they occupy more pixels in the compressed latent space.
- Standard I2I Translation: The warped image is processed normally by an off-the-shelf LDM (like pix2pix-Turbo or CycleGAN-Turbo).
- Image-Space Unwarping: After translation, an inverse warp maps the image back to its original geometry. Because the inverse mapping has no closed-form solution, it is approximated using a piecewise tiling of locally invertible bilinear mappings.
Additionally, the authors introduce a lightweight Synthetic Data Generation Pipeline to create high-quality paired data for training. It leverages FLUX.1 outpainting, a technique called Background Prompt Substitution (BPS) to stabilize training, Depth Anything for geometric conditioning, and ChatGPT for automated quality filtering.
Datasets
The framework was evaluated across several distinct tasks and datasets:
- Human Relighting: Trained and tested on VITON-HD and StreetTryOn.
- Driving Scene Weather/Time-of-Day Translation: Evaluated on BDD100K, Cityscapes, DarkZurich, ACDC, and Dense Fog.
- Driving Scene Relighting: Evaluated on the ROADWork dataset.
Key Insights and Ideas
- Smart Allocation over More Pixels: Instead of expanding the entire latent space (which is computationally prohibitive), WarpI2I proves that simply reallocating the existing spatial representation based on semantic importance is enough to preserve high-frequency details.
- Image-Space vs. Feature-Space Unwarping: Prior warping methods typically unwarp in 2D feature space, making them incompatible with the 1D token sequences used in modern Vision Transformer (ViT) or Diffusion Transformer (DiT) backbones. Unwarping directly in the image space makes WarpI2I entirely model-agnostic.
- Differentiable Error Compensation: Because the warp-unwarp operation is fully differentiable, the diffusion model naturally learns during training to compensate for any minor geometric artifacts or distortions introduced by the resampling process.
Key Results
- Minimal Latency: The warp-unwarp module is highly efficient, adding only 3.0 ms for warping and 3.0 ms for unwarping (6.0 ms total), introducing virtually no overhead to the inference pipeline.
- Qualitative Improvements: As shown in portrait relighting, the method prevents the blurring and distortion of facial features common in standard baselines.
- Quantitative Performance: In user studies, WarpI2I consistently outperformed specialized relighting models like IC-Light and DreamLight in identity preservation and image quality. For driving scenes on the BDD100K (Day $\rightarrow$ Night) benchmark, adding warping to CycleGAN-Turbo improved the FID score from 19.2 to 17.5 and drastically reduced Clean-FID from 31.3 to 17.2.
Limitations and Future Work
- Baseline Constraints: Due to computational limits, the authors primarily validated their approach on one-step diffusion baselines (pix2pix-Turbo and CycleGAN-Turbo). Testing on larger, multi-step diffusion models remains an open direction.
- Video Temporal Stability: While the framework can be applied frame-by-frame to video, it can suffer from high-frequency flickering under fast motion. Integrating stronger temporal priors, such as optical flow, will be necessary for robust video translation.
- Extreme Domain Shifts: Warping alone cannot fix underlying training instabilities; when the base CycleGAN framework failed to converge on extreme weather-to-clear translations, the warping framework could not prevent divergence.
Summary updated