Skip to main content
QUICK REVIEW

[Paper Review] FreeStyle: Free Lunch for Text-guided Style Transfer using Diffusion Models

Feihong He, Gang Li|arXiv (Cornell University)|Jan 28, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

FreeStyle proposes a training-free, reference-free text-guided style transfer method using pre-trained diffusion models by introducing a dual-stream encoder and single-stream decoder that decouple content and style features. It achieves state-of-the-art performance in style transfer quality, content preservation, and aesthetic fidelity without optimization or style images, leveraging only text prompts and adjustable scaling factors.

ABSTRACT

The rapid development of generative diffusion models has significantly advanced the field of style transfer. However, most current style transfer methods based on diffusion models typically involve a slow iterative optimization process, e.g., model fine-tuning and textual inversion of style concept. In this paper, we introduce FreeStyle, an innovative style transfer method built upon a pre-trained large diffusion model, requiring no further optimization. Besides, our method enables style transfer only through a text description of the desired style, eliminating the necessity of style images. Specifically, we propose a dual-stream encoder and single-stream decoder architecture, replacing the conventional U-Net in diffusion models. In the dual-stream encoder, two distinct branches take the content image and style text prompt as inputs, achieving content and style decoupling. In the decoder, we further modulate features from the dual streams based on a given content image and the corresponding style text prompt for precise style transfer. Our experimental results demonstrate high-quality synthesis and fidelity of our method across various content images and style text prompts. Compared with state-of-the-art methods that require training, our FreeStyle approach notably reduces the computational burden by thousands of iterations, while achieving comparable or superior performance across multiple evaluation metrics including CLIP Aesthetic Score, CLIP Score, and Preference. We have released the code at: https://github.com/FreeStyleFreeLunch/FreeStyle.

Motivation & Objective

  • To address the high computational cost and slow optimization process of existing diffusion-based style transfer methods that require fine-tuning or textual inversion.
  • To enable text-guided style transfer without requiring reference style images, making it accessible for users without access to artistic works.
  • To achieve high-quality style transfer by decoupling content and style representations using a dual-stream architecture within a pre-trained diffusion model.
  • To maintain strong content preservation and artistic consistency while enabling seamless integration with existing large-scale text-to-image diffusion models like SDXL.

Proposed method

  • FreeStyle employs a dual-stream encoder that separately processes the content image and style text prompt, extracting modality-specific features for content and style.
  • The method uses a single-stream decoder that fuses and modulates features from both streams using two scaling factors: one for style transfer strength and one for content preservation.
  • The scaling factors b and s are used to balance low-frequency (content) and high-frequency (style) features, inspired by FreeU, to improve generation quality.
  • The framework operates without parameter updates, relying solely on the intrinsic style generation capabilities of pre-trained diffusion models such as SDXL.
  • Hyperparameters σ, b, and s are tuned to control noise injection and feature modulation, with σ governing the noise level in the denoising process.
  • The method avoids introducing new parameters by reusing U-Net modules, ensuring compatibility and efficiency.
Figure 1: Illustration depicting process distinctions among Finetune-based, Inversion-based, and our FreeStyle. (a) Fine-tuning the entire model or specific parameters allows embedding a given visual style into the output domain of the generated diffusion model. (b) Embed specific style or content i
Figure 1: Illustration depicting process distinctions among Finetune-based, Inversion-based, and our FreeStyle. (a) Fine-tuning the entire model or specific parameters allows embedding a given visual style into the output domain of the generated diffusion model. (b) Embed specific style or content i

Experimental results

Research questions

  • RQ1Can text-guided style transfer be achieved without any optimization or reference style images?
  • RQ2How effectively can a pre-trained diffusion model generate diverse artistic styles using only text prompts?
  • RQ3To what extent can content and style be disentangled in a diffusion model using a dual-stream architecture?
  • RQ4How robust is the method to hyperparameter variations in scaling factors and noise injection?
  • RQ5Does the method outperform existing optimization-based and inversion-based style transfer techniques in both quantitative and qualitative metrics?

Key findings

  • FreeStyle achieves the highest CLIP aesthetic score (6.3148) and CLIP score (25.615), outperforming all baselines including CLIPstyler, CAST, and UDT2I.
  • In human preference evaluations, FreeStyle was ranked first in 54.6% of comparisons, significantly outperforming other methods.
  • The method demonstrates strong robustness to hyperparameter variations, with optimal performance at b=2.5 and s=1, and stable results across a wide range of settings.
  • Content-style disentanglement is validated by showing that increasing noise in the content input (ρ=999) eliminates content information while preserving style features like brushstrokes and lines.
  • When σ exceeds 850, style transfer quality improves, but performance degrades sharply when σ is too small, indicating sensitivity to noise level in the denoising process.
  • FreeStyle achieves state-of-the-art results without any fine-tuning, inversion, or reference images, marking a significant step toward truly free lunch style transfer.
Figure 2: The overview of our FreeStyle Framework. (a) Model Structure of FreeStyle. Our dual-stream encoder generates the content feature $f_{c}$ guided by the input content image $x_{0}$ , and the style feature $f_{s}$ guided by the input style text prompt and noisy image $x_{\sigma}$ . In the sin
Figure 2: The overview of our FreeStyle Framework. (a) Model Structure of FreeStyle. Our dual-stream encoder generates the content feature $f_{c}$ guided by the input content image $x_{0}$ , and the style feature $f_{s}$ guided by the input style text prompt and noisy image $x_{\sigma}$ . In the sin

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.