{"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/on-multi-domain-long-tailed-recognition","title":"On Multi-Domain Long-Tailed Recognition, Imbalanced Domain Generalization and Beyond","arxiv_id":"2203.09513","date":"2022-03-17","proceeding":null,"authors":["Yuzhe Yang","Hao Wang","Dina Katabi"],"abstract":"Real-world data often exhibit imbalanced label distributions. Existing studies on data imbalance focus on single-domain settings, i.e., samples are from the same data distribution. However, natural data can originate from distinct domains, where a minority class in one domain could have abundant instances from other domains. We formalize the task of Multi-Domain Long-Tailed Recognition (MDLT), which learns from multi-domain imbalanced data, addresses label imbalance, domain shift, and divergent label distributions across domains, and generalizes to all domain-class pairs. We first develop the domain-class transferability graph, and show that such transferability governs the success of learning in MDLT. We then propose BoDA, a theoretically grounded learning strategy that tracks the upper bound of transferability statistics, and ensures balanced alignment and calibration across imbalanced domain-class distributions. We curate five MDLT benchmarks based on widely-used multi-domain datasets, and compare BoDA to twenty algorithms that span different learning strategies. Extensive and rigorous experiments verify the superior performance of BoDA. Further, as a byproduct, BoDA establishes new state-of-the-art on Domain Generalization benchmarks, highlighting the importance of addressing data imbalance across domains, which can be crucial for improving generalization to unseen domains. Code and data are available at: https://github.com/YyzHarry/multi-domain-imbalance.","url_abs":"https://arxiv.org/abs/2203.09513v3","url_pdf":"https://arxiv.org/pdf/2203.09513v3.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":"on-multi-domain-long-tailed-recognition","repo_url":"https://github.com/yyzharry/multi-domain-imbalance","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"domain-generalization","task_name":"Domain Generalization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2203.09513","atlas_url":"https://app.syntology.ai/?focus=2203.09513","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2203.09513"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/yyzharry/multi-domain-imbalance","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/YyzHarry/multi-domain-imbalance","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":1,"ran_draft_wrong":1,"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":"bd0ab0e227b395a8","entry":"Algorithm","repo":"YyzHarry/multi-domain-imbalance","repo_kind":"official","path":"mdlt/learning/algorithms.py","file_url":"https://github.com/YyzHarry/multi-domain-imbalance/blob/HEAD/mdlt/learning/algorithms.py","link_basis":"first_harvest_node","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":"bd0ab0e227b395a8"}},{"code_sha256_prefix":"e5ca5985bfa097bc","entry":"count_samples_per_class","repo":"YyzHarry/multi-domain-imbalance","repo_kind":"official","path":"mdlt/learning/algorithms.py","file_url":"https://github.com/YyzHarry/multi-domain-imbalance/blob/HEAD/mdlt/learning/algorithms.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e5ca5985bfa097bc"}},{"code_sha256_prefix":"8e04419067436af9","entry":"BoDA","repo":"YyzHarry/multi-domain-imbalance","repo_kind":"official","path":"mdlt/learning/algorithms.py","file_url":"https://github.com/YyzHarry/multi-domain-imbalance/blob/HEAD/mdlt/learning/algorithms.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":"8e04419067436af9"}},{"code_sha256_prefix":"dca4155e189930af","entry":"ERM","repo":"YyzHarry/multi-domain-imbalance","repo_kind":"official","path":"mdlt/learning/algorithms.py","file_url":"https://github.com/YyzHarry/multi-domain-imbalance/blob/HEAD/mdlt/learning/algorithms.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":"dca4155e189930af"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}