arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.22597cs.LGcs.AI
收藏

大语言模型是图算法推理器吗?

Are Large-Language Models Graph Algorithmic Reasoners?

University of California, Los Angeles(加州大学洛杉矶分校)

Alexander K Taylor, Anthony Cuturrufo, Vishal Yathish, Mingyu Derek Ma, Wei Wang

AI总结:

针对大语言模型在显式图多步推理上的短板,研究提出首个聚焦经典图算法的综合基准MAGMA,涵盖五种基础图算法,评测发现前沿LLMs仍存挑战,需通过先进提示技术和算法指令提升图推理能力。

摘要:

我们致力于解决当前大语言模型(LLMs)面临的一项核心挑战。LLMs已在诸多任务中展现出优异性能,但在需要多步骤推理的显式图推理问题上仍存在困难。为填补这一空白,我们提出了一个新型基准测试,用于评估LLMs在显式图经典算法推理任务上的表现。该基准涵盖五种基础算法:用于连通性分析的广度优先搜索(Breadth-First Search, BFS)和深度优先搜索(Depth-First Search, DFS)、用于全节点最短路径求解的Dijkstra算法和Floyd-Warshall算法,以及Prim最小生成树(Minimum Spanning Tree, MST-Prim's)算法。通过大量实验,我们评估了前沿LLMs逐步执行这些算法的能力,并系统评测了其在每个阶段的表现。研究结果凸显了LLMs在该领域持续面临的挑战,也表明需要先进的提示工程技术和算法指令来提升其图推理能力。本工作推出了首个聚焦LLMs完成经典图算法任务的综合基准MAGMA,为理解并提升其结构化问题求解能力迈出了关键一步。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