{"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/textboost-towards-one-shot-personalization-of","title":"TextBoost: Towards One-Shot Personalization of Text-to-Image Models via Fine-tuning Text Encoder","arxiv_id":"2409.08248","date":"2024-09-12","proceeding":null,"authors":["Nahyeon Park","Kunhee Kim","Hyunjung Shim"],"abstract":"Recent breakthroughs in text-to-image models have opened up promising research avenues in personalized image generation, enabling users to create diverse images of a specific subject using natural language prompts. However, existing methods often suffer from performance degradation when given only a single reference image. They tend to overfit the input, producing highly similar outputs regardless of the text prompt. This paper addresses the challenge of one-shot personalization by mitigating overfitting, enabling the creation of controllable images through text prompts. Specifically, we propose a selective fine-tuning strategy that focuses on the text encoder. Furthermore, we introduce three key techniques to enhance personalization performance: (1) augmentation tokens to encourage feature disentanglement and alleviate overfitting, (2) a knowledge-preservation loss to reduce language drift and promote generalizability across diverse prompts, and (3) SNR-weighted sampling for efficient training. Extensive experiments demonstrate that our approach efficiently generates high-quality, diverse images using only a single reference image while significantly reducing memory and storage requirements.","url_abs":"https://arxiv.org/abs/2409.08248v1","url_pdf":"https://arxiv.org/pdf/2409.08248v1.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":"textboost-towards-one-shot-personalization-of","repo_url":"https://github.com/nahyeonkaty/textboost","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"diffusion-personalization","task_name":"Diffusion Personalization"},{"task_slug":"disentanglement","task_name":"Disentanglement"},{"task_slug":"image-generation","task_name":"Image Generation"},{"task_slug":"personalized-image-generation","task_name":"Personalized Image Generation"},{"task_slug":"text-to-image-generation","task_name":"Text-to-Image Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.08248","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.08248"}},"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/nahyeonkaty/textboost","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":11,"unverified":3},"by_repo_kind":{"official":{"samples":14,"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":"880d2ac0a7cd3e47","entry":"add_new_token","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/ti_utils.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/ti_utils.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":"880d2ac0a7cd3e47"}},{"code_sha256_prefix":"5c98bd294f643a86","entry":"forced_weight_norm","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/ti_utils.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/ti_utils.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":"5c98bd294f643a86"}},{"code_sha256_prefix":"612bf864a644221b","entry":"generator_build","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/generator_builder.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/generator_builder.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":"612bf864a644221b"}},{"code_sha256_prefix":"49ba8cbb960e2237","entry":"get_images_path","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/datasets.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/datasets.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":"49ba8cbb960e2237"}},{"code_sha256_prefix":"f2e38d770c4f705f","entry":"get_prompts","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/evaluation/core.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/evaluation/core.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":"f2e38d770c4f705f"}},{"code_sha256_prefix":"72fcd818096aee74","entry":"is_image_file","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/datasets.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/datasets.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":"72fcd818096aee74"}},{"code_sha256_prefix":"294cbd4a861df6d7","entry":"is_live","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/evaluation/dreambooth.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/evaluation/dreambooth.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":"294cbd4a861df6d7"}},{"code_sha256_prefix":"95f9712e08dc49d3","entry":"load_new_token","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/ti_utils.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/ti_utils.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":"95f9712e08dc49d3"}},{"code_sha256_prefix":"8802c8bb9eabf0f5","entry":"load_prompts_from_file","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/evaluation/core.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/evaluation/core.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":"8802c8bb9eabf0f5"}},{"code_sha256_prefix":"bcd8d413e1a72650","entry":"make_expand_adapter_key","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/expand_bank.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/expand_bank.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":"bcd8d413e1a72650"}},{"code_sha256_prefix":"424823a175dc433e","entry":"tokenize_prompt","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/datasets.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/datasets.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":"424823a175dc433e"}},{"code_sha256_prefix":"fec6bb93784f10f0","entry":"attach_adapters_to_model","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/adapters.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/adapters.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":"fec6bb93784f10f0"}},{"code_sha256_prefix":"5fa7f7068bb368b3","entry":"custom_lora_forward","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/attention_processor.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/attention_processor.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":"5fa7f7068bb368b3"}},{"code_sha256_prefix":"809de9bd5d464d12","entry":"discover_instances","repo":"nahyeonkaty/textboost","repo_kind":"official","path":"src/textboost/evaluation/core.py","file_url":"https://github.com/nahyeonkaty/textboost/blob/HEAD/src/textboost/evaluation/core.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":"809de9bd5d464d12"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}