{"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/arxiv-2512-07778","title":"Distribution Matching Variational AutoEncoder","arxiv_id":"2512.07778","date":"2025-12-08","proceeding":"ICML","authors":["Sen Ye","Jianning Pei","Mengde Xu","Shuyang Gu","Chunyu Wang","Liwei Wang","Han Hu"],"abstract":"Most visual generative models compress images into a latent space before applying diffusion or autoregressive modelling. Yet, existing approaches such as VAEs and foundation model aligned encoders implicitly constrain the latent space without explicitly shaping its distribution, making it unclear which types of distributions are optimal for modeling. We introduce \\textbf{Distribution-Matching VAE} (\\textbf{DMVAE}), which explicitly aligns the encoder's latent distribution with an arbitrary reference distribution via a distribution matching constraint. This generalizes beyond the Gaussian prior of conventional VAEs, enabling alignment with distributions derived from self-supervised features, diffusion noise, or other prior distributions. With DMVAE, we can systematically investigate which latent distributions are more conducive to modeling, and we find that SSL-derived distributions provide an excellent balance between reconstruction fidelity and modeling efficiency, reaching gFID equals 3.2 on ImageNet with only 64 training epochs. Our results suggest that choosing a suitable latent distribution structure (achieved via distribution-level alignment), rather than relying on fixed priors, is key to bridging the gap between easy-to-model latents and high-fidelity image synthesis. Code is avaliable at https://github.com/sen-ye/dmvae.","url_abs":"https://arxiv.org/abs/2512.07778","url_pdf":"https://arxiv.org/pdf/2512.07778","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2512.07778","atlas_url":"https://app.syntology.ai/?focus=2512.07778","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2512.07778"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/sen-ye/dmvae","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":3,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":9,"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":9,"samples":[{"code_sha256_prefix":"6de57ffd4ee7fee7","entry":"expand_t_like_x","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"train_dmd.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/train_dmd.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6de57ffd4ee7fee7"}},{"code_sha256_prefix":"e7fcb6d9ac9deaf4","entry":"named_apply","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"models/dinov2.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/models/dinov2.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e7fcb6d9ac9deaf4"}},{"code_sha256_prefix":"5fb036462ae82f9f","entry":"swish","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"models/flux_ae.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/models/flux_ae.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5fb036462ae82f9f"}},{"code_sha256_prefix":"441d46fcec8f6f21","entry":"LPIPS","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"evaluation/metrics.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/evaluation/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"441d46fcec8f6f21"}},{"code_sha256_prefix":"b9e07e6fa5c56975","entry":"PSNR","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"evaluation/metrics.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/evaluation/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b9e07e6fa5c56975"}},{"code_sha256_prefix":"6879ea6f96056642","entry":"SSIM","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"evaluation/metrics.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/evaluation/metrics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6879ea6f96056642"}},{"code_sha256_prefix":"cc37512f4c536894","entry":"get_fid_is","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"evaluation/fid.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/evaluation/fid.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cc37512f4c536894"}},{"code_sha256_prefix":"c6d3bea4883a3da8","entry":"latents_to_spatial","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"train_dmd.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/train_dmd.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c6d3bea4883a3da8"}},{"code_sha256_prefix":"711ba9e3133a80af","entry":"weight_warmup","repo":"sen-ye/dmvae","repo_kind":"found_in_text","path":"train_tokenizer.py","file_url":"https://github.com/sen-ye/dmvae/blob/HEAD/train_tokenizer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"711ba9e3133a80af"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_api"},"syntology_extracted_results":null}