Abstract: Style transfer describes the rendering of an image semantic content as different artistic styles. Recently, generative adversarial networks (GANs) have emerged as an effective approach in style transfer by adversarially training the generator to synthesize convincing counterfeits. However, traditional GAN suffers from the mode collapse issue, resulting in unstable training and making style transfer quality difficult to guarantee. In addition, the GAN generator is only compatible with one style, so a series of GANs must be trained to provide users with choices to transfer more than one kind of style. In this paper, we focus on tackling these challenges and limitations to improve style transfer. We propose adversarial gated networks (Gated GAN) to transfer multiple styles in a single model. The generative networks have three modules: an encoder, a gated transformer, and a decoder. Different styles can be achieved by passing input images through different branches of the gated transformer. To stabilize training, the encoder and decoder are combined as an autoencoder to reconstruct the input images. The discriminative networks are used to distinguish whether the input image is a stylized or genuine image. An auxiliary classifier is used to recognize the style categories of transferred images, thereby helping the generative networks generate images in multiple styles. In addition, Gated GAN makes it possible to explore a new style by investigating styles learned from artists or genres. Our extensive experiments demonstrate the stability and effectiveness of the proposed model for multistyle transfer.
Introduction
Style transfer has evolved from "image-to-image" (copying one specific painting) to "collection-to-image" (mimicking an artist’s entire body of work). However, two major hurdles remained in previous state-of-the-art approaches. First is scalability: models like CycleGAN are typically "one-trick ponies," requiring a separate massive model for every supported style. Second is stability: GANs are notoriously finicky, often suffering from "mode collapse" or failing to preserve the semantic content of the original photo.
Methods
The authors propose a novel architecture called Gated-GAN, which consolidates multiple styles into a single generative framework. The system consists of two primary networks:
- The Gated Generator: This module uses a shared Encoder to extract features and a shared Decoder to render the final image. The core innovation is the Gated Transformer, which contains multiple parallel branches—one for each style. By activating a specific gate, the model applies the desired artistic style while utilizing shared feature representations.
- Multi-task Discriminator: The discriminator performs two roles. It determines if an image is "real or fake" (adversarial loss) and utilizes an Auxiliary Classifier to ensure the generated image matches the intended artist's style.
To ensure structural integrity, the model employs an Auto-encoder Reconstruction Loss. By forcing the encoder and decoder to reconstruct the input image when the transformer is bypassed, the model maintains a strong grasp of the original photo's geometry, preventing the "hallucinations" common in other GAN architectures.
Experimental Setup
The researchers evaluated Gated-GAN using four distinct artistic collections: Monet (1,073 paintings), Van Gogh (400 paintings), Cezanne (526 paintings), and Ukiyo-e (563 woodblock prints). Standard landscape and cityscape photographs served as the content inputs.
Key Results
Gated-GAN demonstrates significant improvements in both efficiency and quality:
- Qualitative Quality: The model successfully captures distinct artistic signatures—such as Van Gogh’s swirling impasto strokes and Ukiyo-e’s sharp outlines—while keeping the original photo's objects clearly recognizable.
- Quantitative Performance: Using the Fréchet Inception Distance (FID), Gated-GAN outperformed CycleGAN. For the Monet style, Gated-GAN achieved an FID of 55.13, compared to CycleGAN’s 64.14.
- Storage Savings: For a 10-style system, Gated-GAN requires roughly 1/10th the parameters of a CycleGAN-based ensemble, making it far more suitable for mobile applications.
- Style Interpolation: Because styles share a latent space, the authors could "blend" styles by taking a weighted average of two transformer branches, creating hybrid artistic outputs.
Conclusion
Gated-GAN provides a scalable and stable solution for multi-style transfer. By leveraging shared components and a gated mechanism, it reduces computational overhead while improving the visual fidelity of stylized images. Future work may extend this architecture to other image-to-image tasks, such as seasonal transfer or incremental learning of new artistic genres.
Summary updated