{"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/the-majority-can-help-the-minority-context","title":"The Majority Can Help The Minority: Context-rich Minority Oversampling for Long-tailed Classification","arxiv_id":"2112.00412","date":"2021-12-01","proceeding":"CVPR 2022 1","authors":["Seulki Park","Youngkyu Hong","Byeongho Heo","Sangdoo Yun","Jin Young Choi"],"abstract":"The problem of class imbalanced data is that the generalization performance of the classifier deteriorates due to the lack of data from minority classes. In this paper, we propose a novel minority over-sampling method to augment diversified minority samples by leveraging the rich context of the majority classes as background images. To diversify the minority samples, our key idea is to paste an image from a minority class onto rich-context images from a majority class, using them as background images. Our method is simple and can be easily combined with the existing long-tailed recognition methods. We empirically prove the effectiveness of the proposed oversampling method through extensive experiments and ablation studies. Without any architectural changes or complex algorithms, our method achieves state-of-the-art performance on various long-tailed classification benchmarks. Our code is made available at https://github.com/naver-ai/cmo.","url_abs":"https://arxiv.org/abs/2112.00412v3","url_pdf":"https://arxiv.org/pdf/2112.00412v3.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":"the-majority-can-help-the-minority-context","repo_url":"https://github.com/naver-ai/cmo","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"long-tail-learning","task_name":"Long-tail Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-classification-on-inaturalist-2018","task":"Image Classification","dataset":"iNaturalist 2018","model":"BS-CMO (ResNet-50)","rank_in_archive_order":30,"of":60,"metrics":{"Top-1 Accuracy":"74.0%"},"uses_additional_data":false},{"leaderboard":"/sota/long-tail-learning-on-cifar-100-lt-r-100","task":"Long-tail Learning","dataset":"CIFAR-100-LT (ρ=100)","model":"RIDE 3 experts + CMO","rank_in_archive_order":28,"of":66,"metrics":{"Error Rate":"50"},"uses_additional_data":false},{"leaderboard":"/sota/long-tail-learning-on-cifar-100-lt-r-100","task":"Long-tail Learning","dataset":"CIFAR-100-LT (ρ=100)","model":"LDAM-DRW + CMO","rank_in_archive_order":38,"of":66,"metrics":{"Error Rate":"52.8"},"uses_additional_data":false},{"leaderboard":"/sota/long-tail-learning-on-cifar-100-lt-r-100","task":"Long-tail Learning","dataset":"CIFAR-100-LT (ρ=100)","model":"Balanced Softmax + CMO","rank_in_archive_order":40,"of":66,"metrics":{"Error Rate":"53.4"},"uses_additional_data":false},{"leaderboard":"/sota/long-tail-learning-on-cifar-100-lt-r-100","task":"Long-tail Learning","dataset":"CIFAR-100-LT (ρ=100)","model":"CE-DRW","rank_in_archive_order":62,"of":66,"metrics":{"Error Rate":"58.9"},"uses_additional_data":false},{"leaderboard":"/sota/long-tail-learning-on-imagenet-lt","task":"Long-tail Learning","dataset":"ImageNet-LT","model":"BS-CMO (ResNet-50)","rank_in_archive_order":23,"of":69,"metrics":{"Top-1 Accuracy":"58.0"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2112.00412","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2112.00412"}},"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/naver-ai/cmo","reach":null}],"summary":{"ran_draft_wrong":3,"unverified":2},"by_repo_kind":{"official":{"samples":3,"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":2,"samples":[{"code_sha256_prefix":"a0e3d9c713be829a","entry":"hms_string","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"a0e3d9c713be829a"}},{"code_sha256_prefix":"0756a99508caf42c","entry":"rand_bbox","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"0756a99508caf42c"}},{"code_sha256_prefix":"c2961e85b58555de","entry":"rand_bbox_withcenter","repo":"naver-ai/cmo","repo_kind":"official","path":"imagenet_train.py","file_url":"https://github.com/naver-ai/cmo/blob/HEAD/imagenet_train.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c2961e85b58555de"}},{"code_sha256_prefix":"dc38cf45af8c7880","entry":"rand_bbox","repo":"naver-ai/cmo","repo_kind":"official","path":"cifar_train.py","file_url":"https://github.com/naver-ai/cmo/blob/HEAD/cifar_train.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dc38cf45af8c7880"}},{"code_sha256_prefix":"32afcb4e4479037f","entry":"rand_bbox_withcenter","repo":"naver-ai/cmo","repo_kind":"official","path":"cifar_train.py","file_url":"https://github.com/naver-ai/cmo/blob/HEAD/cifar_train.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":"32afcb4e4479037f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}