Research
MagnifiQ: Patch-aware Text Guided Progressive Upscaling for High-Resolution Image Restoration
MagnifiQ: Patch-aware Text Guided Progressive Upscaling for High-Resolution Image Restoration Overview Research area: Computer vision, specifically generative image restoration and super-resolution us
- arXiv
- 2608.14543
- Published
- 2026-08-14
- Authors
- Mahesh Reddy, Yashesh Savani, Antoine Mercier, Hong Cai, Fatih Porikli, Guillaume Berger
AI summary
MagnifiQ: Patch-aware Text Guided Progressive Upscaling for High-Resolution Image RestorationOverview
- Research area: Computer vision, specifically generative image restoration and super-resolution using pre-trained text-to-image diffusion models.
- Technical level: Advanced. The paper assumes familiarity with diffusion models, U-Net architectures, self-attention, cross-attention, and latent-space operation.
- Scope: The paper introduces MagnifiQ, a framework that restores degraded images up to 4096 × 4096 resolution (scaling factors up to 32×) by combining an efficiently modified SDXL backbone, multi-stage progressive upscaling, and patch-level text prompts routed through a training-free cross-attention modification.
What This Paper Is About
High-resolution restoration from degraded inputs must keep global structure coherent while recovering fine local texture, and at 4K resolution direct diffusion-based restoration becomes computationally expensive and prone to repeated or inconsistent textures. MagnifiQ addresses this by progressively upscaling and restoring an image over several resolution stages rather than hallucinating the final 4K output in one pass, going from inputs such as 1024 × 1024 to 4096 × 4096 (and up to 32× scaling). The goal is restoration that is both perceptually sharper and globally more coherent than prior diffusion-based restoration methods.
Key Contributions
- An efficient SDXL-based restoration backbone. The authors adapt pre-trained SDXL for restoration by modifying its input convolution (following InstructPix2Pix) to condition on the low-quality input, and replace the U-Net's self-attention layers with PADRe blocks — large-kernel convolutions for token mixing, pointwise convolutions for channel mixing, and Hadamard products — whose cost grows linearly, not quadratically, with resolution. This variant is called SDXL-PD.
- A restoration-aware progressive upscaling paradigm. Instead of directly upscaling the degraded input to the final resolution, the framework performs n iterative stages that refine each intermediate output, preserving structural cues and reducing artifacts such as texture duplication and object duplication.
- Patch-Aware Cross-Attention (PACA). A lightweight, training-free modification of the cross-attention layers that routes each patch-specific text prompt (generated by LLaVA from overlapping image patches) to its corresponding latent patch, while all other network layers continue to operate on the full latent for global coherence.
- Extensive evaluation at 4K. No-reference metrics on Aesthetic-4K, full-reference metrics on DIV2K and RealSR, runtime measurements, ablations over captioning model and patch stride, stage-count ablations, and a 4K user study.
Main Findings
-
Self-attention hurts at high resolution; removing it helps sharpness but not coherence. The authors compare three variants: SDXL-IR (input-conditioning only, self-attention kept), SDXL-NoSA (all self-attention removed), and SDXL-PD (self-attention replaced with PADRe). At 4096 × 4096, SDXL-IR preserves global structure but produces grainy artifacts, while SDXL-NoSA yields sharper high-frequency detail with fewer grainy or blurry artifacts but weakens long-range spatial dependencies, leading to hallucinated regions. SDXL-PD provides a better balance between structural consistency and texture sharpness.
-
Runtime scales differently across variants. In an A100 runtime comparison across increasing resolution, all three models perform similarly up to 3 MP, after which SDXL-IR shows a sharp increase due to the quadratic cost of self-attention. SDXL-PD achieves runtime comparable to SDXL-NoSA. StableSR is noted as computationally expensive because it denoises each image patch independently at every timestep.
-
Direct high-resolution restoration repeats textures. Single-pass restoration with SDXL-PD at extreme scale factors (16× or 32×) creates duplicated textures and texture repetition artifacts, attributed to aggressive upscaling eroding structural cues and pushing the model toward conditional generation rather than reconstruction.
-
MagnifiQ leads on perceptual quality among the compared restoration methods at 4K. On 50 images from Aesthetic-4K using no-reference metrics and runtime on one NVIDIA H100 GPU, MagnifiQ scores MANIQA .363, CLIP-IQA .622, LAION-Aesthetic 4.84, and 393 s. The paper states MagnifiQ outperforms on CLIP-IQA and LAION-Aesthetic. For comparison: StableSR (.332, .356, 3.10, 608 s), SUPIR (.308, .461, 4.14, 466 s), FaithDiff (.372, .577, 4.32, 85 s), SDXL-IR (.326, .559, 4.31, 109 s), SDXL-PD (.330, .573, 4.29, 45 s), MultiDiffusion (.348, .586, 4.30, 190 s), SD Upscaler (.339, .571, 4.08, 68 s). On MANIQA, FaithDiff's .372 is the highest value in the table; MagnifiQ's .363 is next.
-
Speed–quality trade-off. MagnifiQ's 393 s is higher than single-pass methods such as SDXL-PD (45 s) and FaithDiff (85 s), but faster than StableSR (608 s) and SUPIR (466 s), both of which it outperforms on all four reported metrics.
-
Human preference favors MagnifiQ. A user study on 4096 × 4096 outputs using DIV2K images, with pairwise comparisons, gives MagnifiQ the highest average preference at 75%. Other averages: SD Upscaler 60%, SDXL-IR 59%, MultiDiffusion 54%, SDXL-PD 44%, and SUPIR 14%.
-
Patch prompts beat a single global prompt. Global prompts produced by captioning models tend to be high-level and omit fine-grained detail. In the paper's example, the global prompt reads "…the image features a large flock of geese flying together in the sky…", while the local prompt for the patch containing the zoomed-in bird reads "…the bird's wings are the main focus of the image, highlighting its size and grace…".
-
Captioning model matters more than patch stride. Switching from LLaVA to DAPE yields runtime reductions of 60% at fixed stride (393 → 158 s at stride 512), and reducing overlap from 512 px to 0 px saves an additional 50% (393 → 197 s for LLaVA). Stride has only a minor effect on perceptual quality, because patching is applied only inside the cross-attention pathway. Ablation values: DAPE δ=0 (.338, .591, 4.73, 103 s), DAPE δ=512 (.340, .590, 4.73, 158 s), LLaVA δ=0 (.360, .619, 4.83, 197 s), LLaVA δ=512 (.363, .622, 4.84, 393 s).
-
More progressive stages produce better detail. Comparing MagnifiQ-A (n=2: x_lr → 1K → 4K), MagnifiQ-B (n=3: x_lr → 1K → 2K → 4K), and MagnifiQ-C (n=4: x_lr → 1K → 2K → 3K → 4K), configuration C produces the most detailed results; A and B yield globally consistent images that lack intricate local details.
-
Adding a light degradation before each stage helps. Applying a downscale–upscale resampling step to (512/H)·H × (512/W)·W at stages n ∈ {2, 3, 4} improves fine-detail restoration, since the model is trained to restore degraded inputs.
-
The fine-tuned SDXL variants are competitive without complex architecture changes. On 4× downscaled DIV2K with R-ESRGAN degradations, clean DIV2K, and RealSR, SDXL-IR, SDXL-NoSA, and SDXL-PD are compared against R-ESRGAN, StableSR, SeeSR, PASD, and SUPIR. On RealSR, for example, SDXL-PD reaches PSNR 22.48, SSIM .625, LPIPS .370, MANIQA .316, MUSIQ 59.61, PI 4.69, NIQE 4.90, versus SUPIR at 23.09, .679, .339, .331, 58.38, 4.95, 5.12. SDXL-NoSA performs strongly on no-reference metrics but is prone to hallucinations; SDXL-PD balances the variants and is more efficient than SDXL-IR.
-
Restoration becomes controllable. Altering the prompt (for example, "walnut" → "brown eggs") changes the restored textures accordingly, linking restoration to image editing.
Methodology in Plain English
The authors start from a pre-trained SDXL model and teach it to restore images with as few architectural changes as possible. Following the InstructPix2Pix recipe, they inflate the U-Net's input convolution so the network sees the low-quality image concatenated with the noisy latents, then fine-tune. Because standard self-attention becomes both expensive and less effective as resolution grows, they test three variants: keep self-attention (SDXL-IR), delete it (SDXL-NoSA), or replace it with PADRe blocks (SDXL-PD) built from large-kernel convolutions, pointwise convolutions, and element-wise multiplications that form a polynomial of degree 3.
For restoration at extreme scale, they avoid a single giant jump. The pipeline runs several stages: upscale the previous stage's output to the next target resolution, extract overlapping patches, caption each patch with LLaVA to get local text prompts, apply a light downscale–upscale degradation, and run the restoration model again. To make use of the local prompts, they modify only the cross-attention layers: each latent patch forms its own query, keys and values come from that patch's text embedding, and the overlapping outputs are averaged back to the latent's original dimensions. Everything else in the network still processes the whole latent, which keeps the result globally coherent.
All backbone variants are trained identically: 30k iterations, effective batch size 32, eight NVIDIA A100 GPUs, diffusion MSE loss, constant learning rate of 1 × 10⁻⁵, and 500 warmup steps, on FFHQ (140K images), LSDIR (85K images), and Unsplash-Lite (25K images), all resized so the shortest side is 1024 pixels and randomly cropped to 1024 × 1024, with R-ESRGAN degradations and LLaVA-generated captions using the prompt "Describe this image and its style in a very detailed manner." Inference uses 50 denoising steps and a text guidance scale of 4. The default MagnifiQ configuration uses n = 4 stages, patch size Δh = Δw = 1024, strides δh = δw = 512, giving M = 9 patches at stage n = 2 (2048 × 2048), M = 25 at stage n = 3 (3072 × 3072), and M = 49 at stage n = 4 (4096 × 4096).
Why This Matters
MagnifiQ shows that a pre-trained text-to-image diffusion model can be pushed well beyond its native 1024 × 1024 training resolution — a limit that constrained prior work such as SUPIR — without elaborate adapter networks or patch-independent denoising as in StableSR. It also isolates a concrete design insight: self-attention, tuned to the training resolution, is a liability at high resolution, and a linear-cost convolutional replacement both speeds inference and sharpens output. For the research community, this suggests that mixing patch-local semantic guidance with a globally processed latent is
Authors’ abstract
High-resolution image restoration from degraded inputs is challenging because it must preserve global structural consistency while recovering fine-grained local details, especially at 4K resolution where direct diffusion-based restoration is computationally expensive and prone to repeated or inconsistent textures. In this work, we introduce MagnifiQ, an image restoration framework that progressively upscales and restores images across resolutions, e.g., from 1024x1024 to 4096x4096. Our approach leverages a pre-trained text-to-image diffusion model such as SDXL and adapts it for more scalable high-resolution inference by replacing its original self-attention layers with convolutional operations whose computational cost grows linearly with image resolution. We further propose a progressive upscaling strategy that iteratively restores images over multiple resolution stages, refining each intermediate output rather than directly hallucinating the final 4K image, thereby improving global coherence and reducing high-resolution artifacts. To enhance local details while controlling content drift, MagnifiQ uses patch-specific text prompts that provide spatially localized semantic guidance during restoration. Extensive experiments on synthetic and real-world degraded images show that MagnifiQ outperforms prior diffusion-based restoration methods in perceptual quality and human preference, producing sharper textures and more coherent 4K results while offering practical speed--quality trade-offs through its scalable backbone and progressive design.