{"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/zero-shot-continuous-prompt-transfer","title":"Zero-Shot Continuous Prompt Transfer: Generalizing Task Semantics Across Language Models","arxiv_id":"2310.01691","date":"2023-10-02","proceeding":null,"authors":["Zijun Wu","Yongkang Wu","Lili Mou"],"abstract":"Prompt tuning in natural language processing (NLP) has become an increasingly popular method for adapting large language models to specific tasks. However, the transferability of these prompts, especially continuous prompts, between different models remains a challenge. In this work, we propose a zero-shot continuous prompt transfer method, where source prompts are encoded into relative space and the corresponding target prompts are searched for transferring to target models. Experimental results confirm the effectiveness of our method, showing that 'task semantics' in continuous prompts can be generalized across various language models. Moreover, we find that combining 'task semantics' from multiple source models can further enhance the generalizability of transfer.","url_abs":"https://arxiv.org/abs/2310.01691v2","url_pdf":"https://arxiv.org/pdf/2310.01691v2.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":"zero-shot-continuous-prompt-transfer","repo_url":"https://github.com/manga-uofa/ptfer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.01691","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.01691"}},"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/manga-uofa/ptfer","reach":null}],"summary":{"ran_draft_wrong":4,"ran_fixture":2,"unverified":1},"by_repo_kind":{"official":{"samples":7,"ran":6,"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":"ead1e18ac3c34c55","entry":"build_vocab","repo":"manga-uofa/ptfer","repo_kind":"official","path":"rel2abs_util.py","file_url":"https://github.com/manga-uofa/ptfer/blob/HEAD/rel2abs_util.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ead1e18ac3c34c55"}},{"code_sha256_prefix":"2362a13baa9e9ffb","entry":"get_model_tokenizer","repo":"manga-uofa/ptfer","repo_kind":"official","path":"rel2abs_util.py","file_url":"https://github.com/manga-uofa/ptfer/blob/HEAD/rel2abs_util.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2362a13baa9e9ffb"}},{"code_sha256_prefix":"bd56b56f8b83a772","entry":"get_new_token","repo":"manga-uofa/ptfer","repo_kind":"official","path":"gpt_code/run_optiprompt_gpt.py","file_url":"https://github.com/manga-uofa/ptfer/blob/HEAD/gpt_code/run_optiprompt_gpt.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bd56b56f8b83a772"}},{"code_sha256_prefix":"25892385a6c19443","entry":"init_template","repo":"manga-uofa/ptfer","repo_kind":"official","path":"gpt_code/run_optiprompt_gpt.py","file_url":"https://github.com/manga-uofa/ptfer/blob/HEAD/gpt_code/run_optiprompt_gpt.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"25892385a6c19443"}},{"code_sha256_prefix":"0531f7a649f4aece","entry":"select_random_samples","repo":"manga-uofa/ptfer","repo_kind":"official","path":"rel2abs_util.py","file_url":"https://github.com/manga-uofa/ptfer/blob/HEAD/rel2abs_util.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0531f7a649f4aece"}},{"code_sha256_prefix":"e8706736226f9587","entry":"vocab_cleaning","repo":"manga-uofa/ptfer","repo_kind":"official","path":"rel2abs_util.py","file_url":"https://github.com/manga-uofa/ptfer/blob/HEAD/rel2abs_util.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e8706736226f9587"}},{"code_sha256_prefix":"b8e969454cbb6b8f","entry":"get_abs_anchors","repo":"manga-uofa/ptfer","repo_kind":"official","path":"rel2abs_util.py","file_url":"https://github.com/manga-uofa/ptfer/blob/HEAD/rel2abs_util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b8e969454cbb6b8f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}