Spectrally Consistent UNet for High Fidelity Image Transformations

Demetris Marnerides, Thomas Bashford-Rogers, Kurt DebattistaarXiv 2020

Abstract

The Guided UNet (GUNet) introduces a novel upsampling module based on the Guided Image Filter to eliminate common architectural artifacts like checkerboard patterns and blurring. By using high-resolution encoder features to "guide" the upsampling of decoder features, GUNet achieves superior spectral consistency and higher fidelity in tasks like HDR reconstruction and image colorization.

The Structural Bias of Standard UNets

The UNet architecture is a cornerstone of image-to-image transformations, valued for its ability to fuse local and global context. However, it suffers from a persistent "structural bias." The decoder layers responsible for increasing resolution—typically transposed convolutions—often introduce checkerboard artifacts due to uneven kernel overlap. While alternative upsampling methods like bilinear or nearest-neighbor interpolation avoid these patterns, they tend to over-smooth results, sacrificing high-frequency details.

These artifacts are more than aesthetic flaws; they indicate a fundamental failure of the network to maintain a consistent frequency spectrum relative to the input. Even with extensive training, standard architectures struggle to overcome these inherent biases.

Proposed Method: Guided Feature Upsampling

To address these limitations, the authors propose the Guided UNet (GUNet). The core innovation is a Guided Feature Upsampling module based on the Guided Image Filter (GIF).

The GUNet architecture utilizes a recursive structure where high-resolution encoder features guide the upsampling of decoder features via the Fast Guided Image Filter (FGIF).

In this architecture, high-resolution features from the encoder act as a "guide" for the lower-resolution features in the decoder. The module assumes a locally linear relationship between the guide and the output, allowing the network to transfer sharp edges and fine details directly from the encoder. This mathematical guidance replaces the need for heavy, learned convolutional upsampling, resulting in a model with significantly fewer parameters that is naturally resistant to checkerboard artifacts.

Spectral Consistency Analysis

A key contribution of this work is the use of Fourier domain analysis to diagnose architectural bias. By examining the magnitude of the 2D Fourier Transform of network outputs, the researchers can visualize the spectral footprint of different upsampling methods.

Spectral analysis in the Fourier domain reveals that GUNet (d) maintains high-frequency consistency with the input (e), whereas standard UNet variants exhibit checkerboard spikes (a) or blurring (b, c).

As shown in the spectral comparisons, transposed convolutions (TC-UNet) produce distinct "spikes" or dominant frequencies that correspond to checkerboard patterns. Conversely, interpolation methods (NN-UNet, BI-UNet) show dark regions in the high-frequency spectrum, indicating a loss of detail. GUNet’s spectrum remains almost indistinguishable from the input, demonstrating its superior spectral consistency.

Experimental Evaluation

The researchers evaluated GUNet on two demanding tasks: Inverse Tone Mapping (ITM) and Image Colorization.

Inverse Tone Mapping (ITM)

In ITM, the goal is to reconstruct High Dynamic Range (HDR) information from standard images. GUNet outperformed state-of-the-art methods across multiple metrics. Notably, in optimal exposure settings, GUNet achieved an SSIM of 0.84, a substantial improvement over the standard UNet's 0.68. The guided approach allowed for the reconstruction of bright highlights without the haloing or blurring common in other models.

Image Colorization

For colorization, GUNet was trained on the Places365 dataset. Qualitative results showed a significant reduction in "color bleeding"—where color incorrectly spills over object boundaries. By using the original grayscale image features to guide the upsampling of color information, the model produced much sharper and more localized hues.

Conclusion

The Guided UNet demonstrates that architectural choices are as critical as loss functions in achieving high-fidelity results. By replacing learned upsampling with a guided, parameter-free module, GUNet achieves better spectral consistency, higher visual quality, and greater parameter efficiency. Future work may extend this guided approach to more complex generative tasks, such as GAN-based synthesis or medical imaging, where the elimination of structural artifacts is paramount.

Summary updated

Abstract

Convolutional Neural Networks (CNNs) are the current de-facto models used for many imaging tasks due to their high learning capacity as well as their architectural qualities. The ubiquitous UNet architecture provides an efficient and multi-scale solution that combines local and global information. Despite the success of UNet architectures, the use of upsampling layers can cause artefacts. In this work, a method for assessing the structural biases of UNets and the effects these have on the outputs is presented, characterising their impact in the Fourier domain. A new upsampling module is proposed, based on a novel use of the Guided Image Filter, that provides spectrally consistent outputs when used in a UNet architecture, forming the Guided UNet (GUNet). The GUNet architecture is applied and evaluated for example applications of inverse tone mapping/dynamic range expansion and colourisation from grey-scale images and is shown to provide higher fidelity outputs.
BibTeX
@misc{marnerides2020spectrally,
  author = {Demetris Marnerides and Thomas Bashford-Rogers and Kurt Debattista},
  title = {{Spectrally Consistent UNet for High Fidelity Image Transformations}},
  year = {2020},
  eprint = {2004.10696},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.10696},
}
Figure