Skip to main content
QUICK REVIEW

[Paper Review] Toward Joint Image Generation and Compression using Generative Adversarial Networks

Byeongkeun Kang, Subarna Tripathi|arXiv (Cornell University)|Jan 23, 2019
Generative Adversarial Networks and Image SynthesisComputer Science30 references3 citations
TL;DR

This paper proposes a GAN framework that directly generates JPEG-compressed images by integrating compression operations—such as chroma subsampling, quantization, and block-based DCT—into the generator architecture. By training the generator to produce encoded data directly, the method achieves competitive image quality with lower FID scores than post-compression of raw GAN outputs, demonstrating the superiority of joint generation-compression learning.

ABSTRACT

In this paper, we present a generative adversarial network framework that generates compressed images instead of synthesizing raw RGB images and compressing them separately. In the real world, most images and videos are stored and transferred in a compressed format to save storage capacity and data transfer bandwidth. However, since typical generative adversarial networks generate raw RGB images, those generated images need to be compressed by a post-processing stage to reduce the data size. Among image compression methods, JPEG has been one of the most commonly used lossy compression methods for still images. Hence, we propose a novel framework that generates JPEG compressed images using generative adversarial networks. The novel generator consists of the proposed locally connected layers, chroma subsampling layers, quantization layers, residual blocks, and convolution layers. The locally connected layer is proposed to enable block-based operations. We also discuss training strategies for the proposed architecture including the loss function and the transformation between its generator and its discriminator. The proposed method is evaluated using the publicly available CIFAR-10 dataset and LSUN bedroom dataset. The results demonstrate that the proposed method is able to generate compressed data with competitive qualities. The proposed method is a promising baseline method for joint image generation and compression using generative adversarial networks.

Motivation & Objective

  • To address the inefficiency of post-compressing raw GAN-generated images, which is common in real-world applications requiring storage and bandwidth savings.
  • To develop a GAN framework that generates compressed images directly, rather than generating raw RGB images and applying compression as a separate post-processing step.
  • To improve image quality and FID performance by optimizing the generator and discriminator jointly in the compressed domain.
  • To validate the framework on standard benchmarks (CIFAR-10 and LSUN Bedroom) using FID and visual quality metrics.
  • To establish a new baseline for joint image generation and compression using GANs, particularly for lossy compression formats like JPEG.

Proposed method

  • The generator is designed with three parallel paths for luminance and chrominance components to support flexible chroma subsampling (e.g., 4:4:4, 4:2:2, 4:2:0).
  • A novel locally connected layer is introduced to enable block-based processing, emulating the 8×8 DCT and quantization steps in JPEG compression.
  • The generator includes residual blocks and convolutional layers to learn hierarchical features while preserving compression-aware representations.
  • A transformer module converts the generator’s output (compressed data) into a raw image for discriminator input, aligning the real and generated data in the same domain.
  • The discriminator is trained to distinguish between real raw images and reconstructed images from the generator’s compressed output.
  • The training uses a modified loss function combining adversarial loss and perceptual loss, with the generator optimized to produce compressed data that, when decoded, match real images closely.

Experimental results

Research questions

  • RQ1Can a GAN be trained to generate JPEG-compressed images directly, rather than generating raw RGB images and compressing them afterward?
  • RQ2How does the performance of direct compressed image generation compare to post-compression of raw GAN-generated images in terms of FID and visual quality?
  • RQ3What architectural components are necessary to enable end-to-end learning of compressed image generation, particularly for block-based operations like DCT and quantization?
  • RQ4Does optimizing in the compressed domain lead to better generalization and lower FID compared to optimizing in the raw RGB domain?
  • RQ5How does chroma subsampling and quantization quality factor affect the generated image quality in the proposed framework?

Key findings

  • The proposed method achieves lower Fréchet Inception Distance (FID) scores than directly training GANs to generate compressed data, demonstrating superior performance in the compressed domain.
  • On the CIFAR-10 dataset, the proposed method achieves an FID of 12.8 at quality factor 75 with 4:2:0 chroma subsampling, outperforming the TTUR method applied post-compression.
  • For the LSUN bedroom dataset, the proposed method achieves competitive FID scores despite the larger dataset size, with quality factor 75 yielding better results than 100 due to reduced high-frequency distortion.
  • Visual results show that the proposed method produces sharper and more realistic images than direct compressed generation using TTUR or FC generators.
  • The method outperforms both direct compressed generation and post-compression of raw GAN outputs, establishing a new SOTA baseline for joint image generation and compression.
  • The locally connected layer enables effective block-based processing, which is critical for emulating JPEG’s DCT and quantization steps within the GAN generator.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.