SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.03844 · ECCV · 2022

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

Rongrong Ji, Ke Li, Mingbao Lin, Fei Chao, Yongjian Wu, Xunchao Li, Yunhang Shen, Yunshan Zhong

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 7 functions out of this paper's own repositories and ran 5 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
zysxmu/DDTB — 5 of 7
FunctionStatusWhere it lives
TorchRound Ran zysxmu/DDTB/model/quant_ops.py
pointer only (licence: NONE) · get_code("291b23140dbdf5fb")
_ntuple Ran zysxmu/DDTB/model/quant_ops.py
pointer only (licence: NONE) · get_code("f824d678bd760ea9")
quant_activation Ran zysxmu/DDTB/model/quant_ops.py
pointer only (licence: NONE) · get_code("b7db9560a69e8cf1")
quant_max Ran zysxmu/DDTB/model/quant_ops.py
pointer only (licence: NONE) · get_code("9e6856318aebbebd")
quant_weight Ran zysxmu/DDTB/model/quant_ops.py
pointer only (licence: NONE) · get_code("a57bc439cef4efad")
DDTB_quant_act_asym_dynamic_quantized Not yet run zysxmu/DDTB/model/quant_ops.py
pointer only (licence: NONE) · get_code("ce99975fc27e7171")
QuantConv2d Not yet run zysxmu/DDTB/model/quant_ops.py
pointer only (licence: NONE) · get_code("bf819a5df2d3e777")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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. 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 lowcost 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 ×4. Code is at https://github.com/zysxmu/DDTB.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2203.03844")
get_code_for_paper("2203.03844")
have("2203.03844")

Connect an agent — have() is free.