TL;DR
FRAMER is a novel, plug-and-play training strategy that significantly improves real-world image super-resolution (Real-ISR) in diffusion models without altering their architecture or adding any inference overhead. By decomposing internal features into low- and high-frequency bands, it introduces a frequency-aligned self-distillation mechanism that counteracts the inherent low-frequency bias of standard diffusion training, yielding sharper and more detailed restorations.
What Problem Does This Paper Address?
Real-world image super-resolution (Real-ISR) aims to restore high-resolution (HR) images from low-resolution (LR) inputs plagued by complex, unknown combinations of degradations like blur, noise, and compression artifacts. While diffusion models excel at generating perceptually pleasing images compared to traditional GANs, they frequently struggle to reconstruct fine, high-frequency (HF) details, often producing over-smoothed results.
The authors trace this limitation to two core issues:
- Low-Frequency (LF) Bias: Natural images (and especially degraded LR inputs) are inherently dominated by low frequencies. Standard noise-prediction losses favor these dominant components to minimize overall loss, leaving HF details chronically undertrained.
- The "Low-First, High-Later" Hierarchy: Diffusion networks naturally stabilize global, low-frequency structures in early layers, while fine high-frequency details only converge near the final layers. Standard frequency-agnostic training losses supply redundant LF gradients to early layers while starving the later, HF-refining layers of necessary optimization signals.
Directly applying explicit frequency losses in pixel space fails due to a domain mismatch with high-dimensional network features. FRAMER solves this by operating entirely within the latent feature space.
Methods
FRAMER introduces a training-only framework that treats the final layer of the diffusion model as a "teacher" to guide intermediate "student" layers.
Key components include:
- Frequency Decomposition: Feature maps are split into LF and HF bands using simple 2D Fast Fourier Transform (FFT) masks.
- Intra Contrastive Loss (IntraCL): Applied to the LF band to stabilize globally shared structures. It pulls student LF features toward the teacher's LF features and repels them from a randomly sampled layer within the same image.
- Inter Contrastive Loss (InterCL): Applied to the HF band to sharpen instance-specific details. It pulls student HF features toward the teacher's HF features while repels them from both a random-layer negative (same image) and in-batch negatives (other images).
- Frequency-based Adaptive Weight (FAW): Dynamically scales the distillation loss for each layer based on its frequency discrepancy relative to the final layer, aligning training with the network's natural hierarchy.
- Frequency-based Alignment Modulation (FAM): Acts as a gatekeeper, modulating distillation strength based on the current cosine similarity between student and teacher features to prevent early-layer collapse and stabilize training.
Because FRAMER is strictly an auxiliary training loss, all these components are discarded at test time, leaving the original backbone completely untouched for inference.
Datasets
- Training: A comprehensive mixture of images from DIV2K, DIV8K, Flickr2K, and the first 10,000 face images from FFHQ. Training pairs are generated using the Real-ESRGAN degradation pipeline, and text captions are generated via LLaVA.
- Evaluation: Evaluated on four standard real-world benchmarks: DrealSR, RealSR, RealLR200, and RealLQ250 at a $4\times$ upscaling factor.
Key Insights and Ideas
- Self-Distillation Avoids Domain Mismatch: Instead of forcing high-dimensional features to match pixel-space targets, using the network's own final layer as a teacher provides a perfectly domain-compatible supervision signal.
- LF and HF Require Different Negative Strategies: Coarse structures (LF) are highly shared across different images, meaning in-batch negatives act as false negatives. Conversely, fine details (HF) are highly instance-specific, making in-batch negatives highly informative for contrastive learning.
- Architectural Agnosticism: FRAMER can be seamlessly applied to both U-Net (e.g., Stable Diffusion 2) and Diffusion Transformer (DiT, e.g., Stable Diffusion 3) backbones with zero architecture-specific tuning.
Key Results
- Quantitative Performance: When integrated into state-of-the-art baselines (PiSA-SR for U-Net and DiT4SR for DiT), FRAMER consistently improves both distortion metrics (PSNR, SSIM) and perceptual quality metrics (LPIPS, NIQE, MANIQA, MUSIQ). For instance, on the DrealSR dataset, it boosted PiSA-SR's PSNR by +3.0% and improved its MANIQA score by +21.4%.
- Qualitative Performance: Visual results demonstrate that FRAMER models produce significantly sharper edges, clearer textures, and more faithful structural restorations compared to existing methods, especially under severe image degradation.
Limitations and Future Work
Not discussed in the paper.
Summary updated