TL;DR
This paper introduces OP4KSR, a novel one-step, patch-free framework for generating 4K super-resolution (SR) images. It achieves this by adapting a powerful diffusion model (Flux) with an extreme-compression VAE, significantly reducing memory and inference time while preserving global context. To combat the resulting periodic artifacts, OP4KSR introduces a RoPE frequency rescaling technique and an autocorrelation-based periodicity loss.
What Problem Does This Paper Address?
The demand for ultra-high-resolution (4K) images is rapidly increasing, but existing super-resolution (SR) methods struggle to meet this demand efficiently. Diffusion-based SR models, while achieving impressive perceptual quality, are computationally intensive, especially for 4K outputs, leading to extreme memory consumption. To overcome this, current approaches resort to patch-based inference, where images are divided into smaller patches, processed independently, and then reassembled. However, this patch-based strategy introduces significant drawbacks:
- Semantic Confusion: Processing patches in isolation can lead to the model hallucinating incorrect details or textures, as it loses global context.
- Spatial Inconsistency: Different patches might be processed with varying degrees of sharpness or smoothness, resulting in jarring transitions and visual artifacts.
- Severe Latency: The iterative nature of patch processing and fusion significantly increases inference time, making real-time applications impractical.
Furthermore, directly scaling existing SR models to 4K resolution often leads to a degradation in performance and memory bottlenecks. This paper aims to address these limitations by developing a one-step, patch-free approach for 4K SR that is both efficient and high-quality.
Methods
OP4KSR builds upon the Flux framework, a powerful diffusion model, and incorporates several key innovations:
- Extreme-Compression F16 VAE: To handle the massive memory requirements of 4K SR, the authors utilize an F16 VAE with extreme compression. This allows for a significantly reduced latent representation, making 4K SR inference feasible within practical GPU budgets.
- One-Step Inference: By adapting the mid-timestep strategy from OMGSR, OP4KSR achieves a single-pass inference, eliminating the need for iterative denoising steps. This is crucial for speed and efficiency.
- Latent Alignment: To bridge the gap between the low-resolution (LR) input and the diffusion model's expected input (pure noise), the LR latent is anchored at an optimal mid-timestep, and a latent alignment loss is used to ensure consistency.
- Periodic Artifact Suppression: A major challenge in one-step diffusion models is the emergence of severe periodic artifacts. OP4KSR tackles this with a two-pronged approach:
- RoPE Base Frequency Rescaling (RFR): The authors identify that the default RoPE (Rotary Positional Embedding) configuration in diffusion models, optimized for long-range dependencies, causes inter-token ambiguity in SR tasks. RFR significantly lowers the RoPE base frequency to restore fine-grained spatial sensitivity and resolve this ambiguity.
- Autocorrelation-based Periodicity Loss ($\mathcal{L}_\text{AP}$): To address intra-token spatial information loss during unpacking (a consequence of one-step processing), $\mathcal{L}_\text{AP}$ is introduced. This loss partitions images into quadrants and computes autocorrelations to explicitly penalize and eliminate the 32-pixel grid artifacts, ensuring local structural sensitivity.
Datasets
The paper introduces a new suite of datasets to advance 4K SR research:
- 4KSR-Train: A dedicated training dataset curated from approximately 1.1 million high-quality internet images. It underwent a rigorous three-stage filtering process involving Laplacian variance, Sobel operator, LAION Aesthetic Predictor, and Qwen3-VL for quality, aesthetics, and texture richness.
- 4KSR-Syn: A synthetic benchmark dataset containing 82 images, strictly excluded from training, with LR inputs generated using a recalibrated Real-ESRGAN pipeline.
- 4KSR-RealSquare: A real-world benchmark dataset with 92 isotropic 1024x1024 images.
- 4KSR-RealVary: Another real-world benchmark dataset with 81 images exhibiting diverse aspect ratios.
Additionally, the public DIV4K-50 dataset is used for evaluating synthetic generalization.
Key Insights and Ideas
- The trade-off between global context and local detail: While diffusion models excel at global context, SR requires fine local details. Directly applying T2I priors to SR can lead to issues.
- One-step diffusion models are prone to periodic artifacts: The lack of iterative refinement in one-step models exacerbates issues arising from positional encoding and feature unpacking, leading to structured artifacts.
- RoPE's role in spatial perception: The authors demonstrate how the RoPE's base frequency significantly impacts the model's ability to distinguish between adjacent tokens, a critical factor for SR.
- Synergistic artifact suppression: Combining latent-domain RFR with pixel-domain $\mathcal{L}_\text{AP}$ is crucial for effectively suppressing periodic artifacts, as they address complementary bottlenecks.
- The importance of dedicated 4K SR datasets: The scarcity of high-resolution datasets and benchmarks hinders progress in 4K SR research, highlighting the value of the curated suite.
Key Results
- Efficiency: OP4KSR achieves a remarkable inference speed, generating a 4096x4096 image in just 5.75 seconds on a single NVIDIA H20 GPU. This is approximately 16x faster than OMGSR and 280x faster than multi-step SUPIR.
- Perceptual Quality: The method achieves competitive perceptual quality, outperforming other one-step diffusion methods in metrics like LPIPS, DISTS, and TOPIQ-FR. It also shows strong performance in no-reference metrics like MUSIQ and NIMA.
- Artifact Suppression: Qualitative results and ablation studies (Fig. 10) clearly demonstrate OP4KSR's effectiveness in suppressing the conspicuous grid-like periodic artifacts seen in baseline models.
- Global Context Preservation: By being patch-free, OP4KSR preserves global spatial-semantic coherence, avoiding the semantic confusion and spatial inconsistency issues of patch-based methods.
Limitations and Future Work
- Fine Detail Recovery: The authors acknowledge that OP4KSR still has limitations in recovering very fine details.
- Future Work: They plan to introduce a high-frequency compensation mechanism to mitigate the physical truncation caused by the extreme compression ratio, aiming to further enhance the model's ability to reconstruct complex textures.
Summary updated