Abstract
Traditional image compression codecs often struggle with perceptual quality at low bitrates, leading to artifacts like blocking and blurring. This paper proposes a novel generative preprocessing framework that utilizes pre-trained diffusion models to "re-synthesize" textures that are more amenable to standard compression. The framework consists of a distillation stage for computational efficiency and a rate-perception fine-tuning stage using a differentiable codec surrogate. Experimental results on the Kodak and CLIC datasets demonstrate that this approach can reduce bitrates by approximately 30% while significantly improving perceptual metrics compared to existing state-of-the-art preprocessors.
Introduction
Standard image compression (e.g., JPEG, BPG) relies on the Rate-Distortion (R-D) trade-off, which often prioritizes pixel-level accuracy (MSE) over human visual perception. At low bitrates, this leads to significant visual degradation. While neural preprocessors have been proposed to mitigate this, they often lack the capacity to reconstruct complex natural textures. This work leverages the generative power of Stable Diffusion 2.1 to act as a sophisticated preprocessor that "pre-formats" images for standard compressors.
Methodology
The proposed framework operates in two distinct stages to balance generative capability with computational efficiency.
1. Distillation Stage
Diffusion models are inherently slow due to their iterative nature. To make them viable for preprocessing, the authors employ Consistent Score Identity Distillation (CiD). This process distills the knowledge of Stable Diffusion 2.1 into a compact, one-step U-Net, reducing inference time by approximately 100x while preserving the model's rich generative priors.
2. Rate-Perception Fine-tuning
To optimize the distilled model for compression, a parameter-efficient fine-tuning strategy is used. Instead of updating the entire network, only the projection matrices ($W_Q, W_K, W_V$) within the attention modules are modified. This allows the model to adapt to the compression task without losing its understanding of natural image statistics.
A key challenge in training is the non-differentiable nature of standard codecs. The authors introduce diff-BPG, a differentiable surrogate that approximates BPG compression using soft-argmin and Fourier series, allowing gradients to flow through the compressor during training.
Experimental Results
The model was evaluated on the Kodak and CLIC datasets. The primary metric used was the BD-rate reduction relative to perceptual quality metrics.
As shown in the results, the method achieves a 30.13% BD-rate reduction on the Kodak dataset when paired with BPG. It consistently outperforms the state-of-the-art CNN-based preprocessor (TDP) across multiple formats including JPEG and WebP. Qualitatively, the generative approach maintains sharp, natural-looking textures where other methods produce blur or "plastic" artifacts.
Conclusion and Future Work
This work demonstrates the potential of large-scale generative models in traditional signal processing tasks. By viewing the preprocessor as a "texture re-synthesizer," the framework effectively navigates the Rate-Distortion-Perception trade-off. Future work will focus on reducing the computational overhead of the U-Net architecture and addressing the "high-bitrate crossover" where generative changes may become counterproductive.
Summary updated