 Arbitrary-resolution samples (5122, 512x256, 256x512, 3842, 2562, 1282). Generated by LEDiT trained on ImageNet 256x256.
    Arbitrary-resolution samples (5122, 512x256, 256x512, 3842, 2562, 1282). Generated by LEDiT trained on ImageNet 256x256.  Diffusion transformers (DiTs) struggle to generate images at resolutions higher than their training resolutions. The primary obstacle is that the explicit positional encodings(PE), such as RoPE, need extrapolation which degrades performance when the inference resolution differs from training. In this paper, we propose a Length-Extrapolatable Diffusion Transformer(LEDiT), a simple yet powerful architecture to overcome this limitation. LEDiT needs no explicit PEs, thereby avoiding extrapolation. The key innovations of LEDiT are introducing causal attention to implicitly impart global positional information to tokens, while enhancing locality to precisely distinguish adjacent tokens. Experiments on 256x256 and 512x512 ImageNet show that LEDiT can scale the inference resolution to 512x512 and 1024x1024, respectively, while achieving better image quality compared to current state-of-the-art length extrapolation methods(NTK-aware, YaRN). Moreover, LEDiT achieves strong extrapolation performance with just 100k steps of fine-tuning on a pretrained DiT, demonstrating its potential for integration into existing text-to-image DiTs.
 
             
             Qualitative comparison with other methods beyond the training resolution.
    Qualitative comparison with other methods beyond the training resolution.
     Qualitative comparison with other methods when generating non-square images.
    Qualitative comparison with other methods when generating non-square images.
   Arbitrary-resolution samples (5122, 512x384, 384x512, 3842). Generated
from LEDiT-XL/2 trained on ImageNet 256x256.
    Arbitrary-resolution samples (5122, 512x384, 384x512, 3842). Generated
from LEDiT-XL/2 trained on ImageNet 256x256.
     Arbitrary-resolution samples (10242, 1024x768, 768x1024, 7682). Generated
    from LEDiT-XL/2 trained on ImageNet 512x512.
    Arbitrary-resolution samples (10242, 1024x768, 768x1024, 7682). Generated
    from LEDiT-XL/2 trained on ImageNet 512x512.
   Incorporating causal attention yields structurally coherent objects, While further introducing convolution provides adequate high-frequency details.
      Incorporating causal attention yields structurally coherent objects, While further introducing convolution provides adequate high-frequency details.
    @article{zhang2025ledit,
        title={LEDiT: Your Length-Extrapolatable Diffusion Transformer without Positional Encoding},
        author={Zhang, Shen and Liang, Siyuan and Tan, Yaning and Chen, Zhaowei and Li, Linze and Wu, Ge and Chen, Yuhao and Li, Shuheng and Zhao, Zhenyu and Chen, Caihua and Liang, Jiajun and Tang, Yao},
        journal={arXiv preprint arXiv:2503.04344},
        year={2025}
      }