Masked Vector Quantization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Nguyen, David D., Leibowitz, David, Nepal, Surya, Kanhere, Salil S.
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909148362309632
author Nguyen, David D.
Leibowitz, David
Nepal, Surya
Kanhere, Salil S.
author_facet Nguyen, David D.
Leibowitz, David
Nepal, Surya
Kanhere, Salil S.
contents Generative models with discrete latent representations have recently demonstrated an impressive ability to learn complex high-dimensional data distributions. However, their performance relies on a long sequence of tokens per instance and a large number of codebook entries, resulting in long sampling times and considerable computation to fit the categorical posterior. To address these issues, we propose the Masked Vector Quantization (MVQ) framework which increases the representational capacity of each code vector by learning mask configurations via a stochastic winner-takes-all training regime called Multiple Hypothese Dropout (MH-Dropout). On ImageNet 64$\times$64, MVQ reduces FID in existing vector quantization architectures by up to $68\%$ at 2 tokens per instance and $57\%$ at 5 tokens. These improvements widen as codebook entries is reduced and allows for $7\textit{--}45\times$ speed-up in token sampling during inference. As an additional benefit, we find that smaller latent spaces lead to MVQ identifying transferable visual representations where multiple can be smoothly combined.
format Preprint
id arxiv_https___arxiv_org_abs_2301_06626
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Masked Vector Quantization
Nguyen, David D.
Leibowitz, David
Nepal, Surya
Kanhere, Salil S.
Machine Learning
Computer Vision and Pattern Recognition
Generative models with discrete latent representations have recently demonstrated an impressive ability to learn complex high-dimensional data distributions. However, their performance relies on a long sequence of tokens per instance and a large number of codebook entries, resulting in long sampling times and considerable computation to fit the categorical posterior. To address these issues, we propose the Masked Vector Quantization (MVQ) framework which increases the representational capacity of each code vector by learning mask configurations via a stochastic winner-takes-all training regime called Multiple Hypothese Dropout (MH-Dropout). On ImageNet 64$\times$64, MVQ reduces FID in existing vector quantization architectures by up to $68\%$ at 2 tokens per instance and $57\%$ at 5 tokens. These improvements widen as codebook entries is reduced and allows for $7\textit{--}45\times$ speed-up in token sampling during inference. As an additional benefit, we find that smaller latent spaces lead to MVQ identifying transferable visual representations where multiple can be smoothly combined.
title Masked Vector Quantization
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2301.06626