paper-with-me

홈 › Papers

Can Language Models Solve Graph Problems in Natural Language?

2023-05-17 · NeurIPS 2023 11 · Heng Wang, Shangbin Feng, Tianxing He, Zhaoxuan Tan, Xiaochuang Han, Yulia Tsvetkov

Large language models (LLMs) are increasingly adopted for a variety of tasks with implicit graphical structures, such as planning in robotics, multi-hop question answering or knowledge probing, structured commonsense reasoning, and more. While LLMs have advanced the state-of-the-art on these tasks with structure implications, whether LLMs could explicitly process textual descriptions of graphs and structures, map them to grounded conceptual spaces, and perform structured operations remains underexplored. To this end, we propose NLGraph (Natural Language Graph), a comprehensive benchmark of graph-based problem solving designed in natural language. NLGraph contains 29,370 problems, covering eight graph reasoning tasks with varying complexity from simple tasks such as connectivity and shortest path up to complex problems such as maximum flow and simulating graph neural networks. We evaluate LLMs (GPT-3/4) with various prompting approaches on the NLGraph benchmark and find that 1) language models do demonstrate preliminary graph reasoning abilities, 2) the benefit of advanced prompting and in-context learning diminishes on more complex graph problems, while 3) LLMs are also (un)surprisingly brittle in the face of spurious correlations in graph and problem settings. We then propose Build-a-Graph Prompting and Algorithmic Prompting, two instruction-based approaches to enhance LLMs in solving natural language graph problems. Build-a-Graph and Algorithmic prompting improve the performance of LLMs on NLGraph by 3.07% to 16.85% across multiple tasks and settings, while how to solve the most complicated graph reasoning tasks in our setup with language models remains an open research question. The NLGraph benchmark and evaluation code are available at https://github.com/Arthur-Heng/NLGraph.

📄 PDF Abstract BibTeX arXiv:2305.10037

Code (2)

arthur-heng/nlgraph 공식 구현
Samyu0304/thought-propagation

Tasks

In-Context LearningKnowledge ProbingMulti-hop Question AnsweringQuestion Answering

Similar Papers 제목 키워드 기반

Graph Reasoning with Large Language Models via Pseudo-code Prompting

2024-09-26 · Konstantinos Skianis, Giannis Nikolentzos, Michalis Vazirgiannis

Large language models (LLMs) have recently achieved remarkable success in various reasoning tasks in the field of natural language processing. This success of LLMs has also motivated their use in graph-related tasks. Amo…

Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsing

2025-11-11 · Connar Hite, Sean Saud, Raef Taha, Nayim Rahman 외 arxiv

Answer Set Programming (ASP) is a declarative programming paradigm based on logic programming and non-monotonic reasoning. It is a tremendously powerful tool for describing and solving combinatorial problems. Like any ot…

AMR Parsing

Premise Selection in Natural Language Mathematical Texts

2020-07-01 · ACL 2020 6 · Deborah Ferreira, Andr{\'e} Freitas

The discovery of supporting evidence for addressing complex mathematical problems is a semantically challenging task, which is still unexplored in the field of natural language processing for mathematical text. The natur…

Link Prediction

Knowledge Representation Analysis of Graph Mining

2016-08-31 · Matthias van der Hallen, Sergey Paramonov, Michael Leuschel, Gerda Janssens

Many problems, especially those with a composite structure, can naturally be expressed in higher order logic. From a KR perspective modeling these problems in an intuitive way is a challenging task. In this paper we stud…

Graph Mining

PuzzleBench: Can LLMs Solve Challenging First-Order Combinatorial Reasoning Problems?

2024-02-04 · Chinmay Mittal, Krishna Kartik, Mausam, Parag Singla

Recent works show that the largest of the large language models (LLMs) can solve many simple reasoning tasks expressed in natural language, without any/much supervision. But, can they also solve challenging first-order c…

Question Answering