Buckets:

mishig's picture
|
download
raw
42.1 kB

Qiaoyu Tan
Texas A&M University
qytan@tamu.edu

Ninghao Liu
University of Georgia
ninghao.liu@uga.edu

Xiao Huang
The Hong Kong Polytechnic University
xiaohuang@comp.polyu.edu.hk

Rui Chen
Samsung Research America
rui.chen1@samsung.com

Soo-Hyun Choi
Samsung Research America
soohyunc@gmail.com

Xia Hu
Rice University
xia.hu@rice.edu

Abstract

We introduce a novel masked graph autoencoder (MGAE) framework to perform effective learning on graph structure data. Taking insights from self-supervised learning, we randomly mask a large proportion of edges and try to reconstruct these missing edges during training. MGAE has two core designs. First, we find that masking a high ratio of the input graph structure, e.g., 70%, yields a nontrivial and meaningful self-supervisory task that benefits downstream applications. Second, we employ a graph neural network (GNN) as an encoder to perform message propagation on the partially-masked graph. To reconstruct the large number of masked edges, a tailored cross-correlation decoder is proposed. It could capture the cross-correlation between the head and tail nodes of anchor edge in multi-granularity. Coupling these two designs enables MGAE to be trained efficiently and effectively. Extensive experiments on multiple open datasets (Planetoid and OGB benchmarks) demonstrate that MGAE generally performs better than state-of-the-art unsupervised learning competitors on link prediction and node classification.

1 Introduction

Graph structure data is ubiquitous in real-world systems [1, 2], such as social networks, academic graphs, and biological interaction networks. Given that labels are often not available, unsupervised graph representation learning has attracted considerable attention in both academia and industry. The goal is to learn node representations to preserve the input graph structure [3–6]. Based on the learned representations, we could perform various unsupervised tasks, such as link prediction and anomaly detection. Also, we could directly apply off-the-shell learning algorithms to the learned representations to perform supervised tasks, such as node classification.

To learn node representations in an unsupervised manner, there are two lines of research. First, graph autoencoders, such as GNN encoder based autoencoders, are proved to be effective in many graph domains [7, 8] on node classification and link prediction tasks. It aims to reconstruct the original network structure (i.e., observed edges) for model training. Efforts have been devoted to exploring effective encoder networks. For example, GAE [4] adopts the classical graph convolutional network (GCN) [9] model as encoder, while GraphSage [10] introduces an inductive variant of GCN for graphencoding. Second, graph self-supervised learning (GSSL) focuses on designing advanced pretext tasks for self-supervised training [11, 12]. For example, DGI [13] and GIC [14] target to train GNN models by maximizing the mutual information [15] between the node-level representation and the graph-level representation where the anchor node located in. GSSL methods could learn robust and powerful GNN models for graph encoding [16].

While edge reconstruction and edge dropping are common techniques in graph autoencoders and GSSL, masked autoencoding has never been explored for graphs. Its key idea is to remove a proportion of the input data and use the removed content to guide the training. Masked autoencoding has been proven to be effective and efficient in modeling texts [17] and images [18]. Graph autoencoders take the complete graph as input and target at reconstructing the entire edges. In GSSL, one of the graph augmentation methods is to drop some edges [11]. Edge dropping may not work well in many scenarios as shown in experiments. Its goal is to learn robust representations, instead of predicting the removed edges. Besides, in practice, its valid masking ratio value is less than 30%. Therefore, we ask: How to design appropriate masked autoencoding for graphs? What percentage of edges are really necessary to reconstruct the input graph and learn effective node representations?

In this paper, we give a positive answer to these open questions. We present a simple yet effective graph autoencoder framework named masked graph autoencoder (MGAE) for unsupervised graph representation learning. MGAE targets to randomly mask a large proportion of the input graph structure and then recover the masked edges. Different from traditional graph autoencoders, I) our GNN encoder operates only on partial network structure (without masked edges) for convolution, and II) our decoder is designed to capture the cross-correlation between the head and tail nodes of an anchor edge to effectively reconstruct the link from their latent representations (See Figure 1). Under this design, our MGAE model can achieve a win-win scenario with a significant high masking ratio (e.g., 70%): it optimizes model performance while allowing the GNN encoder to process only a small portion (30%) of original graph structure. We summarize our main contributions:

  • • We introduce a novel graph autoencoder alternative, termed as masked graph autoencoder (MGAE), for graph-structured data. It is inspired by self-supervised learning and is not only robust and effective but also well suited for link prediction and node classification.
  • • We propose a tailored cross-correlation decoder to effectively utilize the noisy hidden representations incurred by the masked graph structure for edge reconstruction. This meticulous design allows us to perform a very high masking ratio (e.g., 70%) for edge masking, which also improves the effectiveness and efficiency.
  • • Extensive experiments demonstrate that MGAE performs better or sometimes on par with state-of-the-art competitors, across Planetoid and OGB benchmarks in terms of link prediction and node classification tasks.

