{"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/partimagenet-dataset-scaling-up-part-based","title":"PartImageNet++ Dataset: Scaling up Part-based Models for Robust Recognition","arxiv_id":"2407.10918","date":"2024-07-15","proceeding":null,"authors":["Xiao Li","Yining Liu","Na Dong","Sitian Qin","Xiaolin Hu"],"abstract":"Deep learning-based object recognition systems can be easily fooled by various adversarial perturbations. One reason for the weak robustness may be that they do not have part-based inductive bias like the human recognition process. Motivated by this, several part-based recognition models have been proposed to improve the adversarial robustness of recognition. However, due to the lack of part annotations, the effectiveness of these methods is only validated on small-scale nonstandard datasets. In this work, we propose PIN++, short for PartImageNet++, a dataset providing high-quality part segmentation annotations for all categories of ImageNet-1K (IN-1K). With these annotations, we build part-based methods directly on the standard IN-1K dataset for robust recognition. Different from previous two-stage part-based models, we propose a Multi-scale Part-supervised Model (MPM), to learn a robust representation with part annotations. Experiments show that MPM yielded better adversarial robustness on the large-scale IN-1K over strong baselines across various attack settings. Furthermore, MPM achieved improved robustness on common corruptions and several out-of-distribution datasets. The dataset, together with these results, enables and encourages researchers to explore the potential of part-based models in more real applications.","url_abs":"https://arxiv.org/abs/2407.10918v1","url_pdf":"https://arxiv.org/pdf/2407.10918v1.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":"partimagenet-dataset-scaling-up-part-based","repo_url":"https://github.com/LixiaoTHU/PartImageNetPP","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"adversarial-robustness","task_name":"Adversarial Robustness"},{"task_slug":"inductive-bias","task_name":"Inductive Bias"},{"task_slug":"object-recognition","task_name":"Object Recognition"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2407.10918","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.10918"}},"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/LixiaoTHU/PartImageNetPP","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":8,"ran_draft_wrong":2,"unverified":9},"by_repo_kind":{"official":{"samples":19,"ran":10,"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":"c8696b362bb9873b","entry":"build_loss","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"model/loss.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/model/loss.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":"c8696b362bb9873b"}},{"code_sha256_prefix":"372193f48cfccb0d","entry":"build_seg_loss","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"model/loss.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/model/loss.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":"372193f48cfccb0d"}},{"code_sha256_prefix":"123de186a05d2490","entry":"build_transform","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"eval_multi_dataset.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/eval_multi_dataset.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":"123de186a05d2490"}},{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"model/resnet.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/model/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":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"model/resnet.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/model/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":"160bb14bd76201b4"}},{"code_sha256_prefix":"7c2b72fae4adf239","entry":"downsample_seglabel","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"model/utils.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/model/utils.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":"7c2b72fae4adf239"}},{"code_sha256_prefix":"d5138507f6a88870","entry":"replace_best","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"adv_utils.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/adv_utils.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":"d5138507f6a88870"}},{"code_sha256_prefix":"68ba7f3cb55ef939","entry":"replace_best_reverse","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"adv_utils.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/adv_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"68ba7f3cb55ef939"}},{"code_sha256_prefix":"58875d9d3a043ec1","entry":"unwrap_checkpoint","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"utils.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/utils.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":"58875d9d3a043ec1"}},{"code_sha256_prefix":"3222066805488570","entry":"validate","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"eval_multi_dataset.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/eval_multi_dataset.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":"3222066805488570"}},{"code_sha256_prefix":"9381ca1fec4b4092","entry":"build_model","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"model/model.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/model/model.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":"9381ca1fec4b4092"}},{"code_sha256_prefix":"940deb1626cd6b57","entry":"build_part_model","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"model/model.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/model/model.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":"940deb1626cd6b57"}},{"code_sha256_prefix":"8a93e041134b597a","entry":"clamp","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"adv_utils.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/adv_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":"8a93e041134b597a"}},{"code_sha256_prefix":"71dc09fa04061081","entry":"compute_seg_acc","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"utils.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/utils.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":"71dc09fa04061081"}},{"code_sha256_prefix":"9955cd681dd897fa","entry":"create_logger","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"utils.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/utils.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":"9955cd681dd897fa"}},{"code_sha256_prefix":"64c4b10134d0f5f6","entry":"get_filenames_of_category","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"IN_C_helper/wordnet_functions.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/IN_C_helper/wordnet_functions.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":"64c4b10134d0f5f6"}},{"code_sha256_prefix":"00100b85ac7c0b0f","entry":"get_hypernyms","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"IN_C_helper/wordnet_functions.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/IN_C_helper/wordnet_functions.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":"00100b85ac7c0b0f"}},{"code_sha256_prefix":"515a490d85611e63","entry":"hypernyms_in_ilsvrc2012_categories","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"IN_C_helper/wordnet_functions.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/IN_C_helper/wordnet_functions.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":"515a490d85611e63"}},{"code_sha256_prefix":"96581f563c08c5bc","entry":"resnet18","repo":"LixiaoTHU/PartImageNetPP","repo_kind":"official","path":"model/resnet.py","file_url":"https://github.com/LixiaoTHU/PartImageNetPP/blob/HEAD/model/resnet.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":"96581f563c08c5bc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}