{"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/prototype-based-hyperadapter-for-sample","title":"Prototype-based HyperAdapter for Sample-Efficient Multi-task Tuning","arxiv_id":"2310.11670","date":"2023-10-18","proceeding":null,"authors":["Hao Zhao","Jie Fu","Zhaofeng He"],"abstract":"Parameter-efficient fine-tuning (PEFT) has shown its effectiveness in adapting the pre-trained language models to downstream tasks while only updating a small number of parameters. Despite the success, most existing methods independently adapt to each task without considering knowledge transfer between tasks and are limited to low-data regimes. To overcome this issue, we propose Prototype-based HyperAdapter (PHA), a novel framework built on the adapter-tuning and hypernetwork. It introduces an instance-dense retriever and a prototypical hypernetwork to generate the conditional modules in a sample-efficient manner. This leads to comparable performance improvements against existing PEFT methods on multi-task learning and few-shot transfer learning. More importantly, when the available data size gets smaller, our method outperforms other strong baselines by a large margin. Based on our extensive empirical experiments across various datasets, we demonstrate that PHA strikes a better trade-off between trainable parameters, accuracy on stream tasks, and sample efficiency.","url_abs":"https://arxiv.org/abs/2310.11670v3","url_pdf":"https://arxiv.org/pdf/2310.11670v3.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":"prototype-based-hyperadapter-for-sample","repo_url":"https://github.com/bumble666/pha","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"multi-task-learning","task_name":"Multi-Task Learning"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"},{"task_slug":"parameter-efficient-fine-tuning","task_name":"parameter-efficient fine-tuning"}],"methods":[{"method_slug":"hypernetwork","method_name":"HyperNetwork"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.11670","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.11670"}},"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":"deterministic:regex_extraction","url":"https://github.com/Bumble666/PHA","reach":null}],"summary":{"ran":2,"unverified":2},"by_repo_kind":{"official":{"samples":4,"ran":2,"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":"d65a8bab6e7a7726","entry":"ParameterGenerator","repo":"Bumble666/PHA","repo_kind":"official","path":"modeling/adapter_generators.py","file_url":"https://github.com/Bumble666/PHA/blob/HEAD/modeling/adapter_generators.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d65a8bab6e7a7726"}},{"code_sha256_prefix":"c6d0ff6c86a01ed4","entry":"SimpleGenerator","repo":"Bumble666/PHA","repo_kind":"official","path":"modeling/adapter_generators.py","file_url":"https://github.com/Bumble666/PHA/blob/HEAD/modeling/adapter_generators.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c6d0ff6c86a01ed4"}},{"code_sha256_prefix":"c4435802d55c94f6","entry":"hyperfanin_init_bias","repo":"Bumble666/PHA","repo_kind":"official","path":"modeling/adapter_generators.py","file_url":"https://github.com/Bumble666/PHA/blob/HEAD/modeling/adapter_generators.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":"c4435802d55c94f6"}},{"code_sha256_prefix":"613ed2a977afd2c4","entry":"hyperfanin_init_weight","repo":"Bumble666/PHA","repo_kind":"official","path":"modeling/adapter_generators.py","file_url":"https://github.com/Bumble666/PHA/blob/HEAD/modeling/adapter_generators.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":"613ed2a977afd2c4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}