AdaCompress:用于在线计算机视觉服务的自适应压缩
AdaCompress: Adaptive Compression for Online Computer Vision Services
摘要:
随着基于计算机视觉的应用和服务的增长,爆炸性数量的图像已经被上传到托管这种计算机视觉算法的云服务器,通常以深度学习模型的形式。由于JPEG具有广泛的适应性,因此在上传图像之前,它已被用作{ \em de facto}压缩和封装方法。然而,标准JPEG配置对于压缩将由深度学习模型(例如,JPEG标准质量级别导致50%的大小开销(与最佳质量水平选择相比)在ImageNet上,在包括InceptionNet、ResNet等在内的流行计算机视觉模型中,在相同的推理准确度下,在相同的推理准确度下,如何在ImageNet上实现更好的JPEG配置?要知道,为在线计算机视觉服务设计更好的JPEG配置仍然极具挑战性:1)基于云的计算机视觉模型对于最终用户来说通常是一个黑盒;因此,在不知道它们的模型结构的情况下,很难设计JPEG配置。2)针对JPEG配置在不同用户使用时会发生变化的问题,提出了一种基于强化学习的JPEG配置框架。特别是,我们设计了一个代理,根据输入图像的特征和后端深度学习模型自适应地选择压缩级别。然后,我们以强化学习的方式训练代理,使其适应不同的深度学习云服务,这些服务充当{ \em交互式训练环境},并在综合考虑准确性和数据大小的情况下提供奖励。在我们对Amazon Rekognition、Face++和Baidu Vision的真实世界评估中,我们的方法可以将图像的大小减少1/2 - 1/3,而整体分类准确率仅略有下降。
英文摘要:
With the growth of computer vision based applications and services, an explosive amount of images have been uploaded to cloud servers which host such computer vision algorithms, usually in the form of deep learning models. JPEG has been used as the {\em de facto} compression and encapsulation method before one uploads the images, due to its wide adaptation. However, standard JPEG configuration does not always perform well for compressing images that are to be processed by a deep learning model, e.g., the standard quality level of JPEG leads to 50\% of size overhead (compared with the best quality level selection) on ImageNet under the same inference accuracy in popular computer vision models including InceptionNet, ResNet, etc. Knowing this, designing a better JPEG configuration for online computer vision services is still extremely challenging: 1) Cloud-based computer vision models are usually a black box to end-users; thus it is difficult to design JPEG configuration without knowing their model structures. 2) JPEG configuration has to change when different users use it. In this paper, we propose a reinforcement learning based JPEG configuration framework. In particular, we design an agent that adaptively chooses the compression level according to the input image's features and backend deep learning models. Then we train the agent in a reinforcement learning way to adapt it for different deep learning cloud services that act as the {\em interactive training environment} and feeding a reward with comprehensive consideration of accuracy and data size. In our real-world evaluation on Amazon Rekognition, Face++ and Baidu Vision, our approach can reduce the size of images by 1/2 -- 1/3 while the overall classification accuracy only decreases slightly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。