2 Problem Statement

Notations: We use boldface lowercase letters (e.g., $\mathbf{x}$ ) to denote vectors, and boldface uppercase letters (e.g., $\mathbf{X}$ ) to denote matrices. The $v^{\text{th}}$ row of $\mathbf{X}$ is represented as $\mathbf{x}_v$ . We assume an undirected graph $\mathcal{G} = (\mathcal{V}, \mathcal{E})$ with $n$ nodes is given, where $\mathcal{V}$ and $\mathcal{E}$ denote the sets of nodes and edges, respectively. Each node $v \in \mathcal{V}$ has a $F$ -dimensional attribute vector $\mathbf{x}_v \in \mathbb{R}^F$ describing its properties. When node attributes are not available, $\mathbf{x}_v$ can be initialized as a one-hot index vector or learnable parameters. To study graph representation learning under the autoencoder framework, we follow the literature [4, 5, 19] introduced as below.

Graph Autoencoder (GAE). Given a graph $\mathcal{G} = (\mathcal{V}, \mathcal{E})$ , the goal is to learn an encoder network $f : \mathcal{V} \times \mathcal{E} \rightarrow \mathbf{H}$ that maps each node $v \in \mathcal{V}$ into a $d$ -dimensional embedding vector $\mathbf{h}_v \in \mathbb{R}^d$ , and a decoder network $q : \mathbf{H} \rightarrow \mathcal{E}$ that reconstructs the network structure (e.g., edges in $\mathcal{E}$ ) from the latent space $\mathbf{H}$ . It is an unsupervised framework, where the key is to preserve the topological structure and node attributes in the latent space $\mathbf{H}$ through accurately recovering the observed edges in $\mathcal{E}$ . The performance of graph autoencoder is then evaluated by link prediction and node classification tasks.

Encoder. The encoder network is instantiated as GNNs models [9, 10], which are well-established representation learners on graphs. Following the message passing strategy [20], the core idea of GNNs is to update the representation of each node by aggregating itself and its neighbors' representations.Figure 1: The proposed MGAE architecture. Given a graph, a large random subset of edges are masked. The GNN encoder is applied to the remaining edges to produce hidden representations. The representations are then fed into a tailored decoder to reconstruct the masked edges during training, which captures the cross-correlation between end nodes with multi-granularity features.

Formally, at the $k$ -th layer, we have,

hv(k)=COM(hv(k1),AGG({hu(k1):uNv})),(1)\mathbf{h}_v^{(k)} = \text{COM}(\mathbf{h}_v^{(k-1)}, \text{AGG}(\{\mathbf{h}_u^{(k-1)} : u \in \mathcal{N}_v\})), \quad (1)

where $\mathbf{h}_v^{(k)}$ denotes the embedding of node $v$ at the $k$ -th layer, and $\mathcal{N}v = {u | e{v,u} \in \mathcal{E}}$ is set of direct neighbors for node $v$ . We often initialize $\mathbf{h}_v^{(0)} = \mathbf{x}_v$ in practice. The function AGG denotes the neighborhood aggregator. It selectively aggregates features from neighbors via either learnable attention weights [21, 22] or fixed combination weights determined by the graph topology [9, 23]. To update node $v$ , another function COM is used to combine the aggregated neighbor information and its own node embedding from previous layer. For a GNN model with $K$ layers, there are $K$ node representations ${\mathbf{h}_v^{(1)}, \mathbf{h}_v^{(2)}, \dots, \mathbf{h}_v^{(K)}}$ being generated, where $\mathbf{h}_v^{(k)}$ captures the neighborhood structure within $k$ hops.

Decoder. To reconstruct the observed edges in $\mathcal{G}$ from the hidden space $\mathbf{H}$ , the decoder network is defined as an edge-wise similarity function. We want to predict the probability $y_{v,u}$ that edge $e_{v,u}$ exists. For example, some efforts [4] estimate the likelihood via inner product, i.e., $y_{v,u} = \mathbf{h}_v^{(K)} \cdot \mathbf{h}u^{(K)\top}$ , while some other work [5, 24] parameterize the similarity function with multi-layer perceptron, i.e., $y{v,u} = \text{MLP}(\mathbf{h}_v^{(K)}, \mathbf{h}_u^{(K)})$ .

