Soft then Hard: Rethinking the Quantization in Neural Image Compression

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Guo, Zongyu, Zhang, Zhizheng, Feng, Runsen, Chen, Zhibo
Format: Preprint
Published: 2021
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914726608371712
author Guo, Zongyu
Zhang, Zhizheng
Feng, Runsen
Chen, Zhibo
author_facet Guo, Zongyu
Zhang, Zhizheng
Feng, Runsen
Chen, Zhibo
contents Quantization is one of the core components in lossy image compression. For neural image compression, end-to-end optimization requires differentiable approximations of quantization, which can generally be grouped into three categories: additive uniform noise, straight-through estimator and soft-to-hard annealing. Training with additive uniform noise approximates the quantization error variationally but suffers from the train-test mismatch. The other two methods do not encounter this mismatch but, as shown in this paper, hurt the rate-distortion performance since the latent representation ability is weakened. We thus propose a novel soft-then-hard quantization strategy for neural image compression that first learns an expressive latent space softly, then closes the train-test mismatch with hard quantization. In addition, beyond the fixed integer quantization, we apply scaled additive uniform noise to adaptively control the quantization granularity by deriving a new variational upper bound on actual rate. Experiments demonstrate that our proposed methods are easy to adopt, stable to train, and highly effective especially on complex compression models.
format Preprint
id arxiv_https___arxiv_org_abs_2104_05168
institution arXiv
publishDate 2021
record_format arxiv
spellingShingle Soft then Hard: Rethinking the Quantization in Neural Image Compression
Guo, Zongyu
Zhang, Zhizheng
Feng, Runsen
Chen, Zhibo
Image and Video Processing
Quantization is one of the core components in lossy image compression. For neural image compression, end-to-end optimization requires differentiable approximations of quantization, which can generally be grouped into three categories: additive uniform noise, straight-through estimator and soft-to-hard annealing. Training with additive uniform noise approximates the quantization error variationally but suffers from the train-test mismatch. The other two methods do not encounter this mismatch but, as shown in this paper, hurt the rate-distortion performance since the latent representation ability is weakened. We thus propose a novel soft-then-hard quantization strategy for neural image compression that first learns an expressive latent space softly, then closes the train-test mismatch with hard quantization. In addition, beyond the fixed integer quantization, we apply scaled additive uniform noise to adaptively control the quantization granularity by deriving a new variational upper bound on actual rate. Experiments demonstrate that our proposed methods are easy to adopt, stable to train, and highly effective especially on complex compression models.
title Soft then Hard: Rethinking the Quantization in Neural Image Compression
topic Image and Video Processing
url https://arxiv.org/abs/2104.05168