Investigating Instruction Tuning Large Language Models on Graphs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhu, Kerui, Huang, Bo-Wei, Jin, Bowen, Jiao, Yizhu, Zhong, Ming, Chang, Kevin, Lin, Shou-De, Han, Jiawei
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914909007118336
author Zhu, Kerui
Huang, Bo-Wei
Jin, Bowen
Jiao, Yizhu
Zhong, Ming
Chang, Kevin
Lin, Shou-De
Han, Jiawei
author_facet Zhu, Kerui
Huang, Bo-Wei
Jin, Bowen
Jiao, Yizhu
Zhong, Ming
Chang, Kevin
Lin, Shou-De
Han, Jiawei
contents Inspired by the recent advancements of Large Language Models (LLMs) in NLP tasks, there's growing interest in applying LLMs to graph-related tasks. This study delves into the capabilities of instruction-following LLMs for engaging with real-world graphs, aiming to offer empirical insights into how LLMs can effectively interact with graphs and generalize across graph tasks. We begin by constructing a dataset designed for instruction tuning, which comprises a diverse collection of 79 graph-related tasks from academic and e-commerce domains, featuring 44,240 training instances and 18,960 test samples. Utilizing this benchmark, our initial investigation focuses on identifying the optimal graph representation that serves as a conduit for LLMs to understand complex graph structures. Our findings indicate that JSON format for graph representation consistently outperforms natural language and code formats across various LLMs and graph types. Furthermore, we examine the key factors that influence the generalization abilities of instruction-tuned LLMs by evaluating their performance on both in-domain and out-of-domain graph tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2408_05457
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Investigating Instruction Tuning Large Language Models on Graphs
Zhu, Kerui
Huang, Bo-Wei
Jin, Bowen
Jiao, Yizhu
Zhong, Ming
Chang, Kevin
Lin, Shou-De
Han, Jiawei
Computation and Language
Artificial Intelligence
Inspired by the recent advancements of Large Language Models (LLMs) in NLP tasks, there's growing interest in applying LLMs to graph-related tasks. This study delves into the capabilities of instruction-following LLMs for engaging with real-world graphs, aiming to offer empirical insights into how LLMs can effectively interact with graphs and generalize across graph tasks. We begin by constructing a dataset designed for instruction tuning, which comprises a diverse collection of 79 graph-related tasks from academic and e-commerce domains, featuring 44,240 training instances and 18,960 test samples. Utilizing this benchmark, our initial investigation focuses on identifying the optimal graph representation that serves as a conduit for LLMs to understand complex graph structures. Our findings indicate that JSON format for graph representation consistently outperforms natural language and code formats across various LLMs and graph types. Furthermore, we examine the key factors that influence the generalization abilities of instruction-tuned LLMs by evaluating their performance on both in-domain and out-of-domain graph tasks.
title Investigating Instruction Tuning Large Language Models on Graphs
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2408.05457