InstructGraph: Boosting Large Language Models via Graph-centric Instruction Tuning and Preference Alignment

Jianing Wang, Junda Wu, Yupeng Hou, Yao Liu, Ming Gao +1 more
2/13/2024
cs.CL

No official code found. Best implementation: wjn1996/InstructGraph (79 stars, MIT, last commit 2024-07-29).

Abstract

Do current large language models (LLMs) better solve graph reasoning and generation tasks with parameter updates? In this paper, we propose InstructGraph, a framework that empowers LLMs with the abilities of graph reasoning and generation by instruction tuning and preference alignment. Specifically, we first propose a structured format verbalizer to unify all graph data into a universal code-like format, which can simply represent the graph without any external graph-specific encoders. Furthermore, a graph instruction tuning stage is introduced to guide LLMs in solving graph reasoning and generation tasks. Finally, we identify potential hallucination problems in graph tasks and sample negative instances for preference alignment, the target of which is to enhance the output's reliability of the model. Extensive experiments across multiple graph-centric tasks exhibit that InstructGraph can achieve the best performance and outperform GPT-4 and LLaMA2 by more than 13\% and 38\%, respectively.

View on arXivView PDF

Code Implementations(1)

MIT

A framework to empover LLMs on graph reasoning and generation. Refer to our paper: https://arxiv.org/pdf/2402.08785.pdf

797Python, Jupyter NotebookJan 10, 20242 years agoMIT

Similar Papers

Cite this paper

@article{wang2024instructgraph,
  title  = {InstructGraph: Boosting Large Language Models via Graph-centric Instruction Tuning and Preference Alignment},
  author = {Jianing Wang and Junda Wu and Yupeng Hou and Yao Liu and Ming Gao and Julian McAuley},
  year   = {2024},
  eprint = {2402.08785},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.08785v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.08785.svg)](https://codeofpaper.com/paper/2402.08785)

Discussion