Graph Linearization Methods for Reasoning on Graphs with Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xypolopoulos, Christos, Shang, Guokan, Fei, Xiao, Nikolentzos, Giannis, Abdine, Hadi, Evdaimon, Iakovos, Chatzianastasis, Michail, Stamou, Giorgos, Vazirgiannis, Michalis
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908420454481920
author Xypolopoulos, Christos
Shang, Guokan
Fei, Xiao
Nikolentzos, Giannis
Abdine, Hadi
Evdaimon, Iakovos
Chatzianastasis, Michail
Stamou, Giorgos
Vazirgiannis, Michalis
author_facet Xypolopoulos, Christos
Shang, Guokan
Fei, Xiao
Nikolentzos, Giannis
Abdine, Hadi
Evdaimon, Iakovos
Chatzianastasis, Michail
Stamou, Giorgos
Vazirgiannis, Michalis
contents Large language models have evolved to process multiple modalities beyond text, such as images and audio, which motivates us to explore how to effectively leverage them for graph reasoning tasks. The key question, therefore, is how to transform graphs into linear sequences of tokens, a process we term "graph linearization", so that LLMs can handle graphs naturally. We consider that graphs should be linearized meaningfully to reflect certain properties of natural language text, such as local dependency and global alignment, in order to ease contemporary LLMs, trained on trillions of textual tokens, better understand graphs. To achieve this, we developed several graph linearization methods based on graph centrality and degeneracy. These methods are further enhanced using node relabeling techniques. The experimental results demonstrate the effectiveness of our methods compared to the random linearization baseline. Our work introduces novel graph representations suitable for LLMs, contributing to the potential integration of graph machine learning with the trend of multimodal processing using a unified transformer model.
format Preprint
id arxiv_https___arxiv_org_abs_2410_19494
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Graph Linearization Methods for Reasoning on Graphs with Large Language Models
Xypolopoulos, Christos
Shang, Guokan
Fei, Xiao
Nikolentzos, Giannis
Abdine, Hadi
Evdaimon, Iakovos
Chatzianastasis, Michail
Stamou, Giorgos
Vazirgiannis, Michalis
Computation and Language
Machine Learning
Large language models have evolved to process multiple modalities beyond text, such as images and audio, which motivates us to explore how to effectively leverage them for graph reasoning tasks. The key question, therefore, is how to transform graphs into linear sequences of tokens, a process we term "graph linearization", so that LLMs can handle graphs naturally. We consider that graphs should be linearized meaningfully to reflect certain properties of natural language text, such as local dependency and global alignment, in order to ease contemporary LLMs, trained on trillions of textual tokens, better understand graphs. To achieve this, we developed several graph linearization methods based on graph centrality and degeneracy. These methods are further enhanced using node relabeling techniques. The experimental results demonstrate the effectiveness of our methods compared to the random linearization baseline. Our work introduces novel graph representations suitable for LLMs, contributing to the potential integration of graph machine learning with the trend of multimodal processing using a unified transformer model.
title Graph Linearization Methods for Reasoning on Graphs with Large Language Models
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2410.19494