{"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/minorityprompt-text-to-minority-image","title":"Minority-Focused Text-to-Image Generation via Prompt Optimization","arxiv_id":"2410.07838","date":"2024-10-10","proceeding":"CVPR 2025 1","authors":["Soobin Um","Jong Chul Ye"],"abstract":"We investigate the generation of minority samples using pretrained text-to-image (T2I) latent diffusion models. Minority instances, in the context of T2I generation, can be defined as ones living on low-density regions of text-conditional data distributions. They are valuable for various applications of modern T2I generators, such as data augmentation and creative AI. Unfortunately, existing pretrained T2I diffusion models primarily focus on high-density regions, largely due to the influence of guided samplers (like CFG) that are essential for producing high-quality generations. To address this, we present a novel framework to counter the high-density-focus of T2I diffusion models. Specifically, we first develop an online prompt optimization framework that can encourage the emergence of desired properties during inference while preserving semantic contents of user-provided prompts. We subsequently tailor this generic prompt optimizer into a specialized solver that promotes the generation of minority features by incorporating a carefully-crafted likelihood objective. Our comprehensive experiments, conducted across various types of T2I models, demonstrate that our approach significantly enhances the capability to produce high-quality minority instances compared to existing samplers.","url_abs":"https://arxiv.org/abs/2410.07838v2","url_pdf":"https://arxiv.org/pdf/2410.07838v2.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":"minorityprompt-text-to-minority-image","repo_url":"https://github.com/anonymous5293/minorityprompt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"text-to-image-generation-1","task_name":"Text to Image Generation"},{"task_slug":"text-to-image-generation","task_name":"Text-to-Image Generation"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2410.07838","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.07838"}},"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/anonymous5293/minorityprompt","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":7,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":10,"ran":8,"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":"bb01dba9c6728535","entry":"build_model","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"utils/clf_models.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/utils/clf_models.py","link_basis":"first_harvest_node","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":"bb01dba9c6728535"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"utils/clf_models.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/utils/clf_models.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":"fac5364e2f53c6db"}},{"code_sha256_prefix":"738bbca0c16116a1","entry":"fft2d","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"utils/img_util.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/utils/img_util.py","link_basis":"first_harvest_node","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":"738bbca0c16116a1"}},{"code_sha256_prefix":"fbac064a27d4b772","entry":"normalize","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"utils/img_util.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/utils/img_util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fbac064a27d4b772"}},{"code_sha256_prefix":"be20aa5be000303a","entry":"prepare_logger","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"utils/calculate_metrics.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/utils/calculate_metrics.py","link_basis":"first_harvest_node","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":"be20aa5be000303a"}},{"code_sha256_prefix":"d38ef3926ceeecd3","entry":"register_callback","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"utils/callback_util.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/utils/callback_util.py","link_basis":"first_harvest_node","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":"d38ef3926ceeecd3"}},{"code_sha256_prefix":"7d193ace9f177b2f","entry":"register_solver","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"latent_diffusion.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/latent_diffusion.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":"7d193ace9f177b2f"}},{"code_sha256_prefix":"98c24825ddd0a1d9","entry":"to_np","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"utils/img_util.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/utils/img_util.py","link_basis":"first_harvest_node","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":"98c24825ddd0a1d9"}},{"code_sha256_prefix":"840feaa55c0c13b6","entry":"get_callback","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"utils/callback_util.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/utils/callback_util.py","link_basis":"first_harvest_node","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":"840feaa55c0c13b6"}},{"code_sha256_prefix":"4f078fd69624c31f","entry":"get_solver","repo":"anonymous5293/minorityprompt","repo_kind":"official","path":"latent_diffusion.py","file_url":"https://github.com/anonymous5293/minorityprompt/blob/HEAD/latent_diffusion.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":"4f078fd69624c31f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}