All-to-key Attention for Arbitrary Style Transfer
Mingrui Zhu, Xiao He, Nannan Wang, Xiaoyu Wang, Xinbo Gao
Abstract
Attention-based arbitrary style transfer studies have shown promising performance in synthesizing vivid local style details. They typically use the all-to-all attention mechanism—each position of content features is fully matched to all positions of style features. However, all-to-all attention tends to generate distorted style patterns and has quadratic complexity, limiting the effectiveness and efficiency of arbitrary style transfer. In this paper, we propose a novel all-to-key attention mechanism—each position of content features is matched to stable key positions of style features—that is more in line with the characteristics of style transfer. Specifically, it integrates two newly proposed attention forms: distributed and progressive attention. Distributed attention assigns attention to key style representations that depict the style distribution of local regions; Progressive attention pays attention from coarse-grained regions to fine-grained key positions. The resultant module, dubbed StyA2K, shows extraordinary performance in preserving the semantic structure and rendering consistent style patterns. Qualitative and quantitative comparisons with state-of-the-art methods demonstrate the superior performance of our approach. Codes and models are available on https://github.com/LearningHx/StyA2K.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext b338ff84-12e5-4768-a2b8-6bfdef020bfcCited by top-tier papers6
- ChromaFusionNet (CFNet): Natural Fusion of Fine-Grained Color EditingYi Dong, Yuxi Wang, Ruoxi Fan, Wenqi Ouyang et al.AAAI 2024 · 2 citations
- AStF: Motion Style Tranfer via Adaptive Statistics FusorHanmo Chen, Chenghao Xu, Jiexi Yan, Cheng DengACM MM 2025 · 1 citation
- SaMam: Style-aware State Space Model for Arbitrary Image Style TransferHongda Liu, Longguang Wang, Ye Zhang, Ziru Yu et al.CVPR 2025
- Generate Like Experts: Multi-Stage Font Generation by Incorporating Font Transfer Process into Diffusion ModelsBin Fu, Fanghua Yu, Anran Liu, Zixuan Wang et al.CVPR 2024
- GenColor: Generative and Expressive Color Enhancement with Pixel-Perfect Texture PreservationYi Dong, Yuxi Wang, Xianhui Lin, Wenqi Ouyang et al.NeurIPS 2025
Builds on17
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- AdaAttN: Revisit Attention Mechanism in Arbitrary Neural Style TransferSonghua Liu, Tianwei Lin, Dongliang He, Fu Li et al.ICCV 2021 · 421 citations
- StyTr2: Image Style Transfer with TransformersYingying Deng, Fan Tang, Weiming Dong, Chongyang Ma et al.CVPR 2022 · 345 citations
- Exact Feature Distribution Matching for Arbitrary Style Transfer and Domain GeneralizationYabin Zhang, Minghan Li, Ruihuang Li, Kui Jia et al.CVPR 2022 · 217 citations
Related papers
- SCSA: A Plug-and-Play Semantic Continuous-Sparse Attention for Arbitrary Semantic Style TransferChunnan Shang, Zhizhong Wang, Hongwei Wang, Xiangming MengCVPR 2025
- Arbitrary Style Transfer via Multi-Adaptation NetworkYingying Deng, Fan Tang, Weiming Dong, Wen Sun et al.ACM MM 2020 · 194 citations
- TSSAT: Two-Stage Statistics-Aware Transformation for Artistic Style TransferHaibo Chen, Lei Zhao, Jun Li, Jian YangACM MM 2023 · 21 citations
- AesUST: Towards Aesthetic-Enhanced Universal Style TransferZhizhong Wang, Zhanjie Zhang, Lei Zhao, Zhiwen Zuo et al.ACM MM 2022 · 70 citations
- HSI: A Holistic Style Injector for Arbitrary Style TransferShuhao Zhang, Hui Kang, Yang Liu, Fang Mei et al.CVPR 2025
