cs.CVMar 25, 2026

HAM: A Training-Free Style Transfer Approach via Heterogeneous Attention Modulation for Diffusion Models

Authors: Yeqi He, Liang Li, Zhiwen Yang, Xichun Sheng, Zhidong Zhao, Chenggang Yan

Organizations: Hangzhou Dianzi University · Institute of Computing Technology, Chinese Academy of Sciences · Macao Polytechnic University

Abstract

Diffusion models have demonstrated remarkable performance in image generation, particularly within the domain of style transfer. Prevailing style transfer approaches typically leverage pre-trained diffusion models' robust feature extraction capabilities alongside external modular control pathways to explicitly impose style guidance signals. However, these methods often fail to capture complex style reference or retain the identity of user-provided content images, thus falling into the trap of style-content balance. Thus, we propose a training-free style transfer approach via h\textbf{h}eterogeneous a\textbf{a}ttention m\textbf{m}odulation (HAM\textbf{HAM}) to protect identity information during image/text-guided style reference transfer, thereby addressing the style-content trade-off challenge. Specifically, we first introduces style noise initialization to initialize latent noise for diffusion. Then, during the diffusion process, it innovatively employs HAM for different attention mechanisms, including Global Attention Regulation (GAR) and Local Attention Transplantation (LAT), which better preserving the details of the content image while capturing complex style references. Our approach is validated through a series of qualitative and quantitative experiments, achieving state-of-the-art performance on multiple quantitative metrics.

Figures & tables

Explore similar work

CardsList
  1. TRACE: Time-Adaptive Residual Attention Control with Content-Style Decomposition for Training-Free Diffusion Style Transfer

    Oct 4, 2026Duc Khoan Le, Kim Ngoc Tran, Minh Nhat Le +5Image Style TransferDiffusion Model Guidance

  2. MAST: Mask-Guided Attention Control for Training-Free Regional-Multi Style Transfer

    Apr 14, 2026Dongkyung Kang, Jaeyeon Hwang, Junseo Park +6Image Style TransferAttention Control in Diffusion Models

  3. SafeStyle: Calibrated Style Residual Injection for Controllable Style-Leakage Trade-off in Diffusion Stylization

    Sep 18, 2026Zhangping Yang, Min Li, Song Yan +4Image Style TransferDiffusion-Based Image Editing