{"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/powerful-and-flexible-personalized-text-to","title":"Powerful and Flexible: Personalized Text-to-Image Generation via Reinforcement Learning","arxiv_id":"2407.06642","date":"2024-07-09","proceeding":null,"authors":["Fanyue Wei","Wei Zeng","Zhenyang Li","Dawei Yin","Lixin Duan","Wen Li"],"abstract":"Personalized text-to-image models allow users to generate varied styles of images (specified with a sentence) for an object (specified with a set of reference images). While remarkable results have been achieved using diffusion-based generation models, the visual structure and details of the object are often unexpectedly changed during the diffusion process. One major reason is that these diffusion-based approaches typically adopt a simple reconstruction objective during training, which can hardly enforce appropriate structural consistency between the generated and the reference images. To this end, in this paper, we design a novel reinforcement learning framework by utilizing the deterministic policy gradient method for personalized text-to-image generation, with which various objectives, differential or even non-differential, can be easily incorporated to supervise the diffusion models to improve the quality of the generated images. Experimental results on personalized text-to-image generation benchmark datasets demonstrate that our proposed approach outperforms existing state-of-the-art methods by a large margin on visual fidelity while maintaining text-alignment. Our code is available at: \\url{https://github.com/wfanyue/DPG-T2I-Personalization}.","url_abs":"https://arxiv.org/abs/2407.06642v2","url_pdf":"https://arxiv.org/pdf/2407.06642v2.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":"powerful-and-flexible-personalized-text-to","repo_url":"https://github.com/wfanyue/dpg-t2i-personalization","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"sentence","task_name":"Sentence"},{"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":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2407.06642","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.06642"}},"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/wfanyue/dpg-t2i-personalization","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/wfanyue/DPG-T2I-Personalization","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"ran":2,"unverified":2},"by_repo_kind":{"official":{"samples":5,"ran":3,"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":5,"samples":[{"code_sha256_prefix":"a15cfd7932844ef9","entry":"extract_into_tensor","repo":"wfanyue/DPG-T2I-Personalization","repo_kind":"official","path":"diffusion_utils.py","file_url":"https://github.com/wfanyue/DPG-T2I-Personalization/blob/HEAD/diffusion_utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a15cfd7932844ef9"}},{"code_sha256_prefix":"2008f07bf95be7e1","entry":"predict_start_from_noise","repo":"wfanyue/DPG-T2I-Personalization","repo_kind":"official","path":"diffusion_utils.py","file_url":"https://github.com/wfanyue/DPG-T2I-Personalization/blob/HEAD/diffusion_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2008f07bf95be7e1"}},{"code_sha256_prefix":"d98f4c7a1b520170","entry":"timestep_embedding","repo":"wfanyue/DPG-T2I-Personalization","repo_kind":"official","path":"reward_model.py","file_url":"https://github.com/wfanyue/DPG-T2I-Personalization/blob/HEAD/reward_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d98f4c7a1b520170"}},{"code_sha256_prefix":"0eb3e94e8635150e","entry":"import_model_class_from_model_name_or_path","repo":"wfanyue/DPG-T2I-Personalization","repo_kind":"official","path":"train_dreambooth_dpg.py","file_url":"https://github.com/wfanyue/DPG-T2I-Personalization/blob/HEAD/train_dreambooth_dpg.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0eb3e94e8635150e"}},{"code_sha256_prefix":"1928283f49296813","entry":"parse_args","repo":"wfanyue/DPG-T2I-Personalization","repo_kind":"official","path":"train_dreambooth_dpg.py","file_url":"https://github.com/wfanyue/DPG-T2I-Personalization/blob/HEAD/train_dreambooth_dpg.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1928283f49296813"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}