Table of Contents
Fetching ...

Toward Graph-Tokenizing Large Language Models with Reconstructive Graph Instruction Tuning

Zhongjian Zhang, Xiao Wang, Mengmei Zhang, Jiarui Tan, Chuan Shi

TL;DR

The key idea is to reconstruct the graph information from the LLM's graph token outputs, explicitly incorporating graph supervision to constrain the alignment process, resulting in a reconstructive graph instruction tuning pipeline, RGLM.

Abstract

The remarkable success of large language models (LLMs) has motivated researchers to adapt them as universal predictors for various graph-related tasks, with the ultimate goal of developing a graph foundation model that generalizes diverse scenarios. The key challenge is to align graph data with language spaces so that LLMs can better comprehend graphs. As a popular paradigm, Graph-Tokenizing LLMs (GTokenLLMs) encode complex structures and lengthy texts into a graph token sequence, and then align them with text tokens via language instructions tuning. Despite their initial success, our information-theoretic analysis reveals that existing GTokenLLMs rely solely on text supervision from language instructions, which achieve only implicit graph-text alignment, resulting in a text-dominant bias that underutilizes graph context. To overcome this limitation, we first prove that the alignment objective is upper-bounded by the mutual information between the input graphs and their hidden representations in the LLM, which motivates us to improve this upper bound to achieve better alignment. To this end, we further propose a reconstructive graph instruction tuning pipeline, RGLM. Our key idea is to reconstruct the graph information from the LLM's graph token outputs, explicitly incorporating graph supervision to constrain the alignment process. Technically, we embody RGLM by exploring three distinct variants from two complementary perspectives: RGLM-Decoder from the input space; RGLM-Similarizer and RGLM-Denoiser from the latent space. Additionally, we theoretically analyze the alignment effectiveness of each variant. Extensive experiments on various benchmarks and task scenarios validate the effectiveness of the proposed RGLM, paving the way for new directions in GTokenLLMs' alignment research.

Toward Graph-Tokenizing Large Language Models with Reconstructive Graph Instruction Tuning

TL;DR

The key idea is to reconstruct the graph information from the LLM's graph token outputs, explicitly incorporating graph supervision to constrain the alignment process, resulting in a reconstructive graph instruction tuning pipeline, RGLM.

Abstract

The remarkable success of large language models (LLMs) has motivated researchers to adapt them as universal predictors for various graph-related tasks, with the ultimate goal of developing a graph foundation model that generalizes diverse scenarios. The key challenge is to align graph data with language spaces so that LLMs can better comprehend graphs. As a popular paradigm, Graph-Tokenizing LLMs (GTokenLLMs) encode complex structures and lengthy texts into a graph token sequence, and then align them with text tokens via language instructions tuning. Despite their initial success, our information-theoretic analysis reveals that existing GTokenLLMs rely solely on text supervision from language instructions, which achieve only implicit graph-text alignment, resulting in a text-dominant bias that underutilizes graph context. To overcome this limitation, we first prove that the alignment objective is upper-bounded by the mutual information between the input graphs and their hidden representations in the LLM, which motivates us to improve this upper bound to achieve better alignment. To this end, we further propose a reconstructive graph instruction tuning pipeline, RGLM. Our key idea is to reconstruct the graph information from the LLM's graph token outputs, explicitly incorporating graph supervision to constrain the alignment process. Technically, we embody RGLM by exploring three distinct variants from two complementary perspectives: RGLM-Decoder from the input space; RGLM-Similarizer and RGLM-Denoiser from the latent space. Additionally, we theoretically analyze the alignment effectiveness of each variant. Extensive experiments on various benchmarks and task scenarios validate the effectiveness of the proposed RGLM, paving the way for new directions in GTokenLLMs' alignment research.
Paper Structure (40 sections, 5 theorems, 15 equations, 11 figures, 4 tables)

This paper contains 40 sections, 5 theorems, 15 equations, 11 figures, 4 tables.

Key Result

Theorem 3.1

The C-GTMI can be decomposed as: where $\mathcal{I}(\boldsymbol{x}_t;\boldsymbol{s}^{G})$ reflects graph-text alignment, $\mathcal{I}(\boldsymbol{x}_t;\boldsymbol{s}_{<t}^{T}\!\mid\!\boldsymbol{s}^{G})$ captures textual autoregressive dependencies, and $\mathcal{I}(\boldsymbol{x}_t;\boldsymbol{s}_{<t}^{T})$ depends only on the text

Figures (11)

  • Figure 1: (a) Typical graph instruction tuning methods follow an LLM-centric design that solely leverages text supervision. (b) RGLM designs extra reconstructive graph tasks to explicitly incorporate graph supervision into the tuning process.
  • Figure 2: Neighbor detail template for graph serialization chen2024llaga.
  • Figure 3: (a) Overview of RGLM. Given an input TAG, RGLM aims to reconstruct the graph information from the LLM's graph token outputs, explicitly incorporating graph supervision to constrain the alignment process. (b) Decoder variant directly reconstructs the raw node features and topology in the input space. (c) Similarizer and (d) Denoiser variants reconstruct latent node representations of pre-trained GNNs via the cosine-similarity and denoising strategy, respectively.
  • Figure 4: Ablation study on the node classification task across different datasets, where accuracy is reported for each variant.
  • Figure 5: Ablation study on the link prediction task across different datasets, where accuracy is reported for each variant.
  • ...and 6 more figures

Theorems & Definitions (6)

  • Definition 3.1: Conditional Graph-Text Mutual Information (C-GTMI)
  • Theorem 3.1: Implicit Graph-Text Alignment via Autoregressive Loss
  • Lemma 3.1: Upper Bound of C-GTMI
  • Proposition 4.1: Lower Bound via RGLM-Decoder
  • Proposition 4.2: Lower Bound via RGLM-Similarizer
  • Proposition 4.3: Lower Bound via RGLM-Denoiser