Distance-Enhanced Graph Neural Network for Link Prediction

NA 2021  ·  Boling Li, Yingce Xia, Shufang Xie, Lijun Wu, Tao Qin ·

Link prediction, which is to predict the existence of a link/edge between two vertices in a graph, is a classical problem in machine learning. Intuitively, if it takes a long distance to walk from u to v along the existing edges, there should not be a link between them, and vice versa. This motivates us to explicitly combine the distance information with graph neural networks (GNNs) to improve link prediction. Calculating the distances between any two vertices (e.g., shortest path, expectation of random walk) in training is time consuming. To overcome this difficulty, we propose an anchorbased distance: First, we randomly select K anchor vertices from the graph and then calculate the shortest distances of all vertices in the graph to them. The distance between vertices u and v is estimated as the average of their distances to the K anchor vertices. After that, we feed the distance into the GNN module. Our method brings significant improvement for link prediction with few additional parameters. We achieved state-of-the-art result on the drug-drug-interaction (i.e., DDI) and protein-protein-association (i.e., PPA) tasks of OGB (Hu et al., 2020). Our code is available at https://github.com/lbn187/DLGNN.

PDF

Datasets


Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Benchmark
Link Property Prediction ogbl-ddi GraphSAGE+anchor distance Test Hits@20 0.8239 ± 0.0437 # 10
Validation Hits@20 0.8206 ± 0.0298 # 9
Number of params 3760134 # 6
Ext. data No # 1

Methods


No methods listed for this paper. Add relevant methods here