Towards Efficient LLM-aware Heterogeneous Graph Learning

Wenda Li, Tongya Zheng, Shunyu Liu, Yu Wang, Kai-Xuan Chen, Hanyang Yuan, Bingde Hu, Zujie Ren, Mingli Song, Gang ChenarXiv 2025 · DOI

Introduction

Heterogeneous graphs (HGs), which contain multiple types of nodes and edges, are essential for modeling complex real-world systems like academic networks and e-commerce platforms. While Large Language Models (LLMs) have shown immense potential in understanding textual data, integrating them into graph learning frameworks often leads to a "neighbor explosion" problem. As the number of hops increases, the computational and memory requirements grow exponentially, making it difficult to scale these models to large-scale graphs.

To address this, we introduce ELLA (Efficient LLM-Aware Heterogeneous Graph Learning), a framework designed to linearize reasoning complexity while bridging the semantic gap between graph structures and LLM understanding.

The ELLA Framework

ELLA introduces three core innovations to make LLM-aware graph learning both powerful and efficient:

  1. LLM-aware Relation Tokenizer: Instead of encoding every individual neighbor, ELLA uses an LLM to encode the relationships between nodes across multiple hops. It generates "RelationPrompts" that describe paths in natural language (e.g., "Paper A is cited by Paper B") and converts these into semantic tokens.
  2. Hop-level Relation Graph Transformer: To solve the complexity problem, ELLA aggregates relation tokens at each "hop" (1-hop, 2-hop, etc.). This architectural choice reduces reasoning complexity from exponential to linear, allowing the model to scale to much larger graphs and LLMs with up to 13B parameters.
  3. Fine-grained Task-aware CoT Prompts: The framework utilizes Chain-of-Thought (CoT) reasoning within its prompts. By asking the LLM to analyze relations based on path proportions before providing a result, the model generates task-aligned tokens that bridge the gap between pre-training and fine-tuning.
The ELLA architecture overview, illustrating the Relation Tokenizer and the Hop-level Relation Graph Transformer across pre-training and fine-tuning stages.

Experimental Evaluation

ELLA was evaluated on four widely used heterogeneous graph benchmarks: IMDB (movie network), ACM (academic network), DBLP (large-scale academic network), and AMMI (Amazon product network). The results demonstrate that ELLA consistently outperforms state-of-the-art (SOTA) methods across all datasets, with an average performance improvement of 3.79%.

Efficiency and Scalability

A primary advantage of ELLA is its efficiency. Traditional LLM-GNN integrations often suffer from "Out of Memory" (OOM) errors when scaling. In contrast, ELLA's memory usage grows linearly with the number of hops. Furthermore, ELLA achieves a 4x speedup in training and inference time compared to existing LLM-based graph frameworks like GHGRL.

Efficiency analysis of ELLA: (a) linear memory usage across hops and (b) significant reduction in LLM inference time compared to state-of-the-art methods.

Conclusion

ELLA represents a significant advancement in making LLM-aware graph learning practical for large-scale heterogeneous networks. By linearizing neighbor reasoning and leveraging task-aware prompting, it provides a scalable and accurate solution for complex graph analysis. Future research will focus on cross-domain transferability to allow a single model to adapt to diverse graph structures across different domains.

Summary updated

BibTeX
@misc{li2025towards,
  author = {Wenda Li and Tongya Zheng and Shunyu Liu and Yu Wang and Kai-Xuan Chen and Hanyang Yuan and Bingde Hu and Zujie Ren and Mingli Song and Gang Chen},
  title = {{Towards Efficient LLM-aware Heterogeneous Graph Learning}},
  year = {2025},
  eprint = {2511.17923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.17923},
}
Figure