{"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/multiflow-shifting-towards-task-agnostic","title":"MULTIFLOW: Shifting Towards Task-Agnostic Vision-Language Pruning","arxiv_id":"2404.05621","date":"2024-04-08","proceeding":"CVPR 2024 1","authors":["Matteo Farina","Massimiliano Mancini","Elia Cunegatti","Gaowen Liu","Giovanni Iacca","Elisa Ricci"],"abstract":"While excellent in transfer learning, Vision-Language models (VLMs) come with high computational costs due to their large number of parameters. To address this issue, removing parameters via model pruning is a viable solution. However, existing techniques for VLMs are task-specific, and thus require pruning the network from scratch for each new task of interest. In this work, we explore a new direction: Task-Agnostic Vision-Language Pruning (TA-VLP). Given a pretrained VLM, the goal is to find a unique pruned counterpart transferable to multiple unknown downstream tasks. In this challenging setting, the transferable representations already encoded in the pretrained model are a key aspect to preserve. Thus, we propose Multimodal Flow Pruning (MULTIFLOW), a first, gradient-free, pruning framework for TA-VLP where: (i) the importance of a parameter is expressed in terms of its magnitude and its information flow, by incorporating the saliency of the neurons it connects; and (ii) pruning is driven by the emergent (multimodal) distribution of the VLM parameters after pretraining. We benchmark eight state-of-the-art pruning algorithms in the context of TA-VLP, experimenting with two VLMs, three vision-language tasks, and three pruning ratios. Our experimental results show that MULTIFLOW outperforms recent sophisticated, combinatorial competitors in the vast majority of the cases, paving the way towards addressing TA-VLP. The code is publicly available at https://github.com/FarinaMatteo/multiflow.","url_abs":"https://arxiv.org/abs/2404.05621v1","url_pdf":"https://arxiv.org/pdf/2404.05621v1.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":"multiflow-shifting-towards-task-agnostic","repo_url":"https://github.com/farinamatteo/multiflow","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[{"method_slug":"pruning","method_name":"Pruning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2404.05621","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.05621"}},"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/FarinaMatteo/multiflow","reach":null}],"summary":{"ran":4,"ran_violates":1,"ran_draft_wrong":1,"ran_honours":2,"unverified":19},"by_repo_kind":{"official":{"samples":27,"ran":8,"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":27,"samples":[{"code_sha256_prefix":"7e26ba779356a23e","entry":"blip_detect_modality_fn","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7e26ba779356a23e"}},{"code_sha256_prefix":"68225426d2b546b7","entry":"is_blip_text_encoder_weight_tied","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"68225426d2b546b7"}},{"code_sha256_prefix":"1933ad23737e14e6","entry":"masks","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1933ad23737e14e6"}},{"code_sha256_prefix":"b12707e343eb192f","entry":"recursive_getattr","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b12707e343eb192f"}},{"code_sha256_prefix":"1c3162fdd29aa482","entry":"remaining_params","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1c3162fdd29aa482"}},{"code_sha256_prefix":"c725f131c12b446f","entry":"vit_detect_modality_fn","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c725f131c12b446f"}},{"code_sha256_prefix":"9e24be1a671d2b45","entry":"vit_forward_output","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9e24be1a671d2b45"}},{"code_sha256_prefix":"4f9d037860e42be8","entry":"xvlm_detect_modality_fn","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4f9d037860e42be8"}},{"code_sha256_prefix":"3e0bb09ca02798d1","entry":"GetTopSubnet","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"3e0bb09ca02798d1"}},{"code_sha256_prefix":"1de425a1a8df41d9","entry":"Linear","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"1de425a1a8df41d9"}},{"code_sha256_prefix":"b824b71a63a9e9f9","entry":"MultiFlow","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"b824b71a63a9e9f9"}},{"code_sha256_prefix":"f790d340a0df644e","entry":"Pruner","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"f790d340a0df644e"}},{"code_sha256_prefix":"2ddf606b2f63830f","entry":"SupermaskLinear","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"2ddf606b2f63830f"}},{"code_sha256_prefix":"5fc98e8ae7e46dce","entry":"_make_prunable","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"5fc98e8ae7e46dce"}},{"code_sha256_prefix":"776ca7bcdd190f41","entry":"blip_forward_output","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"776ca7bcdd190f41"}},{"code_sha256_prefix":"ece32424a6a15c71","entry":"blip_region_forward_output","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"ece32424a6a15c71"}},{"code_sha256_prefix":"133ca3834d81b322","entry":"check_blip_state_dict","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"133ca3834d81b322"}},{"code_sha256_prefix":"773c668c55aa5c55","entry":"detect_modality_fn","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"773c668c55aa5c55"}},{"code_sha256_prefix":"cda794b0932e7cd0","entry":"forward_output","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"cda794b0932e7cd0"}},{"code_sha256_prefix":"e603263fe94b6fd9","entry":"make_prunable","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"e603263fe94b6fd9"}},{"code_sha256_prefix":"cad07f042e2c897d","entry":"memorization_hook","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"cad07f042e2c897d"}},{"code_sha256_prefix":"2a279264408cfa04","entry":"named_masked_parameters","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"2a279264408cfa04"}},{"code_sha256_prefix":"9b2470bea1788960","entry":"prunable","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"9b2470bea1788960"}},{"code_sha256_prefix":"dcc2f99144d98cd2","entry":"region_forward_output","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"dcc2f99144d98cd2"}},{"code_sha256_prefix":"2d86258221d323a2","entry":"stats","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"2d86258221d323a2"}},{"code_sha256_prefix":"6b27647f011012d3","entry":"xvlm_forward_output","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"6b27647f011012d3"}},{"code_sha256_prefix":"88cc4d1cf6ca542b","entry":"xvlm_region_forward_output","repo":"FarinaMatteo/multiflow","repo_kind":"official","path":"pruners/multiflow.py","file_url":"https://github.com/FarinaMatteo/multiflow/blob/HEAD/pruners/multiflow.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":"88cc4d1cf6ca542b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}