Abstract
As high-resolution visual data becomes ubiquitous in edge computing and mobile sensing, image compression is essential to manage bandwidth. However, compression artifacts often degrade the performance of deep learning models. This paper investigates whether this degradation stems from information loss or a domain shift. We evaluate classification, detection, and segmentation tasks across traditional and neural codecs. Our results show that finetuning models on compressed images recovers the majority of lost performance, allowing for data size reductions of up to 12x while maintaining near-baseline accuracy.
1. Introduction
The increasing demand for high-resolution image processing on edge devices necessitates efficient data transmission. While compression reduces file sizes, it introduces artifacts—such as blurring or blocking—that human observers might tolerate but which significantly impact vision models. We seek to determine if these models are failing due to unfamiliar artifacts or if the underlying visual information is truly lost during the compression process.
2. Methodology
We systematically evaluate three vision tasks: Image Classification (Swin-T), Object Detection (ResNet-50), and Semantic Segmentation (Swin-T). We utilize four codecs: traditional (BPG, WebP) and neural (M&S, GMM hyperpriors). The experimental setup involves three distinct scenarios to isolate the impact of compression:
- Scenario A (Baseline): Training and testing on high-quality images.
- Scenario B (Naive): Testing baseline models directly on compressed images.
- Scenario C (Adaptive): Finetuning baseline models on compressed data before testing.
3. Key Insights: The Generalization Gap
The performance drop observed in Scenario B is primarily a generalization gap rather than a loss of information. The data required for recognition is often preserved, but models require exposure to compression artifacts to "see through" the noise. Finetuning proves highly effective; for segmentation at 0.1 bpp, accuracy improved from 30.5 to 42.0 mIoU (against a baseline of 44.5), recovering 82% of the performance loss.
Furthermore, neural compression methods generally preserved more useful information for complex tasks like detection and segmentation at extremely low bitrates compared to traditional methods like BPG.
4. Results and Data Efficiency
Finetuning enables massive data savings. We achieved performance within 0.5 points of the baseline at 0.4 bpp, representing a 4x reduction for segmentation and a 12x reduction for object detection compared to original files.
5. Conclusion and Future Work
Standard finetuning is a sufficient and efficient method to mitigate the domain shift caused by compression. It demonstrates that the "missing information" in compressed images is often accessible to models if they are properly adapted. Future research should explore direct inference on compressed latent representations to eliminate decompression latency and further optimize edge-to-cloud pipelines.
Summary updated