Invertible Image Rescaling

Mingqing Xiao, Shuxin Zheng, Chang Liu, Yaolong Wang, Di He, Guolin Ke, Jiang Bian, Zhouchen Lin, Tie-Yan Liu

Abstract

Traditional image downscaling is a lossy process that discards high-frequency information, making subsequent super-resolution an ill-posed problem. This paper introduces the Invertible Rescaling Net (IRN), which treats downscaling and upscaling as a single, bijective transformation. By "hiding" lost high-frequency information in a latent variable that follows a known distribution, IRN can reconstruct high-resolution images with unprecedented accuracy, outperforming traditional super-resolution methods by up to 5 dB in PSNR.

Introduction: The Challenge of Lossy Downscaling

In digital imaging, downscaling is a ubiquitous operation used to save bandwidth and storage. However, it is mathematically non-injective: many different high-resolution (HR) images can result in the exact same low-resolution (LR) image because fine details (high-frequency information) are discarded.

When reversing this process—a task known as Super-Resolution (SR)—the computer must "guess" what the missing details were. Even state-of-the-art AI models often produce blurry results or hallucinate textures. The researchers behind IRN asked a fundamental question: What if we designed the downscaling process specifically so that it could be perfectly reversed?

Methodology

The authors propose the Invertible Rescaling Net (IRN). Instead of treating downscaling and upscaling as two separate tasks, they model them as a single invertible mapping. This approach ensures that no information is truly lost; it is simply redistributed.

High-level overview of the forward downscaling and inverse re-upscaling framework.

The Architecture

The IRN framework consists of several key components designed to maintain bijectivity:

  1. Haar Wavelet Transformation: The HR image is first decomposed using a Haar transform. This explicitly separates the image into a low-pass representation (the "average" look) and high-pass residuals (the "details").
  2. Invertible Blocks (InvBlocks): The model uses a series of coupling layers, similar to those in Flow-based generative models. These layers use additive and multiplicative transformations that are mathematically guaranteed to be reversible.
  3. The Latent Variable ($z$): During downscaling, the HR image is transformed into a visually pleasing LR image ($y$) and a latent variable ($z$). This $z$ captures the "lost" high-frequency information that would normally be discarded.
Detailed architecture of the InvBlock and the downscaling module.

Training and Distribution Matching

A critical challenge is how to handle $z$. Storing $z$ alongside the LR image would defeat the purpose of compression. To solve this, the model is trained to force $z$ to follow a simple, known distribution, such as an isotropic Gaussian.

To upscale, the user takes the LR image and a randomly sampled $z$ from that Gaussian distribution and passes them backward through the network. Because the network is invertible, it uses that "placeholder" noise to reconstruct the original high-frequency details with high fidelity.

Experiments and Results

The model was trained on the DIV2K dataset (800 high-quality 2K images) and evaluated using standard benchmarks including Set5, Set14, BSD100, Urban100, and the DIV2K validation set.

Quantitative Performance

The quantitative improvements are significant for the field of computer vision:

  • PSNR Gains: On 2× upscaling, IRN outperforms the previous best joint downscaling-upscaling method (CAR) by over 5 dB on the Set5 dataset. In image processing, a 1 dB improvement is typically considered substantial; 5 dB represents a generational leap.
  • Efficiency: Despite its performance, the model is lightweight. The 2× scaling model contains only 1.66M parameters, making it significantly smaller than many state-of-the-art SR models like EDSR, which exceeds 40M parameters.

Qualitative Fidelity

Visually, IRN recovers complex textures—such as the fine weave of a fabric or sharp architectural edges—that traditional SR models often render as blurry artifacts. The model demonstrates robustness; even when the latent variable $z$ is slightly noisy, the network primarily adds minor high-frequency noise rather than distorting the underlying structure of the image.

Limitations and Future Work

While IRN represents a major step forward, some challenges remain:

  • Quantization: Saving the LR image as a standard 8-bit PNG requires "quantizing" floating-point outputs, which introduces a small amount of non-invertible error. The authors mitigate this using a "Straight-Through Estimator" during training.
  • Distribution Matching: Although the model forces $z$ to be case-agnostic, a small amount of image-specific information can still be lost if the distribution matching is imperfect.
  • Future Directions: The authors suggest extending this framework to video rescaling, where maintaining temporal consistency between frames presents a new set of challenges and opportunities for invertible modeling.

Summary updated

BibTeX
@inproceedings{xiao2020invertible,
  author = {Mingqing Xiao and Shuxin Zheng and Chang Liu and Yaolong Wang and Di He and Guolin Ke and Jiang Bian and Zhouchen Lin and Tie-Yan Liu},
  title = {{Invertible Image Rescaling}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58452-8\_8},
}
Figure