3 Masked Graph Autoencoder

We elaborate the core idea of the proposed Masked Graph Autoencoder (MGAE) framework in Figure 1. It is a simple approach that reconstructs the original network structure given only partially observed edges. Like the traditional graph autoencoders, MGAE has a GNN encoder that maps each node into a latent embedding, and a decoder that recovers the original links in the input graph from the latent space. The differences are as follows: (1) we allow the GNN encoder to operate only on partial network structure (i.e., a portion of edges are masked); (2) a novel cross-correlation decoder is designed to reconstruct the masked edges from the latent representation by capturing the cross correlation between the head and tail nodes of an edge in different granularity. There are four components in our approach: network masking, GNN encoder, cross-correlation decoder, and the reconstruction target. We will introduce the details of them as below.

Network masking. We perturb the original graph $\mathcal{G}$ by randomly masking a subset of edges. Formally, we use $\mathcal{E}{\text{mask}}$ and $\mathcal{E}{\text{reserve}}$ to denote the edge sets that are masked out and remained, respectively, where $\mathcal{E}{\text{mask}} \cup \mathcal{E}{\text{reserve}} = \mathcal{E}$ . To make the process more efficient, we adopt random sampling with a high masking ratio to obtain the masked edge set $\mathcal{E}{\text{mask}}$ . More sophisticated sampling strategies will be explored as future work. Specifically, we further consider two types of random sampling schemes to generate the masked input graphs.- I. Undirected masking. We treat the link between node $v$ and $v$ as undirected. That is, $e{v,u}$ and $e_{u,v}$ are equivalent, and only one copy is included in $\mathcal{E}$ . Therefore, performing random sampling over $\mathcal{E}$ , the masked edge set $\mathcal{E}_{mask}$ is also undirected.

  • II. Directed masking. The key assumption behind is that the links in the graph is directed. Hence, $e_{v,u}$ and $e_{u,v}$ are different, and both of them are included in $\mathcal{E}$ . Deleting $e_{v,u}$ does not mean $e_{u,v}$ is also deleted. Therefore, after performing random sampling over $\mathcal{E}$ , the resultant masked edge set $\mathcal{E}_{mask}$ is directed.

The main difference between the two masking schemes is that the undirected masking will make the reconstruction more challenging than the directed one. According to self-supervised principles, a more difficult task (e.g., masking a high ratio of edges) is expected to achieve better performance in theory. However, in network masking scenarios, we found that the best sampling strategy should be related to the network structure. For example, if the network is dense, it is better to adopt the tougher strategy (i.e., undirected masking). In contrast, if the original graph is sparse, the directed masking could be the better choice, since undirected masking may significantly destruct the neighborhood structure of nodes, leading to substantial expressive power degradation of GNN encoders. For example, in experiments, we found directed masking works better for OGB datasets, while undirected masking works better for Planetoid datasets.

GNN encoder. We follow standard GAE approaches to adopt the well-established GNN models shown in Eq.(1) as our encoder. Specifically, we consider GCN [9] and GraphSage [10] architectures as backbones. However, our encoder only operates on a small subset (e.g., 30%) of the full edge set $\mathcal{E}$ for message propagation. The edges in $\mathcal{E}_{mask}$ are removed during training. This allows us to train the GNN encoder with reduced computation and memory costs. The masked edges are recovered by a tailored decoder, which will be introduced later. It is worth noting that, with the same masking ratio, the total number of edges being used for training is the same for both sampling strategies discussed above. This is because the message propagation in GNNs is bidirectional by default.

Cross-correlation decoder. The proposed MGAE decoder receives $K$ hidden representation matrices ${\mathbf{H}^{(1)}, \mathbf{H}^{(2)}, \dots, \mathbf{H}^{(K)}}$ generated by the GNN encoder. See Figure 1. Each node $v$ has $K$ embedding vectors denoted by ${\mathbf{h}v^{(k)}}{k=1}^K$ , where $\mathbf{h}v^{(k)}$ is obtained by aggregating messages from neighbors of $v$ within $k$ hops defined by $\mathcal{E}{reserve}$ . Given that we mask a high ratio of edges in the original graph, the remained network structure (the adjacency matrix) spanned by the remained edge set $\mathcal{E}{reserve}$ is inevitably incomplete. Directly using the final-layer representation $\mathbf{H}^{(K)}$ to reconstruct the masked edges is rather difficult. To tackle the challenge, we resort to modeling the correlation between two nodes in different granularities. Specifically, given an edge $e{v,u}$ and their $K$ hidden representations ${\mathbf{h}_v^k, \mathbf{h}u^{(j)}}{k=1}^K$ , we aim to capture their cross-correlations as below.

