Hierarchical Conditional Flow: A Unified Framework for Image Super-Resolution and Image Rescaling

Jingyun Liang, Andreas Lugmayr, Kai Zhang, Martin Danelljan, Luc Van Gool, Radu Timofte

Abstract

Hierarchical Conditional Flow (HCFlow) is a unified framework that bridges the gap between image super-resolution (SR) and image rescaling. By using an invertible, bijective mapping that models high-frequency details as hierarchically dependent on low-frequency components, HCFlow achieves state-of-the-art performance in both tasks while using significantly fewer parameters than previous flow-based models.

What Problem Does This Paper Address?

In computer vision, Super-Resolution (SR) and Image Rescaling are closely related but historically treated differently:

  1. Super-Resolution is a "one-to-many" problem: given a low-resolution (LR) image, there are many possible high-resolution (HR) versions. Traditional models often produce blurry results because they try to find a single "average" HR image.
  2. Image Rescaling focuses on the "bijective" relationship: learning how to downscale an image so that it can be perfectly reconstructed later.

Existing flow-based models had a "split personality." Models like SRFlow treated the LR image as an external condition, making them non-invertible and unsuitable for rescaling. Conversely, rescaling models like IRN assumed that high-frequency and low-frequency components were independent, which limited their ability to generate realistic details for SR.

Comparison of HCFlow with existing SRFlow and IRN architectures.

The authors of HCFlow set out to create a single, fully invertible architecture that captures the complex dependencies between different image frequencies.

Methods

HCFlow is built on the foundation of Normalizing Flows—a class of generative models that learn a bijective (two-way) mapping between a complex data distribution (images) and a simple latent space (Gaussian noise).

The detailed hierarchical architecture of the HCFlow framework showing the flow between HR image x and LR components y.

Key Innovations:

  • The Bijective Mapping: Instead of treating the LR image as a separate input, HCFlow decomposes the HR image ($x$) into a generated LR image ($y$) and a latent variable ($z$) representing high-frequency residuals. This makes the relationship $x \leftrightarrow [y, z]$ fully invertible.
  • Hierarchical Conditioning: This is the core innovation. The model uses a multi-scale architecture where, at each level, the high-frequency components are modeled as conditional on the low-frequency components from the previous levels. This mirrors how natural images work: fine details are structurally related to larger shapes.
  • Flexible Training Objectives: For SR, the model is trained with Negative Log-Likelihood (NLL) plus optional pixel, perceptual, and GAN losses. For Rescaling, it uses pixel-wise losses on both the reconstructed HR image and the generated LR image to ensure the downscaling process remains visually pleasing.

Key Results and Insights

The researchers evaluated HCFlow across general image SR (DIV2K, Flickr2K), face image SR (CelebA), and standard image rescaling benchmarks.

  • Superior Rescaling: In image rescaling tests, HCFlow outperformed the previous leader (IRN) by 0.1 to 0.35 dB PSNR across all datasets, producing sharper edges and fewer moiré patterns.
  • State-of-the-Art SR: For general SR, the "HCFlow++" variant achieved top-tier perceptual scores. Visually, it produces much cleaner details in complex textures compared to ESRGAN or SRFlow.
  • Efficiency through Architecture: HCFlow achieves better results than SRFlow while using roughly half the parameters (~23M vs ~40M). This is largely due to the more efficient hierarchical design.
  • Dependency is Key: The paper proves that high-frequency details are not independent of low-frequency structure. By explicitly modeling this dependency ($p(high|low)$), HCFlow avoids the artifacts seen in models that assume independence.

Conclusion

HCFlow demonstrates that unifying SR and rescaling into a single hierarchical framework leads to more efficient and realistic image restoration. By constraining part of the latent space to represent the LR image, the model inherently learns the downscaling operation during training. Future directions include extending this framework to other inverse problems such as denoising or deblurring.

Summary updated

BibTeX
@inproceedings{liang2021hierarchical,
  author = {Jingyun Liang and Andreas Lugmayr and Kai Zhang and Martin Danelljan and Luc Van Gool and Radu Timofte},
  title = {{Hierarchical Conditional Flow: A Unified Framework for Image Super-Resolution and Image Rescaling}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00404},
}
Figure