Papers › Generating Diverse High-Fidelity Images with VQ-VAE-2

Generating Diverse High-Fidelity Images with VQ-VAE-2

2 Jun 2019NeurIPS 2019 12arXiv:1906.00446archive 2025-07-28

Ali Razavi, Aaron van den Oord, Oriol Vinyals

We explore the use of Vector Quantized Variational AutoEncoder (VQ-VAE) models for large scale image generation. To this end, we scale and enhance the autoregressive priors used in VQ-VAE to generate synthetic samples of much higher coherence and fidelity than possible before. We use simple feed-forward encoder and decoder networks, making our model an attractive candidate for applications where the encoding and/or decoding speed is critical. Additionally, VQ-VAE requires sampling an autoregressive model only in the compressed latent space, which is an order of magnitude faster than sampling in the pixel space, especially for large images. We demonstrate that a multi-scale hierarchical organization of VQ-VAE, augmented with powerful priors over the latent codes, is able to generate samples with quality that rivals that of state of the art Generative Adversarial Networks on multifaceted datasets such as ImageNet, while not suffering from GAN's known shortcomings such as mode collapse and lack of diversity.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1906.00446")

Code

Syntology Ran 2 of 9 code samples harvested from 5 repositories linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract.

By repository: community (archive-listed): 9 samples from 5 repositories, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

15 repositories listed; official and paper-mentioned ones first.

deepmind/sonnet officialmentioned in papertfApache-2.0 report
eric-yim/image_reconstruction mentioned on GitHubtf report
eric-yim/vqvae mentioned on GitHubtf report
mattiasxu/VQVAE-2 mentioned on GitHubpytorchMIT report
mattiasxu/Video-VQVAE mentioned on GitHubpytorch report
seymayucer/VAEs mentioned on GitHubpytorch report
skymanaditya1/FaceOff mentioned on GitHubpytorch report
superizer/vqvae mentioned on GitHub report
tgisaturday/dalle-lightning mentioned on GitHubjax report
tgisaturday/dalle-lightning-tpu mentioned on GitHubjax report
vvvm23/vqvae-2 mentioned on GitHubpytorch report
rosinality/vq-vae-2-pytorch pytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 2 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
7unverified

Licence: 4 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

load_checkpoint seymayucer/VAEs/train_vae.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 814630e4695f80ad · report
reverse_norm eric-yim/image_reconstruction/vq_train.py community (archive-listed) ran · violated contract fingerprinted no licence file found · pointer only · 75227e193ad3d9a8 · report
causal_mask mattiasxu/VQVAE-2/pixelsnail.py community (archive-listed) unverified MIT (permissive) · 991e7e9220881de1 · report
elu_conv_elu mattiasxu/VQVAE-2/pixelsnail.py community (archive-listed) unverified MIT (permissive) · 461521d71ee2d6f4 · report
get_images eric-yim/image_reconstruction/test_results.py community (archive-listed) unverified no licence file found · pointer only · 6209bc911accf845 · report
list_to_batch eric-yim/image_reconstruction/vq_train.py community (archive-listed) unverified no licence file found · pointer only · 6cd8f26aabe808a6 · report
positional_encoding mattiasxu/VQVAE-2/pixelsnail.py community (archive-listed) unverified MIT (permissive) · 8125e02b1a44b90f · report
reproduce EugenHotaj/pytorch-generative/pytorch_generative/models/vae/vq_vae_2.py community (archive-listed) unverified MIT (permissive) · 420c9bfc99dd6d0b · report
vqvae_decode vvvm23/vqvae-2/main-sample.py community (archive-listed) unverified MIT (permissive) · b614d6b615098ae0 · report

Tasks

DecoderDiversityImage GenerationVocal Bursts Intensity Prediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: VQ-VAE-2

Batch NormalizationConvolutionDense ConnectionsFeedforward NetworkPixelCNNReLUResidual BlockResidual ConnectionSPEEDVQ-VAE-2

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections