Can Graph Descriptive Order Affect Solving Graph Problems with LLMs?

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ge, Yuyao, Liu, Shenghua, Bi, Baolong, Wang, Yiwei, Mei, Lingrui, Feng, Wenjie, Chen, Lizhe, Cheng, Xueqi
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908589886537728
author Ge, Yuyao
Liu, Shenghua
Bi, Baolong
Wang, Yiwei
Mei, Lingrui
Feng, Wenjie
Chen, Lizhe
Cheng, Xueqi
author_facet Ge, Yuyao
Liu, Shenghua
Bi, Baolong
Wang, Yiwei
Mei, Lingrui
Feng, Wenjie
Chen, Lizhe
Cheng, Xueqi
contents Large language models (LLMs) have achieved significant success in reasoning tasks, including mathematical reasoning and logical deduction. Among these reasoning tasks, graph problems stand out due to their complexity and unique structural characteristics, attracting considerable attention from researchers. Previous studies have explored LLMs' graph reasoning abilities through various techniques, such as different encoding methods for graph structures and the use of carefully designed prompts. However, a critical factor has been mostly overlooked: the prompt sequential order in which graph descriptions are presented to the models. In this study, we present the first comprehensive analysis of how the order of graph descriptions impacts LLM performance. Specifically, we comprehensively evaluate four graph description orders across six graph problems using six mainstream LLMs. The results reveal that: (1) ordered graph descriptions significantly improve LLMs' comprehension of graph structures; (2) the robustness of LLMs to graph description order varies across different tasks; and (3) the impact of graph order on performance is closely related to the inherent characteristics of tasks. This study provides a critical advancement in the application of LLMs for solving graph-related problems, paving the way for future research to optimize model performance through strategic graph description ordering.
format Preprint
id arxiv_https___arxiv_org_abs_2402_07140
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Can Graph Descriptive Order Affect Solving Graph Problems with LLMs?
Ge, Yuyao
Liu, Shenghua
Bi, Baolong
Wang, Yiwei
Mei, Lingrui
Feng, Wenjie
Chen, Lizhe
Cheng, Xueqi
Artificial Intelligence
Large language models (LLMs) have achieved significant success in reasoning tasks, including mathematical reasoning and logical deduction. Among these reasoning tasks, graph problems stand out due to their complexity and unique structural characteristics, attracting considerable attention from researchers. Previous studies have explored LLMs' graph reasoning abilities through various techniques, such as different encoding methods for graph structures and the use of carefully designed prompts. However, a critical factor has been mostly overlooked: the prompt sequential order in which graph descriptions are presented to the models. In this study, we present the first comprehensive analysis of how the order of graph descriptions impacts LLM performance. Specifically, we comprehensively evaluate four graph description orders across six graph problems using six mainstream LLMs. The results reveal that: (1) ordered graph descriptions significantly improve LLMs' comprehension of graph structures; (2) the robustness of LLMs to graph description order varies across different tasks; and (3) the impact of graph order on performance is closely related to the inherent characteristics of tasks. This study provides a critical advancement in the application of LLMs for solving graph-related problems, paving the way for future research to optimize model performance through strategic graph description ordering.
title Can Graph Descriptive Order Affect Solving Graph Problems with LLMs?
topic Artificial Intelligence
url https://arxiv.org/abs/2402.07140