Skip to main content
QUICK REVIEW

[论文解读] VQ-GNN: A Universal Framework to Scale up Graph Neural Networks using Vector Quantization

Mucong Ding, Kezhi Kong|arXiv (Cornell University)|Oct 27, 2021
Advanced Graph Neural NetworksComputer Science被引用 18
一句话总结

VQ-GNN 提出了一种通用框架,通过使用向量量化(VQ)将全局节点表征压缩为一个小型参考向量代码本,从而在大规模图上扩展图神经网络(GNN)的性能。它不采用邻居采样,而是通过量化码字和低秩近似保留所有消息,在多种 GNN 主干网络和基准测试中实现了全批量训练性能,同时显著降低了内存占用和推理成本。

ABSTRACT

Most state-of-the-art Graph Neural Networks (GNNs) can be defined as a form of graph convolution which can be realized by message passing between direct neighbors or beyond. To scale such GNNs to large graphs, various neighbor-, layer-, or subgraph-sampling techniques are proposed to alleviate the "neighbor explosion" problem by considering only a small subset of messages passed to the nodes in a mini-batch. However, sampling-based methods are difficult to apply to GNNs that utilize many-hops-away or global context each layer, show unstable performance for different tasks and datasets, and do not speed up model inference. We propose a principled and fundamentally different approach, VQ-GNN, a universal framework to scale up any convolution-based GNNs using Vector Quantization (VQ) without compromising the performance. In contrast to sampling-based techniques, our approach can effectively preserve all the messages passed to a mini-batch of nodes by learning and updating a small number of quantized reference vectors of global node representations, using VQ within each GNN layer. Our framework avoids the "neighbor explosion" problem of GNNs using quantized representations combined with a low-rank version of the graph convolution matrix. We show that such a compact low-rank version of the gigantic convolution matrix is sufficient both theoretically and experimentally. In company with VQ, we design a novel approximated message passing algorithm and a nontrivial back-propagation rule for our framework. Experiments on various types of GNN backbones demonstrate the scalability and competitive performance of our framework on large-graph node classification and link prediction benchmarks.

研究动机与目标

  • 解决在大规模图上训练时因‘邻居爆炸’导致的 GNN 可扩展性瓶颈。
  • 克服基于采样的方法的局限性,这些方法存在性能不稳定、推理成本高以及与全局或多跳 GNN 不兼容的问题。
  • 开发一种适用于多种 GNN 架构的通用框架,且不牺牲性能。
  • 通过保留量化表征中的所有消息,实现高效的迷你批量训练与推理。
  • 提供理论和实证保证,证明通过 VQ 实现的近似能将性能保持在接近全图训练的水平。

提出的方法

  • 使用向量量化(VQ)将全局节点表征压缩为一个小型可学习参考向量代码本(码字)。
  • 引入一种新颖的近似消息传递机制,其中来自不在迷你批量中的节点的消息,通过其最近似码字进行近似。
  • 对图卷积矩阵应用低秩近似,以降低计算和内存开销。
  • 设计一种非平凡的反向传播规则,支持基于 VQ 的码字更新的端到端训练。
  • 在每个 GNN 层中,使用迷你批量节点表征对 VQ 代码本进行更新,以动态优化码字。
  • 将分配到同一码字的节点的消息进行合并,以减少冗余并提升效率。

实验结果

研究问题

  • RQ1向量量化能否作为在大规模图上扩展 GNN 的一种合理替代方案,以取代采样?
  • RQ2VQ-GNN 是否能在不牺牲节点分类和链接预测任务性能的前提下,保留 GNN 的完整消息信息?
  • RQ3在训练稳定性、推理效率以及在多样化数据集和 GNN 架构上的泛化能力方面,VQ-GNN 与基于采样的方法相比如何?
  • RQ4VQ-GNN 是否能有效扩展依赖于多跳或全局上下文的 GNN,而这些 GNN 与标准采样技术不兼容?
  • RQ5低秩 VQ 近似在保持 GNN 性能方面的有效性,其理论和实证依据是什么?

主要发现

  • VQ-GNN 在所有基准测试中(包括 PPI、Reddit 和 ogbl-collab)均实现了与全图训练相当或更优的性能。
  • 在 ogbl-collab 链接预测基准测试中,VQ-GNN 超过了基于采样的基线方法,如 NS-SAGE、Cluster-GCN 和 GraphSAINT-RW,后者在该具有挑战性的数据集上表现下降。
  • VQ-GNN 在多种 GNN 主干网络(包括 GCN、SAGE-Mean 和 GAT)上均保持了稳健性能,证明了其通用性。
  • 该框架通过避免邻居采样并利用量化码字保留所有消息,显著降低了内存使用和推理成本。
  • 理论分析表明,图卷积矩阵的低秩近似足以实现有效学习,且近似误差有界。
  • VQ-GNN 通过用确定性的、基于码字的消息近似替代邻居采样,实现了大规模图上的全批量训练与推理。

阅读本论文

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

在 Nubint 中阅读本论文

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