{"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/self-diagnosing-gan-diagnosing","title":"Self-Diagnosing GAN: Diagnosing Underrepresented Samples in Generative Adversarial Networks","arxiv_id":"2102.12033","date":"2021-02-24","proceeding":"NeurIPS 2021 12","authors":["Jinhee Lee","HaeRi Kim","Youngkyu Hong","Hye Won Chung"],"abstract":"Despite remarkable performance in producing realistic samples, Generative Adversarial Networks (GANs) often produce low-quality samples near low-density regions of the data manifold, e.g., samples of minor groups. Many techniques have been developed to improve the quality of generated samples, either by post-processing generated samples or by pre-processing the empirical data distribution, but at the cost of reduced diversity. To promote diversity in sample generation without degrading the overall quality, we propose a simple yet effective method to diagnose and emphasize underrepresented samples during training of a GAN. The main idea is to use the statistics of the discrepancy between the data distribution and the model distribution at each data instance. Based on the observation that the underrepresented samples have a high average discrepancy or high variability in discrepancy, we propose a method to emphasize those samples during training of a GAN. Our experimental results demonstrate that the proposed method improves GAN performance on various datasets, and it is especially effective in improving the quality and diversity of sample generation for minor groups.","url_abs":"https://arxiv.org/abs/2102.12033v3","url_pdf":"https://arxiv.org/pdf/2102.12033v3.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":"self-diagnosing-gan-diagnosing","repo_url":"https://github.com/grayhong/self-diagnosing-gan","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2102.12033","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2102.12033"}},"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":"deterministic:regex_extraction","url":"https://github.com/grayhong/self-diagnosing-gan","reach":null}],"summary":{"ran_draft_wrong":2,"ran_honours":1,"ran":1},"by_repo_kind":{"official":{"samples":4,"ran":4,"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":"b179e50b12b2fdb5","entry":"_bce_loss_with_logits","repo":"grayhong/self-diagnosing-gan","repo_kind":"official","path":"diagan-pkg/diagan/models/gold_reweight_models.py","file_url":"https://github.com/grayhong/self-diagnosing-gan/blob/HEAD/diagan-pkg/diagan/models/gold_reweight_models.py","link_basis":"first_harvest_node","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":"b179e50b12b2fdb5"}},{"code_sha256_prefix":"51b1b8240f1734d1","entry":"compute_gold_reweight","repo":"grayhong/self-diagnosing-gan","repo_kind":"official","path":"diagan-pkg/diagan/models/gold_reweight_models.py","file_url":"https://github.com/grayhong/self-diagnosing-gan/blob/HEAD/diagan-pkg/diagan/models/gold_reweight_models.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"51b1b8240f1734d1"}},{"code_sha256_prefix":"d7ec48bb2e705c88","entry":"get_dataloader","repo":"grayhong/self-diagnosing-gan","repo_kind":"official","path":"train_mimicry_phase1.py","file_url":"https://github.com/grayhong/self-diagnosing-gan/blob/HEAD/train_mimicry_phase1.py","link_basis":"first_harvest_node","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":"d7ec48bb2e705c88"}},{"code_sha256_prefix":"a735bad076714e77","entry":"gold_reweighted_minimax_loss_dis","repo":"grayhong/self-diagnosing-gan","repo_kind":"official","path":"diagan-pkg/diagan/models/gold_reweight_models.py","file_url":"https://github.com/grayhong/self-diagnosing-gan/blob/HEAD/diagan-pkg/diagan/models/gold_reweight_models.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a735bad076714e77"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}