Basic Binary Convolution Unit for Binarized Image Restoration Network

Bin Xia, Yulun Zhang, Yitong Wang, Yapeng Tian, Wenming Yang, Radu Timofte, Luc Van Gool

TL;DR

The authors introduce the Basic Binary Convolution Unit (BBCU), a novel building block designed to make 1-bit Binary Neural Networks (BNNs) viable for high-quality image restoration. By rethinking residual connections and replacing Batch Normalization with a "Residual Alignment" scheme, BBCU achieves state-of-the-art performance in super-resolution and denoising while offering massive theoretical gains in computational efficiency.

What Problem Does This Paper Address?

Image Restoration (IR)—tasks like super-resolution, denoising, and removing compression artifacts—is computationally expensive because it requires dense, pixel-accurate predictions. While Binary Neural Networks (BNNs) can theoretically reduce memory usage by 32× and computation by up to 64× by using 1-bit weights and activations, they have historically performed poorly on low-level vision tasks.

The gap exists because IR tasks are highly sensitive to the massive information loss caused by binarization. Most BNN research focuses on high-level classification, where "semantic" features matter more than exact pixel values. In IR, standard CNN design choices (like removing BatchNorm or specific activation placements) actually backfire when applied to 1-bit networks. This paper seeks to bridge that gap by designing a BNN unit specifically tailored for the unique requirements of image restoration.

Methods

The authors systematically re-evaluate the components of a binary convolution through four iterations (V1 to V4):

Evolution of the Basic Binary Convolution Unit (BBCU) from V1 to the adopted V4.
  1. Residual Connections: They confirm that for BNNs in IR, a residual connection for every binary convolution is essential to supplement the information lost during binarization.
  2. Residual Alignment (RA): In full-precision IR networks, BatchNorm (BN) is often removed because it shifts the image distribution and hurts performance. However, in BNNs, the authors found BN was "accidentally" helpful because it balanced the value range between the binary convolution (which outputs large integers like -15 to 15) and the residual path (which outputs small floats like -1 to 1). To get the benefit of range balancing without the downsides of BN, they propose Residual Alignment (RA): multiplying the input by a learnable amplification factor $k$ to scale the residual path up to match the binary path.
  3. Activation Placement: They moved the activation function (RPReLU) into the residual connection path. This prevents the activation from "clipping" negative values that are crucial for the next binary convolution layer to maintain information flow.
  4. Four-Part Architecture: Recognizing that different parts of a network have different needs, they designed variants of the BBCU for the Head (input), Body (feature extraction), Upsampling, and Tail (output) of the network. Notably, they binarized the upsampling layer, which accounts for over 50% of the total calculations in many SR models.

Datasets

The models were trained on the DIV2K dataset (800 high-quality images). Evaluation was performed across several standard benchmarks:

  • Super-Resolution: Set5, Set14, B100, Urban100, and Manga109.
  • Denoising: CBSD68, Kodak24, and Urban100.
  • JPEG Deblocking: LIVE1 and Classic5.

Key Insights and Ideas

  • The "Value Range Gap" is the Enemy: The most significant insight is that BNNs fail in IR not just because of quantization noise, but because the "volume" of the residual signal is too quiet compared to the "volume" of the binary convolution output. Their RA scheme acts as a volume knob to sync them.
  • BN is a Double-Edged Sword: While BN helps stabilize BNNs, it limits the restoration quality. Replacing it with a simple scalar multiplier ($k$) provides the stability of BN with the precision of a "BN-free" IR network.
  • Binarizing the "Heavy" Parts: Previous works often left the upsampling layers in full precision. This paper shows that with the right unit design (BBCU-U), you can binarize these computationally heavy layers with minimal quality loss.

Key Results

Performance comparison (PSNR vs. Operations) of BBCU against other binarized networks across Super-Resolution, Denoising, and Deblocking tasks.
  • Superiority over BNNs: On 4× Super-Resolution, BBCU-L outperformed the previous state-of-the-art (ReActNet) by 0.25dB to 0.44dB across various datasets.
  • Efficiency vs. Performance: The authors introduced BBCU-M, a "medium" version that uses only 5% of the operations and 13.7% of the parameters of ReActNet while still achieving competitive results.
  • Denoising Gains: In image denoising ($\sigma=15$), BBCU surpassed ReActNet by 0.82dB on CBSD68 and 1dB on Urban100, significantly closing the gap between 1-bit and full-precision models.
  • Visual Quality: Qualitative results show that BBCU recovers much sharper textures and more realistic details compared to other binarized methods, which often produce blurry or "blocky" artifacts.

Limitations and Future Work

While BBCU significantly narrows the gap, a performance delta still exists between these 1-bit models and their full-precision counterparts (e.g., SRResNet). The authors also note that the amplification factor $k$ is sensitive to the number of channels in the network, requiring a specific empirical formula ($k^* = 130n/64$) to set it correctly.

Future work could involve exploring even more aggressive compression or hardware-specific implementations to see how these theoretical "64× computation reductions" translate to real-world FPS on mobile CPUs and microcontrollers.

Summary updated

BibTeX
@inproceedings{xia2023basic,
  author = {Bin Xia and Yulun Zhang and Yitong Wang and Yapeng Tian and Wenming Yang and Radu Timofte and Luc Van Gool},
  title = {{Basic Binary Convolution Unit for Binarized Image Restoration Network}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=h8T5dZWTZ-Z},
}
Figure