Multi-Task Learning for Screen Content Image Coding

Rashid Zamanshoar Heris, Ivan V. Bajić · DOI

Abstract

With the rise of remote work and collaboration, compression of screen content images (SCI) is becoming increasingly important. While there are efficient codecs for natural images, as well as codecs for purely-synthetic images, those SCIs that contain both synthetic and natural content pose a particular challenge. In this paper, we propose a learning-based image coding model developed for such SCIs. By training an encoder to provide a latent representation suitable for two tasks -- input reconstruction and synthetic/natural region segmentation -- we create an effective SCI image codec whose strong performance is verified through experiments. Once trained, the second task (segmentation) need not be used; the codec still benefits from the segmentation-friendly latent representation.

Introduction: The Challenge of Hybrid Content

The explosion of remote work and digital collaboration has led to a massive increase in the consumption of Screen Content Images (SCIs). Unlike traditional natural photographs, SCIs are frequently "hybrids," containing natural elements (such as a person's face in a video conference) alongside synthetic elements (such as sharp text, UI buttons, and icons).

Example of a Screen Content Image (SCI) featuring a mix of natural photographic elements and synthetic text/UI components.

Traditional compression standards like JPEG were optimized for the smooth gradients and noise characteristic of natural photography. When applied to SCIs, these codecs often introduce "ringing" artifacts around text or blur sharp edges, significantly degrading readability. Conversely, codecs designed specifically for synthetic graphics often struggle with the complex textures found in natural images. This paper addresses the need for a "content-aware" codec capable of efficiently handling both data types within a single frame.

Proposed Methodology: Multi-Task Learning

The proposed framework builds upon end-to-end learned image compression architectures (specifically the "bmshj2018" and "ms2020" models). In a standard pipeline, an encoder transforms an image into a compact latent representation, which is then quantized and entropy-coded.

The core innovation is the introduction of a Multi-Task Decoder. During the training phase, the compressed latent representation is directed into two separate synthesis branches:

  1. Reconstruction Task: This branch focuses on rebuilding the original pixels of the image.
  2. Segmentation Task: This branch predicts a binary map that identifies pixels as either natural or synthetic.

By employing a joint loss function that minimizes both reconstruction and segmentation errors, the encoder is forced to organize the latent space in a way that distinguishes between content types. A significant advantage of this approach is that the segmentation branch is only required during training. In deployment, the segmentation head can be discarded; the encoder has already learned to produce a "segmentation-friendly" latent representation that inherently optimizes the compression process without requiring additional side information in the bitstream.

Experimental Setup and Dataset

To train a model capable of pixel-level discrimination, a dataset with ground-truth labels for "natural" vs. "synthetic" regions was required. The authors constructed a custom dataset of 3,100 hybrid images ($512 \times 512$ resolution) by extracting natural patches from the CLIC dataset and using synthetic SCIs from the SCID dataset. The dataset was split into 3,000 images for training and 100 for evaluation.

Key Results and Performance

The multi-task model was evaluated against traditional standards (HEVC, HEVC-SCC, and VVC) and single-task learned models using the BD-Rate metric.

  • Efficiency Gains: The proposed ms2020-2-Decoder achieved a 61.57% BD-Rate gain in PSNR and a 70.95% gain in GMSD compared to the anchor model.
  • Comparison with VVC: The model significantly outperformed the state-of-the-art VVC standard, which achieved a ~46% gain over the anchor.
  • Visual Quality: Qualitative analysis demonstrates that the proposed codec preserves fine text details and natural textures more effectively than HEVC or VVC, particularly at lower bitrates.

Conclusion

This research demonstrates that "content awareness" is a powerful prior for SCI compression. By forcing the encoder to understand the nature of the pixels it processes—distinguishing between smooth photographic textures and high-contrast synthetic edges—the model achieves state-of-the-art performance. Future work may involve refining the segmentation loss using metrics like Intersection-over-Union (IoU) to better capture sharp boundaries.

Summary updated

BibTeX
@inproceedings{heris2023multi,
  author = {Rashid Zamanshoar Heris and Ivan V. Bajić},
  title = {{Multi-Task Learning for Screen Content Image Coding}},
  booktitle = {ISCAS},
  year = {2023},
  doi = {10.1109/iscas46773.2023.10182105},
}
Figure