Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Attention Distillation: A Unified Approach to Visual Characteristics Transfer

About

Recent advances in generative diffusion models have shown a notable inherent understanding of image style and semantics. In this paper, we leverage the self-attention features from pretrained diffusion networks to transfer the visual characteristics from a reference to generated images. Unlike previous work that uses these features as plug-and-play attributes, we propose a novel attention distillation loss calculated between the ideal and current stylization results, based on which we optimize the synthesized image via backpropagation in latent space. Next, we propose an improved Classifier Guidance that integrates attention distillation loss into the denoising sampling process, further accelerating the synthesis and enabling a broad range of image generation applications. Extensive experiments have demonstrated the extraordinary performance of our approach in transferring the examples' style, appearance, and texture to new images in synthesis. Code is available at https://github.com/xugao97/AttentionDistillation.

Yang Zhou, Xu Gao, Zichong Chen, Hui Huang• 2025

Related benchmarks

TaskDatasetResultRank
Style TransferMS-COCO and WikiArt 1,000 images each
ArtFID16.17
11
Image Style TransferStyle Transfer 750 images (test)
Style Score0.5249
10
Style TransferStyle Transfer Evaluation Set (test)
Style Score85.59
8
Style TransferPinterest Styles 1.0 (test)
CSD0.64
8
Style TransferBCS-Bench
DINO0.6111
8
Style TransferUser Study
Rank 1 Score9.17
8
Style TransferUser Study 10 style transfer results (test)
Visual Preference Score3.77
3
Showing 7 of 7 rows

Other info

Code

Follow for update