Can we Soft Prompt LLMs for Graph Learning Tasks?
Authors:
- Zheyuan LiuZLZheyuan Liu
- Xiaoxin HeXHXiaoxin He
- Yijun TianYTYijun Tian
- Nitesh V. ChawlaNCNitesh V. Chawla
Preprint
Abstract
Graph plays an important role in representing complex relationships in real-world applications such as social networks, biological data and citation networks. In recent years, Large Language Models (LLMs) have achieved tremendous success in various domains, which makes applying LLMs to graphs particularly appealing. However, directly applying LLMs to graph modalities presents unique challenges due to the discrepancy and mismatch between the graph and text modalities. Hence, to further investigate LLMs' potential for comprehending graph information, we introduce GraphPrompter, a novel framework designed to align graph information with LLMs via soft prompts. Specifically, GraphPrompter consists of two main components: a graph neural network to encode complex graph information and an LLM that effectively processes textual information. Comprehensive experiments on various benchmark datasets under node classification and link prediction tasks demonstrate the effectiveness of our proposed method. The GraphPrompter framework unveils the substantial capabilities of LLMs as predictors in graph-related tasks, enabling researchers to utilize LLMs across a spectrum of real-world graph scenarios more effectively.Keywords
All Related Versions
This publication has 9 references indexed in Scilit:
- GraphLLM: Boosting Graph Reasoning Ability of Large Language ModelIEEE Transactions on Big Data, 2025
- Graph Neural Prompting with Large Language ModelsProceedings of the AAAI Conference on Artificial Intelligence, 2024
- Knowledge Graph Prompting for Multi-Document Question AnsweringProceedings of the AAAI Conference on Artificial Intelligence, 2024
- LLMRec: Large Language Models with Graph Augmentation for Recommendation2024
- Democratizing Large Language Models via Personalized Parameter-Efficient Fine-tuning2024
- ConGraT: Self-Supervised Contrastive Pretraining for Joint Graph and Text Embeddings2024
- Augmenting Low-Resource Text Classification with Graph-Grounded Pre-training and Prompting2023
- Metadata-Induced Contrastive Learning for Zero-Shot Multi-Label Text Classification2022
- Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddings2022