克服图像超分辨率网络量化中的分布不匹配问题
Overcoming Distribution Mismatch in Quantizing Image Super-Resolution Networks
AI总结:
针对图像超分辨率网络量化中的分布不匹配问题,提出一种无需动态调整的量化感知训练方案,通过梯度对齐正则化和逐层权重裁剪校正,以最小计算开销实现最先进性能。
摘要:
尽管量化已成为减少各种高层视觉任务计算复杂度的有前景的方法,但它不可避免地导致图像超分辨率(SR)网络中的精度损失。这是因为SR网络的不同通道和输入图像之间的特征分布存在显著差异,这使得固定量化范围的选择变得复杂。现有工作通过在测试时动态调整量化范围以适应变化的分布来解决这一分布不匹配问题。然而,这种动态调整在推理期间会带来额外的计算成本。相比之下,我们提出了一种新的量化感知训练方案,该方案无需动态调整即可有效克服SR网络中的分布不匹配问题。直观上,这种不匹配可以通过正则化特征与固定量化范围之间的距离来缓解。然而,我们观察到这种正则化在训练期间可能与重建损失冲突,对SR精度产生负面影响。因此,我们仅在正则化的梯度与重建损失的梯度对齐时才选择对不匹配进行正则化。此外,我们引入了一种逐层权重裁剪校正方案,以确定更适合逐层权重的量化范围。实验结果表明,我们的框架有效减少了分布不匹配,并以最小的计算开销实现了最先进的性能。
英文摘要:
Although quantization has emerged as a promising approach to reducing computational complexity across various high-level vision tasks, it inevitably leads to accuracy loss in image super-resolution (SR) networks. This is due to the significantly divergent feature distributions across different channels and input images of the SR networks, which complicates the selection of a fixed quantization range. Existing works address this distribution mismatch problem by dynamically adapting quantization ranges to the varying distributions during test time. However, such a dynamic adaptation incurs additional computational costs during inference. In contrast, we propose a new quantization-aware training scheme that effectively Overcomes the Distribution Mismatch problem in SR networks without the need for dynamic adaptation. Intuitively, this mismatch can be mitigated by regularizing the distance between the feature and a fixed quantization range. However, we observe that such regularization can conflict with the reconstruction loss during training, negatively impacting SR accuracy. Therefore, we opt to regularize the mismatch only when the gradients of the regularization are aligned with those of the reconstruction loss. Additionally, we introduce a layer-wise weight clipping correction scheme to determine a more suitable quantization range for layer-wise weights. Experimental results demonstrate that our framework effectively reduces the distribution mismatch and achieves state-of-the-art performance with minimal computational overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。