{"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-2603-13434","title":"Modality-free Graph In-context Alignment","arxiv_id":"2603.13434","date":"2026-03-13","proceeding":null,"authors":["Wei Zhuo","Siqiang Luo"],"abstract":"In-context learning (ICL) converts static encoders into task-conditioned reasoners, enabling adaptation to new data from just a few examples without updating pretrained parameters. This capability is essential for graph foundation models (GFMs) to approach LLM-level generality. Yet current GFMs struggle with cross-domain alignment, typically relying on modality-specific encoders that fail when graphs are pre-vectorized or raw data is inaccessible. In this paper, we introduce Modality-Free Graph In-context Alignment (MF-GIA), a framework that makes a pretrained graph encoder promptable for few-shot prediction across heterogeneous domains without modality assumptions. MF-GIA captures domain characteristics through gradient fingerprints, which parameterize lightweight transformations that align pre-encoded features and indexed labels into unified semantic spaces. During pretraining, a dual prompt-aware attention mechanism with episodic objective learns to match queries against aligned support examples to establish prompt-based reasoning capabilities. At inference, MF-GIA performs parameter-update-free adaptation using only a few-shot support set to trigger cross-domain alignment and enable immediate prediction on unseen domains. Experiments demonstrate that MF-GIA achieves superior few-shot performance across diverse graph domains and strong generalization to unseen domains.","url_abs":"https://arxiv.org/abs/2603.13434","url_pdf":"https://arxiv.org/pdf/2603.13434","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":{"atlas_url":"https://app.syntology.ai/?focus=2603.13434","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.13434"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/JhuoW/MF-GIA","reach":null}],"summary":{"ran":5,"ran_honours":1,"unverified":4},"by_repo_kind":{"found_in_text":{"samples":10,"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":10,"samples":[{"code_sha256_prefix":"8bb3ce4a5edcb089","entry":"ConvProjection","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8bb3ce4a5edcb089"}},{"code_sha256_prefix":"b829d4803e8ebf14","entry":"DomainFiLM","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.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":"b829d4803e8ebf14"}},{"code_sha256_prefix":"44fe9315b5e5c3ec","entry":"GraphProbContrastLoss","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.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":"44fe9315b5e5c3ec"}},{"code_sha256_prefix":"8475cb62293539a2","entry":"MLPLayer","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8475cb62293539a2"}},{"code_sha256_prefix":"53fa46754d41ff61","entry":"_iter_params","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.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":"53fa46754d41ff61"}},{"code_sha256_prefix":"5bed140f7ab8dabf","entry":"flatten_grads","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.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":"5bed140f7ab8dabf"}},{"code_sha256_prefix":"d9f59267ab679f28","entry":"DomainEmbedder","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.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":"d9f59267ab679f28"}},{"code_sha256_prefix":"9d5689c27cbbb095","entry":"DomainEmbeddingExtractor","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.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":"9d5689c27cbbb095"}},{"code_sha256_prefix":"be3e96583742459d","entry":"GFM","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.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":"be3e96583742459d"}},{"code_sha256_prefix":"b05122b5574df53b","entry":"PAMA","repo":"JhuoW/MF-GIA","repo_kind":"found_in_text","path":"model/pt_model.py","file_url":"https://github.com/JhuoW/MF-GIA/blob/HEAD/model/pt_model.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":"b05122b5574df53b"}}]},"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_2026.jsonl"},"syntology_extracted_results":null}