Learning Optimal Lattice Vector Quantizers for End-to-end Neural Image Compression
Organizations: Department of Electronic Engineering, Shanghai Jiao Tong University · School of Computing and Artificial Intelligence, Southwest Jiaotong University
Abstract
It is customary to deploy uniform scalar quantization in the end-to-end optimized Neural image compression methods, instead of more powerful vector quantization, due to the high complexity of the latter. Lattice vector quantization (LVQ), on the other hand, presents a compelling alternative, which can exploit inter-feature dependencies more effectively while keeping computational efficiency almost the same as scalar quantization. However, traditional LVQ structures are designed/optimized for uniform source distributions, hence nonadaptive and suboptimal for real source distributions of latent code space for Neural image compression tasks. In this paper, we propose a novel learning method to overcome this weakness by designing the rate-distortion optimal lattice vector quantization (OLVQ) codebooks with respect to the sample statistics of the latent features to be compressed. By being able to better fit the LVQ structures to any given latent sample distribution, the proposed OLVQ method improves the rate-distortion performances of the existing quantization schemes in neural image compression significantly, while retaining the amenability of uniform scalar quantization. Code is available at: https://github.com/xzhang9308/OLVQ.
Figures & tables
| Auto-encoder size | Bmshj2018 [ 7 ] | SwinT-ChARM [ 50 ] | ||
|---|---|---|---|---|
| Context model | Factorized | Checkerboard | Factorized | Checkerboard |
| E8, Gosset lattice | -6.58% | -4.95% | -5.12% | -2.19% |
| Optimized 8-dimension lattice | 10.92% | -6.47% | -6.03% | -3.02% |
| A16, Barnes-Wall lattice | -8.15% | -6.15% | -5.23% | -3.12% |
| Optimized 16-dimension lattice | -15.73% | -8.82% | -7.42% | -4.64% |
| A24, Leech lattice | -12.82% | -7.54% | -6.69% | -3.47% |
| Auto-encoder size | Bmshj2018 [ 7 ] | SwinT-ChARM [ 50 ] | ||
|---|---|---|---|---|
| Context model | Factorized | Checkerboard | Factorized | Checkerboard |
| Optimized 8-dimension LVQ | -10.92% | -6.47% | -6.03% | -3.02% |
| Optimized 8-dimension GVQ | -12.10% | -7.82% | -7.59% | -4.19% |
| Optimized 16-dimension LVQ | -15.73% | -8.82% | -7.42% | -4.64% |
| Optimized 16-dimension GVQ | -17.59% | -10.48% | -9.41% | -6.03% |
| Optimized 24-dimension LVQ | -20.49% | -10.71% | -10.68% | -5.89% |
Vector Quantization
Vector quantization compresses vectors into discrete codebook entries for efficient storage, transmission, retrieval, and learned representations.
See all 129 papers