Consistent Style Transfer

Xuan Luo, Zhen Han, Lingkang Yang, Lingling ZhangarXiv 2022

Introduction

Arbitrary style transfer aims to synthesize a new image that combines the semantic content of one image with the artistic style of another. While recent attention-based methods have made significant strides, they often suffer from a lack of regional consistency. Because these models typically match individual feature points independently, they ignore the broader semantic structure—or "manifolds"—of the image. This results in artifacts where a single uniform area, such as a clear sky, is stylized with a discordant mix of patterns drawn from unrelated parts of the style image.

Progressive Attentional Manifold Alignment (PAMA)

To address these inconsistencies, this paper introduces the Progressive Attentional Manifold Alignment (PAMA) framework. PAMA moves beyond point-wise matching by iteratively aligning the feature manifolds of the content image with the most relevant manifolds in the style image.

The PAMA framework utilizes three successive Attentional Manifold Alignment (AMA) blocks for progressive feature refinement.

The architecture consists of a pre-trained VGG encoder, three successive Attentional Manifold Alignment (AMA) blocks, and a decoder. Each AMA block integrates an attention module to spatially rearrange style features and a space-aware interpolation module to adaptively blend them with content features.

A key innovation is the use of a multistage loss function. In the initial stages, a high self-similarity loss is enforced to preserve the content's structural integrity. As features progress through the blocks, this constraint is gradually relaxed, allowing more complex and vivid stylistic patterns to emerge. Additionally, an image reconstruction loss ensures that manipulated features remain within the valid VGG feature space, preventing the degradation common in previous attention-based models.

Experimental Results

The PAMA model was trained on the COCO and WikiArt datasets and evaluated against several state-of-the-art baselines, including AdaIN, SANet, and AdaAttN.

Qualitative comparison of PAMA against state-of-the-art methods across diverse content and style pairs.

Qualitative Performance

As shown in the comparisons, PAMA produces significantly cleaner results with fewer visual artifacts. It maintains high regional consistency, ensuring that semantic areas like faces, skies, and buildings receive uniform and appropriate stylization. Unlike competing methods that may introduce "salt-and-pepper" noise or mismatched textures, PAMA respects the underlying geometry of the content image.

Efficiency and User Preference

Despite its multi-stage approach, PAMA is highly efficient, achieving a throughput of 101 frames per second for 512x512 images on an NVIDIA Tesla V100. In a user study involving 100 participants and 625 generated images, PAMA was preferred over existing methods across all metrics: content preservation, style quality, regional consistency, and overall visual appeal.

Limitations and Future Work

While PAMA excels at structural consistency, the strong self-similarity constraints can occasionally lead to "color mixing," where distinct colors from the style image blend into a muddy average in the output. Although the authors integrated a differentiable color histogram loss to mitigate this, perfectly balancing structural preservation with color vibrancy remains a challenge for future research.

Summary updated

BibTeX
@misc{luo2022consistent,
  author = {Xuan Luo and Zhen Han and Lingkang Yang and Lingling Zhang},
  title = {{Consistent Style Transfer}},
  year = {2022},
  eprint = {2201.02233},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.02233},
}
Figure