{"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/protomil-multiple-instance-learning-with","title":"ProtoMIL: Multiple Instance Learning with Prototypical Parts for Whole-Slide Image Classification","arxiv_id":"2108.10612","date":"2021-08-24","proceeding":null,"authors":["Dawid Rymarczyk","Adam Pardyl","Jarosław Kraus","Aneta Kaczyńska","Marek Skomorowski","Bartosz Zieliński"],"abstract":"Multiple Instance Learning (MIL) gains popularity in many real-life machine learning applications due to its weakly supervised nature. However, the corresponding effort on explaining MIL lags behind, and it is usually limited to presenting instances of a bag that are crucial for a particular prediction. In this paper, we fill this gap by introducing ProtoMIL, a novel self-explainable MIL method inspired by the case-based reasoning process that operates on visual prototypes. Thanks to incorporating prototypical features into objects description, ProtoMIL unprecedentedly joins the model accuracy and fine-grained interpretability, which we present with the experiments on five recognized MIL datasets.","url_abs":"https://arxiv.org/abs/2108.10612v2","url_pdf":"https://arxiv.org/pdf/2108.10612v2.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":"protomil-multiple-instance-learning-with","repo_url":"https://github.com/apardyl/protomil","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"multiple-instance-learning","task_name":"Multiple Instance Learning"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2108.10612","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2108.10612"}},"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/apardyl/protomil","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":2,"unverified":15},"by_repo_kind":{"official":{"samples":17,"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":"d9def42110729a85","entry":"conv1x1","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/resnet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/resnet_features.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":"fac5364e2f53c6db","entry":"conv3x3","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/resnet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/resnet_features.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":"a2baed860d74a722","entry":"class_select","repo":"apardyl/protomil","repo_kind":"official","path":"weight_loss.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/weight_loss.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":"a2baed860d74a722"}},{"code_sha256_prefix":"87c31863e6ac3ca7","entry":"cross_entropy_with_weights","repo":"apardyl/protomil","repo_kind":"official","path":"weight_loss.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/weight_loss.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":"87c31863e6ac3ca7"}},{"code_sha256_prefix":"d5149ec5f0e567e9","entry":"densenet121_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/densenet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/densenet_features.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":"d5149ec5f0e567e9"}},{"code_sha256_prefix":"cf20cbc234ba341a","entry":"densenet169_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/densenet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/densenet_features.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":"cf20cbc234ba341a"}},{"code_sha256_prefix":"3803a12204298d72","entry":"densenet201_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/densenet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/densenet_features.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":"3803a12204298d72"}},{"code_sha256_prefix":"3a1dad638e0c10ce","entry":"lenet5_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/lenet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/lenet_features.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":"3a1dad638e0c10ce"}},{"code_sha256_prefix":"d90a16e645700743","entry":"log_sum_exp","repo":"apardyl/protomil","repo_kind":"official","path":"weight_loss.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/weight_loss.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":"d90a16e645700743"}},{"code_sha256_prefix":"d9c53a230276d331","entry":"noop_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/noop_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/noop_features.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":"d9c53a230276d331"}},{"code_sha256_prefix":"cb5dd5a8608ef68e","entry":"resnet18_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/resnet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/resnet_features.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":"cb5dd5a8608ef68e"}},{"code_sha256_prefix":"5175a4ce1a025b40","entry":"resnet_forward_impl","repo":"apardyl/protomil","repo_kind":"official","path":"datasets/camelyon_resnet.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/datasets/camelyon_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":"5175a4ce1a025b40"}},{"code_sha256_prefix":"db4cf62626820858","entry":"small_resnet18_bottleneck_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/small_resnet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/small_resnet_features.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":"db4cf62626820858"}},{"code_sha256_prefix":"c4a2a18ed874eb3d","entry":"small_resnet18_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/small_resnet_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/small_resnet_features.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":"c4a2a18ed874eb3d"}},{"code_sha256_prefix":"f80fd95528cbadc0","entry":"vgg11_bn_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/vgg_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/vgg_features.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":"f80fd95528cbadc0"}},{"code_sha256_prefix":"82ea1f1bdcfa7b9e","entry":"vgg11_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/vgg_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/vgg_features.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":"82ea1f1bdcfa7b9e"}},{"code_sha256_prefix":"15e9e467f0e328d1","entry":"vgg13_features","repo":"apardyl/protomil","repo_kind":"official","path":"base_models/vgg_features.py","file_url":"https://github.com/apardyl/protomil/blob/HEAD/base_models/vgg_features.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":"15e9e467f0e328d1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}