{"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/exploring-sparse-moe-in-gans-for-text","title":"Exploring Sparse MoE in GANs for Text-conditioned Image Synthesis","arxiv_id":"2309.03904","date":"2023-09-07","proceeding":"CVPR 2025 1","authors":["Jiapeng Zhu","Ceyuan Yang","Kecheng Zheng","Yinghao Xu","Zifan Shi","Yujun Shen"],"abstract":"Due to the difficulty in scaling up, generative adversarial networks (GANs) seem to be falling from grace on the task of text-conditioned image synthesis. Sparsely-activated mixture-of-experts (MoE) has recently been demonstrated as a valid solution to training large-scale models with limited computational resources. Inspired by such a philosophy, we present Aurora, a GAN-based text-to-image generator that employs a collection of experts to learn feature processing, together with a sparse router to help select the most suitable expert for each feature point. To faithfully decode the sampling stochasticity and the text condition to the final synthesis, our router adaptively makes its decision by taking into account the text-integrated global latent code. At 64x64 image resolution, our model trained on LAION2B-en and COYO-700M achieves 6.2 zero-shot FID on MS COCO. We release the code and checkpoints to facilitate the community for further development.","url_abs":"https://arxiv.org/abs/2309.03904v1","url_pdf":"https://arxiv.org/pdf/2309.03904v1.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":"exploring-sparse-moe-in-gans-for-text","repo_url":"https://github.com/zhujiapeng/aurora","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"mixture-of-experts","task_name":"Mixture-of-Experts"},{"task_slug":"philosophy","task_name":"Philosophy"},{"task_slug":null,"task_name":"valid"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2309.03904","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2309.03904"}},"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/zhujiapeng/aurora","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":18,"ran_draft_wrong":1,"unverified":5},"by_repo_kind":{"official":{"samples":24,"ran":19,"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":24,"samples":[{"code_sha256_prefix":"7c59a8472c6eaffe","entry":"all_gather","repo":"zhujiapeng/aurora","repo_kind":"official","path":"models/utils/ops.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/models/utils/ops.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"7c59a8472c6eaffe"}},{"code_sha256_prefix":"92ecbfa6e2931d1f","entry":"checkpoint","repo":"zhujiapeng/aurora","repo_kind":"official","path":"models/text_generator.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/models/text_generator.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"92ecbfa6e2931d1f"}},{"code_sha256_prefix":"028697b602cf499b","entry":"format_image_size","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/formatting_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/formatting_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"028697b602cf499b"}},{"code_sha256_prefix":"7ca917a87c991b95","entry":"format_range","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/formatting_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/formatting_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"7ca917a87c991b95"}},{"code_sha256_prefix":"2a7a8c6e7e8bf0e5","entry":"format_time","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/formatting_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/formatting_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"2a7a8c6e7e8bf0e5"}},{"code_sha256_prefix":"ffa47ea5654a8f02","entry":"get_blank_image","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/image_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/image_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"ffa47ea5654a8f02"}},{"code_sha256_prefix":"e6573e8618e29edb","entry":"get_cache_dir","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/misc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e6573e8618e29edb"}},{"code_sha256_prefix":"766e3a74f52dcc32","entry":"get_ddp_module","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/dist_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/dist_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"766e3a74f52dcc32"}},{"code_sha256_prefix":"11932a80d2ccef24","entry":"load_image","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/image_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/image_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"11932a80d2ccef24"}},{"code_sha256_prefix":"480b3d5e5171def6","entry":"parse_bool","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/parsing_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/parsing_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"480b3d5e5171def6"}},{"code_sha256_prefix":"d2c2c3208907eae9","entry":"parse_file_format","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/misc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"d2c2c3208907eae9"}},{"code_sha256_prefix":"77045e5d954b160a","entry":"parse_float","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/parsing_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/parsing_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"77045e5d954b160a"}},{"code_sha256_prefix":"1c53e0c56a162b36","entry":"parse_int","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/parsing_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/parsing_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1c53e0c56a162b36"}},{"code_sha256_prefix":"665e2fc06573f4d0","entry":"read_text","repo":"zhujiapeng/aurora","repo_kind":"official","path":"run_synthesize.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/run_synthesize.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"665e2fc06573f4d0"}},{"code_sha256_prefix":"08d6b8ac35009b66","entry":"router_z_loss_func","repo":"zhujiapeng/aurora","repo_kind":"official","path":"models/text_generator.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/models/text_generator.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"08d6b8ac35009b66"}},{"code_sha256_prefix":"b7f4d2a919b82370","entry":"run_mapping","repo":"zhujiapeng/aurora","repo_kind":"official","path":"run_interpolate.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/run_interpolate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b7f4d2a919b82370"}},{"code_sha256_prefix":"86151dc361b7abcd","entry":"run_synthesize","repo":"zhujiapeng/aurora","repo_kind":"official","path":"run_interpolate.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/run_interpolate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"86151dc361b7abcd"}},{"code_sha256_prefix":"1905d8c9da15da33","entry":"run_text_head","repo":"zhujiapeng/aurora","repo_kind":"official","path":"run_interpolate.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/run_interpolate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1905d8c9da15da33"}},{"code_sha256_prefix":"129b804760b3115f","entry":"zero_module","repo":"zhujiapeng/aurora","repo_kind":"official","path":"models/text_generator.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/models/text_generator.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":"129b804760b3115f"}},{"code_sha256_prefix":"4a9781a78a594e12","entry":"check_file_ext","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/misc.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4a9781a78a594e12"}},{"code_sha256_prefix":"66258b2be72f04a5","entry":"concat_all_gather","repo":"zhujiapeng/aurora","repo_kind":"official","path":"models/clip_model.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/models/clip_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"66258b2be72f04a5"}},{"code_sha256_prefix":"f56096eac6a0f2b3","entry":"list_pretrained_models_by_tag","repo":"zhujiapeng/aurora","repo_kind":"official","path":"models/clip_model.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/models/clip_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"f56096eac6a0f2b3"}},{"code_sha256_prefix":"4da92d32e1ce1c72","entry":"list_pretrained_tags_by_model","repo":"zhujiapeng/aurora","repo_kind":"official","path":"models/clip_model.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/models/clip_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4da92d32e1ce1c72"}},{"code_sha256_prefix":"93a805b315b09a0b","entry":"resize_image","repo":"zhujiapeng/aurora","repo_kind":"official","path":"utils/image_utils.py","file_url":"https://github.com/zhujiapeng/aurora/blob/HEAD/utils/image_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"93a805b315b09a0b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}