Skip to main content
QUICK REVIEW

[Paper Review] A Closed-form Solution to Universal Style Transfer

Ming Lu, Hao Zhao|arXiv (Cornell University)|Jun 3, 2019
Generative Adversarial Networks and Image SynthesisComputer Science31 references10 citations
TL;DR

This paper proposes Optimal Style Transfer (OST), a closed-form solution for universal style transfer by formulating feature transformation as an optimal transport problem. By integrating content loss minimization into the optimal transport framework, OST achieves superior structural preservation and visually pleasing results compared to AdaIN and WCT, offering a theoretically grounded, analytically solvable alternative to iterative or learned methods.

ABSTRACT

Universal style transfer tries to explicitly minimize the losses in feature space, thus it does not require training on any pre-defined styles. It usually uses different layers of VGG network as the encoders and trains several decoders to invert the features into images. Therefore, the effect of style transfer is achieved by feature transform. Although plenty of methods have been proposed, a theoretical analysis of feature transform is still missing. In this paper, we first propose a novel interpretation by treating it as the optimal transport problem. Then, we demonstrate the relations of our formulation with former works like Adaptive Instance Normalization (AdaIN) and Whitening and Coloring Transform (WCT). Finally, we derive a closed-form solution named Optimal Style Transfer (OST) under our formulation by additionally considering the content loss of Gatys. Comparatively, our solution can preserve better structure and achieve visually pleasing results. It is simple yet effective and we demonstrate its advantages both quantitatively and qualitatively. Besides, we hope our theoretical analysis can inspire future works in neural style transfer. Code is available at https://github.com/lu-m13/OptimalStyleTransfer.

Motivation & Objective

  • To address the lack of theoretical analysis in universal style transfer, particularly in feature transformation.
  • To unify existing methods like AdaIN and WCT under a common optimal transport framework.
  • To derive a closed-form solution that minimizes both style loss (Gatys) and content loss for better structural preservation.
  • To provide a theoretically principled, non-iterative method for universal style transfer without pre-training on specific styles.
  • To inspire future research in neural style transfer through a rigorous theoretical formulation.

Proposed method

  • Formulate universal style transfer as an optimal transport problem between multivariate Gaussian distributions of content and style features.
  • Assume linear transformation between feature distributions and derive a closed-form solution under this assumption.
  • Incorporate content loss minimization (Gatys) into the optimal transport framework to ensure structural fidelity.
  • Derive OST as the unique closed-form solution that balances style transfer and content preservation.
  • Use VGG features at multiple scales as encoders and train decoders to invert transformed features into images.
  • Apply orthogonal matrix regularization implicitly via the optimal transport constraint to ensure uniqueness and stability.

Experimental results

Research questions

  • RQ1How can feature transformation in universal style transfer be theoretically formalized beyond heuristic or learned approaches?
  • RQ2What is the mathematical relationship between existing methods like AdaIN and WCT and a unified optimal transport framework?
  • RQ3Can a closed-form solution be derived for universal style transfer that minimizes both style and content losses?
  • RQ4Does incorporating content loss into the optimal transport formulation lead to better structural preservation than existing methods?
  • RQ5To what extent does the optimal transport formulation generalize beyond the multivariate Gaussian assumption in practice?

Key findings

  • OST achieves a lower average content loss (1.05) than WCT (2.67) and AdaIN (2.00) in user studies, indicating better structural preservation.
  • OST achieves the highest average user study score (3.07) among all compared methods, demonstrating superior visual quality.
  • OST maintains similar style loss to WCT (15.85 vs. 15.9) while significantly reducing content loss, showing improved balance between style and content.
  • The method generalizes well across diverse content and style pairs, as shown in Figure 6 with α=1, producing visually pleasing results without artifacts.
  • Linear interpolation across styles (Figure 7) shows smooth transitions, confirming the method’s stability and consistency.
  • Despite improvements, frame-by-frame video style transfer still exhibits temporal jittering, indicating limitations in temporal coherence.

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.