Research map / Image generation / Autoregressive and latent generation
SEGA: Spectral-Energy Guided Attention for Resolution Extrapolation in Diffusion Transformers
Javad Rajabi, Kimia Shaban, Koorosh Roohi, David Lindell, Babak Taati
University of Toronto · Vector Institute
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes SEGA, a training-free method that adapts RoPE attention scaling per dimension using the spectral energy of the current latent at each denoising step, improving high-resolution extrapolation of Flux and Qwen DiTs.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
Diffusion transformers degrade when generating images beyond their training resolution, because RoPE extrapolation dilutes attention; existing uniform attention scaling trades off global structure against fine detail.
Approach
Derives per-RoPE-dimension attention scaling from the spectral energy of the current intermediate latent (axis-wise and radial power spectra), with a global amplitude set by spectral flatness, so scaling is content-aware and evolves over denoising steps.
Key results
- On Flux at 4096x4096, SEGA reaches FID 150.05 and PickScore 23.18 versus 183.33 and 20.31 for the base model and 151.74 for I-Max (best baseline FID).
- On Qwen at 4096x2048, SEGA improves FID to 147.51 versus 159.38 for DyPE (second best).
- SEGA outperforms all baselines across metrics at 4096^2 on Qwen, and reaches FID 221.99 at 5120^2 on Flux versus 225.30 for DyPE.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add dynamic spectral-energy scaling in place of fixed scaling (ablation) | NTK on Flux · Aesthetic-4K Flux 4096x4096 (ablation table) | ImageReward: 0.66 -> 1.26 | Improved |
| add dynamic spectral-energy scaling in place of fixed scaling (ablation) | NTK on Flux · Aesthetic-4K Flux 4096x4096 (ablation table) | FID: 162.92 -> 150.05 | Improved |
| add global spectral-flatness amplitude factor to axis-only scaling (ablation) | SEGA Axis-only · Aesthetic-4K Flux 4096x4096 (ablation table) | ImageReward: 1.15 -> 1.26 | Improved |
| add per-axis energy correction to global-only scaling (ablation) | SEGA Global-only · Aesthetic-4K Flux 4096x4096 (ablation table) | FID: 153.58 -> 150.05 | Improved |
| use NTK instead of YaRN as base extrapolation (ablation) | SEGA · Aesthetic-4K Flux 4096x4096 (ablation table) | FID: 159.80 -> 150.05 | Improved |
| use NTK instead of DyPE as base extrapolation (ablation) | SEGA · Aesthetic-4K Flux 4096x4096 (ablation table) | ImageReward: 1.18 -> 1.26 | Improved |
| use NTK instead of DyPE as base extrapolation (ablation) | SEGA · Aesthetic-4K Flux 4096x4096 (ablation table) | PickScore: 22.78 -> 22.35 | Hurt |
| SEGA instead of DyPE | Flux · Aesthetic-4K Flux 4096x4096 | FID: 156.21 -> 150.05 | Improved |
| SEGA instead of DyPE | Qwen · Aesthetic-4K Qwen 4096x4096 | MUSIQ: 37.39 -> 45.03 | Improved |
| SEGA instead of UltraImage | Qwen · Aesthetic-4K Qwen 2048x4096 | FID_p: 41.77 vs 53.07 | Hurt |
| SEGA instead of ScaleDiff | Flux · Aesthetic-4K Flux 2048x4096 | MUSIQ: 55.84 vs 53.65 | Hurt |
| SEGA instead of multi-stage I-Max | Flux · Aesthetic-4K Flux 4096x4096 | FID: 151.74 -> 150.05 | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 2 of 2 on most shared results.
- ScaleDiff — ScaleDiff: Higher-Resolution Image Synthesis via Efficient and Model-Agnostic Diffusion (NeurIPS 2025) · better on 1 of 1 shared result
- HiFlow — HiFlow: Training-free High-Resolution Image Generation with Flow-Aligned Guidance (NeurIPS 2025) · better on 1 of 1 shared result
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Surprising findings
- YaRN frequently causes spatial structure collapse and layout confusion in 2D image generation, so the authors use NTK as the default base method instead.
- Multi-stage guidance methods (HiFlow, I-Max, ScaleDiff) do not uniformly beat direct-inference baselines; several have lower MSQ or higher FID_p than SEGA's direct-inference counterparts.
Limitations
- SEGA does not extend RoPE's positional range and relies on an underlying extrapolation method (NTK by default), inheriting its priors.
- Perceptual quality still degrades at extreme extrapolation factors (up to 8192^2), limited by model capacity.
- Ultra-high-resolution generation remains computationally expensive due to quadratic attention cost.
Open problems this paper states
- “Ultra-high-resolution generation remains computationally expensive due to quadratic attention cost.” → Ultra-high-resolution generation and training remain expensive. (an open problem in high-resolution diffusion synthesis)
- “Perceptual quality still degrades at extreme extrapolation factors (up to 8192^2), limited by model capacity.” → Quality drops when sampling far above the training resolution. (an open problem in high-resolution diffusion synthesis)
Open problems in high-resolution diffusion synthesis
Do high-resolution diffusion gains hold beyond class-conditional ImageNet, and what keeps pixel-space and ultra-high-resolution models costly?
- Results come from class-conditional ImageNet, not text-to-image or video. · 15 papers state it
- Key settings are tuned by hand per model, task or resolution. · 13 papers state it
- Ultra-high-resolution generation and training remain expensive. · 8 papers state it
Experimental setup
Datasets: Aesthetic-4K
Benchmarks: Aesthetic-4K Zero-Shot benchmark
Metrics: ImageReward PickScore CLIP Score MUSIQ FID FID_p HPSv2 CLIP-IQA
Baselines: NTK YaRN DyPE UltraImage PI HiFlow I-Max ScaleDiff DemoFusion FreCaS FreeScale DiffuseHigh
Builds on: RoPE YaRN NTK-aware scaling Position Interpolation DyPE
Closest papers by meaning
- ScaleDiff: Higher-Resolution Image Synthesis via Efficient and Model-Agnostic Diffusion (NeurIPS 2025 · similarity 0.90)
- FAM Diffusion: Frequency and Attention Modulation for High-Resolution Image Generation with Stable Diffusion (CVPR 2025 · similarity 0.89)
- LEDiT: Your Length-Extrapolatable Diffusion Transformer without Positional Encoding (NeurIPS 2025 · similarity 0.89)
- CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Up (NeurIPS 2025 · similarity 0.89)
- DiTFastAttn: Attention Compression for Diffusion Transformer Models (NeurIPS 2024 · similarity 0.88)
- ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Models (NeurIPS 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.