hev,u=k,j=1Khv(k)hu(j),(2)\mathbf{h}_{e_{v,u}} = \parallel_{k,j=1}^K \mathbf{h}_v^{(k)} \odot \mathbf{h}_u^{(j)}, \quad (2)

where $\parallel$ denotes concatenation and $\odot$ denotes the element-wise multiplication. Here $\mathbf{h}{e{v,u}} \in \mathbb{R}^{dK^2}$ is the final representation for edge $e_{v,u}$ . $\mathbf{h}_v^{(k)} \odot \mathbf{h}_u^{(j)}$ denotes the cross representation between node $v$ and node $u$ , considering their $k$ -th order neighborhood and $j$ -th order neighborhood, respectively. The key insight behind the cross representation is to highlight the common patterns of the two nodes in different granularity features. This operation is crucial to MGAE because the $K$ latent embedding vectors themselves are incomplete with noise, so we have to identify their shared patterns as effective features for edge reconstruction. Additionally, we want to remark that $K$ is usually a small number (e.g., $K = 2$ ) in graph autoencoders. Thus, the extra computation and memory costs are limited.

Reconstruction target. Different from traditional graph autoencoders, our MGAE recovers the original graph structure by learning to predict the masked edges $\mathcal{E}{mask}$ rather than the observed ones in $\mathcal{E}{reserve}$ . This setting is inspired by recent self-supervised learning in computer vision [18]. By enforcing the MGAE decoder to only reconstruct the masked edges, our GNN encoder is robust to network noises and can encode graph information more effectively. We adopt the standard graph-based loss function to train our model.

L=(v,u)Emasklogexp(yvu)zVexp(yvz),(3)\mathcal{L} = - \sum_{(v,u) \in \mathcal{E}_{mask}} \log \frac{\exp(\mathbf{y}_{vu})}{\sum_{z \in \mathcal{V}} \exp(\mathbf{y}_{vz})}, \quad (3)

where $\mathbf{y}{v,u} = \text{MLP}(\mathbf{h}{e_{v,u}})$ is the reconstructed score for edge $e_{v,u}$ , and MLP is a multilayer perceptron with ReLU activation function. In experiments, we adopt negative sampling [25, 26]---

Algorithm 1: Masked Graph Autoencoder (MGAE)


Input: Graph $\mathcal{G} = (\mathcal{V}, \mathcal{E})$ , GNN encoder depth $K$ , masking ratio $\omega$ , embedding dimension $d$ ;
1 while not converged do
2     Randomly masking $\mathcal{G}$ with ratio $\omega$ into two edge sets: $\mathcal{E}{mask}$ and $\mathcal{E}{reserve}$ ;
3     Perform GNN encoding on the reserved edge set $\mathcal{E}{reserve}$ according to Eq. (1);
4     Obtain the cross representations of edges in $\mathcal{E}
{mask}$ according to Eq. (2);
5     Model update by minimizing the reconstruction loss over $\mathcal{E}_{mask}$ according to Eq. (3);
6 Return The trained MGAE model.


to accelerate the optimization, since the sum operation in denominator of Eq.(3) is computational prohibitive. Our MGAE model is optimized via stochastic gradient descent outlined in Algorithm 1.

After training the MGAE model, similar to other graph autoencoder architectures, we can use the output of decoder to perform link prediction tasks on unseen edges. For node classification, we use the GNN encoder to generate representations for nodes in the graph. Then, we concatenate $K$ representations of each node as its final representation fed into the classifier.

Table 1: Dataset Statistics.

Data# Nodes# Edges# FeaturesSplit ratio# Classes
Cora2,7085,4291,43385/5/157
CiteSeer3,3124,6603,70385/5/156
PubMed19,71744,33850085/5/153
ogbl-ddi4,2671,334,889-80/10/10
ogbl-collab235,8681,285,46512892/4/4
ogbl-ppa576,28930,326,273-70/20/10
ogbn-arxiv169,34330,326,27312840
ogbn-proteins132,53439,561,2528112

4 Experiments

We evaluate the performance of MGAE in a variety of open graph datasets. Specifically, we try to answer two questions. Q1: How effective is MGAE against the state-of-the-art models on link prediction and node classification? Q2: How does our model perform under different masking ratios?

