{"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/smoothing-the-generative-latent-space-with","title":"Few-shot Image Generation with Mixup-based Distance Learning","arxiv_id":"2111.11672","date":"2021-11-23","proceeding":null,"authors":["Chaerin Kong","Jeesoo Kim","Donghoon Han","Nojun Kwak"],"abstract":"Producing diverse and realistic images with generative models such as GANs typically requires large scale training with vast amount of images. GANs trained with limited data can easily memorize few training samples and display undesirable properties like \"stairlike\" latent space where interpolation in the latent space yields discontinuous transitions in the output space. In this work, we consider a challenging task of pretraining-free few-shot image synthesis, and seek to train existing generative models with minimal overfitting and mode collapse. We propose mixup-based distance regularization on the feature space of both a generator and the counterpart discriminator that encourages the two players to reason not only about the scarce observed data points but the relative distances in the feature space they reside. Qualitative and quantitative evaluation on diverse datasets demonstrates that our method is generally applicable to existing models to enhance both fidelity and diversity under few-shot setting. Code is available.","url_abs":"https://arxiv.org/abs/2111.11672v2","url_pdf":"https://arxiv.org/pdf/2111.11672v2.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":"smoothing-the-generative-latent-space-with","repo_url":"https://github.com/reyllama/mixdl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"smoothing-the-generative-latent-space-with","repo_url":"https://github.com/rowerliu/adbd","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"smoothing-the-generative-latent-space-with","repo_url":"https://github.com/rowerliu/add","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"image-generation","task_name":"Image Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2111.11672","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2111.11672"}},"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/rowerliu/add","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rowerliu/adbd","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/reyllama/mixdl","reach":null}],"summary":{"ran_draft_wrong":3,"ran_honours":3,"ran":4,"ran_fixture":1,"unverified":9},"by_repo_kind":{"listed":{"samples":20,"ran":11,"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":"cfd76fd0d89574a4","entry":"approx_standard_normal_cdf","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/losses.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/losses.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cfd76fd0d89574a4"}},{"code_sha256_prefix":"2ab2316ac6fdd869","entry":"betas_for_alpha_bar","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/gaussian_diffusion.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/gaussian_diffusion.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2ab2316ac6fdd869"}},{"code_sha256_prefix":"cd33283d615fb3d7","entry":"discretized_gaussian_log_likelihood","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/losses.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/losses.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cd33283d615fb3d7"}},{"code_sha256_prefix":"a086d6286a40b889","entry":"get_named_beta_schedule","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/gaussian_diffusion.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/gaussian_diffusion.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a086d6286a40b889"}},{"code_sha256_prefix":"e41367ad14ff58fd","entry":"get_param_groups_and_shapes","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/fp16_util.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/fp16_util.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e41367ad14ff58fd"}},{"code_sha256_prefix":"e20dd5102da3b050","entry":"make_master_params","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/fp16_util.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/fp16_util.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e20dd5102da3b050"}},{"code_sha256_prefix":"cf2798b666b231ca","entry":"normal_kl","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/losses.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/losses.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cf2798b666b231ca"}},{"code_sha256_prefix":"4745538bfc32f1f9","entry":"random_crop_arr","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/image_datasets.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/image_datasets.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4745538bfc32f1f9"}},{"code_sha256_prefix":"9b6e4e070473e76f","entry":"space_timesteps","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/respace.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/respace.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9b6e4e070473e76f"}},{"code_sha256_prefix":"64fff1e30802b815","entry":"unflatten_master_params","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/fp16_util.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/fp16_util.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"64fff1e30802b815"}},{"code_sha256_prefix":"129b804760b3115f","entry":"zero_module","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/nn.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/nn.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"129b804760b3115f"}},{"code_sha256_prefix":"ecd0fc28815b65ae","entry":"avg_pool_nd","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/nn.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/nn.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ecd0fc28815b65ae"}},{"code_sha256_prefix":"f8b4a29a52612a41","entry":"center_crop_arr","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/image_datasets.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/image_datasets.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f8b4a29a52612a41"}},{"code_sha256_prefix":"fe4eb545bbb728e0","entry":"conv_nd","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/nn.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/nn.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe4eb545bbb728e0"}},{"code_sha256_prefix":"b0ca5f1ecc66d127","entry":"create_named_schedule_sampler","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/resample.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/resample.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b0ca5f1ecc66d127"}},{"code_sha256_prefix":"c927467264c76862","entry":"get_adaptive_list","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/fourier_trans.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/fourier_trans.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c927467264c76862"}},{"code_sha256_prefix":"b8bf09cdda044a37","entry":"image_fourier_trans","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/fourier_trans.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/fourier_trans.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b8bf09cdda044a37"}},{"code_sha256_prefix":"6633aefbd7f08bc4","entry":"make_output_format","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/logger.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/logger.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6633aefbd7f08bc4"}},{"code_sha256_prefix":"e515a67f7f32e76d","entry":"mpi_weighted_mean","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/logger.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/logger.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e515a67f7f32e76d"}},{"code_sha256_prefix":"9abc5b6cb067441b","entry":"profile","repo":"rowerliu/adbd","repo_kind":"listed","path":"guided_diffusion/logger.py","file_url":"https://github.com/rowerliu/adbd/blob/HEAD/guided_diffusion/logger.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9abc5b6cb067441b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}