StyleStegan: Leak-free Style Transfer Based on Feature Steganography

Xiujian Liang, Bingshan Liu, Qichao Ying, Zhenxing Qian, Hsunfang Cho, Xinpeng Zhang

Abstract

Neural style transfer has revolutionized digital art by allowing the application of artistic textures to arbitrary photographs. However, traditional architectures often suffer from "content leakage," where the original image's spatial details are corrupted or lost during the transformation process. This paper introduces StyleStegan, a novel framework designed to achieve leak-free style transfer. By integrating reversible neural flow networks with feature steganography, StyleStegan preserves original content features within the stylized output. This approach enables near-perfect image reconstruction (de-styling) and high-quality serial stylization, outperforming existing state-of-the-art methods in both quantitative metrics and visual fidelity.

1. Introduction

While AI-driven style transfer has become a staple of creative computing, it remains plagued by a fundamental technical limitation: the loss of content information. Most standard models utilize lossy encoder-decoder architectures, such as those based on VGG19. During the encoding process, subtle textures and critical spatial details of the source image are often discarded.

This "content leakage" becomes particularly problematic in two specific use cases:

  1. Serial Stylization: Applying multiple styles sequentially to an image leads to compounding artifacts, eventually rendering the original subject unrecognizable.
  2. Reverse Stylization (De-styling): Recovering the original photograph from a stylized version is often impossible with traditional methods, resulting in blurry or inconsistent reconstructions.

StyleStegan addresses these challenges by treating style transfer not just as a generative task, but as an information preservation task.

2. Methodology

StyleStegan employs a two-stage architecture that ensures information integrity throughout the stylization pipeline.

2.1 Reversible Style Transfer Stage

To prevent the initial loss of data, StyleStegan replaces standard convolutional encoders with a reversible neural flow network (inspired by the Glow architecture). Because these networks are mathematically bijective, they map images to a latent space without any information loss.

Within this latent space, the framework utilizes an AdaIN-based (Adaptive Instance Normalization) module. The authors provide a formal proof demonstrating that AdaIN serves as an "unbiased" transfer module, effectively separating content and style factors without destroying the underlying structural data of the content image.

2.2 Feature Steganography Stage

The core innovation of StyleStegan is the use of feature steganography to "hide" the original content. After the image is stylized, a steganographic encoder embeds the latent content features ($z_c$) directly into the stylized image's pixel data.

To the human eye, the output appears to be a standard piece of AI-generated art. However, the image secretly carries the "DNA" of the original photo. An authorized user equipped with the corresponding steganographic decoder can extract these hidden features to perfectly reconstruct the original image or apply a subsequent style without the degradation typically seen in iterative processing.

3. Experimental Setup

The model was trained and rigorously evaluated using two large-scale datasets:

  • MS-COCO: 20,000 images served as the source for "content."
  • WikiArt: 20,000 images provided the artistic "styles."

Testing was conducted on a separate holdout set of 1,000 content and 1,000 style images to evaluate the model's ability to generalize to unseen artistic movements and photographic subjects.

4. Results and Discussion

StyleStegan was benchmarked against industry standards, including Gatys et al., AdaIN, and the methods proposed by Chen et al.

4.1 Quantitative Performance

The framework demonstrated significant improvements across several key metrics:

  • Structural Similarity Index (SSIM): In serial style transfer tasks, StyleStegan achieved an SSIM 14.98% higher than the leading baseline. In de-styling tasks, it maintained a 7.28% lead.
  • Perceptual Quality: The model consistently outperformed competitors in L2 distance and LPIPS (Learned Perceptual Image Patch Similarity), indicating higher pixel-level accuracy and better visual alignment with human perception.

4.2 Qualitative Advantages

Visual analysis confirms that while traditional methods produce "strange artistic patterns" and heavy artifacts after multiple rounds of stylization, StyleStegan maintains sharp, recognizable content features. The ability to "lock" the original content within the style also suggests applications in usage rights control, where only authorized users can revert a stylized image to its original form.

5. Conclusion and Future Work

StyleStegan represents a significant shift in style transfer research by prioritizing information reversibility. By leveraging flow-based models and steganography, it solves the long-standing problem of content leakage.

Future research will focus on improving the computational efficiency of reversible flow networks, which are currently more resource-intensive than standard CNNs. Additionally, the authors aim to test the robustness of the steganographic features against common image perturbations, such as JPEG compression encountered on social media platforms.

Summary updated

BibTeX
@inproceedings{liang2023stylestegan,
  author = {Xiujian Liang and Bingshan Liu and Qichao Ying and Zhenxing Qian and Hsunfang Cho and Xinpeng Zhang},
  title = {{StyleStegan: Leak-free Style Transfer Based on Feature Steganography}},
  booktitle = {APSIPA ASC},
  year = {2023},
  doi = {10.1109/apsipaasc58517.2023.10317570},
}
Figure