{"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/taskexpert-dynamically-assembling-multi-task","title":"TaskExpert: Dynamically Assembling Multi-Task Representations with Memorial Mixture-of-Experts","arxiv_id":"2307.15324","date":"2023-07-28","proceeding":"ICCV 2023 1","authors":["Hanrong Ye","Dan Xu"],"abstract":"Learning discriminative task-specific features simultaneously for multiple distinct tasks is a fundamental problem in multi-task learning. Recent state-of-the-art models consider directly decoding task-specific features from one shared task-generic feature (e.g., feature from a backbone layer), and utilize carefully designed decoders to produce multi-task features. However, as the input feature is fully shared and each task decoder also shares decoding parameters for different input samples, it leads to a static feature decoding process, producing less discriminative task-specific representations. To tackle this limitation, we propose TaskExpert, a novel multi-task mixture-of-experts model that enables learning multiple representative task-generic feature spaces and decoding task-specific features in a dynamic manner. Specifically, TaskExpert introduces a set of expert networks to decompose the backbone feature into several representative task-generic features. Then, the task-specific features are decoded by using dynamic task-specific gating networks operating on the decomposed task-generic features. Furthermore, to establish long-range modeling of the task-specific representations from different layers of TaskExpert, we design a multi-task feature memory that updates at each layer and acts as an additional feature expert for dynamic task-specific feature decoding. Extensive experiments demonstrate that our TaskExpert clearly outperforms previous best-performing methods on all 9 metrics of two competitive multi-task learning benchmarks for visual scene understanding (i.e., PASCAL-Context and NYUD-v2). Codes and models will be made publicly available at https://github.com/prismformore/Multi-Task-Transformer","url_abs":"https://arxiv.org/abs/2307.15324v1","url_pdf":"https://arxiv.org/pdf/2307.15324v1.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":"taskexpert-dynamically-assembling-multi-task","repo_url":"https://github.com/prismformore/multi-task-transformer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"long-range-modeling","task_name":"Long-range modeling"},{"task_slug":"mixture-of-experts","task_name":"Mixture-of-Experts"},{"task_slug":"multi-task-learning","task_name":"Multi-Task Learning"},{"task_slug":"scene-understanding","task_name":"Scene Understanding"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2307.15324","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.15324"}},"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/prismformore/multi-task-transformer","reach":null}],"summary":{"ran":2,"ran_fixture":2,"unverified":4},"by_repo_kind":{"official":{"samples":8,"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":"ee6bbe827f8d9472","entry":"Attention","repo":"prismformore/multi-task-transformer","repo_kind":"official","path":"TaskPrompter/models/transformers/taskprompter.py","file_url":"https://github.com/prismformore/multi-task-transformer/blob/HEAD/TaskPrompter/models/transformers/taskprompter.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ee6bbe827f8d9472"}},{"code_sha256_prefix":"2e10210303b061a9","entry":"rearrange","repo":"prismformore/multi-task-transformer","repo_kind":"official","path":"TaskPrompter/models/transformers/taskprompter.py","file_url":"https://github.com/prismformore/multi-task-transformer/blob/HEAD/TaskPrompter/models/transformers/taskprompter.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e10210303b061a9"}},{"code_sha256_prefix":"191b2735955d18f4","entry":"resize_pos_embed","repo":"prismformore/multi-task-transformer","repo_kind":"official","path":"TaskPrompter/models/transformers/taskprompter.py","file_url":"https://github.com/prismformore/multi-task-transformer/blob/HEAD/TaskPrompter/models/transformers/taskprompter.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"191b2735955d18f4"}},{"code_sha256_prefix":"84cbc8dde894bd57","entry":"sep_prompt","repo":"prismformore/multi-task-transformer","repo_kind":"official","path":"TaskPrompter/models/transformers/taskprompter.py","file_url":"https://github.com/prismformore/multi-task-transformer/blob/HEAD/TaskPrompter/models/transformers/taskprompter.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"84cbc8dde894bd57"}},{"code_sha256_prefix":"786d3dd6c884f03f","entry":"Block","repo":"prismformore/multi-task-transformer","repo_kind":"official","path":"TaskPrompter/models/transformers/taskprompter.py","file_url":"https://github.com/prismformore/multi-task-transformer/blob/HEAD/TaskPrompter/models/transformers/taskprompter.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":"786d3dd6c884f03f"}},{"code_sha256_prefix":"f433e5e5bd35351b","entry":"TaskPrompter","repo":"prismformore/multi-task-transformer","repo_kind":"official","path":"TaskPrompter/models/transformers/taskprompter.py","file_url":"https://github.com/prismformore/multi-task-transformer/blob/HEAD/TaskPrompter/models/transformers/taskprompter.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":"f433e5e5bd35351b"}},{"code_sha256_prefix":"fe1af6a5e64c4760","entry":"_init_vit_weights","repo":"prismformore/multi-task-transformer","repo_kind":"official","path":"TaskPrompter/models/transformers/taskprompter.py","file_url":"https://github.com/prismformore/multi-task-transformer/blob/HEAD/TaskPrompter/models/transformers/taskprompter.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":"fe1af6a5e64c4760"}},{"code_sha256_prefix":"930478a0420de5ff","entry":"_load_weights","repo":"prismformore/multi-task-transformer","repo_kind":"official","path":"TaskPrompter/models/transformers/taskprompter.py","file_url":"https://github.com/prismformore/multi-task-transformer/blob/HEAD/TaskPrompter/models/transformers/taskprompter.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":"930478a0420de5ff"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}