Abstract
Nonlinear Vector Transform Coding (NVTC) addresses the long-standing gap between the theoretical advantages of vector quantization (VQ) and its practical implementation in neural image compression. By integrating a multi-stage product VQ strategy with novel nonlinear vector transforms, NVTC achieves state-of-the-art rate-distortion performance, faster decoding, and significantly reduced model sizes compared to traditional scalar-based codecs.
Introduction
In data compression theory, Vector Quantization (VQ) is fundamentally superior to Scalar Quantization (SQ). While SQ processes data points individually, VQ groups them into vectors, enabling more efficient "space-filling" and better exploitation of inter-element correlations. However, VQ has historically been hindered by the "curse of dimensionality," where computational complexity grows exponentially with vector size. Consequently, modern neural image compression has largely relied on Nonlinear Transform Coding (NTC) paired with simple Scalar Quantization. NVTC overcomes these barriers to make high-performance VQ practical for neural codecs.
Methodology
NVTC introduces three primary innovations to enable efficient VQ:
- Multi-stage Product VQ: To manage complexity, NVTC decomposes the quantization process into multiple stages and sub-vectors. This "divide and conquer" strategy reduces computational requirements from exponential to manageable levels.
- Nonlinear Vector Transform (VT): Unlike traditional transforms designed for scalars, the proposed Vector Transform decouples into an intra-transform (learning representations within a channel) and an inter-transform (removing redundancy between sub-vectors), enhancing parameter efficiency.
- Latent-Space Entropy-Constrained VQ (ECVQ): Moving beyond simple nearest-neighbor searches, NVTC employs ECVQ. This approach incorporates a "rate bias," allowing the encoder to optimize for the best balance between distortion and bit-rate.
To ensure stable training and avoid "dead codewords," the authors utilize a Progressive Initialization strategy for the VQ codebooks.
Theoretical Motivation: The Hexagon Advantage
A core insight of NVTC is the geometric efficiency of VQ. While scalar quantization partitions data space into rectangular cells, VQ creates hexagonal cells. Hexagons are more "spherical" and pack space more efficiently, offering a theoretical gain of up to 1.53 dB in rate-distortion performance.
Experimental Results
The model was trained on the COCO train2017 dataset and evaluated on the Kodak and CLIC2021 validation sets.
Performance and Efficiency
NVTC demonstrates significant improvements over existing methods:
- Rate-Distortion: Achieved a -10.9% BD-rate improvement over the previous state-of-the-art VQ method (Zhu-CVPR2022) on CLIC2021.
- Model Size: The architecture is highly efficient, utilizing only 12.8M parameters—roughly 5x smaller than competing high-performance VQ-based codecs.
- Decoding Speed: By utilizing VQ in the Conditional Entropy Model (CEM), the decoder can use lookup tables for probabilities, resulting in decoding speeds approximately 6x faster than dynamic calculation methods.
Discussion and Future Work
While NVTC offers substantial gains in decoding speed and RD performance, encoding remains approximately twice as slow due to the complexity of the ECVQ search. Additionally, the current integration of VQ within the entropy model introduces a minor performance trade-off (~0.15 dB). Future research will focus on optimizing the "VQ-in-CEM" approach and improving the robustness of the training process beyond the current progressive initialization requirements.
Summary updated