{"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/arxiv-2510-16990","title":"Graph4MM: Weaving Multimodal Learning with Structural Information","arxiv_id":"2510.16990","date":"2025-10-19","proceeding":"ICML","authors":["Xuying Ning","Dongqi Fu","Tianxin Wei","Wujiang Xu","Jingrui He"],"abstract":"Real-world multimodal data usually exhibit complex structural relationships beyond traditional one-to-one mappings like image-caption pairs. Entities across modalities interact in intricate ways, with images and text forming diverse interconnections through contextual dependencies and co-references. Graphs provide powerful structural information for modeling intra-modal and inter-modal relationships. However, previous works fail to distinguish multi-hop neighbors and treat the graph as a standalone modality, which fragments the overall understanding. This limitation presents two key challenges in multimodal learning: (1) integrating structural information from multi-hop neighbors into foundational models, and (2) fusing modality-specific information in a principled manner. To address these challenges, we revisit the role of graphs in multimodal learning within the era of foundation models and propose Graph4MM, a graph-based multimodal learning framework. To be specific, we introduce Hop-Diffused Attention, which integrates multi-hop structural information into self-attention through causal masking and hop diffusion. Furthermore, we design MM-QFormer, a multi-mapping querying transformer for cross-modal fusion. Through theoretical and empirical analysis, we show that leveraging structures to integrate both intra- and inter-modal interactions improves multimodal understanding beyond treating them as a standalone modality. Experiments on both generative and discriminative tasks show that Graph4MM outperforms larger VLMs, LLMs, and multimodal graph baselines, achieving a 6.93% average improvement.","url_abs":"https://arxiv.org/abs/2510.16990","url_pdf":"https://arxiv.org/pdf/2510.16990","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2510.16990","atlas_url":"https://app.syntology.ai/?focus=2510.16990","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2510.16990"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/YennNing/Graph4MM","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":3,"unverified":7},"by_repo_kind":{"found_in_text":{"samples":10,"ran":3,"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":10,"samples":[{"code_sha256_prefix":"4c1b107103b7c856","entry":"cook_refs","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"wikiweb2m/cider/cider_scorer.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/wikiweb2m/cider/cider_scorer.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4c1b107103b7c856"}},{"code_sha256_prefix":"3573c4bc85f65dfd","entry":"cook_test","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"wikiweb2m/cider/cider_scorer.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/wikiweb2m/cider/cider_scorer.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3573c4bc85f65dfd"}},{"code_sha256_prefix":"9560e3e3e41bc1b2","entry":"precook","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"wikiweb2m/cider/cider_scorer.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/wikiweb2m/cider/cider_scorer.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9560e3e3e41bc1b2"}},{"code_sha256_prefix":"a7a3f3dcd3751e0b","entry":"collate","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"wikiweb2m/data.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/wikiweb2m/data.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":"a7a3f3dcd3751e0b"}},{"code_sha256_prefix":"133e82ec80e46ed9","entry":"convert_tf_to_scipy","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"wikiweb2m/preprocess_data.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/wikiweb2m/preprocess_data.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":"133e82ec80e46ed9"}},{"code_sha256_prefix":"b90384f4e5046dd6","entry":"convert_to_scipy","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"wikiweb2m/preprocess_data.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/wikiweb2m/preprocess_data.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":"b90384f4e5046dd6"}},{"code_sha256_prefix":"8e6dcd96a79721f5","entry":"load_wikiweb2m","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"wikiweb2m/data.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/wikiweb2m/data.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":"8e6dcd96a79721f5"}},{"code_sha256_prefix":"e7a9875216e9146c","entry":"remove_self_loops","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"language_modelling/utils.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/language_modelling/utils.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":"e7a9875216e9146c"}},{"code_sha256_prefix":"19fb31acf07cd9c6","entry":"scatter_sum","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"language_modelling/utils.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/language_modelling/utils.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":"19fb31acf07cd9c6"}},{"code_sha256_prefix":"11f8f48b8e750058","entry":"to_scipy_sparse_matrix","repo":"YennNing/Graph4MM","repo_kind":"found_in_text","path":"language_modelling/utils.py","file_url":"https://github.com/YennNing/Graph4MM/blob/HEAD/language_modelling/utils.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":"11f8f48b8e750058"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_api"},"syntology_extracted_results":null}