Skip to main content
QUICK REVIEW

[Paper Review] P$^2$-GAN: Efficient Style Transfer Using Single Style Image

Zhentan Zheng, Jianyi Liu|arXiv (Cornell University)|Jan 21, 2020
Generative Adversarial Networks and Image SynthesisComputer Science20 references6 citations
TL;DR

This paper proposes P²-GAN, a novel GAN-based style transfer method that enables high-quality, efficient stylization using only a single style image. By applying patch permutation to generate diverse training samples and employing a patch discriminator for seamless processing, the model achieves superior local style transfer with 2–3× faster inference than state-of-the-art methods, outperforming others in both style fidelity and computational efficiency.

ABSTRACT

Style transfer is a useful image synthesis technique that can re-render given image into another artistic style while preserving its content information. Generative Adversarial Network (GAN) is a widely adopted framework toward this task for its better representation ability on local style patterns than the traditional Gram-matrix based methods. However, most previous methods rely on sufficient amount of pre-collected style images to train the model. In this paper, a novel Patch Permutation GAN (P$^2$-GAN) network that can efficiently learn the stroke style from a single style image is proposed. We use patch permutation to generate multiple training samples from the given style image. A patch discriminator that can simultaneously process patch-wise images and natural images seamlessly is designed. We also propose a local texture descriptor based criterion to quantitatively evaluate the style transfer quality. Experimental results showed that our method can produce finer quality re-renderings from single style image with improved computational efficiency compared with many state-of-the-arts methods.

Motivation & Objective

  • To address the challenge of training GAN-based style transfer models with only one style image, avoiding the need for large, diverse style image collections.
  • To improve the fidelity of local style transfer (e.g., brushstrokes) by focusing on patch-level texture learning rather than global content inference.
  • To enhance computational efficiency by designing a lightweight, feed-forward generator and a patch discriminator that processes both patches and full images seamlessly.
  • To provide a controllable, user-directed style transfer system where the output precisely matches the user-specified single style image.

Proposed method

  • A patch permutation module generates multiple training samples by randomly cropping and reassembling patches from a single style image into a larger, permuted image.
  • The generator network uses an encoder-decoder architecture with residual blocks to preserve content while transferring style, optimized for fast inference.
  • A novel patch discriminator (Dₚ) is designed to jointly process both patch-wise and full-resolution images, enabling end-to-end training with consistent supervision.
  • A local texture descriptor based on LBP (Local Binary Pattern) is used as a perceptual loss to measure and optimize style similarity at the patch level.
  • The overall GAN loss combines adversarial loss, content loss, and the LBP-based style loss, with hyperparameter λ tuned for optimal trade-off.
  • Training is performed using RMSProp on a single GPU, with the model converging in ~20 minutes per style.

Experimental results

Research questions

  • RQ1Can a GAN-based style transfer model achieve high-quality results when trained on only one style image, avoiding distribution collapse?
  • RQ2How can patch-level data augmentation from a single image improve the learning of local stroke patterns in style transfer?
  • RQ3Can a unified discriminator effectively process both natural images and patch-wise inputs to improve training stability and efficiency?
  • RQ4To what extent does the proposed LBP-based loss improve the fidelity of local texture transfer compared to Gram-matrix or perceptual losses?
  • RQ5How does the computational efficiency of the proposed method compare to existing state-of-the-art GAN-based and non-GAN-based style transfer models?

Key findings

  • The proposed method achieved the lowest LBP-based style similarity score (0.756 ± 0.22), indicating the highest texture fidelity to the source style image, outperforming JohnsonNet (0.790 ± 0.33) and TextureNetIN (0.776 ± 0.35).
  • MGAN [6], a prior GAN-based method, had the highest score (0.963 ± 0.37), indicating the poorest style similarity, suggesting it may have learned unintended or inconsistent patterns.
  • The model achieved real-time performance of over 20 FPS on 1024×1024 images, significantly outperforming JohnsonNet (128 ms), TextureNetIN (137 ms), and MGAN (40.7 ms) on the same resolution.
  • On 512×512 images, the method was 2.3× faster than MGAN and 2.2× faster than TextureNetIN, demonstrating superior computational efficiency.
  • The method reduced computational cost by 30–50% compared to state-of-the-art methods while maintaining or improving style transfer quality.
  • The ablation study confirmed that patch permutation and the patch discriminator were critical for learning fine-grained stroke patterns and avoiding global structure leakage.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.