The sensitivity of deep neural networks to compressed images hinders their usage in many real applications, which means classification networks may fail just after taking a screenshot and saving it as a compressed file. In this paper, we argue that neglected disposable coding parameters stored in compressed files could be picked up to reduce the sensitivity of deep neural networks to compressed images. Specifically, we resort to using one of the representative parameters, quantization steps, to facilitate image classification. Firstly, based on quantization steps, we propose a novel quantization aware confidence (QAC), which is utilized as sample weights to reduce the influence of quantization on network training. Secondly, we utilize quantization steps to alleviate the variance of feature distributions, where a quantization aware batch normalization (QABN) is proposed to replace batch normalization of classification networks. Extensive experiments show that the proposed method significantly improves the performance of classification networks on CIFAR-10, CIFAR-100, and ImageNet. The code is released on https://github.com/LiMaPKU/QSAM.git
翻译:深度神经网络对压缩图像的敏感性阻碍了它们在许多实际应用中的使用,这意味着分类网络可能在截取并保存为压缩文件后立即失败。本文认为,压缩文件中存储的被忽略的一次性编码参数可以通过选择来降低深度神经网络对压缩图像的敏感性。具体而言,我们利用代表性参数之一,量化步骤,来促进图像分类。首先,基于量化步骤,我们提出了一种新的量化感知置信度(QAC),该置信度被用作样本权重以减少量化对网络训练的影响。其次,我们利用量化步骤来减少特征分布的方差,提出了一种量化感知批量规范化(QABN)来替代分类网络中的批量规范化。广泛的实验表明,所提出的方法显著提高了CIFAR-10、CIFAR-100和ImageNet上的分类网络性能。代码发布在https://github.com/LiMaPKU/QSAM.git上。