{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/diffusion-bridges-vector-quantized","title":"Diffusion bridges vector quantized Variational AutoEncoders","arxiv_id":"2202.04895","date":"2022-02-10","proceeding":null,"authors":["Max Cohen","Guillaume Quispe","Sylvain Le Corff","Charles Ollion","Eric Moulines"],"abstract":"Vector Quantized-Variational AutoEncoders (VQ-VAE) are generative models based on discrete latent representations of the data, where inputs are mapped to a finite set of learned embeddings.To generate new samples, an autoregressive prior distribution over the discrete states must be trained separately. This prior is generally very complex and leads to slow generation. In this work, we propose a new model to train the prior and the encoder/decoder networks simultaneously. We build a diffusion bridge between a continuous coded vector and a non-informative prior distribution. The latent discrete states are then given as random functions of these continuous vectors. We show that our model is competitive with the autoregressive prior on the mini-Imagenet and CIFAR dataset and is efficient in both optimization and sampling. Our framework also extends the standard VQ-VAE and enables end-to-end training.","url_abs":"https://arxiv.org/abs/2202.04895v2","url_pdf":"https://arxiv.org/pdf/2202.04895v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"diffusion-bridges-vector-quantized","repo_url":"https://github.com/maxjcohen/diffusion-bridges","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"vq-vae","method_name":"VQ-VAE"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2202.04895","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2202.04895"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/maxjcohen/diffusion-bridges","reach":null}],"summary":{"ran_draft_wrong":2,"ran_violates":1},"by_repo_kind":{"official":{"samples":3,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":3,"samples":[{"code_sha256_prefix":"e2c958f912553027","entry":"gaussian_sampler","repo":"maxjcohen/diffusion-bridges","repo_kind":"official","path":"ddpm/diffusion_bridge.py","file_url":"https://github.com/maxjcohen/diffusion-bridges/blob/HEAD/ddpm/diffusion_bridge.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"e2c958f912553027"}},{"code_sha256_prefix":"d9cc18956bcec516","entry":"image_compare_reconstructions","repo":"maxjcohen/diffusion-bridges","repo_kind":"official","path":"scripts/ho/cifar.py","file_url":"https://github.com/maxjcohen/diffusion-bridges/blob/HEAD/scripts/ho/cifar.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"d9cc18956bcec516"}},{"code_sha256_prefix":"63c1109a06359e90","entry":"unsqueeze","repo":"maxjcohen/diffusion-bridges","repo_kind":"official","path":"ddpm/diffusion_bridge.py","file_url":"https://github.com/maxjcohen/diffusion-bridges/blob/HEAD/ddpm/diffusion_bridge.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"63c1109a06359e90"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}