Towards Efficient LLM-aware Heterogeneous Graph Learning
Abstract
Heterogeneous graphs are widely present in real-world complex networks, where the diversity of node and relation types leads to complex and rich semantics. Efforts for modeling complex relation semantics in heterogeneous graphs are restricted by the limitations of predefined semantic dependencies and the scarcity of supervised signals. The advanced pre-training and fine-tuning paradigm leverages graph structure to provide rich self-supervised signals, but introduces semantic gaps between tasks. Large Language Models (LLMs) offer significant potential to address the semantic issues of relations and tasks in heterogeneous graphs through their strong reasoning capabilities in textual modality, but their incorporation into heterogeneous graphs is largely limited by computational complexity. Therefore, in this paper, we propose an Efficient LLM-Aware (ELLA) framework for heterogeneous graphs, addressing the above issues. To capture complex relation semantics, we propose an LLM-aware Relation Tokenizer that leverages LLM to encode multi-hop, multi-type relations. To reduce computational complexity, we further employ a Hop-level Relation Graph Transformer, which help reduces the complexity of LLM-aware relation reasoning from exponential to linear. To bridge semantic gaps between pre-training and fine-tuning tasks, we introduce the fine-grained task-aware textual Chain-of-Thought (CoT) prompts. Extensive experiments on four heterogeneous graphs show that our proposed ELLA outperforms state-of-the-art methods in the performance and efficiency. In particular, ELLA scales up to 13b-parameter LLMs and achieves up to a 4× speedup compared with existing LLM-based methods. Our code is publicly available at.
Benchmark Results
Tested on 3 datasets 17 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Heterogeneous Graph Benchmarks
| # | Model | Micro-F1 ↑ | Paper |
|---|---|---|---|
| 1 | LMSPS | 0.9566
±0.0020 | |
| 2 | PSHGCN | 0.9561
±0.0012 | |
| 3 | RpHGNN | 0.9555
±0.0029 | |
| 13 | HINormer | 0.9494
±0.0021 best reported | best at pub: HINormer: Representation Learning On Heterogeneous Information Networks with Graph Transformer (WWW 2023) best today: Efficient Heterogeneous Graph Learning via Random Projection (2023) |
| 21 | GCN | 0.9460
±0.0031 best reported | best at pub: Graph Neural Networks with a Distribution of Parametrized Graphs (ICML 2023) |
| 23 | GAT | 0.9448
±0.0022 best reported | best at pub: Graph Neural Networks with a Distribution of Parametrized Graphs (ICML 2023) |
| 46 | GraphSAGE | 0.9306
±0.0047 | |
| 124 | ELLA | 0.8150
±0.0010 | This paper |
| 132 | HetSANN | 0.8056
±0.0150 best reported | best at pub: Heterogeneous Graph Benchmarks (KDD 2021) best today: SlotGAT: Slot-based Message Passing for Heterogeneous Graphs (ICML 2024) |
| 140 | THLM | 0.7950
±0.0050 | This paper |
| 156 | GPPT | 0.7456
±0.0064 best reported | best at pub: HetGPT: Harnessing the Power of Prompt Tuning in Pre-Trained Heterogeneous Graph Neural Networks (WWW 2023) |
| 176 | MLP | 0.6447
±0.0136 | |
| 178 | GraphBridge | 0.6200
±0.0170 | This paper |
| 179 | R-HGNN | 0.6140
±0.0170 | This paper |
| 181 | NAGphormer | 0.5990
±0.0010 | This paper |
| 183 | SimGRACE | 0.5787
±0.0032 best reported | |
| 186 | GraphCL | 0.5300
±0.0040 | This paper |
| 188 | HGPrompt | 0.3970
±0.0010 | This paper |
| 192 | SHGP | 0.3340
±0.0300 | This paper |
| # | Model | Micro-F1 ↑ | Paper |
|---|---|---|---|
| 1 | LMSPS | 0.9469
±0.0036 | |
| 2 | PSHGCN | 0.9427
±0.0023 | |
| 3 | SlotGAT | 0.9406
±0.0022 | |
| 7 | HINormer | 0.9383
±0.0045 best reported | best at pub: Long-range Meta-path Search on Large-scale Heterogeneous Graphs (NeurIPS 2023) |
| 19 | GAT | 0.9273 best reported | best at pub: Self-supervised Auxiliary Learning with Meta-paths for Heterogeneous Graphs (NeurIPS 2020) |
| 29 | GCN | 0.9229 best reported | best at pub: Self-supervised Auxiliary Learning with Meta-paths for Heterogeneous Graphs (NeurIPS 2020) |
| 49 | GIN | 0.9092 | |
| 63 | HetSANN | 0.8991
±0.0037 best reported | best at pub: Heterogeneous Graph Benchmarks (KDD 2021) best today: SlotGAT: Slot-based Message Passing for Heterogeneous Graphs (ICML 2024) |
| 65 | ELLA | 0.8970
±0.0010 | This paper |
| 67 | NAGphormer | 0.8900
±0.0020 | This paper |
| 68 | HeCo | 0.8897
±0.0112 best reported | best at pub: Heterogeneous Graph Contrastive Multi-view Learning (2022) |
| 72 | GraphAdapter | 0.8870
±0.0020 | This paper |
| 75 | GraphBridge | 0.8830
±0.0060 | This paper |
| 80 | THLM | 0.8800
±0.0010 | This paper |
| 83 | ENGINE | 0.8780
±0.0050 | This paper |
| 86 | GraphCL | 0.8670
±0.0130 | This paper |
| 87 | R-HGNN | 0.8660
±0.0200 | This paper |
| 97 | SimGRACE | 0.8390
±0.0110 | This paper |
| 102 | GPPT | 0.8090
±0.0020 | This paper |
| 109 | MLP | 0.7102
±0.0221 | |
| 112 | HGPrompt | 0.6320
±0.0030 | This paper |
| 113 | SHGP | 0.6180
±0.0090 | This paper |
| # | Model | Micro-F1 ↑ | Paper |
|---|---|---|---|
| 1 | ELLA | 0.7930
±0.0010 | This paper |
| 2 | MHGCN | 0.7820
±0.0138 | |
| 3 | PSHGCN | 0.7446
±0.0032 | |
| 14 | GCN | 0.6813
±0.0083 best reported | best at pub: Spectral Heterogeneous Graph Convolutions via Positive Noncommutative Polynomials (WWW 2023) |
| 15 | GAT | 0.6808
±0.0049 best reported | best at pub: Spectral Heterogeneous Graph Convolutions via Positive Noncommutative Polynomials (WWW 2023) |
| 16 | HINormer | 0.6783
±0.0034 best reported | best at pub: HINormer: Representation Learning On Heterogeneous Information Networks with Graph Transformer (WWW 2023) best today: Efficient Heterogeneous Graph Learning via Random Projection (2023) |
| 23 | GraphAdapter | 0.6730
±0.0050 | This paper |
| 25 | GHGRL | 0.6670
±0.0110 | This paper |
| 36 | R-HGNN | 0.6417 best reported | best at pub: Heterogeneous Graph Representation Learning with Relation Awareness (2021) |
| 44 | GraphSAGE | 0.6276 | |
| 53 | HetSANN | 0.6069 best reported | best at pub: Heterogeneous Graph Representation Learning with Relation Awareness (2021) |
| 64 | THLM | 0.5720
±0.0060 | This paper |
| 74 | MLP | 0.5514 | |
| 82 | HeCo | 0.5212
±0.0072 best reported | best at pub: Heterogeneous Graph Contrastive Multi-view Learning (2022) |
| 87 | ENGINE | 0.4970
±0.0150 | This paper |
| 91 | GraphBridge | 0.4770
±0.0150 | This paper |
| 92 | NAGphormer | 0.4720
±0.0080 | This paper |
| 94 | SimGRACE | 0.4580
±0.0020 | This paper |
| 99 | GraphCL | 0.4040
±0.0130 | This paper |
| 102 | GPPT | 0.3830
±0.0120 | This paper |
| 105 | HGPrompt | 0.3700
±0.0110 | This paper |
| 106 | HiGPT | 0.3640
±0.0220 | This paper |
| 107 | SHGP | 0.3540
±0.0390 | This paper |
