One Attention, One Scale: Phase-Aligned Rotary Positional Embeddings for Mixed-Resolution Diffusion Transformer
Haoyu Wu, Jingyi Xu, Qiaomu Miao, Dimitris Samaras, Hieu Le
TL;DR
This work identifies a fundamental failure mode of RoPE-based attention in diffusion transformers when running mixed-resolution denoising, caused by cross-rate phase aliasing from naive interpolation. It introduces Cross-Resolution Phase-Aligned Attention (CRPA), a training-free, drop-in mechanism that reindexes RoPE phases onto the query grid so equal physical distances produce identical phase increments, thereby stabilizing all heads across resolutions. An optional Boundary Expand-and-Replace step further harmonizes textures around resolution boundaries. Together, CRPA and boundary expansion enable stable, high-fidelity image and video generation with mixed-resolution diffusion transformers and offer practical gains in efficiency by focusing high resolution where it matters most.
Abstract
We identify a core failure mode that occurs when using the usual linear interpolation on rotary positional embeddings (RoPE) for mixed-resolution denoising with Diffusion Transformers. When tokens from different spatial grids are mixed, the attention mechanism collapses. The issue is structural. Linear coordinate remapping forces a single attention head to compare RoPE phases sampled at incompatible rates, creating phase aliasing that destabilizes the score landscape. Pretrained DiTs are especially brittle-many heads exhibit extremely sharp, periodic phase selectivity-so even tiny cross-rate inconsistencies reliably cause blur, artifacts, or full collapse. To this end, our main contribution is Cross-Resolution Phase-Aligned Attention (CRPA), a training-free drop-in fix that eliminates this failure at its source. CRPA modifies only the RoPE index map for each attention call: all Q/K positions are expressed on the query's stride so that equal physical distances always induce identical phase increments. This restores the precise phase patterns that DiTs rely on. CRPA is fully compatible with pretrained DiTs, stabilizes all heads and layers uniformly. We demonstrate that CRPA enables high-fidelity and efficient mixed-resolution generation, outperforming previous state-of-the-art methods on image and video generation.
