{"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/fast-and-accurate-gigapixel-pathological","title":"Fast and Accurate Gigapixel Pathological Image Classification with Hierarchical Distillation Multi-Instance Learning","arxiv_id":"2502.21130","date":"2025-02-28","proceeding":"CVPR 2025 1","authors":["Jiuyang Dong","Junjun Jiang","Kui Jiang","Jiahan Li","Yongbing Zhang"],"abstract":"Although multi-instance learning (MIL) has succeeded in pathological image classification, it faces the challenge of high inference costs due to processing numerous patches from gigapixel whole slide images (WSIs). To address this, we propose HDMIL, a hierarchical distillation multi-instance learning framework that achieves fast and accurate classification by eliminating irrelevant patches. HDMIL consists of two key components: the dynamic multi-instance network (DMIN) and the lightweight instance pre-screening network (LIPN). DMIN operates on high-resolution WSIs, while LIPN operates on the corresponding low-resolution counterparts. During training, DMIN are trained for WSI classification while generating attention-score-based masks that indicate irrelevant patches. These masks then guide the training of LIPN to predict the relevance of each low-resolution patch. During testing, LIPN first determines the useful regions within low-resolution WSIs, which indirectly enables us to eliminate irrelevant regions in high-resolution WSIs, thereby reducing inference time without causing performance degradation. In addition, we further design the first Chebyshev-polynomials-based Kolmogorov-Arnold classifier in computational pathology, which enhances the performance of HDMIL through learnable activation layers. Extensive experiments on three public datasets demonstrate that HDMIL outperforms previous state-of-the-art methods, e.g., achieving improvements of 3.13% in AUC while reducing inference time by 28.6% on the Camelyon16 dataset.","url_abs":"https://arxiv.org/abs/2502.21130v1","url_pdf":"https://arxiv.org/pdf/2502.21130v1.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":"fast-and-accurate-gigapixel-pathological","repo_url":"https://github.com/JiuyangDong/HDMIL","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"},{"task_slug":"whole-slide-images","task_name":"whole slide images"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2502.21130","atlas_url":"https://app.syntology.ai/?focus=2502.21130","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2502.21130"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/JiuyangDong/HDMIL","reach":null}],"summary":{"ran":5,"ran_fixture":1,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"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":9,"samples":[{"code_sha256_prefix":"d424b6b3585af98e","entry":"Attn_Net","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d424b6b3585af98e"}},{"code_sha256_prefix":"82757b8e3ebfbb28","entry":"Attn_Net_Gated","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"82757b8e3ebfbb28"}},{"code_sha256_prefix":"bd44ce2ab5b7a332","entry":"CLAM_SB","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bd44ce2ab5b7a332"}},{"code_sha256_prefix":"29b58b7ef89ed3d4","entry":"ChebyKAN","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"29b58b7ef89ed3d4"}},{"code_sha256_prefix":"c22de34d12b76c21","entry":"ChebyKANLayer","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c22de34d12b76c21"}},{"code_sha256_prefix":"1eac0eb703459d77","entry":"_gumbel_sigmoid","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1eac0eb703459d77"}},{"code_sha256_prefix":"5b401d0379db542a","entry":"CLAM_MB","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.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":"5b401d0379db542a"}},{"code_sha256_prefix":"4c1b6bdd7c570c56","entry":"KAN_CLAM_MB_v4","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.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":"4c1b6bdd7c570c56"}},{"code_sha256_prefix":"91f80e39232753ab","entry":"initialize_weights","repo":"JiuyangDong/HDMIL","repo_kind":"official","path":"models/hdmil.py","file_url":"https://github.com/JiuyangDong/HDMIL/blob/HEAD/models/hdmil.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":"91f80e39232753ab"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}