Untwisting RoPE: Frequency Control for Shared Attention in DiTs
Not on the map. Why?
Abstract (arXiv)
Positional encodings are essential to transformer-based generative models, yet their behavior in multimodal and attention-sharing settings is not fully understood. In this work, we present a principled analysis of Rotary Positional Embeddings (RoPE), showing that RoPE naturally decomposes into frequency components with distinct positional sensitivities. We demonstrate that this frequency structure explains why shared-attention mechanisms, where a target image is generated while attending to tokens from a reference image, can lead to reference copying, in which the model reproduces content from the reference instead of extracting only its stylistic cues. Our analysis reveals that the high-frequency components of RoPE dominate the attention computation, forcing queries to attend mainly to spatially aligned reference tokens and thereby inducing this unintended copying behavior. Building on these insights, we introduce a method for selectively modulating RoPE frequency bands so that attention reflects semantic similarity rather than strict positional alignment. Applied to modern transformer-based diffusion architectures, where all tokens share attention, this modulation restores stable and meaningful shared attention. As a result, it enables effective control over the degree of style transfer versus content copying, yielding a proper style-aligned generation process in which stylistic attributes are transferred without duplicating reference content.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 29 of its 51 references that are in the map. First posted on arXiv 4 Feb 2026.
Builds on
29 of 51 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,510
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
- 2017Arbitrary Style Transfer in Real-time with Adaptive Instance Normalizationcited by 1,998
- 2025Qwen-Image Technical Reportcited by 973
- 2025FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Spacecited by 960
- 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 722
17 more
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2023FateZero: Fusing Attentions for Zero-shot Text-based Video Editingcited by 462
- 2023TokenFlow: Consistent Diffusion Features for Consistent Video Editingcited by 440
- 2024Taming Rectified Flow for Inversion and Editingcited by 200
- 2024AC3D: Analyzing and Improving 3D Camera Control in Video Diffusion Transformerscited by 151
- 2023Cross-Image Attention for Zero-Shot Appearance Transfercited by 135
- 2024Implicit Style-Content Separation using B-LoRAcited by 135
- 2024Training-Free Consistent Text-to-Image Generationcited by 123
- 2023Inversion-Free Image Editing with Natural Languagecited by 106
- 2024StyleMaster: Stylize Your Video with Artistic Generation and Translationcited by 47
- 2025FreeFlux: Understanding and Exploiting Layer-Specific Roles in RoPE-Based MMDiT for Versatile Image Editingcited by 21
- 2024Consolidating Attention Features for Multi-view Image Editingcited by 19
- 2024Build-A-Scene: Interactive 3D Layout Control for Diffusion-Based Image Generationcited by 18
- 2025DyPE: Dynamic Position Extrapolation for Ultra High Resolution Diffusioncited by 13
- 2024Z-STAR+: A Zero-shot Style Transfer Method via Adjusting Style Distributioncited by 4
- 2025The Devil is in Attention Sharing: Improving Complex Non-rigid Image Editing Faithfulness via Attention Synergycited by 2
- 2025Griffin: Generative Reference and Layout Guided Image Compositioncited by 1
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026FreeStyle: Free Control of Style-Content Dual-Reference Generation from Community LoRA Miningcited by 0
- 2026StyleComposer: Training-Free Multi-Reference Style Compositioncited by 0
- 2026An Evaluation Framework for Generating Multi-View Images of a Person in a Scenecited by 0
- 2026Soundwich: Video Generation with Layered and Controllable Audiocited by 0
- 2026Soundwich: Video Generation with Layered and Controllable Audio30 Sep 2026
- 2026An Evaluation Framework for Generating Multi-View Images of a Person in a Scene4 Sep 2026
- 2026StyleComposer: Training-Free Multi-Reference Style Composition5 Aug 2026
- 2026FreeStyle: Free Control of Style-Content Dual-Reference Generation from Community LoRA Mining18 Jun 2026