{"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/exploring-and-predicting-transferability","title":"Exploring and Predicting Transferability across NLP Tasks","arxiv_id":"2005.00770","date":"2020-05-02","proceeding":"EMNLP 2020 11","authors":["Tu Vu","Tong Wang","Tsendsuren Munkhdalai","Alessandro Sordoni","Adam Trischler","Andrew Mattarella-Micke","Subhransu Maji","Mohit Iyyer"],"abstract":"Recent advances in NLP demonstrate the effectiveness of training large-scale language models and transferring them to downstream tasks. Can fine-tuning these models on tasks other than language modeling further improve performance? In this paper, we conduct an extensive study of the transferability between 33 NLP tasks across three broad classes of problems (text classification, question answering, and sequence labeling). Our results show that transfer learning is more beneficial than previously thought, especially when target task data is scarce, and can improve performance even when the source task is small or differs substantially from the target task (e.g., part-of-speech tagging transfers well to the DROP QA dataset). We also develop task embeddings that can be used to predict the most transferable source tasks for a given target task, and we validate their effectiveness in experiments controlled for source and target data size. Overall, our experiments reveal that factors such as source data size, task and domain similarity, and task complexity all play a role in determining transferability.","url_abs":"https://arxiv.org/abs/2005.00770v2","url_pdf":"https://arxiv.org/pdf/2005.00770v2.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":"exploring-and-predicting-transferability","repo_url":"https://github.com/tuvuumass/task-transferability","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"part-of-speech-tagging","task_name":"Part-Of-Speech Tagging"},{"task_slug":"question-answering","task_name":"Question Answering"},{"task_slug":"text-classification","task_name":"Text Classification"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"},{"task_slug":"text-classification-1","task_name":"text-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2005.00770","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.00770"}},"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/tuvuumass/task-transferability","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":2,"ran_honours":2,"unverified":6},"by_repo_kind":{"official":{"samples":10,"ran":4,"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":"9df40357afea56cc","entry":"to_list","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"run_finetuning_QA.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/run_finetuning_QA.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":2,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9df40357afea56cc"}},{"code_sha256_prefix":"211753ba29188d4e","entry":"gelu","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"transformers/modeling_task_embeddings.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/transformers/modeling_task_embeddings.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"211753ba29188d4e"}},{"code_sha256_prefix":"77601724cad03f95","entry":"gelu_new","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"transformers/modeling_task_embeddings.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/transformers/modeling_task_embeddings.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"77601724cad03f95"}},{"code_sha256_prefix":"0c145728a35789fa","entry":"load_tf_weights_in_bert","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"transformers/modeling_task_embeddings.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/transformers/modeling_task_embeddings.py","link_basis":"harvester_set","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":"0c145728a35789fa"}},{"code_sha256_prefix":"b428dd4da9ed4aab","entry":"compute_Fisher","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"run_taskemb_CR.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/run_taskemb_CR.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":"b428dd4da9ed4aab"}},{"code_sha256_prefix":"c94deca631245c15","entry":"compute_Fisher_no_labels","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"run_taskemb_CR.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/run_taskemb_CR.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":"c94deca631245c15"}},{"code_sha256_prefix":"a8809687a128b395","entry":"compute_Fisher_no_labels","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"run_taskemb_QA.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/run_taskemb_QA.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":"a8809687a128b395"}},{"code_sha256_prefix":"010348971baa2ed7","entry":"compute_Fisher_with_labels","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"run_taskemb_CR.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/run_taskemb_CR.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":"010348971baa2ed7"}},{"code_sha256_prefix":"e638def88775edeb","entry":"evaluate","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"run_finetuning_CR.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/run_finetuning_CR.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":"e638def88775edeb"}},{"code_sha256_prefix":"5671be9e6de071d7","entry":"load_and_cache_examples","repo":"tuvuumass/task-transferability","repo_kind":"official","path":"run_finetuning_CR.py","file_url":"https://github.com/tuvuumass/task-transferability/blob/HEAD/run_finetuning_CR.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":"5671be9e6de071d7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}