AttenST: A Training-Free Attention-Driven Style Transfer Framework with Pre-Trained Diffusion Models
Bo Huang, Wenlun Xu, Qizhuo Han, Haodong Jing, Ying Li
TL;DR
AttenST tackles the high computational cost and content degradation of diffusion-based style transfer by introducing a training-free framework that leverages attention mechanisms. It combines four components—style-guided self-attention, style-preserving inversion, Content-Aware AdaIN, and Dual-Feature Cross-Attention—built on pre-trained diffusion models to balance content fidelity and stylistic expression. Empirical results on MS-COCO and WikiArt using SDXL show state-of-the-art FID, LPIPS, and ArtFID metrics, with ablations confirming the contribution of each component. The approach enables efficient, high-quality style transfer without fine-tuning, broadening the practical deployment of diffusion-based stylization.
Abstract
While diffusion models have achieved remarkable progress in style transfer tasks, existing methods typically rely on fine-tuning or optimizing pre-trained models during inference, leading to high computational costs and challenges in balancing content preservation with style integration. To address these limitations, we introduce AttenST, a training-free attention-driven style transfer framework. Specifically, we propose a style-guided self-attention mechanism that conditions self-attention on the reference style by retaining the query of the content image while substituting its key and value with those from the style image, enabling effective style feature integration. To mitigate style information loss during inversion, we introduce a style-preserving inversion strategy that refines inversion accuracy through multiple resampling steps. Additionally, we propose a content-aware adaptive instance normalization, which integrates content statistics into the normalization process to optimize style fusion while mitigating the content degradation. Furthermore, we introduce a dual-feature cross-attention mechanism to fuse content and style features, ensuring a harmonious synthesis of structural fidelity and stylistic expression. Extensive experiments demonstrate that AttenST outperforms existing methods, achieving state-of-the-art performance in style transfer dataset.
