{"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/meta-learning-on-a-sequence-of-imbalanced","title":"Meta Learning on a Sequence of Imbalanced Domains with Difficulty Awareness","arxiv_id":"2109.14120","date":"2021-09-29","proceeding":"ICCV 2021 10","authors":["Zhenyi Wang","Tiehang Duan","Le Fang","Qiuling Suo","Mingchen Gao"],"abstract":"Recognizing new objects by learning from a few labeled examples in an evolving environment is crucial to obtain excellent generalization ability for real-world machine learning systems. A typical setting across current meta learning algorithms assumes a stationary task distribution during meta training. In this paper, we explore a more practical and challenging setting where task distribution changes over time with domain shift. Particularly, we consider realistic scenarios where task distribution is highly imbalanced with domain labels unavailable in nature. We propose a kernel-based method for domain change detection and a difficulty-aware memory management mechanism that jointly considers the imbalanced domain size and domain importance to learn across domains continuously. Furthermore, we introduce an efficient adaptive task sampling method during meta training, which significantly reduces task gradient variance with theoretical guarantees. Finally, we propose a challenging benchmark with imbalanced domain sequences and varied domain difficulty. We have performed extensive evaluations on the proposed benchmark, demonstrating the effectiveness of our method. We made our code publicly available.","url_abs":"https://arxiv.org/abs/2109.14120v1","url_pdf":"https://arxiv.org/pdf/2109.14120v1.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":"meta-learning-on-a-sequence-of-imbalanced","repo_url":"https://github.com/joey-wang123/imbalancemeta","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"change-detection","task_name":"Change Detection"},{"task_slug":"management","task_name":"Management"},{"task_slug":"meta-learning","task_name":"Meta-Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2109.14120","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2109.14120"}},"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/joey-wang123/imbalancemeta","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":1,"ran_honours":2,"unverified":8},"by_repo_kind":{"official":{"samples":11,"ran":3,"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":"fac5364e2f53c6db","entry":"conv3x3","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"net/resnet.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/net/resnet.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"67438f96ae93d420","entry":"convert_parameters","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"domain_shift.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/domain_shift.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"67438f96ae93d420"}},{"code_sha256_prefix":"94b2f3697cce4519","entry":"select_optimal_parameters","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"domain_shift.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/domain_shift.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"94b2f3697cce4519"}},{"code_sha256_prefix":"91c4c83d285d1bfb","entry":"apply_grad","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"utils.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/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":"91c4c83d285d1bfb"}},{"code_sha256_prefix":"a96935ee89a7588f","entry":"conv3x3","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"model.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/model.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":"a96935ee89a7588f"}},{"code_sha256_prefix":"0277eda759fbe6db","entry":"conv3x3","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"net/convnet.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/net/convnet.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":"0277eda759fbe6db"}},{"code_sha256_prefix":"67cc67d3bf1a65dd","entry":"conv3x3act","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"model.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/model.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":"67cc67d3bf1a65dd"}},{"code_sha256_prefix":"a6388be503db2f17","entry":"conv3x3nopool","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"model.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/model.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":"a6388be503db2f17"}},{"code_sha256_prefix":"79289153d293347d","entry":"dense","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"net/convnet.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/net/convnet.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":"79289153d293347d"}},{"code_sha256_prefix":"635fb4926879256e","entry":"gauss_kernel","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"utils.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/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":"635fb4926879256e"}},{"code_sha256_prefix":"3368a0b09ca316c2","entry":"get_accuracy","repo":"joey-wang123/imbalancemeta","repo_kind":"official","path":"utils.py","file_url":"https://github.com/joey-wang123/imbalancemeta/blob/HEAD/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":"3368a0b09ca316c2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}