{"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/protos-vit-visual-foundation-models-for","title":"ProtoS-ViT: Visual foundation models for sparse self-explainable classifications","arxiv_id":"2406.10025","date":"2024-06-14","proceeding":null,"authors":["Hugues Turbé","Mina Bjelogrlic","Gianmarco Mengaldo","Christian Lovis"],"abstract":"Prototypical networks aim to build intrinsically explainable models based on the linear summation of concepts. Concepts are coherent entities that we, as humans, can recognize and associate with a certain object or entity. However, important challenges remain in the fair evaluation of explanation quality provided by these models. This work first proposes an extensive set of quantitative and qualitative metrics which allow to identify drawbacks in current prototypical networks. It then introduces a novel architecture which provides compact explanations, outperforming current prototypical models in terms of explanation quality. Overall, the proposed architecture demonstrates how frozen pre-trained ViT backbones can be effectively turned into prototypical models for both general and domain-specific tasks, in our case biomedical image classifiers. Code is available at \\url{https://github.com/hturbe/protosvit}.","url_abs":"https://arxiv.org/abs/2406.10025v2","url_pdf":"https://arxiv.org/pdf/2406.10025v2.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":"protos-vit-visual-foundation-models-for","repo_url":"https://github.com/hturbe/protosvit","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"explainable-models","task_name":"Explainable Models"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2406.10025","atlas_url":"https://app.syntology.ai/?focus=2406.10025","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.10025"}},"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/hturbe/protosvit","reach":null}],"summary":{"ran":4,"ran_draft_wrong":3,"ran_fixture":2,"unverified":4},"by_repo_kind":{"official":{"samples":13,"ran":9,"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":"8e46a6eeba8373bc","entry":"CustomLRScheduler","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8e46a6eeba8373bc"}},{"code_sha256_prefix":"d7bc5d2f6a676581","entry":"HsLoss","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d7bc5d2f6a676581"}},{"code_sha256_prefix":"4d2518d409eb51a9","entry":"L1Loss","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4d2518d409eb51a9"}},{"code_sha256_prefix":"ff94b73cd1c83d39","entry":"NonNegLinear","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.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":"ff94b73cd1c83d39"}},{"code_sha256_prefix":"41b7aca7693f9455","entry":"custom_sparse_","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"41b7aca7693f9455"}},{"code_sha256_prefix":"c45326533aa52577","entry":"plot_similarity","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"DEP_MISSING","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c45326533aa52577"}},{"code_sha256_prefix":"20e36a2b48964086","entry":"plot_weight_distribution","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"20e36a2b48964086"}},{"code_sha256_prefix":"dcbc703a97df3405","entry":"plot_weight_heatmap","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dcbc703a97df3405"}},{"code_sha256_prefix":"697f38ecfacf6513","entry":"show_cam_on_image","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"DEP_MISSING","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"697f38ecfacf6513"}},{"code_sha256_prefix":"e1f626bcb8f021e0","entry":"ClassificationModulePrototype","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.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":"e1f626bcb8f021e0"}},{"code_sha256_prefix":"207fe6a5bbf5b127","entry":"FisherPruningHook","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.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":"207fe6a5bbf5b127"}},{"code_sha256_prefix":"671fb2f77b64c1a5","entry":"WeightedHsLoss","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.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":"671fb2f77b64c1a5"}},{"code_sha256_prefix":"88b323904f60dce6","entry":"statistics","repo":"hturbe/protosvit","repo_kind":"official","path":"src/learning/models/ClassificationModulePrune.py","file_url":"https://github.com/hturbe/protosvit/blob/HEAD/src/learning/models/ClassificationModulePrune.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":"88b323904f60dce6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}