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

SimGNN:一种快速图相似度计算的神经网络方法

SimGNN: A Neural Network Approach to Fast Graph Similarity Computation

University of California, Los Angeles(加利福尼亚大学洛杉矶分校);Purdue University(普渡大学);Zhejiang University(浙江大学)

Yunsheng Bai, Hao Ding, Song Bian, Ting Chen, Yizhou Sun, Wei Wang

摘要:

图相似性搜索是最重要的基于图的应用之一,例如找到与查询化合物最相似的化合物。图的相似性计算,如图编辑距离(GED)和最大公共子图(MCS),是图相似性搜索等应用的核心操作,但实际中计算成本很高。受最近神经网络方法在节点或图分类等图形应用中取得成功的启发,我们提出了一种新的基于神经网络的方法来解决这个经典但具有挑战性的图形问题,旨在减轻计算负担,同时保持良好的性能。所提出的方法称为SimGNN,结合了两种策略。首先,我们设计了一个可学习的嵌入函数,它将每个图映射到一个向量,这提供了一个图的全局摘要。提出了一种新的注意力机制,根据特定的相似性度量来强调重要节点。其次,我们设计了一个成对的节点比较方法,以补充细粒度的节点级信息的图级嵌入。我们的模型在看不见的图上实现了更好的泛化,并且在最坏的情况下,相对于两个图中的节点数,在二次时间内运行。以GED计算为例,在三个真实图数据集上的实验结果证明了该方法的有效性和效率。具体而言,我们的模型实现了较小的出错率和大量的时间减少相比,一系列的基线,包括几个近似算法的GED计算,和许多现有的图神经网络为基础的模型。据我们所知,我们是第一个采用神经网络显式地模拟两个图之间的相似性,并提供了一个新的方向,为未来的研究图相似性计算和图相似性搜索。

英文摘要:

Graph similarity search is among the most important graph-based applications, e.g. finding the chemical compounds that are most similar to a query compound. Graph similarity computation, such as Graph Edit Distance (GED) and Maximum Common Subgraph (MCS), is the core operation of graph similarity search and many other applications, but very costly to compute in practice. Inspired by the recent success of neural network approaches to several graph applications, such as node or graph classification, we propose a novel neural network based approach to address this classic yet challenging graph problem, aiming to alleviate the computational burden while preserving a good performance. The proposed approach, called SimGNN, combines two strategies. First, we design a learnable embedding function that maps every graph into a vector, which provides a global summary of a graph. A novel attention mechanism is proposed to emphasize the important nodes with respect to a specific similarity metric. Second, we design a pairwise node comparison method to supplement the graph-level embeddings with fine-grained node-level information. Our model achieves better generalization on unseen graphs, and in the worst case runs in quadratic time with respect to the number of nodes in two graphs. Taking GED computation as an example, experimental results on three real graph datasets demonstrate the effectiveness and efficiency of our approach. Specifically, our model achieves smaller error rate and great time reduction compared against a series of baselines, including several approximation algorithms on GED computation, and many existing graph neural network based models. To the best of our knowledge, we are among the first to adopt neural networks to explicitly model the similarity between two graphs, and provide a new direction for future research on graph similarity computation and graph similarity search.

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

↑