DyPE: Dynamic Position Extrapolation for Ultra High Resolution Diffusion

Noam Issachar, Guy Yariv, Sagie Benaim, Yossi Adi, Dani Lischinski, Raanan Fattal

Introduction

Diffusion Transformer models (DiTs) have established themselves as the gold standard for image generation, capable of producing images with remarkable fidelity and detail. However, generating ultra-high-resolution images (such as 4K) remains a significant challenge. DyPE (Dynamic Position Extrapolation) introduces a novel, training-free method that allows pre-trained DiTs, like FLUX, to generate images up to 16 megapixels with no additional sampling costs. By dynamically adjusting positional encodings to match the natural progression of the diffusion process, DyPE achieves state-of-the-art fidelity while avoiding the repetitive artifacts that plague standard extrapolation techniques.

The Challenge of Ultra-High-Resolution Diffusion

The primary bottleneck in scaling DiTs to higher resolutions is the self-attention mechanism, whose computational cost grows quadratically with the number of image tokens. Training models directly at ultra-high resolutions is therefore prohibitively expensive.

To bypass this, researchers typically employ "positional extrapolation" techniques borrowed from Large Language Models (LLMs), such as RoPE, NTK-aware scaling, or YaRN. These methods effectively "stretch" the model's spatial awareness to accommodate more tokens. However, existing approaches are static—they apply the exact same scaling factor throughout the entire generation process.

In diffusion models, static scaling is suboptimal because the model's focus shifts over time. Early diffusion steps prioritize low-frequency global layouts, while later steps focus on high-frequency fine textures. Static methods force a compromise, compressing high-frequency representations to maintain global structure. At extreme resolutions, this trade-off often results in blurry details or repetitive, tiled patterns.

The DyPE Solution: Dynamic Position Extrapolation

To resolve the limitations of static scaling, the authors introduce Dynamic Position Extrapolation (DyPE), which integrates a time-dependent scheduler into the positional encoding (PE) mechanism.

Spectral Progression in Diffusion

The foundation of DyPE is a spectral analysis proving that the diffusion process follows a "low-to-high" frequency progression. Low-frequency components (the global structure or "big picture") converge to their final values very early in the sampling process. Conversely, high-frequency components (fine details and textures) continue to evolve until the final steps.

Dynamic Scaling Mechanism

Instead of using a fixed scaling factor, DyPE employs a time-parameterized scaling function: $\kappa(t) = \lambda_s \cdot t^{\lambda_t}$.

  • Early in sampling ($t \approx 1$): Extrapolation is maximized. This helps the model coordinate large-scale structures across the massive high-resolution grid.
  • Late in sampling ($t \approx 0$): Extrapolation gradually "shuts down," returning the positional encodings to the model's original training state. Because the global layout is already "baked in" from the early steps, the pre-trained denoiser can operate in its native environment to resolve fine, high-frequency details without any extrapolation-induced compression artifacts.

This logic can be universally applied to create dynamic versions of existing schemes, resulting in variants like DY-PI, DY-NTK, and DY-YaRN.

Experimental Setup

The researchers evaluated DyPE across several benchmarks designed to test both global structural coherence and fine-grained detail:

  • DrawBench: 200 prompts used to evaluate text-to-image alignment and overall aesthetic quality.
  • Aesthetic-4K: A curated dataset of 195 image-prompt pairs specifically designed for high-resolution evaluation.
  • ImageNet: Used for class-conditional generation tests on the FiTv2 architecture.
  • VBench: Utilized to evaluate the method's extension into high-resolution video generation.

Key Findings and Results

  • Resolution Breakthrough: DyPE successfully generated coherent 4096 x 4096 (16MP) images using the FLUX model, which was originally trained on just 1024 x 1024 images.
  • Quantitative Superiority: On the Aesthetic-4K benchmark, DyPE (specifically the DY-YaRN variant) outperformed static YaRN and NTK across all major metrics, including CLIPScore for text alignment and FID for image quality.
  • Human Preference: In side-by-side blind comparisons at 4K resolution, human raters overwhelmingly preferred DyPE over static baselines, with preference rates ranging from 70.5% to 94.2%.
  • Enhanced Stability: Standard FLUX and static YaRN begin to fail or produce repeating artifacts at 3072px and 4096px, respectively. In contrast, DyPE remained structurally stable up to 5120px.
  • Universal Applicability: Because DyPE is training-free and modifies only the positional encoding logic, it can be seamlessly plugged into almost any DiT-based model (including FLUX, Qwen-Image, FiTv2, and Wan2.1) with zero inference overhead.

Limitations and Future Directions

While DyPE represents a massive leap in training-free extrapolation, it is not without constraints:

  • Memory Requirements: Although DyPE adds no computational overhead to the sampling steps, the underlying DiT still requires massive VRAM to handle the $O(N^2)$ attention matrix of a 16MP image. The authors utilized high-end L40S GPUs to conduct their tests.
  • Extreme Scaling Limits: Performance begins to degrade at extreme resolutions around 6K (6144px), indicating an upper bound to how far a 1K-trained model can be pushed entirely without fine-tuning.

For future work, the authors suggest incorporating DyPE's dynamic logic into a "light tuning" phase, which could help push the boundaries of ultra-high-resolution generation even further.

Summary updated

BibTeX
@inproceedings{issachar2026dype,
  author = {Noam Issachar and Guy Yariv and Sagie Benaim and Yossi Adi and Dani Lischinski and Raanan Fattal},
  title = {{DyPE: Dynamic Position Extrapolation for Ultra High Resolution Diffusion}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=JfjYFLHqus},
}
Figure