Datasets and experimental settings. We evaluate the prediction performance of MGAE on six benchmark graph datasets including three Planetoid datasets [27] (Cora, Citeseer and Pubmed), and three OGB datasets [24] (ogbl-ddi, ogbl-collab, and ogbl-ppa). For node classification, we evaluate on five datasets including Cora, Citeseer and Pubmed and two OGB node classification datasets: ogbn-arxiv and ogbn-proteins. The data statistics are summarized in Table 1.

Our model is built upon Pytorch [28] and PyG (PyTorch Geometric) library [29]. We train MGAE for 200 epochs with Adam [30] optimizer and early stopping with a patience of 50 epochs. There are three hyper-parameters in our model, i.e., masking ratio $\omega$ , embedding dimension $d$ , and encoder layer $K$ . We set $K = 2$ and $\omega = 0.7$ by default if not specified. For embedding dimension, we fix $d = 128$ and $d = 256$ for Planetoid and OGB datasets, respectively. Besides, we apply undirected masking for Planetoid datasets and directed masking for OGB datasets as default.

4.1 Link Prediction

We start by answering Q1 based on link prediction tasks.

Baselines. We consider the following baselines methods. Three representative GAE models (GAE [9], GraphSAGE [10], and ARGE [5]), and three self-supervised methods (DGI [13], GIC [14], and SelfTask-GNN [11]). For fair comparison, we adopt EdgeMask as the self-supervised signals for SelfTask-GNN in experiments. We aim to provide a rigorous and fair comparison between different models on each dataset by using the same dataset splits and training procedure. To be specific, forTable 2: Link prediction results on Planetoid data with a masking ratio 0.7. The best results are highlighted.

Cora CiteSeer PubMed
AUC AP AUC AP AUC AP
DGI 90.02 \pm 0.80 90.61 \pm 1.00 95.53 \pm 0.40 95.72 \pm 0.10 91.24 \pm 0.60 92.23 \pm 0.50
GIC 93.54 \pm 0.60 93.33 \pm 0.70 97.04 \pm 0.50 96.80 \pm 0.50 93.71 \pm 0.30 93.54 \pm 0.30
ARGE 92.40 \pm 0.00 93.23 \pm 0.00 91.94 \pm 0.00 93.03 \pm 0.00 96.81 \pm 0.00 97.11 \pm 0.00
GAE 91.09 \pm 0.01 92.83 \pm 0.03 90.52 \pm 0.04 91.68 \pm 0.05 96.40 \pm 0.01 96.50 \pm 0.02
SAGE 86.33 \pm 1.06 88.24 \pm 0.87 85.65 \pm 2.56 87.90 \pm 2.54 89.22 \pm 0.87 89.44 \pm 0.82
SelfTask-GNN 90.65 \pm 0.50 91.55 \pm 0.93 89.98 \pm 0.45 91.52 \pm 0.52 97.48 \pm 0.12 97.11 \pm 0.16
MGAE-GCN 93.52 \pm 0.23 94.46 \pm 0.24 93.29 \pm 0.49 93.81 \pm 0.40 98.45 \pm 0.03 98.22 \pm 0.05
MGAE-SAGE 95.05 \pm 0.76 94.50 \pm 0.86 94.85 \pm 0.49 94.68 \pm 0.34 97.38 \pm 0.17 97.11 \pm 0.19

Table 3: Link prediction performance on OGB datasets with a masking ratio 0.7, excepting ogbl-ppa with masking ratio 0.4. Best results are highlighted. "OOM" means out of memory on a GeForce RTX 3090 GPU device (24GB).

ogbl-ddi ogbl-collab ogbl-ppa
Hits@20 Hits@30 Hits@50 Hits@100 Hits@10 Hits@50
DGI 13.87 \pm 4.81 15.31 \pm 5.52 OOM OOM OOM OOM
GIC 10.56 \pm 6.77 13.29 \pm 7.44 OOM OOM OOM OOM
GCN 37.07 \pm 5.07 51.56 \pm 4.19 44.75 \pm 1.07 52.30 \pm 1.01 2.52 \pm 0.47 10.82 \pm 1.04
GraphSage 53.90 \pm 4.74 65.80 \pm 6.94 54.63 \pm 1.12 60.23 \pm 1.20 1.87 \pm 0.67 8.92 \pm 2.28
ARGE 20.43 \pm 4.66 23.86 \pm 6.53 28.39 \pm 2.51 37.66 \pm 1.98 0.41 \pm 0.26 3.83 \pm 0.84
SelfTask-GNN 42.26 \pm 4.85 50.67 \pm 6.02 33.03 \pm 5.11 42.22 \pm 7.14 0.65 \pm 0.30 4.26 \pm 1.27
MGAE-GCN 65.91 \pm 3.50 75.02 \pm 2.26 54.74 \pm 1.06 61.01 \pm 1.18 3.98 \pm 1.33 9.97 \pm 1.55
MGAE-SAGE 66.00 \pm 9.49 75.18 \pm 6.57 49.27 \pm 0.96 55.44 \pm 0.82 1.37 \pm 0.38 4.79 \pm 0.16

