Saved in:
Bibliographic Details
Main Authors: Taylor, Alexander K, Cuturrufo, Anthony, Yathish, Vishal, Ma, Mingyu Derek, Wang, Wei
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.22597
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914997643247616
author Taylor, Alexander K
Cuturrufo, Anthony
Yathish, Vishal
Ma, Mingyu Derek
Wang, Wei
author_facet Taylor, Alexander K
Cuturrufo, Anthony
Yathish, Vishal
Ma, Mingyu Derek
Wang, Wei
contents We seek to address a core challenge facing current Large Language Models (LLMs). LLMs have demonstrated superior performance in many tasks, yet continue to struggle with reasoning problems on explicit graphs that require multiple steps. To address this gap, we introduce a novel benchmark designed to evaluate LLM performance on classical algorithmic reasoning tasks on explicit graphs. Our benchmark encompasses five fundamental algorithms: Breadth-First Search (BFS) and Depth-First Search (DFS) for connectivity, Dijkstra's algorithm and Floyd-Warshall algorithm for all nodes shortest path, and Prim's Minimum Spanning Tree (MST-Prim's) algorithm. Through extensive experimentation, we assess the capabilities of state-of-the-art LLMs in executing these algorithms step-by-step and systematically evaluate their performance at each stage. Our findings highlight the persistent challenges LLMs face in this domain and underscore the necessity for advanced prompting techniques and algorithmic instruction to enhance their graph reasoning abilities. This work presents MAGMA, the first comprehensive benchmark focused on LLMs completing classical graph algorithms, and provides a critical step toward understanding and improving their structured problem-solving skills.
format Preprint
id arxiv_https___arxiv_org_abs_2410_22597
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Are Large-Language Models Graph Algorithmic Reasoners?
Taylor, Alexander K
Cuturrufo, Anthony
Yathish, Vishal
Ma, Mingyu Derek
Wang, Wei
Machine Learning
Artificial Intelligence
We seek to address a core challenge facing current Large Language Models (LLMs). LLMs have demonstrated superior performance in many tasks, yet continue to struggle with reasoning problems on explicit graphs that require multiple steps. To address this gap, we introduce a novel benchmark designed to evaluate LLM performance on classical algorithmic reasoning tasks on explicit graphs. Our benchmark encompasses five fundamental algorithms: Breadth-First Search (BFS) and Depth-First Search (DFS) for connectivity, Dijkstra's algorithm and Floyd-Warshall algorithm for all nodes shortest path, and Prim's Minimum Spanning Tree (MST-Prim's) algorithm. Through extensive experimentation, we assess the capabilities of state-of-the-art LLMs in executing these algorithms step-by-step and systematically evaluate their performance at each stage. Our findings highlight the persistent challenges LLMs face in this domain and underscore the necessity for advanced prompting techniques and algorithmic instruction to enhance their graph reasoning abilities. This work presents MAGMA, the first comprehensive benchmark focused on LLMs completing classical graph algorithms, and provides a critical step toward understanding and improving their structured problem-solving skills.
title Are Large-Language Models Graph Algorithmic Reasoners?
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2410.22597