{"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/lifting-the-veil-on-visual-information-flow","title":"Lifting the Veil on Visual Information Flow in MLLMs: Unlocking Pathways to Faster Inference","arxiv_id":"2503.13108","date":"2025-03-17","proceeding":"CVPR 2025 1","authors":["Hao Yin","Guangzong Si","Zilei Wang"],"abstract":"Multimodal large language models (MLLMs) improve performance on vision-language tasks by integrating visual features from pre-trained vision encoders into large language models (LLMs). However, how MLLMs process and utilize visual information remains unclear. In this paper, a shift in the dominant flow of visual information is uncovered: (1) in shallow layers, strong interactions are observed between image tokens and instruction tokens, where most visual information is injected into instruction tokens to form cross-modal semantic representations; (2) in deeper layers, image tokens primarily interact with each other, aggregating the remaining visual information to optimize semantic representations within visual modality. Based on these insights, we propose Hierarchical Modality-Aware Pruning (HiMAP), a plug-and-play inference acceleration method that dynamically prunes image tokens at specific layers, reducing computational costs by approximately 65% without sacrificing performance. Our findings offer a new understanding of visual information processing in MLLMs and provide a state-of-the-art solution for efficient inference.","url_abs":"https://arxiv.org/abs/2503.13108v1","url_pdf":"https://arxiv.org/pdf/2503.13108v1.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":"lifting-the-veil-on-visual-information-flow","repo_url":"https://github.com/ustc-hyin/HiMAP","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[],"methods":[{"method_slug":"pruning","method_name":"Pruning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2503.13108","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2503.13108"}},"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/ustc-hyin/HiMAP","reach":null}],"summary":{"ran":4,"unverified":2},"by_repo_kind":{"official":{"samples":6,"ran":4,"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":6,"samples":[{"code_sha256_prefix":"b782c56a6374b40d","entry":"LlamaAttention","repo":"ustc-hyin/HiMAP","repo_kind":"official","path":"src/LLaVA/llava/model/language_model/himap.py","file_url":"https://github.com/ustc-hyin/HiMAP/blob/HEAD/src/LLaVA/llava/model/language_model/himap.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":"b782c56a6374b40d"}},{"code_sha256_prefix":"4607ba91049415cf","entry":"LlamaConfig","repo":"ustc-hyin/HiMAP","repo_kind":"official","path":"src/LLaVA/llava/model/language_model/himap.py","file_url":"https://github.com/ustc-hyin/HiMAP/blob/HEAD/src/LLaVA/llava/model/language_model/himap.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":"4607ba91049415cf"}},{"code_sha256_prefix":"77eaa387ee4685f5","entry":"LlamaDecoderLayer","repo":"ustc-hyin/HiMAP","repo_kind":"official","path":"src/LLaVA/llava/model/language_model/himap.py","file_url":"https://github.com/ustc-hyin/HiMAP/blob/HEAD/src/LLaVA/llava/model/language_model/himap.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":"77eaa387ee4685f5"}},{"code_sha256_prefix":"b64d7bce2f5b96ca","entry":"LlamaMLP","repo":"ustc-hyin/HiMAP","repo_kind":"official","path":"src/LLaVA/llava/model/language_model/himap.py","file_url":"https://github.com/ustc-hyin/HiMAP/blob/HEAD/src/LLaVA/llava/model/language_model/himap.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":"b64d7bce2f5b96ca"}},{"code_sha256_prefix":"14e93dd64555f7e9","entry":"Himap_LlamaModel","repo":"ustc-hyin/HiMAP","repo_kind":"official","path":"src/LLaVA/llava/model/language_model/himap.py","file_url":"https://github.com/ustc-hyin/HiMAP/blob/HEAD/src/LLaVA/llava/model/language_model/himap.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":"14e93dd64555f7e9"}},{"code_sha256_prefix":"25b43f7286f1889c","entry":"LlamaModel","repo":"ustc-hyin/HiMAP","repo_kind":"official","path":"src/LLaVA/llava/model/language_model/himap.py","file_url":"https://github.com/ustc-hyin/HiMAP/blob/HEAD/src/LLaVA/llava/model/language_model/himap.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":"25b43f7286f1889c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}