Planetoid datasets (Cora, CiteSeer, and PubMed), following [4], we randomly split all edges into three sets, i.e., the training set (85%), the validation set (5%), and the test set (10%), and evaluate the performance based on AUC and Average Precision (AP) scores. For OGB datasets (ogbl-ddi, ogbl-collab, and ogbl-ppa), we follow [24] to split the datasets into three sets according to the split ratios summarized in Table 1, and evaluate their performance using Hit rate (Hits@N), where $N$ is the number of nodes recalled. For our model, we consider two variants: MGAE-GCN and MGAE-SAGE meaning that we use the GCN and GraphSage architecture to implement our GNN encoder.

Table 2 and Table 3 report the averaged results of 10 runs over Planetoid and OGB datasets, respectively. Jointly comparing the results on two tables, we have the following major observations.

  • • Our model MGAE performs better than graph autoencoder based baselines (ARGE, GAE, and GraphSage) on six datasets in almost all cases. Specifically, MGAE achieves comparable results with the best graph autoencoder baselines on ogbl-collab and ogbl-ppa datasets, while significantly outperforms them on other four datasets with great margin. In six datasets, MGAE obtains new state-of-the-art performance on Cora, PubMed and ogb-ddi datasets.
  • • Compared with self-supervised learning baselines (DGI, GIC, and SelfTask-GNN), our model MGAE achieves substantial performance gains on five out of six datasets. In particular, MGAE only loses to GIC on CiteSeer dataset while outperforms on other five datasets. Besides, we also observe that the performance gap between our model and three self-supervised baselines increases on OGB datasets. This result shows that graph autoencoder architecture is more suitable for link prediction task on large-scale datasets.
  • • Another important observation is that none of our two variants MGAE-GCN and MGAE-SAGE can consistently outperforms the other in six datasets. For example, although GAE performs better than GraphSage on Cora and CiteSeer datasets, MGAE-SAGE outperforms MGAE-GCN on these two datasets. It indicates that the best GNN encoder for MGAE varies on different graph scenarios.Table 4: Node classification performance on all datasets based on 70% randomly edge masking.
Method Cora
ACC.
CiteSeer
ACC.
PubMed
ACC.
ogbn-arxiv
ACC.
ogbn-proteins
AUC
GCN 83.60 \pm 0.52 63.37 \pm 1.21 78.23 \pm 1.63 66.01 \pm 0.37 61.67 \pm 0.35
GraphSage 74.30 \pm 1.84 60.20 \pm 2.15 81.96 \pm 0.74 64.79 \pm 2.91 55.39 \pm 0.79
ARGVA 85.86 \pm 0.72 73.10 \pm 0.86 81.85 \pm 1.01 50.06 \pm 1.21 40.73 \pm 0.68
SelfTask-GNN 84.69 \pm 0.09 71.82 \pm 0.13 83.92 \pm 0.18 68.30 \pm 0.02 60.93 \pm 0.44
DGI 85.41 \pm 0.34 74.51 \pm 0.51 85.95 \pm 0.66 67.08 \pm 0.43 50.31 \pm 0.55
GIC 87.70 \pm 0.01 76.39 \pm 0.02 85.99 \pm 0.13 64.00 \pm 0.22 48.55 \pm 0.47
MGAE 86.15 \pm 0.25 74.60 \pm 0.06 86.91 \pm 0.28 72.02 \pm 0.05 63.33 \pm 0.12
  • Another promising property of MGAE we want to remark is that the results in Table 2 and 3 are obtained under a high masking ratio ( $\omega = 0.7$ ), excepting ogbl-ppa. That is, we only feed 30% original edges of the original graph to GNN encoder. Therefore, MGAE is naturally more efficient than traditional graph autoencoder models, since message propagation is the most time-consuming process of GNN models. Besides, it also indicates that a lot of node connections in graph data are redundant. This observation is consistent with the motivations for structure learning [31, 32] or graph sparsification [33, 34].

4.2 Node Classification

