Introduction
Image-to-image translation has seen significant success in mapping between closely related domains, such as horses to zebras. However, translating across semantically distant species—for instance, converting flowers into cats—remains a formidable challenge. The primary difficulty lies in maintaining semantic consistency, such as the specific pose, spatial arrangement, and quantity of subjects, while undergoing a radical change in appearance. Existing solutions often rely on multiple discriminators to handle complex distributions, but this approach leads to a "parameter explosion," making models computationally expensive and difficult to train on consumer-grade hardware.
The Multi-Branch Discriminator (MBD)
To address these challenges, we propose GAN-MBD, a framework that introduces a Multi-Branch Discriminator. Inspired by the principle of boosting in machine learning, where multiple "weak learners" are combined to form a "strong learner," MBD avoids the overhead of independent networks. Instead, it splits the feature channels of a single discriminator into $m$ independent branches.
In this architecture, if a standard convolutional layer contains $X$ channels, each branch in an $m$-branch discriminator receives $X/m$ channels. Each branch independently performs real/fake classification and category identification. The final adversarial loss is computed as the average across all branches. This design provides the generator with more diverse and granular feedback without significantly increasing the total parameter count. Empirical testing suggests that $m=4$ provides an optimal balance; further splitting tends to starve individual branches of the capacity needed to learn useful features.
Enhancing Translation Quality
Beyond the architectural changes to the discriminator, GAN-MBD incorporates two optional post-processing stages to refine outputs:
- Recycling: The generated image is fed back into the generator with the same target label to iteratively improve details.
- Refining: A separate Pix2pix-based denoising network, trained on downsampled and upsampled image pairs, is used to remove artifacts and sharpen the final result.
Furthermore, to guide the translation process, one-hot encoded labels are transformed into conditional maps and injected into both the input and the bottleneck layers of the generator.
Experimental Results
The proposed method was evaluated across several datasets, including Cat2dog, CelebA, LFW, and 102Flowers. GAN-MBD demonstrated a remarkable ability to preserve semantic structure across radically different domains.
Efficiency and Performance
A key advantage of the MBD approach is its efficiency. By replacing the standard discriminator in CycleGAN with a 4-branch MBD, the discriminator's parameter count was reduced from 13.92 million to 3.50 million. Despite this reduction, performance improved significantly. On the Cat-to-Dog translation task, the CycleGAN-4BR model achieved an Inception Score (IS) of 1.6007, outperforming established baselines like DRIT (1.4774) and MUNIT (1.4935).
Cross-Species Semantic Mapping
As shown in the qualitative results, the model successfully maps the spatial configuration of the input to the output. For example, an input image containing two distinct flowers results in an output featuring two cats in the same relative positions. This level of semantic preservation is maintained even when translating between humans, cats, and dogs simultaneously using an MBD-enhanced StarGAN.
Conclusion and Future Work
GAN-MBD offers a computationally efficient path toward high-quality cross-species image translation. By leveraging channel-split "weak learners" within the discriminator, the model achieves state-of-the-art results with fewer parameters. While the system performs exceptionally well on cropped and structured data, translating "in the wild" images with complex backgrounds remains a challenge, sometimes resulting in incomplete body synthesis or facial distortions. Future research will focus on enhancing the robustness of multi-branch architectures for these unconstrained environments.
Summary updated