Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

GraspLLM: Towards Zero-Shot Generalization on Text-Attributed Graphs with LLMs

About

Research on Text-Attributed Graphs (TAGs) has gained significant attention recently due to its broad applications across various real-world data scenarios, such as citation networks, e-commerce platforms, social media, and web pages. Inspired by the remarkable semantic understanding ability of Large Language Models (LLMs), there have been numerous attempts to integrate LLMs into TAGs. However, existing methods still struggle to generalize across diverse graphs and tasks, and their ability to capture transferable graph structural patterns remains limited. To address this, we introduce the GraspLLM, a framework that combines Graph structural comprehension with semantic understanding prowess of LLMs to enhance the cross-dataset and cross-task generalizability. Specifically, we represent node texts from different graphs in a unified semantic space with a frozen general embedding model, on top of which we perform motif-aware contrastive learning across multiple motif-induced adjacency matrices to extract dataset-agnostic structural information. Then, with our proposed optimal contextual subgraph, we extract the most contextually relevant subgraph for each target node and align these subgraphs to the token space of LLM via an alignment projector. Extensive experiments on TAG benchmark datasets spanning diverse domains reveal that GraspLLM consistently outperforms previous LLM-based methods for TAGs, especially in zero-shot scenarios, highlighting its strong generalizability across different datasets and tasks. Our code is available at https://github.com/Heinz217/GraspLLM.

Hengyi Feng, Zeang Sheng, Meiyi Qiang, Yang Li, Wentao Zhang• 2026

Related benchmarks

TaskDatasetResultRank
Node ClassificationCornell
Accuracy89.7
900
Node ClassificationTexas
Accuracy0.895
859
Node ClassificationPubmed
Accuracy96.4
501
Node ClassificationPhoto
Mean Accuracy88.9
447
Node ClassificationarXiv
Accuracy77
325
Node ClassificationREDDIT
Accuracy67.7
268
Node ClassificationCiteseer
Mean Accuracy82.7
238
Node ClassificationComputer
Accuracy92.8
186
Node ClassificationInstagram
Accuracy67.4
140
Node ClassificationwikiCS
Accuracy (WikiCS)87.4
101
Showing 10 of 23 rows

Other info

Follow for update