In addition to link prediction, to further answer Q1, we evaluate our model on node classification over Planetoid (Cora, CiteSeer, and PubMed) and OGB (ogbn-arxiv and ogbn-proteins) datasets. We randomly split 10% of all edges into validation set and use the remained 90% edges as training set. The validation set is used to tune hyperparameters. After the model is trained, we use the full set of edges as input to generate node representations for downstream evaluation. Specifically, we train a SVM classifier on the learned node representations of all models, and apply 5-fold cross-validation to estimate the performance. To avoid randomness, we repeat the process for 10 times and report the average result in terms of Accuracy (ACC.) for Core, CiteSeer, PubMed and ogbn-arxiv and AUC for ogbn-proteins following [26, 24]. We adopt the same baselines as link prediction settings, and report the result in Table 4. The major observations are made as follows.

  • Our model MGAE performs consistently better than three graph-autoencoder based baselines (GCN, GraphSage, and ARGVA) across five datasets. Given that MGAE can obtain at least comparable results with classical graph autoencoders in link prediction task, it indicates that the proposed MGAE is a powerful graph autoencoder alternative.
  • Compared with self-supervised learning based models (DGI, GIC, and SelfTask-GNN), our model loses to the best performance of them on two small datasets (Cora and CiteSeer). However, MGAE outperforms them on three large datasets (PubMed, ogbn-arxiv, and ogbn-proteins) by a large margin.
  • SelfTask-GNN is a closely related work to MGAE, since they all focus on randomly masking some edges as self-supervised training task. However, according to the results in Table 2, 3, and 4, SelfTask-GNN does not perform well compared to state-of-the-art baselines due to the limited decoder design and masking strategies. These results show that our MGAE model is the first work that can successfully adopt self-supervised learning to boost the performance of classical graph autoencoders.

4.3 Sensitivity Analysis

In this section, we conduct experiments to verify the impacts of masking ratios $\omega$ on our model MGAE (Q2). To provide a comprehensive evaluation of MGAE, we include SelfTask-GNN for comparison since it can be viewed as a variant of our model by replacing the cross-correlation decoder with a simple MLP network. Specifically, we vary $\omega$ from 0.1 to 0.9 with a step size 0.1. Figure 2 shows the results of MGAE-GCN and SelfTask-GNN on PubMed and ogbl-ddi datasets. Similar curves are observed on other datasets. From the figures, we have two major observations.Figure 2: Performance of MGAE vs. SelfTask-GNN on link prediction with respect to $\omega$ .

  • • The performance of MGAE first increases with the increasing of masking ratio $\omega$ until it reaches 0.7, then it drops when $\omega$ further increases. Besides, our MGAE model performs relatively stable when $\omega$ is around 0.5 to 0.7. These results indicate the robustness of our model under high masking ratios.
  • • MGAE performs consistently better than SelfTask-GNN on the two datasets across different $\omega$ values, except when $\omega < 0.2$ on PubMed dataset. Besides, the performance gap is more significant when $\omega$ is around 0.5 and 0.7. These observations verify the effectiveness of our proposed cross-correlation decoder for self-supervised graph autoencoder training.

5 Conclusion

We explore a novel masked graph autoencoder (MGAE) framework for unsupervised representation learning on graphs. It takes inspirations from self-supervised learning and can be viewed as a self-supervised graph autoencoder alternative. Different from vanilla graph autoencoder models, MGAE suggests to randomly mask a high proportion (i.e., 70%) of the original graph structure as input and reconstruct only the masked edges for model training. Specifically, we introduce two edge masking strategies: undirected masking and directed masking, to generate valid self-supervisory tasks. Besides, we also propose a tailored cross-correlation decoder to effectively recover missing edges by capturing the cross representations between its head and tail nodes. Extensive experimental results across multiple open graph benchmarks validate the superiority of MGAE against state-of-the-art baselines in terms of link prediction and node classification tasks.

