Normalizing Flow as a Flexible Fidelity Objective for Photo-Realistic Super-resolution

Andreas Lugmayr, Martin Danelljan, Fisher Yu, Luc Van Gool, Radu Timofte

Abstract

Super-resolution is an ill-posed problem, where a ground-truth high-resolution image represents only one possibility in the space of plausible solutions. Yet, the dominant paradigm is to employ pixel-wise losses, such as $L_1$, which drive the prediction towards a blurry average. This leads to fundamentally conflicting objectives when combined with adversarial losses, which degrades the final quality. We address this issue by revisiting the $L_1$ loss and show that it corresponds to a one-layer conditional flow. Inspired by this relation, we explore general flows as a fidelity-based alternative to the $L_1$ objective. We demonstrate that the flexibility of deeper flows leads to better visual quality and consistency when combined with adversarial losses. We conduct extensive user studies for three datasets and scale factors, where our approach is shown to outperform state-of-the-art methods for photo-realistic super-resolution.

Introduction

Super-resolution (SR) is inherently "ill-posed": for any single low-resolution (LR) image, there are infinitely many plausible high-resolution (HR) versions. Traditionally, researchers have relied on two competing objectives. Fidelity losses, such as $L_1$ or $L_2$, measure pixel-wise distance and force the model to predict the average of all possible HR images, which typically results in a blurry output. Conversely, adversarial losses (GANs) push the model to select a single realistic-looking HR image with sharp details.

These two objectives are fundamentally at odds. The $L_1$ loss "drags" the prediction toward a blurry mean, while the GAN loss "pushes" it toward the manifold of natural images. This conflict often results in artifacts, color shifts, and poor "LR consistency"—a metric where the super-resolved image, when downsampled, fails to match the original input.

Methods: AdFlow

The core insight of this work is that the standard $L_1$ loss is mathematically equivalent to a very simple, one-layer Normalizing Flow corresponding to a Laplace distribution. By generalizing this fidelity loss using deeper, more flexible Normalizing Flows, the researchers developed AdFlow.

The AdFlow architecture uses a conditional flow network ($f$) to map HR images to a latent space $z$. The flow serves as a fidelity loss (NLL) alongside a standard adversarial loss from a discriminator ($d$).

AdFlow uses a multi-scale pyramid structure based on architectures like Glow and RealNVP. It introduces a Conditional Affine Coupling layer and an Affine Image Injector to efficiently fuse LR information into the flow. Unlike previous flow-based methods that attempt to replace GANs entirely, AdFlow uses the flow as a loss function. This allows the flow to handle mathematical consistency with the LR input while the GAN focuses on generating high-frequency textures.

Results and Evaluation

The model was trained on the DF2K dataset and evaluated on standard benchmarks including DIV2K, BSD100, and Urban100.

User Preferences

In a massive user study involving over 50,000 votes, participants consistently preferred AdFlow results over state-of-the-art methods like ESRGAN and RankSRGAN across all datasets and scale factors ($4\times, 6\times, 8\times$).

Qualitative comparison of AdFlow (Ours) against ESRGAN and Low-Resolution inputs. AdFlow maintains sharper details and better consistency across various magnification scales.

Quantitative Consistency and Efficiency

AdFlow achieved a significant improvement in LR-PSNR, outperforming ESRGAN by 4.3dB to 15.1dB. This indicates that the details generated by AdFlow are much more grounded in the original source pixels. Furthermore, the proposed architecture is 2.5$\times$ faster in both training and inference compared to previous flow-based SR models like SRFlow, making it a more practical solution for real-world applications.

Conclusion

By replacing rigid pixel-wise losses with flexible Normalizing Flows, AdFlow resolves the long-standing conflict between fidelity and realism in super-resolution. While Normalizing Flows are more computationally intensive than simple feed-forward networks, the "flow-as-a-loss" framework provides a robust path forward for ill-posed image restoration tasks. Future research may apply this framework to other domains such as image colorization or inpainting.

Summary updated

BibTeX
@inproceedings{lugmayr2022normalizing,
  author = {Andreas Lugmayr and Martin Danelljan and Fisher Yu and Luc Van Gool and Radu Timofte},
  title = {{Normalizing Flow as a Flexible Fidelity Objective for Photo-Realistic Super-resolution}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=xyQXTqGcQIu},
}
Figure