Dynamic Dual Trainable Bounds for Ultra-low Precision Super-Resolution Networks

Yunshan Zhong, Mingbao Lin, Xunchao Li, Ke Li, Yunhang Shen +3 more
3/8/2022
eess.IVcs.CV
quantization-pruning

Official code: zysxmu/DDTB (30 stars, Python, last commit 2022-09-13).

Abstract

Light-weight super-resolution (SR) models have received considerable attention for their serviceability in mobile devices. Many efforts employ network quantization to compress SR models.

Show full abstract

However, these methods suffer from severe performance degradation when quantizing the SR models to ultra-low precision (e.g., 2-bit and 3-bit) with the low-cost layer-wise quantizer. In this paper, we identify that the performance drop comes from the contradiction between the layer-wise symmetric quantizer and the highly asymmetric activation distribution in SR models. This discrepancy leads to either a waste on the quantization levels or detail loss in reconstructed images. Therefore, we propose a novel activation quantizer, referred to as Dynamic Dual Trainable Bounds (DDTB), to accommodate the asymmetry of the activations. Specifically, DDTB innovates in: 1) A layer-wise quantizer with trainable upper and lower bounds to tackle the highly asymmetric activations. 2) A dynamic gate controller to adaptively adjust the upper and lower bounds at runtime to overcome the drastically varying activation ranges over different samples.To reduce the extra overhead, the dynamic gate controller is quantized to 2-bit and applied to only part of the SR networks according to the introduced dynamic intensity. Extensive experiments demonstrate that our DDTB exhibits significant performance improvements in ultra-low precision. For example, our DDTB achieves a 0.70dB PSNR increase on Urban100 benchmark when quantizing EDSR to 2-bit and scaling up output images to x4. Code is at \url{https://github.com/zysxmu/DDTB}.

View on arXivView PDF

Code Implementations(1)

zysxmu/DDTBOfficial100%

Pytorch implementation of our paper accepted by ECCV2022 -- Dynamic Dual Trainable Bounds for Ultra-low Precision Super-Resolution Networks

304Python, MATLABMar 7, 20224 years ago
accelerationcompressionquantizationsuper-resolution

Similar Papers

Cite this paper

@article{zhong2022dynamic,
  title  = {Dynamic Dual Trainable Bounds for Ultra-low Precision Super-Resolution Networks},
  author = {Yunshan Zhong and Mingbao Lin and Xunchao Li and Ke Li and Yunhang Shen and Fei Chao and Yongjian Wu and Rongrong Ji},
  year   = {2022},
  eprint = {2203.03844},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.03844}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.03844.svg)](https://codeofpaper.com/paper/2203.03844)

Discussion