References

  1. [1] William L Hamilton, Rex Ying, and Jure Leskovec. Representation learning on graphs: Methods and applications. arXiv preprint arXiv:1709.05584, 2017.
  2. [2] Fenhao Chen, Yun-Cheng Wang, Bin Wang, and C-C Jay Kuo. Graph representation learning: A survey. APSI Transactions on Signal and Information Processing, 9, 2020.
  3. [3] Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD international conference on Knowledge discovery and data mining, pages 701–710, 2014.
  4. [4] Thomas N Kipf and Max Welling. Variational graph auto-encoders. arXiv preprint arXiv:1611.07308, 2016.
  5. [5] Shirui Pan, Ruiqi Hu, Guodong Long, Jing Jiang, Lina Yao, and Chengqi Zhang. Adversarially regularized graph autoencoder for graph embedding. arXiv preprint arXiv:1802.04407, 2018.
  6. [6] Qiaoyu Tan, Ninghao Liu, and Xia Hu. Deep representation learning for social network analysis. Frontiers in big Data, 2:2, 2019.
  7. [7] Daokun Zhang, Jie Yin, Xingquan Zhu, and Chengqi Zhang. Network representation learning: A survey. IEEE transactions on Big Data, 6(1):3–28, 2018.- [8] Muhan Zhang, Pan Li, Yinglong Xia, Kai Wang, and Long Jin. Revisiting graph neural networks for link prediction. arXiv preprint arXiv:2010.16103, 2020.
  • [9] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
  • [10] William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Proceedings of the 31st International Conference on Neural Information Processing Systems, pages 1025–1035, 2017.
  • [11] Wei Jin, Tyler Derr, Haochen Liu, Yiqi Wang, Suhang Wang, Zitao Liu, and Jiliang Tang. Self-supervised learning on graphs: Deep insights and new direction. arXiv preprint arXiv:2006.10141, 2020.
  • [12] Dongkuan Xu, Wei Cheng, Dongsheng Luo, Haifeng Chen, and Xiang Zhang. Infogcl: Information-aware graph contrastive learning. Advances in Neural Information Processing Systems, 34, 2021.
  • [13] Petar Veličković, William Fedus, William L Hamilton, Pietro Liò, Yoshua Bengio, and R Devon Hjelm. Deep graph infomax. arXiv preprint arXiv:1809.10341, 2018.
  • [14] Costas Mavromatis and George Karypis. Graph infoclust: Maximizing coarse-grain mutual information in graphs. In Pacific-Asia Conference on Knowledge Discovery and Data Mining, pages 541–553. Springer, 2021.
  • [15] Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. arXiv preprint arXiv:1906.00910, 2019.
  • [16] Xiao Liu, Fanjin Zhang, Zhenyu Hou, Li Mian, Zhaoyu Wang, Jing Zhang, and Jie Tang. Self-supervised learning: Generative or contrastive. IEEE Transactions on Knowledge and Data Engineering, 2021.
  • [17] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
  • [18] Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, and Ross Girshick. Masked autoencoders are scalable vision learners. arXiv preprint arXiv:2111.06377, 2021.
  • [19] Guillaume Salha, Romain Hennequin, Viet Anh Tran, and Michalis Vazirgiannis. A degeneracy framework for scalable graph autoencoders. arXiv preprint arXiv:1902.08813, 2019.
  • [20] Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In International conference on machine learning, pages 1263–1272. PMLR, 2017.
  • [21] Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
  • [22] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017.
  • [23] Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying graph convolutional networks. In International conference on machine learning, pages 6861–6871. PMLR, 2019.
  • [24] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. arXiv preprint arXiv:2005.00687, 2020.
  • [25] Zhen Yang, Ming Ding, Chang Zhou, Hongxia Yang, Jingren Zhou, and Jie Tang. Understanding negative sampling in graph representation learning. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1666–1676, 2020.- [26] Weihua Hu, Matthias Fey, Hongyu Ren, Maho Nakata, Yuxiao Dong, and Jure Leskovec. Ogb-lsc: A large-scale challenge for machine learning on graphs. arXiv preprint arXiv:2103.09430, 2021.
  • [27] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Gallagher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93–93, 2008.
  • [28] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32:8026–8037, 2019.
  • [29] Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric. arXiv preprint arXiv:1903.02428, 2019.
  • [30] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
  • [31] Luca Franceschi, Mathias Niepert, Massimiliano Pontil, and Xiao He. Learning discrete structures for graph neural networks. In International conference on machine learning, pages 1972–1982. PMLR, 2019.
  • [32] Wei Jin, Yao Ma, Xiaorui Liu, Xianfeng Tang, Suhang Wang, and Jiliang Tang. Graph structure learning for robust graph neural networks. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 66–74, 2020.
  • [33] Cheng Zheng, Bo Zong, Wei Cheng, Dongjin Song, Jingchao Ni, Wenchao Yu, Haifeng Chen, and Wei Wang. Robust graph representation learning via neural sparsification. In International Conference on Machine Learning, pages 11458–11468. PMLR, 2020.
  • [34] Guihong Wan and Haim Schweitzer. Edge sparsification for graphs via meta-learning. In 2021 IEEE 37th International Conference on Data Engineering (ICDE), pages 2733–2738. IEEE, 2021.

Xet Storage Details

Size:
42.1 kB
·
Xet hash:
05ffcc2eaeef6c22ca35cbe242d28b52c57d7a159e95a8f6bc6981f9cab8df90

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.