为AI视觉优化JPEG压缩,让模型识别更准且压缩率更低
Learned JPEG Compression for DNN Vision

- 用可微分量化器模拟JPEG编码,实现端到端训练
- 相同压缩率下模型准确率最高提升11.60%,压缩率可降低80.05%
- 首次实现适配多种神经网络的通用压缩参数
JPEG作为一种为人类视觉设计的有损图像压缩技术,长期占据主导地位。但在人工智能时代,大量图像数据被深度神经网络(DNN)处理而非人眼观看,因此需优化JPEG以提升DNN推理性能。为此,本文提出面向DNN视觉的可学习JPEG压缩(J4D),通过训练确定最优编码参数,在最小化压缩率的同时最大化DNN性能。核心挑战在于将JPEG编码器与压缩率表示为闭式形式。我们引入基于概率量化方案的可微软量化器,不仅构建了可微的JPEG代理模型,还能解析计算码源熵,作为实际压缩率的近似估计。结合可微的编码器与信息论级率估计算法,可使用反向传播求解优化问题。训练完成后,采用概率量化进行实际编码。在多个数据集和网络架构上的实验表明,J4D显著优于默认JPEG及其他针对DNN优化的压缩方法。相比默认JPEG,J4D在相同压缩率下最高提升准确率11.60%,或在相同准确率下压缩率降低达80.05%。此外,首次展示了为多种DNN架构设计通用压缩参数的可行性。
原文摘要 · Abstract (English)
JPEG, a lossy image compression technique designed for human viewers, has maintained its dominance for decades. However, in the era of artificial intelligence (AI), a substantial portion of image data, often compressed by JPEG, is and will continue to be consumed by deep neural networks (DNNs) instead of humans, thus creating a need to optimize JPEG for DNN inference performance. To this end, we propose learned JPEG compression for DNN vision (J4D), a novel training framework for determining JPEG encoding parameters to minimize compression rate while maximizing DNN inference performance. The major challenge of solving this optimization problem lies in representing the JPEG codec and compression rate in closed form. By incorporating a differentiable soft quantizer based on a probabilistic quantization scheme, we not only obtain a differentiable proxy for the JPEG codec, but are also able to compute the entropy of the coded source analytically, which is a close estimate of the actual compression rate. Equipped with both the differentiable JPEG codec and the information-theoretic rate estimator, we are then able to solve the aforementioned optimization problem with backpropagation. After training, the learned encoding parameters will be subsequently used in actual JPEG encoding based on probabilistic quantization. Extensive experimental results across multiple datasets and DNN architectures demonstrate that J4D consistently and significantly outperforms the default JPEG and other competitive JPEG codecs optimized for DNNs. Notably, compared to the default JPEG, J4D achieves an increase in accuracy by as much as 11.60% at the same rate, or a reduction of compression rate up to 80.05% at the same accuracy. Additionally, with the help of J4D, we show the potential to design universal JPEG encoding parameters for various DNN architectures for the first time.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。