Pre-Training and Prompting for Few-Shot Node Classification on Text-Attributed Graphs
Abstract
The text-attributed graph (TAG) is one kind of important real-world graph-structured data with each node associated with raw texts. For TAGs, traditional few-shot node classification methods directly conduct training on the pre-processed node features and do not consider the raw texts. The performance is highly dependent on the choice of the feature pre-processing method. In this paper, we propose P2TAG$^1$, a framework designed for few-shot node classification on TAGs with graph pre-training and prompting. P2TAG first pre-trains the language model (LM) and graph neural network (GNN) on TAGs with self-supervised loss. To fully utilize the ability of language models, we adapt the masked language modeling objective for our framework. The pre-trained model is then used for the few-shot node classification with a mixed prompt method, which simultaneously considers both text and graph information. We conduct experiments on six real-world TAGs, including paper citation networks and product co-purchasing networks. Experimental results demonstrate that our proposed framework outperforms existing graph few-shot learning methods on these datasets with +18.98\
Benchmark Results
Tested on 1 dataset
Tables show presented results in global context (best 3 papers + GCN + MLP).
Classic
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9703
±0.0019 | |
| 2 | GAT | 0.9669
±0.0014 | |
| 3 | GAT+T | 0.9660
±0.0007 | |
| 7 | SAGE | 0.9643
±0.0027 | |
| 390 | MLP | 0.9128
±0.0063 | |
| 415 | P2TAG | 0.9072
±0.0058 | This paper |
| 546 | G2P2 | 0.7652
±0.0237 | This paper |
| 547 | GPN | 0.7601
±0.0112 | This paper |
| 553 | G-Meta | 0.7354
±0.0122 | This paper |
| 556 | TENT | 0.7219
±0.0203 | This paper |
| 567 | node features | 0.5057
±0.0138 | This paper |
