Abstract
Neural Image Compression (NIC) has recently surpassed traditional codecs like JPEG and HEVC in standard rate-distortion benchmarks. However, these successes are often measured using scalar metrics like Peak Signal-to-Noise Ratio (PSNR) on clean, in-distribution datasets. This paper investigates the "black box" of NIC, revealing that these models possess inherent spectral biases. By introducing corrupted benchmarks (CLIC-C and Kodak-C), we demonstrate that NIC models function as effective low-pass filters. This characteristic allows them to outperform traditional codecs in robustness against high-frequency noise, often improving downstream task performance by acting as implicit denoisers.
Introduction
The rapid advancement of Neural Image Compression (NIC) has positioned it as a formidable successor to classical standards. While NIC models excel in controlled research environments, their performance in "out-of-distribution" (OOD) scenarios—such as those encountered by autonomous vehicles in inclement weather or satellite imaging—remains poorly understood.
Current evaluation frameworks rely heavily on PSNR, a metric that quantifies total error but fails to characterize the nature of that error. This "metric blindness" obscures how different architectures handle various frequency components of an image. This study addresses these gaps by analyzing NIC robustness through a spectral lens, moving beyond simple scalar comparisons to understand the underlying frequency-domain behavior of neural codecs.
Methodology: Beyond Scalar Metrics
To dissect the performance of NIC models, we move beyond spatial domain averages and employ spectrally-inspired inspection tools.
Spectral Inspection Tools
- Power Spectral Density (PSD): Used to analyze the distribution of reconstruction errors across the frequency spectrum.
- Spectral Measure of Distortion ($D$): A novel metric designed to quantify error across specific frequency bands, providing a more granular view than PSNR.
- Fourier Error Heatmaps: Visualization tools that map sensitivity to perturbations at specific frequencies, highlighting where a model is most vulnerable.
Benchmarking Robustness
We evaluate several NIC variants—including fixed-rate, variable-rate, and pruned models—against classic codecs like JPEG, JPEG2000, and VTM (H.266). To simulate real-world degradation, we introduce:
- CLIC-C and Kodak-C: Derived from standard datasets, these suites include 15 types of corruptions (e.g., frost, fog, shot noise) at varying severity levels.
- ImageNet-C: Utilized to assess the impact of compression on downstream AI tasks, specifically image classification.
Key Insights: The Low-Pass Filter Effect
Our analysis reveals a fundamental "spectral bias" in NIC models. Because these models are typically trained on natural images—which are dominated by low-to-mid frequency information—they develop a preference for reconstructing these components while discarding high-frequency data.
NIC as an Accidental Denoiser
One of the most significant findings is that NIC models act as inherent denoisers for high-frequency corruptions. While classic codecs like JPEG may struggle with "shot noise," NIC models treat such noise as irrelevant high-frequency detail and filter it out. Theoretical analysis of linear autoencoders confirms this behavior, showing they naturally overfit low-frequency components and "blur" high-frequency noise.
The Pruning Paradox
Interestingly, model pruning—the process of removing 80-95% of a network's weights—does not necessarily degrade robustness. In many cases, pruning actually amplifies the low-pass filtering effect, making the compressed output "cleaner" for downstream classifiers by more aggressively removing high-frequency noise.
Results and Discussion
The experimental results highlight a clear distinction between NIC and traditional methods:
- Generalization: All models generalize well to low-frequency shifts (e.g., brightness changes), but NIC models show superior resilience to high-frequency shifts compared to JPEG.
- Downstream Accuracy: In classification tests on noisy data, images compressed via NIC often yielded higher accuracy than the original noisy source. For instance, at a PSNR of 36.93, NIC-compressed images improved classification performance on high-frequency noise, whereas JPEG compression at an equivalent rate exacerbated the error.
- Predictability: Unlike VTM, which exhibits high variability in bits-per-pixel (bpp) when encountering noise, NIC models maintain more stable bitrates, which is critical for bandwidth-constrained deployments.
Conclusion
This research pulls back the curtain on the internal mechanics of Neural Image Compression. By identifying the spectral biases inherent in these architectures, we can better predict how they will perform in the wild. While NIC models are currently "accidental" denoisers, future work should focus on designing "spectral-aware" codecs. Such models could dynamically adapt their frequency biases based on the environmental noise profile, leading to more robust and reliable compression standards for the next generation of digital imaging.
Summary updated