Can LLMs Effectively Leverage Graph Structural Information: when and Why

Jin Huang,Xingjian Zhang,Qiaozhu Mei,Jiaqi Ma
DOI: https://doi.org/10.48550/arxiv.2309.16595
2023-01-01
Abstract:Large language models (LLMs) are gaining increasing attention for theircapability to process graphs with rich text attributes, especially in azero-shot fashion. Recent studies demonstrate that LLMs obtain decent textclassification performance on common text-rich graph benchmarks, and theperformance can be improved by appending encoded structural information asnatural languages into prompts. We aim to understand why the incorporation ofstructural information inherent in graph data can improve the predictionperformance of LLMs. First, we rule out the concern of data leakage by curatinga novel leakage-free dataset and conducting a comparative analysis alongside apreviously widely-used dataset. Second, as past work usually encodes theego-graph by describing the graph structure in natural language, we ask thequestion: do LLMs understand the graph structure in accordance with the intentof the prompt designers? Third, we investigate why LLMs can improve theirperformance after incorporating structural information. Our exploration ofthese questions reveals that (i) there is no substantial evidence that theperformance of LLMs is significantly attributed to data leakage; (ii) insteadof understanding prompts as graph structures as intended by the promptdesigners, LLMs tend to process prompts more as contextual paragraphs and (iii)the most efficient elements of the local neighborhood included in the promptare phrases that are pertinent to the node label, rather than the graphstructure.
What problem does this paper attempt to address?