HyperAIHyperAI

Command Palette

Search for a command to run...

Vector Quantization

Date

Organization

DeepMind

Paper URL

arxiv.org

Vector Quantization (VQ) is the process of mapping vectors in a continuous space to the nearest codeword in a finite codebook, essentially a lossy compression: any input is replaced by one candidate vector in the codebook, and only the index needs to be stored to reconstruct an approximate representation; reconstruction accuracy depends on codebook size and dimensionality. This idea originates from vector quantization in signal processing. In deep learning, it was introduced as an end-to-end training framework by VQ-VAE proposed in 2017 by DeepMind's Aäron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu; the paper Neural Discrete Representation Learning was accepted at NeurIPS 2017.

The key to VQ-VAE is that it solves the end-to-end training obstacle caused by the non-differentiability of the quantization operation: through a straight-through estimator, the decoder's gradients are passed directly back to the encoder, and together with the codebook loss and commitment loss, the codebook is updated and the encoder output is constrained not to deviate from the selected codeword. The discretized latent variables make prior modeling easier and also make the model naturally suitable for generating discrete symbols. This idea was later widely used in neural codecs for images and audio, autoregressive image generation, and discrete representation learning beyond large-model vocabularies.

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing

HyperAI Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp