Variational AutoEncoder for Reference Based Image Super-Resolution

Zhi-Song Liu, Wan-Chi Siu, Li-Wen Wang

Introduction

Single Image Super-Resolution (SISR) faces a significant "information ceiling" at high upscaling factors, such as 8×. At this scale, a single low-resolution (LR) pixel must be expanded into 64 high-resolution (HR) pixels. Because the mapping is one-to-many, standard algorithms often produce blurry edges or "average" out textures, failing to reconstruct fine details.

Existing Reference-based Super-Resolution (RefSR) methods attempt to mitigate this by "borrowing" details from a similar high-resolution image. However, these methods typically require the reference to be strictly aligned or semantically identical to the target. RefVAE (Reference-based Variational AutoEncoder) breaks these constraints, allowing the use of arbitrary images—or even random noise—to guide the reconstruction of diverse, high-quality textures.

Methodology

The RefVAE framework treats super-resolution as a stochastic process rather than a deterministic mapping. The architecture is built around three core components:

  1. VGG Encoder: A pre-trained VGG-19 network extracts multi-scale feature maps from both the LR input ($F_X$) and the reference image ($F_R$).
  2. Conditional VAE (CVAE): This module projects reference features into a compact latent space. Instead of a rigid mapping, it learns a probability distribution (mean $\mu$ and variance $\Sigma$). During inference, the model samples from this distribution to obtain diverse "styles" of high-resolution details.
  3. Image Decoder: This module fuses the LR features with the sampled reference features to reconstruct the final SR image ($Y'$).
Overview of the RefVAE training and testing pipelines, highlighting the Conditional VAE architecture.

Training Objectives

To ensure both fidelity and perceptual quality, RefVAE is trained using a multi-faceted loss function:

  • Content Loss: Maintains structural consistency with the LR input.
  • Style Loss: Derived from style transfer literature, this forces the SR image to adopt the textures of the reference.
  • Adversarial Loss (GAN): A PatchGAN discriminator ensures the generated textures are sharp and realistic.
  • KL Divergence: Regularizes the latent space to follow a Gaussian distribution, ensuring it remains well-behaved for sampling.

Key Insights: SR as a Distribution

A central contribution of RefVAE is the conceptual shift from viewing SR as a point-estimate problem to viewing it as a distribution-matching problem. By using a CVAE, the authors allow users to explore a "space" of plausible high-resolution images.

One of the most striking findings is the model's flexibility regarding the reference image. Even when provided with random Gaussian noise or the LR image itself as a reference, the model can "hallucinate" plausible textures that significantly outperform standard bicubic interpolation. This effectively bridges the gap between image restoration and artistic style transfer, treating missing high-frequency details as a "style" that can be imported from any source.

RefVAE results using different reference inputs: noise, abstract textures, artistic styles, and the LR image itself.

Experimental Results

RefVAE was evaluated on standard benchmarks (Set5, Set14, BSD100, Urban100) and the DIV2K validation set, showing significant improvements over previous state-of-the-art methods like SRNTT and SRFlow in 8× upscaling tasks.

  • Quantitative Performance: On the Set5 dataset, RefVAE achieved a PSNR of ~25.9 dB, notably higher than SRFlow (~24.2 dB) and SRNTT (~24.7 dB).
  • Perceptual Quality: The model showed superior performance in LPIPS (Learned Perceptual Image Patch Similarity), indicating that the results appear more natural and sharp to human observers.
  • Diversity: In the NTIRE2021 SR Space challenge, RefVAE achieved high diversity scores, proving its ability to generate a wide variety of plausible HR candidates for a single LR input.

Limitations and Future Work

While RefVAE excels at texture hallucination, it faces challenges with semantic accuracy in extreme cases. For instance, when upscaling very small faces in a large landscape, the hallucinated details may look realistic but might not accurately reflect the original subject's specific features.

Future research directions include exploring Hierarchical Latent Spaces to provide finer control over specific image features (e.g., separating hair texture from skin texture) and investigating Vector Quantization to further organize the latent space for precise texture synthesis.

Summary updated

BibTeX
@inproceedings{liu2021variational,
  author = {Zhi-Song Liu and Wan-Chi Siu and Li-Wen Wang},
  title = {{Variational AutoEncoder for Reference Based Image Super-Resolution}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00063},
}
Figure