Abstract
As learned image codecs (LICs) become more prevalent, their low coding efficiency for out-of-distribution data becomes a bottleneck for some applications. To improve the performance of LICs for screen content (SC) images without breaking backwards compatibility, we propose to introduce parameterized and invertible linear transformations into the coding pipeline without changing the underlying baseline codec's operation flow. We design two neural networks to act as prefilters and postfilters in our setup to increase the coding efficiency and help with the recovery from coding artifacts. Our end-to-end trained solution achieves up to 10% bitrate savings on SC compression compared to the baseline LICs while introducing only 1% extra parameters.
Introduction
Learned Image Codecs (LICs) have demonstrated significant potential, frequently surpassing traditional standards like JPEG or HEVC when applied to natural images. However, these models often struggle with "out-of-distribution" data, particularly Screen Content (SC) such as computer graphics, text, and user interfaces. Unlike the smooth gradients found in natural photographs, SC images are characterized by sharp edges and limited color palettes, which standard LICs are not optimized to compress efficiently.
A major hurdle in improving LIC performance for SC is maintaining backward compatibility. Once a codec is standardized, its internal weights cannot be easily retrained without rendering existing decoders obsolete. This research addresses this challenge by proposing a "wrapper" approach that enhances SC performance while keeping the core codec frozen.
The "Sandwich" Architecture
The proposed method utilizes a modular pipeline that treats the baseline LIC as a frozen "black box." This "sandwich" architecture introduces four lightweight components around the existing codec to adapt it for screen content.
The pipeline consists of the following stages:
- Linear Forward Transformation ($T$): This stage applies a transformation to the input image. While various methods like PCA-based downscaling were explored, Desaturation proved most effective. It uses a saturation level $\alpha$ to linearly interpolate between the original RGB image and its grayscale version.
- Compact Representation (CR) Module: A neural pre-filter that prepares the transformed image for the LIC. It is designed to make the image more "compressible" for the specific baseline model.
- Linear Inverse Transformation ($T^{-1}$): This reverses the initial transformation (e.g., attempting to restore color saturation) before the final reconstruction stage.
- Reconstruction Stage (RS) Module: A neural post-filter that removes compression artifacts and restores fine details lost during the coding process.
The CR and RS modules are based on a ResNet-like architecture utilizing MBConv (Mobile Inverted Bottleneck Convolution) layers. This design ensures the wrapper remains lightweight, adding only approximately 1% additional parameters to the overall system.
Experimental Results
The system was trained and validated using the JPEGAI-SC dataset, comprising roughly 4,000 images across categories like gaming, screenshots, and 3D renderings. The entire wrapper was trained end-to-end while keeping the core codec weights fixed, ensuring that the resulting bitstream remains valid for the original baseline decoder if the wrapper is disabled.
As shown in the performance curves, the proposed approach consistently improves the coding efficiency of three popular baseline LICs: Ballé et al. (2018), Minnen et al. (2018), and Cheng et al. (2020). Key findings include:
- Bitrate Savings: The solution achieved up to 10% BD-rate savings on screen content compared to the baselines.
- PSNR Gains: The integration of the CR and RS modules resulted in a 0.5 - 1 dB PSNR gain over the frozen codecs.
- Optimal Desaturation: A saturation level of $\alpha = 0.8$ or $0.9$ was found to be the "sweet spot," allowing the LIC to focus its bit budget on structural details while the RS module effectively handles color recovery.
Conclusion
This work demonstrates that lightweight, modular wrappers can significantly enhance the performance of learned image codecs for specialized domains like screen content without sacrificing backward compatibility. By combining simple linear transformations with neural pre- and post-filtering, the proposed method achieves substantial bitrate savings with minimal parameter overhead. Future work may explore per-image optimization of transformation parameters and extending this "sandwich" approach to other domains such as medical or satellite imaging.
Summary updated