arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.13106cs.LGcs.AIcs.DScs.NE
收藏

图神经网络能学习哪些算法?

Which Algorithms Can Graph Neural Networks Learn?

RWTH Aachen University(亚琛工业大学);University of California San Diego(加州大学圣地亚哥分校)

Solveig Wittig, Antonis Vasileiou, Robert R. Nerem, Timo Stoll, Floris Geerts, Yusu Wang, Christopher Morris

AI总结:

本文提出了一种理论框架,研究图神经网络学习算法的条件,并推导出更高效的架构以克服现有限制。

摘要:

近年来,人们对神经架构学习执行离散算法的能力产生了越来越多的兴趣,这种工作通常被称为神经算法推理。目标是将算法推理能力整合到更大的神经管道中。许多此类架构基于(消息传递)图神经网络(MPNNs),因为它们具有排列等变性,并能处理稀疏性和可变大小的输入。然而,现有工作要么主要是经验性的,缺乏正式保证,要么只关注表达性,留下了一个开放性问题:在何时以及如何通过有限的训练集外推此类架构。在本工作中,我们提出了一种通用的理论框架,该框架表征了MPNNs从有限训练集学习算法的充分条件,并且可以证明其在任意大小输入上的行为近似。我们的框架适用于广泛的一类算法,包括单源最短路径、最小生成树以及一般的动态规划问题,如0-1背包问题。此外,我们还建立了广泛算法任务的不可能性结果,表明标准MPNNs无法学习这些任务,并推导出更具有表达力的MPNN-like架构以克服这些限制。最后,我们对Bellman-Ford算法进行了细化分析,得出一个显著更小的所需训练集,并通过允许可微正则化损失扩展了Nerem等人[2025]最近的工作。实验证果在很大程度上支持我们的理论发现。

英文摘要:

In recent years, there has been growing interest in understanding neural architectures' ability to learn to execute discrete algorithms, a line of work often referred to as neural algorithmic reasoning. The goal is to integrate algorithmic reasoning capabilities into larger neural pipelines. Many such architectures are based on (message-passing) graph neural networks (MPNNs), owing to their permutation equivariance and ability to deal with sparsity and variable-sized inputs. However, existing work is either largely empirical and lacks formal guarantees or it focuses solely on expressivity, leaving open the question of when and how such architectures generalize beyond a finite training set. In this work, we propose a general theoretical framework that characterizes the sufficient conditions under which MPNNs can learn an algorithm from a training set of small instances and provably approximate its behavior on inputs of arbitrary size. Our framework applies to a broad class of algorithms, including single-source shortest paths, minimum spanning trees, and general dynamic programming problems, such as the $0$-$1$ knapsack problem. In addition, we establish impossibility results for a wide range of algorithmic tasks, showing that standard MPNNs cannot learn them, and we derive more expressive MPNN-like architectures that overcome these limitations. Finally, we refine our analysis for the Bellman-Ford algorithm, yielding a substantially smaller required training set and significantly extending the recent work of Nerem et al. [2025] by allowing for a differentiable regularization loss. Empirical results largely support our theoretical findings.

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

↑