arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.09516cs.LGstat.ML
收藏

基于负采样诱导的GNN层实现高效链路预测

Efficient Link Prediction via GNN Layers Induced by Negative Sampling

School of Computer Science, Fudan University(复旦大学计算机科学学院);Amazon(亚马逊公司)

Yuxin Wang, Xiannian Hu, Quan Gan, Xuanjing Huang, Xipeng Qiu, David Wipf

AI总结:

本文提出一种新的GNN链路预测架构,通过让前向传播同时依赖正负边并引入能量函数极小化来获得节点嵌入,从而在保持节点级模型推理速度的同时达到边级模型的准确率。

摘要:

用于链路预测的图神经网络(GNN)可以大致分为两大类。第一类,节点级(node-wise)架构预先为每个节点计算独立的嵌入,之后由一个简单的解码器组合这些嵌入以进行预测。虽然这类方法在推理时极为高效,但模型表达能力有限,导致对候选边有贡献的同构节点可能无法被区分,从而损害准确率。相比之下,边级(edge-wise)方法依赖于构建边特定的子图嵌入来丰富成对关系的表示,从而消除同构节点的歧义以提高准确率,但模型复杂度也随之增加。为了更好地权衡这一矛盾,我们提出了一种新颖的GNN架构,其前向传播(forward pass)同时显式依赖于正边(与通常做法一致)和负边(我们方法的独特之处),从而获得更灵活但依然廉价的节点级嵌入。具体做法是将嵌入本身重新定义为前向传播特定能量函数的极小值点,该能量函数倾向于将正样本和负样本分离开来。值得注意的是,该能量函数与大多数现有链路预测模型共享的实际训练损失不同,在那些模型中,对比样本对仅影响反向传播(backward pass)。大量实证评估表明,所提出的架构保持了节点级模型的推理速度,同时取得了与边级替代方案相当的准确率。我们已在 https://github.com/yxzwang/SubmissionverOfYinYanGNN 发布代码。

英文摘要:

Graph neural networks (GNNs) for link prediction can loosely be divided into two broad categories. First, \emph{node-wise} architectures pre-compute individual embeddings for each node that are later combined by a simple decoder to make predictions. While extremely efficient at inference time, model expressiveness is limited such that isomorphic nodes contributing to candidate edges may not be distinguishable, compromising accuracy. In contrast, \emph{edge-wise} methods rely on the formation of edge-specific subgraph embeddings to enrich the representation of pair-wise relationships, disambiguating isomorphic nodes to improve accuracy, but with increased model complexity. To better navigate this trade-off, we propose a novel GNN architecture whereby the \emph{forward pass} explicitly depends on \emph{both} positive (as is typical) and negative (unique to our approach) edges to inform more flexible, yet still cheap node-wise embeddings. This is achieved by recasting the embeddings themselves as minimizers of a forward-pass-specific energy function that favors separation of positive and negative samples. Notably, this energy is distinct from the actual training loss shared by most existing link prediction models, where contrastive pairs only influence the \textit{backward pass}. As demonstrated by extensive empirical evaluations, the resulting architecture retains the inference speed of node-wise models, while producing competitive accuracy with edge-wise alternatives. We released our code at https://github.com/yxzwang/SubmissionverOfYinYanGNN.

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

↑