{"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/attention-based-deep-multiple-instance","title":"Attention-based Deep Multiple Instance Learning","arxiv_id":"1802.04712","date":"2018-02-13","proceeding":"ICML 2018 7","authors":["Maximilian Ilse","Jakub M. Tomczak","Max Welling"],"abstract":"Multiple instance learning (MIL) is a variation of supervised learning where\na single class label is assigned to a bag of instances. In this paper, we state\nthe MIL problem as learning the Bernoulli distribution of the bag label where\nthe bag label probability is fully parameterized by neural networks.\nFurthermore, we propose a neural network-based permutation-invariant\naggregation operator that corresponds to the attention mechanism. Notably, an\napplication of the proposed attention-based operator provides insight into the\ncontribution of each instance to the bag label. We show empirically that our\napproach achieves comparable performance to the best MIL methods on benchmark\nMIL datasets and it outperforms other methods on a MNIST-based MIL dataset and\ntwo real-life histopathology datasets without sacrificing interpretability.","url_abs":"http://arxiv.org/abs/1802.04712v4","url_pdf":"http://arxiv.org/pdf/1802.04712v4.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":"attention-based-deep-multiple-instance","repo_url":"https://github.com/AMLab-Amsterdam/AttentionDeepMIL","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/DhruvilKarani/mil_mnist","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/Hazel-4/AttentionDeepMIL","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/KostiukIvan/Multiple-instance-learning-with-graph-neural-networks","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/SeongokRyu/multiple_instance_learning","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/ThomasHenckel/Attention_Deep_MIML","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/Xiyue-Wang/RetCCL","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"GPL-3.0"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/ml-jku/hopfield-layers","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/mv-lab/youtube8m-19","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/nupursjsu/EmergingTechnologiesProject","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/rameshkn/AMIL","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/rudrajit15/MIL-for-Breast-Cancer-Histology-Images","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":null},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/shubham808/meTP","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/srinath-niz/google_youtube8m_2019","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/swag2198/Intern-MeDAL_IITB","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/ucla-starai/countloss","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"attention-based-deep-multiple-instance","repo_url":"https://github.com/zhangrenyuuchicago/H-E-Image-Classification","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"aerial-scene-classification","task_name":"Aerial Scene Classification"},{"task_slug":"multiple-instance-learning","task_name":"Multiple Instance Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1802.04712","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1802.04712"}},"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/DhruvilKarani/mil_mnist","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rameshkn/AMIL","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mv-lab/youtube8m-19","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/SeongokRyu/multiple_instance_learning","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/swag2198/Intern-MeDAL_IITB","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Hazel-4/AttentionDeepMIL","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Xiyue-Wang/RetCCL","reach":{"status":"ok","spdx":"GPL-3.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/KostiukIvan/Multiple-instance-learning-with-graph-neural-networks","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/shubham808/meTP","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ThomasHenckel/Attention_Deep_MIML","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/AMLab-Amsterdam/AttentionDeepMIL","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ucla-starai/countloss","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/srinath-niz/google_youtube8m_2019","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhangrenyuuchicago/H-E-Image-Classification","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/rudrajit15/MIL-for-Breast-Cancer-Histology-Images","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ml-jku/hopfield-layers","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nupursjsu/EmergingTechnologiesProject","reach":{"status":"ok"}}],"summary":{"ran_fixture":3,"ran_violates":1,"ran_draft_wrong":1},"by_repo_kind":{"listed":{"samples":5,"ran":5,"repositories":2}},"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":5,"samples":[{"code_sha256_prefix":"79e743d160e629c2","entry":"Bayesian","repo":"rudrajit15/MIL-for-Breast-Cancer-Histology-Images","repo_kind":"listed","path":"Codes/Bayesian_MIL/Bayesian_MIL.py","file_url":"https://github.com/rudrajit15/MIL-for-Breast-Cancer-Histology-Images/blob/HEAD/Codes/Bayesian_MIL/Bayesian_MIL.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"79e743d160e629c2"}},{"code_sha256_prefix":"9e2e9310d7d9ac80","entry":"check_if_target","repo":"DhruvilKarani/mil_mnist","repo_kind":"listed","path":"bags.py","file_url":"https://github.com/DhruvilKarani/mil_mnist/blob/HEAD/bags.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9e2e9310d7d9ac80"}},{"code_sha256_prefix":"8913e209b8bdd557","entry":"get_new_labels","repo":"rudrajit15/MIL-for-Breast-Cancer-Histology-Images","repo_kind":"listed","path":"Codes/Bayesian_MIL/Bayesian_MIL.py","file_url":"https://github.com/rudrajit15/MIL-for-Breast-Cancer-Histology-Images/blob/HEAD/Codes/Bayesian_MIL/Bayesian_MIL.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8913e209b8bdd557"}},{"code_sha256_prefix":"fa4524ea6507cf15","entry":"get_patches","repo":"DhruvilKarani/mil_mnist","repo_kind":"listed","path":"bags.py","file_url":"https://github.com/DhruvilKarani/mil_mnist/blob/HEAD/bags.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fa4524ea6507cf15"}},{"code_sha256_prefix":"a351bad9f7fa1d64","entry":"ids_by_label","repo":"DhruvilKarani/mil_mnist","repo_kind":"listed","path":"bags.py","file_url":"https://github.com/DhruvilKarani/mil_mnist/blob/HEAD/bags.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a351bad9f7fa1d64"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}