StyleID++: Position-Decoupled and Structure-Coherent Style Retrieval across Diffusion Architectures
Organizations: University of Tsukuba
Abstract
Attention injection offers a remarkably simple route to training-free style transfer: content queries retrieve style keys and values inside a pretrained diffusion model. We show that this operation also creates an overlooked failure mode. Position signals that are useful within one image become a spurious shared coordinate system across two spatially unrelated images, causing content tokens to favor style tokens at similar coordinates. This cross-image positional leakage appears in both convolutional U-Nets and diffusion transformers (DiTs), despite their different position mechanisms. Removing the positional shortcut exposes a second problem: unconstrained global retrieval lets related content tokens select incompatible style regions, producing fragmented appearance. We present StyleID++, a training-free framework that addresses the two problems jointly. Position-Decoupled Retrieval reduces coordinate-dependent matching through circular padding in U-Nets and injection-only RoPE removal in DiTs, while preserving native position modeling elsewhere. Affinity-Coherent Refinement then regularizes style assignments with the content self-attention graph, encouraging structurally related tokens to retrieve compatible style evidence. We quantify the leakage with a coordinate--centroid correlation and a permutation test on the style reference. The permutation error can be driven to zero in both backbones, which identifies the position mechanism as the carrier of the leakage, and StyleID++ obtains the best ArtFID of all methods we compare.
Figures & tables
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| ArtFID | FID | LPIPS | ||
|---|---|---|---|---|
| 0.10 | 0.10 | 20.947 | 13.221 | 0.473 |
| 0.10 | 0.15 | 21.064 | 13.310 | 0.472 |
| 0.10 | 0.20 | 21.126 | 13.352 | 0.472 |
| 0.20 | 0.10 | 20.934 | 13.221 | 0.472 |
| 0.20 | 0.15 | 21.014 | 13.286 | 0.471 |
| 0.20 | 0.20 | 21.102 | 13.345 | 0.471 |
| Parameter | Value | ArtFID | FID | LPIPS |
|---|---|---|---|---|
| 8 | 20.894 | 13.197 | 0.472 | |
| 16 | 20.952 | 13.251 | 0.470 | |
| 24 | 21.014 | 13.315 | 0.468 | |
| 8 | 20.945 | 13.258 | 0.469 | |
| 16 | 20.894 | 13.197 | 0.472 | |
| 24 | 20.882 | 13.166 | 0.474 |
| ArtFID | FID | LPIPS | |||
|---|---|---|---|---|---|
| 256 / 256 | 0.10 | 0.10 | 27.908 | 19.581 | 0.356 |
| 0.10 | 0.20 | 26.401 | 18.117 | 0.381 | |
| 0.20 | 0.10 | 27.947 | 19.625 | 0.355 | |
| 0.20 | 0.20 | 26.280 | 18.047 | 0.380 | |
| 0.30 | 0.10 | 28.151 | 19.760 | 0.356 | |
| 0.30 | 0.20 | 26.404 | 18.119 | 0.381 |
| Method | Res. | Steps | Time (s) | OH | Mem (GB) | Params (B) |
| U-Net backbone | ||||||
| StyleID(CVPR’23) [ 1 ] | 50 | 2.8 | – | 8.32 | 1.07 | |
| StyleSSP(CVPR’24) [ 27 ] | 50 | 23.5 | +739.3% | 41.80 | 18.99 | |
| StyleID++(SDXL) | 20 | 5.5 | +96.4% | 22.87 | 3.47 | |
| DiT backbone | ||||||
| USO(CVPR’25) [ 25 ] | 25 | 14.2 | +407.1% | 44.20 | 17.55 | |
Image Style Transfer
Image style transfer changes an image’s visual appearance to match an artistic, photographic, or other reference while preserving its content.
See all 69 papers