Skip to main content
QUICK REVIEW

[论文解读] Graph-Mamba: Towards Long-Range Graph Sequence Modeling with Selective State Spaces

Xiaoming Wang, Oleksii Tsepa|arXiv (Cornell University)|Feb 1, 2024
Graph Theory and AlgorithmsComputer Science被引用 20
一句话总结

tldr: Graph-Mamba 引入一种基于选择性状态空间模型(SSM)的图块,替代 GraphGPS 中的注意力,使数据相关的长程上下文建模具有线性时间复杂度并降低内存占用。它在长程图基准上相对于密集和稀疏注意力方法表现更优。

ABSTRACT

Attention mechanisms have been widely used to capture long-range dependencies among nodes in Graph Transformers. Bottlenecked by the quadratic computational cost, attention mechanisms fail to scale in large graphs. Recent improvements in computational efficiency are mainly achieved by attention sparsification with random or heuristic-based graph subsampling, which falls short in data-dependent context reasoning. State space models (SSMs), such as Mamba, have gained prominence for their effectiveness and efficiency in modeling long-range dependencies in sequential data. However, adapting SSMs to non-sequential graph data presents a notable challenge. In this work, we introduce Graph-Mamba, the first attempt to enhance long-range context modeling in graph networks by integrating a Mamba block with the input-dependent node selection mechanism. Specifically, we formulate graph-centric node prioritization and permutation strategies to enhance context-aware reasoning, leading to a substantial improvement in predictive performance. Extensive experiments on ten benchmark datasets demonstrate that Graph-Mamba outperforms state-of-the-art methods in long-range graph prediction tasks, with a fraction of the computational cost in both FLOPs and GPU memory consumption. The code and models are publicly available at https://github.com/bowang-lab/Graph-Mamba.

研究动机与目标

  • 动机与解决大规模图上长程依赖的图变换器的计算瓶颈。
  • 开发一种适用于图的选择性状态空间建模(GMB)模块,执行输入相关的节点选择与上下文过滤。
  • 将 GMB 融入 GraphGPS 框架,创建 Graph-Mamba,使非序列化图数据上的高效长程推理成为可能。
  • 提出节点优先级排序与基于置换的训练/推理方案,以稳定并改善针对图的序列建模。

提出的方法

  • 将 Mamba 引入到图中,通过引入图中心的节点优先级排序和置换策略。
  • 用 Graph-Mamba 块(GMB)替代 GraphGPS 的注意力,结合基于 MPNN 的局部上下文和面向节点的全局上下文 GMB。
  • 实现一个数据相关的选择机制,启用两级稀疏化:输入相关的节点选择和序列感知的节点优先级排序。
  • 使用对 GPU 友好的状态空间更新的离散化/参数化,以在输入长度上实现线性时间复杂度。
  • 引入基于置换的训练和推理方案,以提升跨节点排序的置换不变性和稳定性。
  • 在十个 Long Range Graph Benchmark 数据集上进行评估,比较密集 Transformer 和稀疏注意力基线。

实验结果

研究问题

  • RQ1图自适应选择性状态空间模型(Graph-Mamba)是否能够在长程依赖任务上匹配或超越密集/稀疏图注意力的预测能力,同时降低计算成本?
  • RQ2输入相关的节点优先级排序和基于置换的训练是否改善非序列图数据的长程推理?
  • RQ3与最先进的注意力机制相比,Graph-Mamba 在不同图预测任务(节点、图和边级别)以及不同图大小上的表现如何?

主要发现

  • Graph-Mamba 在十个数据集的长程图预测任务中达到最先进或具竞争力的结果,特别是对于包含 150–1,400 个节点的图。
  • 在大规模图上,Graph-Mamba 相较其他稀疏注意力方法提供最高 5% 的提升,并在若干情形中优于密集 Transformer 基线。
  • Graph-Mamba 展现出线性时间复杂度和降低的 GPU 内存使用,在大规模图上内存高达 74% 的节省,并在 MalNet-Tiny 上比 Transformer 降低 66% 的 FLOPs。
  • 通过度排序的节点优先级与节点级置换的组合带来显著的性能提升,建议作为默认的训练/推理方案。
  • 实证的 FLOPs/内存基准显示 Graph-Mamba 在各数据集上的成本低于密集和稀疏注意力基线,从而能够在更大图上进行训练。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。