Abstract
Multi-attribute image-to-image translation (I2IT) has traditionally been divided into label-based and reference-based approaches. Label-based methods offer high attribute accuracy but lack stylistic diversity, while reference-based methods provide rich diversity but often struggle with attribute precision. This paper introduces BridgeGAN, a novel architecture that unifies these two paradigms by forcing them to share a common latent space. By aligning label-based and reference-based synthesis paths, BridgeGAN achieves high-quality, accurate, and diverse image generation. Experimental results on CelebA and AFHQ datasets demonstrate that BridgeGAN outperforms existing state-of-the-art models in both quantitative metrics and qualitative visual quality.
Introduction
Image-to-image translation (I2IT) aims to map an image from a source domain to a target domain while preserving domain-invariant features. Current methods typically follow one of two paths: label-based synthesis, which uses discrete tags (e.g., "blonde hair," "smiling") to guide generation, and reference-based synthesis, which uses an exemplar image to provide style.
Label-based methods are generally high-quality and accurate but suffer from low diversity—every "smiling" output looks remarkably similar. Conversely, reference-based methods offer significant diversity but often fail in multi-attribute settings, where irrelevant styles from the reference image may "leak" into the result, or specific target attributes are not correctly mapped. BridgeGAN addresses this "gap" by treating these as complementary tasks. By bridging them, labels provide the "what" (accuracy) and references provide the "how" (diverse style), allowing both paths to mutually promote each other during training.
Methods
The core of BridgeGAN is a dual-encoding architecture designed to align the latent representations of label-based and reference-based synthesis.
The architecture consists of two primary modules:
- Label-based Encoding Module (LEM): This module takes a source image ($X_s$), a target label (represented as an attribute difference vector), and a random noise vector ($R$) to generate a latent code ($S_{rand}$).
- Reference-based Encoding Module (REM): This module takes the source image ($X_s$), the target label, and a reference image ($X_r$) to generate a latent code ($S_{ref}$).
Key Innovations
- Attribute Difference Vector: Instead of absolute target labels, BridgeGAN uses a vector representing the change in attributes (e.g., -1 for removal, +1 for addition, 0 for no change). This focuses the model on the specific transformation required.
- Latent Code Alignment: The model encourages $S_{rand}$ and $S_{ref}$ to be close in the embedding space. This ensures that the random noise in LEM learns to mimic the realistic style distributions found in the reference images processed by REM.
- Interpolation Training: During training, the generator ($G$) synthesizes images based on an interpolation between $S_{rand}$ and $S_{ref}$. This creates a smooth manifold between generic label-based styles and specific reference-based styles.
- SPADE Integration: Latent codes are injected into the generator using Spatially-Adaptive Denormalization (SPADE) layers, which helps preserve the semantic structure of the source image.
- Attribute Keeping Constraint ($L_{ak}$): A specific loss function ensures that attributes not targeted for change remain identical to the source image, preventing unwanted alterations.
Key Insights and Results
The "bridging" concept allows reference images to act as "teachers" for label-based synthesis. By aligning the latent spaces, the random noise used in label-based generation becomes more representative of real-world style variations.
BridgeGAN was evaluated on the CelebA (human faces) and AFHQ (animal faces) datasets. It consistently outperformed state-of-the-art models like StarGAN, STGAN, and SMIT.
- Quality and Accuracy: On CelebA, BridgeGAN achieved a Fréchet Inception Distance (FID) of 14.26 for label-based synthesis, significantly better than StarGAN's 25.96. It also reached an attribute accuracy of 87.0%, surpassing STGAN (80.6%).
- Diversity: In the AFHQ dog-to-wild animal task, BridgeGAN achieved a Learned Perceptual Image Patch Similarity (LPIPS) score of 0.479, demonstrating high diversity without sacrificing image quality.
- Smooth Transitions: The interpolation results demonstrate remarkably smooth transitions, allowing users to control the influence of the reference style on the label-based edit.
Conclusion
BridgeGAN successfully unifies label-based and reference-based I2IT, leveraging the strengths of both to produce accurate and diverse results. By focusing on attribute differences and latent space alignment, the model effectively isolates required changes while preserving identity and background. While scaling to a very large number of attributes remains a challenge due to the exponential complexity of domain combinations, the "bridging" approach offers a promising direction for multi-modal synthesis tasks, such as combining text prompts with style-guide images.
Summary updated