{"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/ziplora-any-subject-in-any-style-by","title":"ZipLoRA: Any Subject in Any Style by Effectively Merging LoRAs","arxiv_id":"2311.13600","date":"2023-11-22","proceeding":null,"authors":["Viraj Shah","Nataniel Ruiz","Forrester Cole","Erika Lu","Svetlana Lazebnik","Yuanzhen Li","Varun Jampani"],"abstract":"Methods for finetuning generative models for concept-driven personalization generally achieve strong results for subject-driven or style-driven generation. Recently, low-rank adaptations (LoRA) have been proposed as a parameter-efficient way of achieving concept-driven personalization. While recent work explores the combination of separate LoRAs to achieve joint generation of learned styles and subjects, existing techniques do not reliably address the problem; they often compromise either subject fidelity or style fidelity. We propose ZipLoRA, a method to cheaply and effectively merge independently trained style and subject LoRAs in order to achieve generation of any user-provided subject in any user-provided style. Experiments on a wide range of subject and style combinations show that ZipLoRA can generate compelling results with meaningful improvements over baselines in subject and style fidelity while preserving the ability to recontextualize. Project page: https://ziplora.github.io","url_abs":"https://arxiv.org/abs/2311.13600v1","url_pdf":"https://arxiv.org/pdf/2311.13600v1.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":"ziplora-any-subject-in-any-style-by","repo_url":"https://github.com/mkshing/ziplora-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2311.13600","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.13600"}},"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/mkshing/ziplora-pytorch","reach":null}],"summary":{"ran_fixture":1,"unverified":2},"by_repo_kind":{"listed":{"samples":3,"ran":1,"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":"4ed40bc152475f67","entry":"text_encoder_lora_state_dict","repo":"mkshing/ziplora-pytorch","repo_kind":"listed","path":"train_dreambooth_lora_sdxl.py","file_url":"https://github.com/mkshing/ziplora-pytorch/blob/HEAD/train_dreambooth_lora_sdxl.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4ed40bc152475f67"}},{"code_sha256_prefix":"f14378fda30add13","entry":"parse_args","repo":"mkshing/ziplora-pytorch","repo_kind":"listed","path":"train_dreambooth_lora_sdxl.py","file_url":"https://github.com/mkshing/ziplora-pytorch/blob/HEAD/train_dreambooth_lora_sdxl.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":"f14378fda30add13"}},{"code_sha256_prefix":"ec87eeb7bb6eebea","entry":"parse_args","repo":"mkshing/ziplora-pytorch","repo_kind":"listed","path":"train_dreambooth_ziplora_sdxl.py","file_url":"https://github.com/mkshing/ziplora-pytorch/blob/HEAD/train_dreambooth_ziplora_sdxl.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":"ec87eeb7bb6eebea"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}