NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GL-Fusion: Rethinking the Combination of Graph Neural Network and Large Language model

Haotong Yang, Xiyuan Wang, Qian Tao, Shuxian Hu, Zhouchen Lin, Muhan Zhang · DOI

Introduction

In the real world, graphs are rarely just dots and lines; they are rich with text. Citation networks, where nodes are paper abstracts, and knowledge graphs, where edges describe complex relationships, are prime examples of "Text-Attributed Graphs" (TAGs). Traditionally, researchers have approached TAGs through two distinct lenses: GNN-centered models and LLM-centered models.

GNN-centered models typically use an LLM to compress text into a fixed-size vector, which is then processed by a GNN. This approach often loses linguistic nuance, as a fixed vector cannot adapt to different tasks. Conversely, LLM-centered models treat graph structures as text tokens. While these models excel at reasoning and natural language generation, they struggle with complex topology and are computationally inefficient for large-scale node classification. GL-Fusion addresses these "semantic bottlenecks" and "structural gaps" by treating graph structure and raw text as equal, first-class citizens.

Methodology

GL-Fusion introduces a novel architecture that deeply integrates Graph Neural Networks (GNNs) and Large Language Models (LLMs). The framework is built upon three primary innovations:

Structure-Aware Transformers (SAT)

Instead of maintaining separate GNN and LLM components, GL-Fusion integrates "message-passing"—the core operation of GNNs—directly into the Transformer blocks. By modifying the attention mechanism, node tokens can attend to their graph neighbors while preserving the causal order necessary for autoregressive text generation.

Graph-Text Cross-Attention

To preserve semantic detail, GL-Fusion avoids compressing node descriptions into single vectors. Instead, it maintains the entire uncompressed text sequence. During processing, the model employs cross-attention to "look back" at the raw text, dynamically extracting specific words or phrases relevant to the task at hand. This approach is not only more expressive but also more computationally efficient than concatenating all text into the LLM's context window.

Overview of the GL-Fusion architecture, showing the integration of graph nodes and text embeddings within the transformer blocks.

GNN-LLM Twin Predictor

GL-Fusion features a dual-head output: a GNN head for rapid, one-pass predictions (e.g., node classification) and an LLM head for flexible, autoregressive text generation (e.g., graph-based question answering). A gating mechanism ensures that the model integrates structural information without disrupting the pre-trained LLM's internal logic.

Experimental Setup

The model was evaluated across a diverse set of benchmarks:

  • Citation Networks: OGBN-Arxiv and Cora for paper category prediction.
  • Code Graphs: OGBG-Code2 for predicting function names from Abstract Syntax Trees.
  • Knowledge Graphs: FB15k-237-ind for inductive link prediction.
  • Text-Rich Benchmarks: The CSTAG suite (Children, History, Photo, Computers, Sports).
  • Reasoning: CommonsenseQA for navigating knowledge subgraphs.

Results and Key Insights

GL-Fusion established new state-of-the-art (SOTA) performance on several major leaderboards. Notably, it achieved 78.20% accuracy on OGBN-Arxiv and a 40.97 F1 score on OGBG-Code2, nearly doubling the performance of previous specialized models on the latter.

Performance comparison of GL-Fusion against other models on Ogbn-arxiv and Cora benchmarks.

Ablation studies confirmed the necessity of the cross-attention mechanism; removing it led to a total failure in node text retrieval tasks. Furthermore, GL-Fusion demonstrated significant dominance in few-shot scenarios (e.g., 10-shot training), proving that its deep fusion of structure and semantics enhances generalization.

Conclusion and Future Work

GL-Fusion represents a significant step forward in mastering text-attributed graphs by shattering the semantic bottleneck of previous hybrid models. However, challenges remain. Currently, models are trained separately for different tasks; future work aims for large-scale multi-task pre-training to create a single, universal GL-Fusion model. Additionally, exploring the model's performance on extremely dense or dynamic graphs and mitigating the risk of LLM hallucinations in high-stakes reasoning tasks are key areas for ongoing research.

Summary updated

BibTeX
@misc{yang2024gl,
  author = {Haotong Yang and Xiyuan Wang and Qian Tao and Shuxian Hu and Zhouchen Lin and Muhan Zhang},
  title = {{GL-Fusion: Rethinking the Combination of Graph Neural Network and Large Language model}},
  year = {2024},
  eprint = {2412.06849},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.06849},
}
Figure