{"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/unified-continuous-generative-models","title":"Unified Continuous Generative Models","arxiv_id":"2505.07447","date":"2025-05-12","proceeding":null,"authors":["Peng Sun","Yi Jiang","Tao Lin"],"abstract":"Recent advances in continuous generative models, including multi-step approaches like diffusion and flow-matching (typically requiring 8-1000 sampling steps) and few-step methods such as consistency models (typically 1-8 steps), have demonstrated impressive generative performance. However, existing work often treats these approaches as distinct paradigms, resulting in separate training and sampling methodologies. We introduce a unified framework for training, sampling, and analyzing these models. Our implementation, the Unified Continuous Generative Models Trainer and Sampler (UCGM-{T,S}), achieves state-of-the-art (SOTA) performance. For example, on ImageNet 256x256 using a 675M diffusion transformer, UCGM-T trains a multi-step model achieving 1.30 FID in 20 steps and a few-step model reaching 1.42 FID in just 2 steps. Additionally, applying UCGM-S to a pre-trained model (previously 1.26 FID at 250 steps) improves performance to 1.06 FID in only 40 steps. Code is available at: https://github.com/LINs-lab/UCGM.","url_abs":"https://arxiv.org/abs/2505.07447v2","url_pdf":"https://arxiv.org/pdf/2505.07447v2.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":"unified-continuous-generative-models","repo_url":"https://github.com/LINs-Lab/UCGM","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[{"method_slug":"cm","method_name":"Consistency Models"},{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-generation-on-imagenet-256x256","task":"Image Generation","dataset":"ImageNet 256x256","model":"SiT-XL/2 + UCGM-S (E2E-VAE + 40 sampling steps + CFG)","rank_in_archive_order":1,"of":94,"metrics":{"FID":"1.06","NFE":"80"},"uses_additional_data":false},{"leaderboard":"/sota/image-generation-on-imagenet-256x256","task":"Image Generation","dataset":"ImageNet 256x256","model":"UCGM-XL/2 (VA-VAE + 30 sampling steps, without guidance)","rank_in_archive_order":2,"of":94,"metrics":{"FID":"1.21","NFE":"30"},"uses_additional_data":false},{"leaderboard":"/sota/image-generation-on-imagenet-256x256","task":"Image Generation","dataset":"ImageNet 256x256","model":"UCGM-XL/2 (E2E-VAE + 40 sampling steps, without guidance)","rank_in_archive_order":3,"of":94,"metrics":{"FID":"1.21","NFE":"40"},"uses_additional_data":false},{"leaderboard":"/sota/image-generation-on-imagenet-256x256","task":"Image Generation","dataset":"ImageNet 256x256","model":"LightningDiT + UCGM-S (VA-VAE + 50 sampling steps + CFG)","rank_in_archive_order":5,"of":94,"metrics":{"FID":"1.21","NFE":"100"},"uses_additional_data":false},{"leaderboard":"/sota/image-generation-on-imagenet-512x512","task":"Image Generation","dataset":"ImageNet 512x512","model":"DDT-XL/2 + UCGM-S (SD-VAE + 150 sampling steps + CFG)","rank_in_archive_order":2,"of":52,"metrics":{"FID":"1.24","NFE":"300"},"uses_additional_data":false},{"leaderboard":"/sota/image-generation-on-imagenet-512x512","task":"Image Generation","dataset":"ImageNet 512x512","model":"DDT-XL/2 + UCGM-S (SD-VAE + 100 sampling steps + CFG)","rank_in_archive_order":3,"of":52,"metrics":{"FID":"1.25","NFE":"200"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2505.07447","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.07447"}},"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/LINs-Lab/UCGM","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":6,"ran_fixture":3,"ran_honours":3,"ran":3,"ran_violates":1,"unverified":5},"by_repo_kind":{"official":{"samples":21,"ran":16,"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":0,"samples":[{"code_sha256_prefix":"9fcdaa6e423e8aa7","entry":"Normalize","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"autoencs/autoencoder.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/autoencs/autoencoder.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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9fcdaa6e423e8aa7"}},{"code_sha256_prefix":"d7b6dcfe63bfe59b","entry":"apply_rotary_emb","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/rmsnorm.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/rmsnorm.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d7b6dcfe63bfe59b"}},{"code_sha256_prefix":"f50a8d20efb35c68","entry":"broadcat","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/pos_embed.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/pos_embed.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f50a8d20efb35c68"}},{"code_sha256_prefix":"1712a07966b542ee","entry":"center_crop_arr","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"autoencs/autoencoder.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/autoencs/autoencoder.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1712a07966b542ee"}},{"code_sha256_prefix":"f2514403e004d82b","entry":"const_like","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/edm2.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/edm2.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f2514403e004d82b"}},{"code_sha256_prefix":"6d32f9cf6f29b386","entry":"constant","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/edm2.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/edm2.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6d32f9cf6f29b386"}},{"code_sha256_prefix":"c92c27c924b517e8","entry":"get_2d_sincos_pos_embed","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/lightningdit.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/lightningdit.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c92c27c924b517e8"}},{"code_sha256_prefix":"dd96bc6c07c85dae","entry":"mean_flat","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"methodes/unigen.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/methodes/unigen.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dd96bc6c07c85dae"}},{"code_sha256_prefix":"03310bba324ae4fb","entry":"modulate","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/sit.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/sit.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"03310bba324ae4fb"}},{"code_sha256_prefix":"62fcb3912a967a50","entry":"modulate","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/ddt.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/ddt.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"62fcb3912a967a50"}},{"code_sha256_prefix":"3137073275f8c21a","entry":"nonlinearity","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"autoencs/autoencoder.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/autoencs/autoencoder.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3137073275f8c21a"}},{"code_sha256_prefix":"ebfd171dc25ba0ce","entry":"normalize","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/edm2.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/edm2.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ebfd171dc25ba0ce"}},{"code_sha256_prefix":"04a1fa63d6d4b8e4","entry":"precompute_freqs_cis","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/rmsnorm.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/rmsnorm.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"04a1fa63d6d4b8e4"}},{"code_sha256_prefix":"5a639d78ada17fee","entry":"reshape_for_broadcast","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/rmsnorm.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/rmsnorm.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5a639d78ada17fee"}},{"code_sha256_prefix":"58823d9435a8751b","entry":"rotate_half","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/pos_embed.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/pos_embed.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"58823d9435a8751b"}},{"code_sha256_prefix":"d41a4250066bce93","entry":"weight_init","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/unetplus.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/unetplus.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d41a4250066bce93"}},{"code_sha256_prefix":"d0b336b17472a69b","entry":"apply_rotary_emb","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/ddt.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/ddt.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d0b336b17472a69b"}},{"code_sha256_prefix":"665d8a4e8f673a4c","entry":"get_2d_sincos_pos_embed_from_grid","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/lightningdit.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/lightningdit.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"665d8a4e8f673a4c"}},{"code_sha256_prefix":"f18f5056c31115fc","entry":"get_attr_from_nested_module","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"methodes/unigen.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/methodes/unigen.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f18f5056c31115fc"}},{"code_sha256_prefix":"5ea6b9bd142d4069","entry":"modulate","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/lightningdit.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/lightningdit.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5ea6b9bd142d4069"}},{"code_sha256_prefix":"48b378bed8fc0083","entry":"precompute_freqs_cis_2d","repo":"LINs-Lab/UCGM","repo_kind":"official","path":"networks/ddt.py","file_url":"https://github.com/LINs-Lab/UCGM/blob/HEAD/networks/ddt.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"48b378bed8fc0083"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}