{"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/training-free-dataset-pruning-for-instance","title":"Training-Free Dataset Pruning for Instance Segmentation","arxiv_id":"2503.00828","date":"2025-03-02","proceeding":null,"authors":["Yalun Dai","Lingao Xiao","Ivor W. Tsang","Yang He"],"abstract":"Existing dataset pruning techniques primarily focus on classification tasks, limiting their applicability to more complex and practical tasks like instance segmentation. Instance segmentation presents three key challenges: pixel-level annotations, instance area variations, and class imbalances, which significantly complicate dataset pruning efforts. Directly adapting existing classification-based pruning methods proves ineffective due to their reliance on time-consuming model training process. To address this, we propose a novel Training-Free Dataset Pruning (TFDP) method for instance segmentation. Specifically, we leverage shape and class information from image annotations to design a Shape Complexity Score (SCS), refining it into a Scale-Invariant (SI-SCS) and Class-Balanced (CB-SCS) versions to address instance area variations and class imbalances, all without requiring model training. We achieve state-of-the-art results on VOC 2012, Cityscapes, and COCO datasets, generalizing well across CNN and Transformer architectures. Remarkably, our approach accelerates the pruning process by an average of 1349$\\times$ on COCO compared to the adapted baselines. Source code is available at: https://github.com/he-y/dataset-pruning-for-instance-segmentation","url_abs":"https://arxiv.org/abs/2503.00828v1","url_pdf":"https://arxiv.org/pdf/2503.00828v1.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":"training-free-dataset-pruning-for-instance","repo_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"instance-segmentation","task_name":"Instance Segmentation"},{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dataset-pruning","method_name":"Dataset Pruning"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"focus","method_name":"Focus"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"pruning","method_name":"Pruning"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2503.00828","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2503.00828"}},"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":"deterministic:regex_extraction","url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation","reach":null}],"summary":{"ran_fixture":1,"ran_draft_wrong":3,"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":8,"samples":[{"code_sha256_prefix":"bbc28e036ed7617f","entry":"compute_bbox_scores","repo":"he-y/dataset-pruning-for-instance-segmentation","repo_kind":"official","path":"voc_2012/pytorch_mask_rcnn/model/pruning_score.py","file_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation/blob/HEAD/voc_2012/pytorch_mask_rcnn/model/pruning_score.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bbc28e036ed7617f"}},{"code_sha256_prefix":"aad32fccc84c45e6","entry":"get_l1_error_fn","repo":"he-y/dataset-pruning-for-instance-segmentation","repo_kind":"official","path":"voc_2012/pytorch_mask_rcnn/model/pruning_score.py","file_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation/blob/HEAD/voc_2012/pytorch_mask_rcnn/model/pruning_score.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aad32fccc84c45e6"}},{"code_sha256_prefix":"ecb554af837f424e","entry":"get_l2_error_fn","repo":"he-y/dataset-pruning-for-instance-segmentation","repo_kind":"official","path":"voc_2012/pytorch_mask_rcnn/model/pruning_score.py","file_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation/blob/HEAD/voc_2012/pytorch_mask_rcnn/model/pruning_score.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ecb554af837f424e"}},{"code_sha256_prefix":"0fd3a1a67189b738","entry":"get_lord_error_fn_2","repo":"he-y/dataset-pruning-for-instance-segmentation","repo_kind":"official","path":"voc_2012/pytorch_mask_rcnn/model/pruning_score.py","file_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation/blob/HEAD/voc_2012/pytorch_mask_rcnn/model/pruning_score.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0fd3a1a67189b738"}},{"code_sha256_prefix":"b4a480e39f228b3d","entry":"get_lord_error_fn","repo":"he-y/dataset-pruning-for-instance-segmentation","repo_kind":"official","path":"voc_2012/pytorch_mask_rcnn/model/pruning_score.py","file_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation/blob/HEAD/voc_2012/pytorch_mask_rcnn/model/pruning_score.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b4a480e39f228b3d"}},{"code_sha256_prefix":"0b2deda231de4f70","entry":"get_margin_error","repo":"he-y/dataset-pruning-for-instance-segmentation","repo_kind":"official","path":"voc_2012/pytorch_mask_rcnn/model/pruning_score.py","file_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation/blob/HEAD/voc_2012/pytorch_mask_rcnn/model/pruning_score.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0b2deda231de4f70"}},{"code_sha256_prefix":"955c252b6aaecf71","entry":"get_max_margin_error","repo":"he-y/dataset-pruning-for-instance-segmentation","repo_kind":"official","path":"voc_2012/pytorch_mask_rcnn/model/pruning_score.py","file_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation/blob/HEAD/voc_2012/pytorch_mask_rcnn/model/pruning_score.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"955c252b6aaecf71"}},{"code_sha256_prefix":"f6910de24b8f30ad","entry":"get_sum_margin_error","repo":"he-y/dataset-pruning-for-instance-segmentation","repo_kind":"official","path":"voc_2012/pytorch_mask_rcnn/model/pruning_score.py","file_url":"https://github.com/he-y/dataset-pruning-for-instance-segmentation/blob/HEAD/voc_2012/pytorch_mask_rcnn/model/pruning_score.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f6910de24b8f30ad"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}