Abstract
Arbitrary Style Transfer (AST) seeks to apply the artistic essence of any style image to a target content image. However, existing methods often struggle with structural distortions or poor texture consistency due to a lack of compatibility between the content and style features. We present EFANet (Exchangeable Feature Alignment Network), which jointly analyzes content-style pairs to extract mutually compatible "exchangeable" features. By integrating a novel Feature Exchange Block (FEB) and a specialized whitening loss, EFANet achieves high-quality, real-time style transfer with superior texture preservation and color distribution.
Introduction
The challenge in Arbitrary Style Transfer lies in balancing the preservation of content structure with the faithful application of artistic style. Current approaches generally follow two paths: statistical matching (e.g., AdaIN), which is efficient but often ignores semantic context, and patch swapping, which preserves local patterns but can lead to spatial artifacts. EFANet identifies a "compatibility gap" where forcing a style onto a structurally different content image leads to "instylization" issues. Instead of treating style as a static source, EFANet asks how features from both images can be aligned to ensure the style naturally "fits" the content.
Methodology
The EFANet architecture utilizes a pre-trained VGG encoder and a multi-scale decoder, enhanced by two key innovations:
Feature Exchange Block (FEB)
The FEB moves beyond simple mean and variance matching. It processes style vectors from both the content and style images through a shared neural network to disentangle them into "common features" (shared information) and "unique features" (image-specific details). By maximizing this common information, the model generates exchangeable style features that are inherently more compatible with the target content's structure.
Whitening Loss ($L_{whi}$)
Content images often possess their own inherent textures that can interfere with the style transfer process. EFANet introduces a whitening loss that encourages content features to be uncorrelated by forcing their covariance matrix toward an identity matrix. This "purification" step clears the content's existing "style," providing a clean slate for the new artistic textures.
Key Results and Discussion
EFANet was evaluated against state-of-the-art methods using the Place365 and WikiArt datasets. Qualitatively, the model produces more structured results with better texture consistency, avoiding the distorted patterns and "yellow blobs" often seen in methods like AdaIN or WCT.
Quantitatively, a user study involving 30 subjects showed a clear preference for EFANet (20%) over the next best competitor, WCT (15.5%). Despite the architectural additions, EFANet maintains real-time performance, processing images in approximately 0.023 seconds on a Titan V GPU. Furthermore, the model demonstrates flexibility through support for spatial control and style interpolation.
Conclusion
EFANet represents a significant step forward in AST by treating style transfer as a pair-specific alignment problem. By purifying content features and finding common ground through the Feature Exchange Block, the network achieves a more harmonious blend of content and style. Future work may involve integrating semantic awareness to further refine style mapping and extending the framework to ensure temporal consistency in video style transfer.
Summary updated