{"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/learning-what-and-where-to-transfer","title":"Learning What and Where to Transfer","arxiv_id":"1905.05901","date":"2019-05-15","proceeding":null,"authors":["Yunhun Jang","Hankook Lee","Sung Ju Hwang","Jinwoo Shin"],"abstract":"As the application of deep learning has expanded to real-world problems with insufficient volume of training data, transfer learning recently has gained much attention as means of improving the performance in such small-data regime. However, when existing methods are applied between heterogeneous architectures and tasks, it becomes more important to manage their detailed configurations and often requires exhaustive tuning on them for the desired performance. To address the issue, we propose a novel transfer learning approach based on meta-learning that can automatically learn what knowledge to transfer from the source network to where in the target network. Given source and target networks, we propose an efficient training scheme to learn meta-networks that decide (a) which pairs of layers between the source and target networks should be matched for knowledge transfer and (b) which features and how much knowledge from each feature should be transferred. We validate our meta-transfer approach against recent transfer learning methods on various datasets and network architectures, on which our automated scheme significantly outperforms the prior baselines that find \"what and where to transfer\" in a hand-crafted manner.","url_abs":"https://arxiv.org/abs/1905.05901v1","url_pdf":"https://arxiv.org/pdf/1905.05901v1.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":"learning-what-and-where-to-transfer","repo_url":"https://github.com/alinlab/L2T-ww","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"learning-what-and-where-to-transfer","repo_url":"https://github.com/jindongwang/transferlearning","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"learning-what-and-where-to-transfer","repo_url":"https://github.com/junwoopark92/L2T_ww","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"learning-what-and-where-to-transfer","repo_url":"https://github.com/why862555625/-","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"meta-learning","task_name":"Meta-Learning"},{"task_slug":"small-data","task_name":"Small Data Image Classification"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1905.05901","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1905.05901"}},"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/jindongwang/transferlearning","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/alinlab/L2T-ww","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/junwoopark92/L2T_ww","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/why862555625/-","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":2,"ran":1,"ran_violates":1,"unverified":7},"by_repo_kind":{"official":{"samples":9,"ran":2,"repositories":1},"listed":{"samples":1,"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":1,"samples":[{"code_sha256_prefix":"83e82ba561baceb0","entry":"adentropy","repo":"junwoopark92/L2T_ww","repo_kind":"listed","path":"train_l2t_ww.py","file_url":"https://github.com/junwoopark92/L2T_ww/blob/HEAD/train_l2t_ww.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"83e82ba561baceb0"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"alinlab/L2T-ww","repo_kind":"official","path":"models/modules.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/models/modules.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"ac62432dc5134b0d","entry":"make_layers","repo":"alinlab/L2T-ww","repo_kind":"official","path":"models/vgg_cifar.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/models/vgg_cifar.py","link_basis":"harvester_set","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":"ac62432dc5134b0d"}},{"code_sha256_prefix":"e5b1aff86a339d0e","entry":"str2bool","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"e5b1aff86a339d0e"}},{"code_sha256_prefix":"f0c9a29156911331","entry":"accuracy","repo":"alinlab/L2T-ww","repo_kind":"official","path":"utils/utils.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/utils/utils.py","link_basis":"harvester_set","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":"f0c9a29156911331"}},{"code_sha256_prefix":"b5ac490a57b6d8ca","entry":"check_dataset","repo":"alinlab/L2T-ww","repo_kind":"official","path":"check_dataset.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/check_dataset.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":"b5ac490a57b6d8ca"}},{"code_sha256_prefix":"9555ba978cecae54","entry":"check_split","repo":"alinlab/L2T-ww","repo_kind":"official","path":"check_dataset.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/check_dataset.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":"9555ba978cecae54"}},{"code_sha256_prefix":"0df0022a8f219eba","entry":"read","repo":"alinlab/L2T-ww","repo_kind":"official","path":"cub200.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/cub200.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":"0df0022a8f219eba"}},{"code_sha256_prefix":"63dbbfa76604d16a","entry":"resnet18","repo":"alinlab/L2T-ww","repo_kind":"official","path":"models/resnet_ilsvrc.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/models/resnet_ilsvrc.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":"63dbbfa76604d16a"}},{"code_sha256_prefix":"e54be8b23ef75062","entry":"resnet32","repo":"alinlab/L2T-ww","repo_kind":"official","path":"models/resnet_cifar.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/models/resnet_cifar.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":"e54be8b23ef75062"}},{"code_sha256_prefix":"45022b11ce6bc098","entry":"resnet34","repo":"alinlab/L2T-ww","repo_kind":"official","path":"models/resnet_ilsvrc.py","file_url":"https://github.com/alinlab/L2T-ww/blob/HEAD/models/resnet_ilsvrc.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":"45022b11ce6bc098"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}