Wasserstein Style Distribution Analysis and Transform for Stylized Image Generation

Xi Yu, Xiang Gu, Zhihao Shi, Jian Sun
1/1/2025
diffusion-flowtransformer-attention

No official code found. Best implementation: RainbowYX/WSDT (5 stars, Apache-2.0, last commit 2025-10-27).

Abstract

Large-scale text-to-image diffusion models have achieved remarkable success in image generation, thereby driving the development of stylized image generation technologies. Recent studies introduce style information by empirically replacing specific features in attention blocks with style features.

Show full abstract

However, the relationship between features and style remains unclear. In this paper, we systematically analyze the relationship between features in attention blocks and style. By quantifying the distribution discrepancy induced by style variations using the Wasserstein distance, we find that features in self-attention blocks exhibit high sensitivity to style compared to features in cross-attention blocks. Our analysis provides valuable insights into the contribution of different features to style. Based on our findings, we propose a novel Wasserstein Style Distribution Transform (WSDT) method, which generates stylized images by transforming the distribution of style-sensitive features to align with that of style features. WSDT applies channel adaptive distribution transform to ensure that information not related to the style is not introduced. Our approach is simple yet efficient, optimization-free, and can be seamlessly integrated into attention-based text-to-image diffusion models. Extensive experiments demonstrate the effectiveness of our approach in stylized image generation tasks.

Semantic Scholar

Code Implementations(1)

RainbowYX/WSDTCommunity62%
Apache-2.0

Official Pytorch Implementation for "Wasserstein Style Distribution Analysis and Transform for Stylized Image Generation"

50Oct 7, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{yu2025wasserstein,
  title  = {Wasserstein Style Distribution Analysis and Transform for Stylized Image Generation},
  author = {Xi Yu and Xiang Gu and Zhihao Shi and Jian Sun},
  year   = {2025},
  url    = {https://api.semanticscholar.org/CorpusID:affd08d00413c95b1c6c1c665f55de81d85378de},
  journal = {IEEE International Conference on Computer Vision}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/affd08d00413c95b1c6c1c665f55de81d85378de.svg)](https://codeofpaper.com/paper/affd08d00413c95b1c6c1c665f55de81d85378de)

Discussion