분류 네트워크를 위한 JPEG 양자화 최적화
Optimizing JPEG Quantization for Classification Networks
Optimizing JPEG Quantization for Classification Networks
@misc{li2020optimizing,
title = {Optimizing JPEG Quantization for Classification Networks},
author = {Zhijing Li and Christopher De Sa and Adrian Sampson},
year = {2020},
eprint = {2003.02874},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2003.02874}
}
Li, Z., Sa, C. D., & Sampson, A. (2020). Optimizing JPEG Quantization for Classification Networks [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2003.02874
LI Z, SA CD, SAMPSON A. Optimizing JPEG Quantization for Classification Networks[EB/OL]. (2020-03-05)[2026-11-29]. https://arxiv.org/abs/2003.02874.
초록
컴퓨터 비전 딥러닝은 손실성 이미지 압축에 의존하며, 이는 훈련 및 테스트 데이터의 저장 공간을 줄이고 배포 시 전송 비용을 절감합니다. 주류 데이터셋 및 이미지 파이프라인은 모두 표준 JPEG 압축에 의존합니다. JPEG 에서 주파수 계수의 양자화 정도가 손실성을 결정하며, 8x8 양자화 테이블 (Q-table) 은 인코딩된 이미지의 품질과 압축 비율을 동시에 결정합니다. 과거에는 더 나은 Q-table 를 찾기 위한 연구가 많았으나, 기존 작업들은 이미지 왜곡 최소화나 인간 시각 시스템 모델 최적화에 초점을 맞추었습니다. 본 작업은 특정 컴퓨터 비전 네트워크를 위해 인간 지각이나 최소 왜곡을 위한 것보다 "더 나은" JPEG Q-table 가 존재하며, 더 나은 품질 - 크기 트레이드오프를 제공할 수 있는지 묻습니다. 우리는 새로운 Q-table 하에서 JPEG 압축의 영향을 탐구하기 위해 더 높은 해상도로 ImageNet 테스트 집합을 재구성합니다. 또한 시각 작업에 대한 Q-table 튜닝을 위한 여러 접근법을 시도합니다. 우리는 단순한 정렬된 무작위 샘플링 방법이 표준 JPEG Q-table 의 성능을 초과할 수 있음을 발견합니다. 또한 경계 무작위 탐색, 베이지안 최적화, 그리고 합성 휴리스틱 최적화 방법과 같은 하이퍼파라미터 튜닝 기법을 사용했습니다. 우리가 얻은 새로운 Q-table 은 정확도가 고정될 때 압축률을 10% 에서 200%까지 개선하거나, 동일한 압축률에서 정확도를 최대 2% 까지 개선할 수 있습니다.
Deep learning for computer vision depends on lossy image compression: it reduces the storage required for training and test data and lowers transfer costs in deployment. Mainstream datasets and imaging pipelines all rely on standard JPEG compression. In JPEG, the degree of quantization of frequency coefficients controls the lossiness: an 8 by 8 quantization table (Q-table) decides both the quality of the encoded image and the compression ratio. While a long history of work has sought better Q-tables, existing work either seeks to minimize image distortion or to optimize for models of the human visual system. This work asks whether JPEG Q-tables exist that are "better" for specific vision networks and can offer better quality-size trade-offs than ones designed for human perception or minimal distortion. We reconstruct an ImageNet test set with higher resolution to explore the effect of JPEG compression under novel Q-tables. We attempt several approaches to tune a Q-table for a vision task. We find that a simple sorted random sampling method can exceed the performance of the standard JPEG Q-table. We also use hyper-parameter tuning techniques including bounded random search, Bayesian optimization, and composite heuristic optimization methods. The new Q-tables we obtained can improve the compression rate by 10% to 200% when the accuracy is fixed, or improve accuracy up to 2% at the same compression rate.