{"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-10849","title":"Glance for Context: Learning When to Leverage LLMs for Node-Aware GNN-LLM Fusion","arxiv_id":"2510.10849","date":"2025-10-12","proceeding":null,"authors":["Donald Loveland","Yao-An Yang","Danai Koutra"],"abstract":"Learning on text-attributed graphs has motivated the use of Large Language Models (LLMs) for graph learning. However, most fusion strategies are applied uniformly across all nodes and attain only small overall performance gains. We argue this result stems from aggregate metrics that obscure when LLMs provide benefit, inhibiting actionable signals for new strategies. In this work, we reframe LLM-GNN fusion around nodes where GNNs typically falter. We first show that performance can significantly differ between GNNs and LLMs, with each excelling on distinct structural patterns, such as local homophily. To leverage this finding, we propose GLANCE (GNN with LLM Assistance for Neighbor- and Context-aware Embeddings), a framework that invokes an LLM to refine a GNN's prediction. GLANCE employs a lightweight router that, given inexpensive per-node signals, decides whether to query the LLM. Since the LLM calls are non-differentiable, the router is trained with an advantage-based objective that compares the utility of querying the LLM against relying solely on the GNN. Across multiple benchmarks, GLANCE achieves the best performance balance across node subgroups, achieving significant gains on heterophilous nodes (up to $+13\\%$) while simultaneously achieving top overall performance. Our findings highlight the value of adaptive, node-aware GNN-LLM architectures, where selectively invoking the LLM enables scalable deployment on large graphs without incurring high computational costs.","url_abs":"https://arxiv.org/abs/2510.10849","url_pdf":"https://arxiv.org/pdf/2510.10849","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=2510.10849","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2510.10849"}},"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/CUAI/Non-Homophily-Large-Scale","reach":{"status":"ok"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/XiaoxinHe/tape_arxiv_2023","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"ran_honours":1,"unverified":15},"by_repo_kind":{"found_in_text":{"samples":17,"ran":2,"repositories":2}},"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":17,"samples":[{"code_sha256_prefix":"d4e6fd9f6cd8a3ad","entry":"load_twitch_gamer","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"load_data.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/load_data.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":"d4e6fd9f6cd8a3ad"}},{"code_sha256_prefix":"a3113ed80fa9619b","entry":"word2vec","repo":"XiaoxinHe/tape_arxiv_2023","repo_kind":"found_in_text","path":"src/process.py","file_url":"https://github.com/XiaoxinHe/tape_arxiv_2023/blob/HEAD/src/process.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a3113ed80fa9619b"}},{"code_sha256_prefix":"8234bde327876289","entry":"clean","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"wiki_scraping/wiki_homophily.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/wiki_scraping/wiki_homophily.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":"8234bde327876289"}},{"code_sha256_prefix":"606e13d2f58cd737","entry":"compat_matrix","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"homophily.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/homophily.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":"606e13d2f58cd737"}},{"code_sha256_prefix":"07270c9ae73d7519","entry":"edge_homophily","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"homophily.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/homophily.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":"07270c9ae73d7519"}},{"code_sha256_prefix":"be162bddd27d9fac","entry":"even_quantile_labels","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"data_utils.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/data_utils.py","link_basis":"harvester_set","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":"be162bddd27d9fac"}},{"code_sha256_prefix":"0a98892b68db0dab","entry":"general_outcome_correlation","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"correct_smooth.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/correct_smooth.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":"0a98892b68db0dab"}},{"code_sha256_prefix":"286ece71e0e147f7","entry":"get_raw_text_arxiv_2023","repo":"XiaoxinHe/tape_arxiv_2023","repo_kind":"found_in_text","path":"src/load_arxiv_2023.py","file_url":"https://github.com/XiaoxinHe/tape_arxiv_2023/blob/HEAD/src/load_arxiv_2023.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":"286ece71e0e147f7"}},{"code_sha256_prefix":"0765a875204d931d","entry":"load_fb100","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"load_data.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/load_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":"0765a875204d931d"}},{"code_sha256_prefix":"563a5ce4dce55a17","entry":"load_twitch","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"load_data.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/load_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":"563a5ce4dce55a17"}},{"code_sha256_prefix":"7801b54d43fe03e1","entry":"make_loader","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"batch_utils.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/batch_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":"7801b54d43fe03e1"}},{"code_sha256_prefix":"c3a81b1903e55e46","entry":"nc_dataset_to_torch_geo","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"batch_utils.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/batch_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":"c3a81b1903e55e46"}},{"code_sha256_prefix":"42ea8a2b9adf3c0e","entry":"node_homophily","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"homophily.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/homophily.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":"42ea8a2b9adf3c0e"}},{"code_sha256_prefix":"0fe1182ebc3369c4","entry":"pre_outcome_correlation","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"correct_smooth.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/correct_smooth.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":"0fe1182ebc3369c4"}},{"code_sha256_prefix":"1f80b4c94d260da3","entry":"pre_residual_correlation","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"correct_smooth.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/correct_smooth.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":"1f80b4c94d260da3"}},{"code_sha256_prefix":"13234652741e2264","entry":"rand_train_test_idx","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"data_utils.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/data_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":"13234652741e2264"}},{"code_sha256_prefix":"01e5c1887f86d840","entry":"to_planetoid","repo":"CUAI/Non-Homophily-Large-Scale","repo_kind":"found_in_text","path":"data_utils.py","file_url":"https://github.com/CUAI/Non-Homophily-Large-Scale/blob/HEAD/data_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":"01e5c1887f86d840"}}]},"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}