SEGA: Spectral-Energy Guided Attention for Resolution Extrapolation in Diffusion Transformers

Javad Rajabi, Kimia Shaban, Koorosh Roohi, David B. Lindell, Babak Taati
5/21/2026
3 citations
cs.CV
diffusion-flowtransformer-attention

No official code found. Best implementation: rajabi2001/sega (77 stars, last commit 2026-05-28).

Abstract

Diffusion transformers (DiTs) have emerged as a dominant architecture for text-to-image generation, yet their performance drops when generating at resolutions beyond their training range. Existing training-free approaches mitigate this by modifying inference-time attention behavior, often through Rotary Position Embeddings (RoPE) extrapolation combined with attention scaling.

Show full abstract

However, these strategies apply a uniform and content-agnostic scaling across RoPE components with distinct frequency characteristics, inducing a trade-off between preserving global structure and recovering fine detail. We introduce SEGA, a training-free method that dynamically scales attention across RoPE components according to the latent's spatial-frequency structure at each denoising step. This adaptive scaling improves both structural coherence and fine-detail fidelity. Experiments show that SEGA consistently improves high-resolution synthesis across multiple target resolutions, outperforming state-of-the-art training-free baselines.

View on arXivView PDF

Code Implementations(1)

rajabi2001/segaCommunity70%

Official implementation of "SEGA: Spectral-Energy Guided Attention for Resolution Extrapolation in Diffusion Transformers"

776May 13, 20266 months ago

Similar Papers

Cite this paper

@article{rajabi2026sega,
  title  = {SEGA: Spectral-Energy Guided Attention for Resolution Extrapolation in Diffusion Transformers},
  author = {Javad Rajabi and Kimia Shaban and Koorosh Roohi and David B. Lindell and Babak Taati},
  year   = {2026},
  eprint = {2605.22668},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.22668v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.22668.svg)](https://codeofpaper.com/paper/2605.22668)

Discussion