Style spectroscope: improve interpretability and controllability through Fourier analysis

Zhiyu Jin, Xuli Shen, Bin Li, Xiangyang Xue

Abstract

Universal Style Transfer (UST) often struggles with structural distortion and limited user control. We present the "Style Spectroscope," a framework that utilizes Fourier analysis to decouple image structure from artistic style. By demonstrating that Fourier phase corresponds to content and amplitude to style, we introduce two training-free modules—Phase Replacement and Frequency Combination—that significantly enhance the quality and flexibility of existing UST models.

Introduction

Universal Style Transfer (UST) aims to synthesize images that combine the content of one image with the style of another. Despite the success of methods like AdaIN and WCT, they frequently suffer from two primary issues: structural artifacts where content becomes unrecognizable, and a lack of localized control over stylization. This work addresses these challenges by analyzing the UST process in the frequency domain.

Theoretical Framework: The Fourier Perspective

The researchers establish a mathematical equivalence between spatial-domain UST transformations and frequency-domain manipulations. Using the Discrete Fourier Transform (DFT), they prove two key properties:

  1. Phase encodes Structure: The content reconstruction loss is minimized when the Fourier phases of the content and stylized images are identical.
  2. Amplitude encodes Style: Style loss is primarily a function of the Fourier amplitude.

This insight explains why algorithms like WCT, which use non-diagonal matrices to transform feature channels, often distort images: they inadvertently corrupt the phase information during the whitening and coloring process.

Proposed Methodology

The "Style Spectroscope" introduces two "plug-and-play" modules that can be integrated into existing UST frameworks without additional training:

  • Phase Replacement (PR): A post-processing step that restores the original content's Fourier phase to the stylized output. This "locks" the geometric structure in place while allowing the style (amplitude) to remain.
  • Frequency Combination: A mechanism to weight stylization intensity across different frequency bands. This allows users to selectively stylize specific scales—for instance, preserving the realism of high-frequency details while applying broad stylistic strokes to low-frequency components.

Results and Discussion

Evaluation on MS-COCO and WikiArt datasets shows that these modules improve Structural Similarity (SSIM) by 7.15% and Perceptual Similarity (LPIPS) by 7.03% on average. User studies confirm a strong preference for the PR-enhanced results, particularly in preserving facial features and complex geometries that often "melt" in standard WCT outputs. Furthermore, the modules are highly efficient, adding negligible latency (approximately 0.01s) to the inference pipeline.

Conclusion

The Style Spectroscope provides a robust theoretical foundation for understanding and improving UST. By leveraging the properties of the Fourier domain, the proposed method achieves superior structural preservation and enhanced controllability without the need for expensive model retraining.

Summary updated

BibTeX
@article{jin2024style,
  author = {Zhiyu Jin and Xuli Shen and Bin Li and Xiangyang Xue},
  title = {{Style spectroscope: improve interpretability and controllability through Fourier analysis}},
  journal = {Machine Learning},
  year = {2024},
  doi = {10.1007/s10994-023-06435-5},
}
Figure