atlas

Research map / Image generation / Editing and style transfer

Z*: Zero-shot Style Transfer via Attention Reweighting

CVPR 2024 · Image generation › Editing and style transfer · approach: Arbitrary neural style transfer · 52 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Z* performs zero-shot, training-free image style transfer by using dual DDIM-inverted denoising paths in Stable Diffusion v1.5 and a cross-attention reweighting that fuses style and content keys/values inside the softmax.

Problem

Image style transfer usually requires training networks with style losses, and existing diffusion-based style transfer methods need per-style embedding training while often losing content structure or style fidelity.

Approach

Vanilla latent diffusion models can extract style directly from a style image via dual denoising paths (DDIM inversion of content and style images) and attention injection; a reweighting that places the scaling factor λ inside the softmax (rather than naive additive blending) balances content preservation and style transfer without retraining.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Z* instead of the compared style-transfer methodsZ* · User studycontent preservation preferenceHelped
Use Z* instead of the compared style-transfer methodsZ* · User studyoverall preferenceHelped
Use Z* instead of CAST or StyTr2Z* · User studystyle representation preferenceHurt
Start attention injection later in denoising (ablation)Z* · Style-transfer examplescontent preservationHelped
Start attention injection later in denoising (ablation)Z* · Style-transfer examplesstyle patternsHurt
Increase the overall number of denoising steps with attention injection (ablation)Z* · Style-transfer examplesstyle patternsHelped
Inject attention into all U-Net layers rather than selected decoder layers (ablation)Z* · Style-transfer examplescontent structureHurt
Inject attention into low-resolution U-Net layers (layers 5-10) (ablation)Z* · Style-transfer examplesstyle patternsHurt
Inject attention into encoder layers (layers 0-5) (ablation)Z* · Style-transfer examplescontent structureHurt
Remove the content self-attention component (naive setting) (ablation)Z* · Style-transfer examplescontent preservationHurt
Replace cross-attention reweighting with simple addition of content self-attention (ablation)Z* · Style-transfer examplescontent detailsHurt
Use cross-attention reweighting instead of naive setting or simple addition (ablation)Z* · Style-transfer examplescontent-style balanceHelped

Surprising findings

Limitations

Experimental setup

Metrics: user preference votes (content, style, overall)

Baselines: ArtFlow AdaAttN IEST StyTr2 CAST QuanArt InST VCT StyleDiff

Builds on: Stable Diffusion DDIM inversion Plug-and-Play MasaCtrl Prompt-to-prompt

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy