TL;DR
Unsupervised image-to-image translation typically requires massive datasets to learn how to map one visual domain to another. This paper introduces a novel method that achieves structural translation using only a single pair of images. By progressively mapping internal patch distributions across multiple scales, the model can alter an image's geometry and appearance to match a target while preserving spatial arrangement.
What Problem Does This Paper Address?
Traditional unsupervised image-to-image translation frameworks (like CycleGAN) are data-hungry, requiring large collections of unpaired images from both the source and target domains. While recent single-image models (like SinGAN) can learn the internal patch statistics of a single image, they are designed for unconditional generation and struggle to map between two completely different image distributions or alter geometry.
Furthermore, existing style-transfer methods can change textures but leave the underlying geometry of objects completely untouched. This paper tackles the challenge of structural analogy: creating an image that adopts the style and appearance of image B, but conforms to the high-level spatial and structural arrangement of image A, using absolutely no external training data or pre-trained classifiers.
Methods
The authors propose a multi-scale, hierarchical framework consisting of a pyramid of patch-based Generative Adversarial Networks (Patch-GANs).
[Coarsest Scale: Global Structure] ---> [Medium Scales: Object Distribution] ---> [Finest Scale: Texture]
At each scale $n$, the framework handles two tasks using the exact same generator network:
- Unconditional Generation: The model generates random samples that mimic the patch distribution of the source image, building on the upsampled output from the previous, coarser scale.
- Conditional Generation: The model maps the structure of image A to the appearance of image B.
Key Technical Details:
- Residual vs. Non-Residual Training: For coarser scales (below a threshold $K$), the model uses residual training to add fine details to the upsampled structure. For finer scales (above $K$), it switches to a non-residual architecture, giving the target generator the freedom to fully express the target domain's textures.
- Shared Weights: Crucially, the same generator is used for both conditional and unconditional generation at each scale. This prevents the network from "cheating" during cycle-consistency training (e.g., hiding source details in high-frequency noise).
- Loss Functions: The training optimization combines a Wasserstein GAN gradient penalty (WGAN-GP) adversarial loss, a reconstruction loss (to anchor the generation to the original images), and a cycle-consistency loss applied at coarser scales.
Datasets
Because the method operates entirely on a single pair of input images, it does not require massive training datasets. For evaluation and benchmarking, the authors utilized images sampled from:
- Berkeley Segmentation Database
- Places Dataset
- Images from the web representing diverse natural scenes (e.g., mountains, pyramids) and distinct object classes (e.g., pumpkins, balls, birds, hot air balloons).
Key Insights and Ideas
- The Power of Internal Statistics: The paper reinforces the idea that a single image contains an enormous amount of structural information within its own multi-scale patch distributions.
- Granularity Control via $K$: By adjusting the scale threshold $K$ where the network transitions from residual to non-residual training, users can precisely control the definition of "style" versus "content." Lower values of $K$ allow for significant geometric transformations, while higher values preserve more of the source image's original shapes.
- Indirect Scale Interaction: Directly conditioning a scale on the previous scale's translation results in poor alignment because the network learns to bypass structural mapping. Forcing interaction indirectly through a shared unconditional pipeline forces true structural alignment.
Key Results
The method was evaluated against several baselines, including Deep Image Analogy (DIA), SinGAN, and CycleGAN.
Qualitative Success
As shown in the figure above, when translating an image of large pumpkins to balls, the model successfully replaces a single massive pumpkin with two smaller balls because no ball of matching size exists in the target domain. Baselines like DIA fail to alter the underlying shape, resulting in unrealistic stretched objects.
Quantitative Performance
- Realism (SIFID): The proposed method achieved a Single Image FID (SIFID) score of 0.097 on structural alignment tasks, significantly outperforming SinGAN (1.455) and DIA (0.723), proving it generates much more realistic textures.
- User Studies: In a 50-user perception study assessing structural alignment, the method achieved an alignment accuracy of 83.4%, nearly matching DIA (85.0%) while delivering vastly superior visual realism. For guided sketch synthesis, it achieved 96.3% alignment accuracy.
Limitations and Future Work
Because the model trains on only two images, it lacks a high-level semantic understanding of the world. For example, it does not inherently know that an animal has exactly two eyes. If mapping a cat to a tiger, it might fail to preserve the precise semantic placement of facial features if the patch statistics don't explicitly guide it.
The authors suggest that future work could extend this multi-scale patch mapping framework to other highly constrained data scenarios, such as one-shot semantic segmentation.
Summary updated