Papers › LLMs as Zero-shot Graph Learners: Alignment of GNN Representations with LLM Token Embeddings

LLMs as Zero-shot Graph Learners: Alignment of GNN Representations with LLM Token Embeddings

25 Aug 2024arXiv:2408.14512archive 2025-07-28

Duo Wang, Yuan Zuo, FengZhi Li, Junjie Wu

Zero-shot graph machine learning, especially with graph neural networks (GNNs), has garnered significant interest due to the challenge of scarce labeled data. While methods like self-supervised learning and graph prompt learning have been extensively explored, they often rely on fine-tuning with task-specific labels, limiting their effectiveness in zero-shot scenarios. Inspired by the zero-shot capabilities of instruction-fine-tuned large language models (LLMs), we introduce a novel framework named Token Embedding-Aligned Graph Language Model (TEA-GLM) that leverages LLMs as cross-dataset and cross-task zero-shot learners for graph machine learning. Concretely, we pretrain a GNN, aligning its representations with token embeddings of an LLM. We then train a linear projector that transforms the GNN's representations into a fixed number of graph token embeddings without tuning the LLM. A unified instruction is designed for various graph tasks at different levels, such as node classification (node-level) and link prediction (edge-level). These design choices collectively enhance our method's effectiveness in zero-shot learning, setting it apart from existing methods. Experiments show that our graph token embeddings help the LLM predictor achieve state-of-the-art performance on unseen datasets and tasks compared to other methods using LLMs as predictors.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2408.14512")

Code

Syntology Ran 1 of 9 code samples harvested from 3 repositories linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: official repository: 1 sample from 1 repository, 1 ran; community (archive-listed): 8 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

w-rudder/tea-glm officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 1 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
8unverified

Licence: 0 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_title w-rudder/tea-glm/GNNPreTrain/train_valid_paper.py official repository ran · our draft was wrong MIT (permissive) · 2ede4c92b35f0844 · report
create_dataset_info MindSpore-scientific-2/code-2/STCrowd/STCrowd_convert.py community (archive-listed) unverified Apache-2.0 (permissive) · 665b410fa2e90913 · report
decode MindSpore-scientific-2/code-11/AECRNet/data.py community (archive-listed) unverified Apache-2.0 (permissive) · 72814d7de33e5aef · report
generate_sample MindSpore-scientific-2/code-11/QuantExplainNLP_AlgoAnalysis/data_preprocessing.py community (archive-listed) unverified Apache-2.0 (permissive) · 16298c972234921e · report
get_feature_names MindSpore-scientific-2/code-11/QuantExplainNLP_AlgoAnalysis/explainability.py community (archive-listed) unverified Apache-2.0 (permissive) · 5919a74fc358ee01 · report
load_group MindSpore-scientific-2/code-2/STCrowd/STCrowd_convert.py community (archive-listed) unverified Apache-2.0 (permissive) · 6553960c96b0e666 · report
maybe_num_nodes MindSpore-scientific-2/code-11/RGNN/model_simple.py community (archive-listed) unverified Apache-2.0 (permissive) · ef93260b5137f73b · report
process_single_scene MindSpore-scientific-2/code-2/STCrowd/STCrowd_convert.py community (archive-listed) unverified Apache-2.0 (permissive) · da6a321dfe042d21 · report
set_random_seed MindSpore-scientific-2/code-11/AECRNet/data.py community (archive-listed) unverified Apache-2.0 (permissive) · 14c181fabe865cbf · report

Tasks

Language ModellingLink PredictionNode ClassificationPrompt LearningSelf-Supervised LearningZero-Shot Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections