Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Large Language Models on Graphs: Performance Insights and Comparative Analysis

Chang Liu, Bo Wu|arXiv (Cornell University)|Aug 22, 2023
Topic ModelingComputer Science4 citations
TL;DR

This study evaluates four LLMs—GPT-3.5-turbo, GPT-4, and two open-source models—on graph reasoning tasks using four metrics: Comprehension, Correctness, Fidelity, and Rectification. Results show GPT models outperform others in correctness and comprehension but suffer from high hallucination rates in multi-answer tasks and overconfidence, limiting self-rectification, with GPT-4 showing partial ability to correct its own and GPT-3.5-turbo’s errors.

ABSTRACT

Large Language Models (LLMs) have garnered considerable interest within both academic and industrial. Yet, the application of LLMs to graph data remains under-explored. In this study, we evaluate the capabilities of four LLMs in addressing several analytical problems with graph data. We employ four distinct evaluation metrics: Comprehension, Correctness, Fidelity, and Rectification. Our results show that: 1) LLMs effectively comprehend graph data in natural language and reason with graph topology. 2) GPT models can generate logical and coherent results, outperforming alternatives in correctness. 3) All examined LLMs face challenges in structural reasoning, with techniques like zero-shot chain-of-thought and few-shot prompting showing diminished efficacy. 4) GPT models often produce erroneous answers in multi-answer tasks, raising concerns in fidelity. 5) GPT models exhibit elevated confidence in their outputs, potentially hindering their rectification capacities. Notably, GPT-4 has demonstrated the capacity to rectify responses from GPT-3.5-turbo and its own previous iterations. The code is available at: https://github.com/Ayame1006/LLMtoGraph.

Motivation & Objective

  • To assess the ability of LLMs to comprehend and reason with graph topology presented in natural language.
  • To compare performance across four LLMs—two GPT models and two open-source models—on graph-based reasoning tasks.
  • To investigate the effectiveness of prompting techniques like zero-shot chain-of-thought and few-shot prompting in improving graph reasoning.
  • To evaluate model fidelity in multi-answer tasks and self-rectification capacity, especially in error-prone scenarios.
  • To provide insights into the limitations and potential of LLMs for graph-based AI applications.

Proposed method

  • The study designs a suite of graph reasoning tasks, including simple path finding, k-hop neighbor classification, and all-shortest-paths problems.
  • Graphs are generated randomly and described in natural language to simulate real-world textual representations of network structures.
  • Four evaluation metrics are applied: Comprehension (understanding of graph structure), Correctness (accuracy of answers), Fidelity (proportion of correct answers in multi-answer tasks), and Rectification (ability to correct prior errors).
  • Multiple prompting strategies are tested, including zero-shot chain-of-thought and few-shot prompting, to assess their impact on reasoning quality.
  • Performance is evaluated across varying graph sparsity levels (edge percentages: 70%, 90%) to test robustness under structural complexity.
  • Experiments compare GPT-3.5-turbo, GPT-4, and two open-source LLMs under identical conditions to ensure unbiased comparison.

Experimental results

Research questions

  • RQ1Can LLMs effectively comprehend graph data when described in natural language and reason about its topological structure?
  • RQ2How do different LLMs compare in correctness and fidelity when solving multi-answer graph reasoning tasks?
  • RQ3To what extent do prompting techniques like zero-shot chain-of-thought and few-shot prompting improve LLM performance on graph reasoning?
  • RQ4Do LLMs exhibit overconfidence in their outputs, and can they self-correct erroneous responses?
  • RQ5Can GPT-4 rectify errors from GPT-3.5-turbo or its own previous outputs, indicating self-improvement capability?

Key findings

  • GPT-4 demonstrated the ability to rectify responses from both GPT-3.5-turbo and its own prior outputs, indicating partial self-correction capability.
  • GPT-3.5-turbo produced misleading answers at a rate seven times higher than accurate ones in one multi-answer evaluation, highlighting poor fidelity.
  • In dense graphs (90% edge density), GPT-3.5-turbo achieved 55.32% correctness with 583 spurious responses, while GPT-4 achieved 31.91% correctness with only 17 spurious responses.
  • Both GPT models showed increased hallucination as graph density increased, with GPT-3.5-turbo generating significantly more erroneous outputs than GPT-4.
  • Zero-shot chain-of-thought and few-shot prompting did not consistently improve performance and sometimes led to spurious outcomes, especially in complex topological reasoning.
  • GPT models exhibited high confidence in their outputs, even when incorrect, which may hinder effective self-rectification and error correction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.