{"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-2604-17897","title":"LoReC: Rethinking Large Language Models for Graph Data Analysis","arxiv_id":"2604.17897","date":"2026-04-20","proceeding":null,"authors":["Hongyu Zhan","Qixin Wang","Yusen Tan","Haitao Yu","Jingbo Zhou","Shuai Chen","Jia Li","Xiao Tan","Jun Xia"],"abstract":"The advent of Large Language Models (LLMs) has fundamentally reshaped the way we interact with graphs, giving rise to a new paradigm called GraphLLM. As revealed in recent studies, graph learning can benefit from LLMs. However, we observe limited benefits when we directly utilize LLMs to make predictions for graph-related tasks within GraphLLM paradigm, which even yields suboptimal results compared to conventional GNN-based approaches. Through in-depth analysis, we find this failure can be attributed to LLMs' limited capability for processing graph data and their tendency to overlook graph information. To address this issue, we propose LoReC (Look, Remember, and Contrast), a novel plug-and-play method for GraphLLM paradigm, which enhances LLM's understanding of graph data through three stages: (1) Look: redistributing attention to graph; (2) Remember: re-injecting graph information into the Feed-Forward Network (FFN); (3) Contrast: rectifying the vanilla logits produced in the decoding process. Extensive experiments demonstrate that LoReC brings notable improvements over current GraphLLM methods and outperforms GNN-based approaches across diverse datasets. The implementation is available at https://github.com/Git-King-Zhan/LoReC.","url_abs":"https://arxiv.org/abs/2604.17897","url_pdf":"https://arxiv.org/pdf/2604.17897","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=2604.17897","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2604.17897"}},"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/Git-King-Zhan/LoReC","reach":null}],"summary":{"ran_draft_wrong":1,"ran_violates":1,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":7,"ran":2,"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":7,"samples":[{"code_sha256_prefix":"649fc48067a48529","entry":"find_all_linear_names","repo":"Git-King-Zhan/LoReC","repo_kind":"found_in_text","path":"lorec-gpt/graphgpt/model/GraphLlama_pl.py","file_url":"https://github.com/Git-King-Zhan/LoReC/blob/HEAD/lorec-gpt/graphgpt/model/GraphLlama_pl.py","link_basis":"harvester_set","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":"649fc48067a48529"}},{"code_sha256_prefix":"0bf414a2b44babe6","entry":"raise_warning_for_incompatible_cpu_offloading_configuration","repo":"Git-King-Zhan/LoReC","repo_kind":"found_in_text","path":"lorec-gpt/graphgpt/model/model_adapter.py","file_url":"https://github.com/Git-King-Zhan/LoReC/blob/HEAD/lorec-gpt/graphgpt/model/model_adapter.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0bf414a2b44babe6"}},{"code_sha256_prefix":"80dde39da1ba3708","entry":"compress","repo":"Git-King-Zhan/LoReC","repo_kind":"found_in_text","path":"lorec-gpt/graphgpt/model/compression.py","file_url":"https://github.com/Git-King-Zhan/LoReC/blob/HEAD/lorec-gpt/graphgpt/model/compression.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":"80dde39da1ba3708"}},{"code_sha256_prefix":"c5824da57107fe8c","entry":"get_compressed_list","repo":"Git-King-Zhan/LoReC","repo_kind":"found_in_text","path":"lorec-gpt/graphgpt/model/compression.py","file_url":"https://github.com/Git-King-Zhan/LoReC/blob/HEAD/lorec-gpt/graphgpt/model/compression.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":"c5824da57107fe8c"}},{"code_sha256_prefix":"9157dc56df5106f2","entry":"load_model_pretrained","repo":"Git-King-Zhan/LoReC","repo_kind":"found_in_text","path":"lorec-gpt/graphgpt/model/GraphLlama.py","file_url":"https://github.com/Git-King-Zhan/LoReC/blob/HEAD/lorec-gpt/graphgpt/model/GraphLlama.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":"9157dc56df5106f2"}},{"code_sha256_prefix":"bad3bd3ae89b22d3","entry":"load_pretrained_model","repo":"Git-King-Zhan/LoReC","repo_kind":"found_in_text","path":"lorec-gpt/graphgpt/model/builder.py","file_url":"https://github.com/Git-King-Zhan/LoReC/blob/HEAD/lorec-gpt/graphgpt/model/builder.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":"bad3bd3ae89b22d3"}},{"code_sha256_prefix":"2cf871391d61edca","entry":"transfer_param_tograph","repo":"Git-King-Zhan/LoReC","repo_kind":"found_in_text","path":"lorec-gpt/graphgpt/model/GraphLlama.py","file_url":"https://github.com/Git-King-Zhan/LoReC/blob/HEAD/lorec-gpt/graphgpt/model/GraphLlama.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":"2cf871391d61edca"}}]},"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}