Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Can Graph Descriptive Order Affect Solving Graph Problems with LLMs?

About

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.

Yuyao Ge, Shenghua Liu, Baolong Bi, Yiwei Wang, Lingrui Mei, Wenjie Feng, Lizhe Chen, Xueqi Cheng• 2024

Related benchmarks

TaskDatasetResultRank
Graph UnderstandingGraphSQA Macro-level Tasks 1.0 (test)
Score62.21
55
Graph UnderstandingGraphSQA Micro-level Tasks 1.0 (test)
Score77.57
55
Graph UnderstandingGraphSQA Overall 1.0 (test)
Score71.66
55
Macro-level Graph ReasoningGraphSQA Macro 1.0
Rank1
50
Graph ReasoningGraphSQA 1.0 (overall)
Rank2
50
Micro-level Graph ReasoningGraphSQA 1.0 (micro)
Rank2
50
Showing 6 of 6 rows

Other info

Follow for update