mlsanityData to 7 Oct 2026

Can LLMs perform structured graph reasoning?

arXiv 2402.01805 ↗First posted 2 Feb 2024cs.CL cs.AIcited by 9

On the map: LLM reasoning → Knowledge- and tool-augmented reasoning

Abstract (arXiv)

Pretrained Large Language Models (LLMs) have demonstrated various reasoning capabilities through language-based prompts alone, particularly in unstructured task settings (tasks purely based on language semantics). However, LLMs often struggle with structured tasks, because of the inherent incompatibility of input representation. Reducing structured tasks to uni-dimensional language semantics often renders the problem trivial. Keeping the trade-off between LLM compatibility and structure complexity in mind, we design various graph reasoning tasks as a proxy to semi-structured tasks in this paper, in order to test the ability to navigate through representations beyond plain text in various LLMs. Particularly, we design 10 distinct problems of graph traversal, each representing increasing levels of complexity, and benchmark 5 different instruct-finetuned LLMs (GPT-4, GPT-3.5, Claude-2, Llama-2 and Palm-2) on the aforementioned tasks. Further, we analyse the performance of models across various settings such as varying sizes of graphs as well as different forms of k-shot prompting. We highlight various limitations, biases and properties of LLMs through this benchmarking process, such as an inverse relation to the average degrees of freedom of traversal per node in graphs, the overall negative impact of k-shot prompting on graph reasoning tasks, and a positive response bias which prevents LLMs from identifying the absence of a valid solution. Finally, we introduce a new prompting technique specially designed for graph traversal tasks (PathCompare), which demonstrates a notable increase in the performance of LLMs in comparison to standard prompting techniques such as Chain-of-Thought (CoT).

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 21 of its 28 references that are in the map. First posted on arXiv 2 Feb 2024.

Builds on

21 of 28 references.

Closest ancestors · 3

Same direction, newest first

  1. 2023GraphLLM: Boosting Graph Reasoning Ability of Large Language Model9 Oct
  2. 2023Can Language Models Solve Graph Problems in Natural Language?17 May
  3. 2023Complex Logical Reasoning over Knowledge Graphs using Large Language Models2 May

Other references · 18

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2023PaLM 2 Technical Reportcited by 1,154
  7. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
  8. 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 417
  9. 2022Reasoning with Language Model Prompting: A Surveycited by 251
  10. 2020Can Graph Neural Networks Count Substructures?cited by 235
  11. 2023Large Language Models on Graphs: A Comprehensive Surveycited by 190
  12. 2023Talk like a Graph: Encoding Graphs for Large Language Modelscited by 175
6 more
  1. 2022Faithful Reasoning Using Large Language Modelscited by 130
  2. 2023ChatGPT is a Knowledgeable but Inexperienced Solver: An Investigation of Commonsense Problem in Large Language Modelscited by 63
  3. 2020Learning Dynamic Belief Graphs to Generalize on Text-Based Gamescited by 49
  4. 2023Evaluating Large Language Models on Graphs: Performance Insights and Comparative Analysiscited by 35
  5. 2023A Comparative Study of Open-Source Large Language Models, GPT-4 and Claude 2: Multiple-Choice Test Taking in Nephrologycited by 26
  6. 2023Stochastic LLMs do not Understand Language: Towards Symbolic, Explainable and Ontologically Based LLMscited by 9

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 4; 2026: 3.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Exploring Graph Learning Tasks with Pure LLMs: A Comprehensive Benchmark and Investigation
  2. 2026Are Large Language Models Suitable for Graph Computation? Progress and Prospects
  3. 2024Can LLM Graph Reasoning Generalize beyond Pattern Memorization?
  4. 2024Graph Reasoning with Large Language Models via Pseudo-code Prompting
  5. 2025GraphOmni: A Comprehensive and Extensible Benchmark Framework for Large Language Models on Graph-theoretic Tasks
  6. 2025Rethinking and Benchmarking Large Language Models for Graph Reasoning
  7. 2024Revisiting the Graph Reasoning Ability of Large Language Models: Case Studies in Translation, Connectivity and Shortest Path
  8. 2025Less is More: Learning Graph Tasks with Just LLMs