Title: INFOGRAPH: UNSUPERVISED AND SEMI-SUPERVISED GRAPH-LEVEL REPRESENTATION LEARNING VIA MU-TUAL INFORMATION MAXIMIZATION

Abstract: This paper studies learning the representations of whole graphs in both unsupervised and semi-supervised scenarios. Graph-level representations are critical in a variety of real-world applications such as predicting the properties of molecules and community analysis in social networks. Traditional graph kernel based methods are simple, yet effective for obtaining fixed-length representations for graphs but they suffer from poor generalization due to hand-crafted designs. There are also some recent methods based on language models (e.g. graph2vec) but they tend to only consider certain substructures (e.g. subtrees) as graph representatives. Inspired by recent progress of unsupervised representation learning, in this paper we proposed a novel method called InfoGraph for learning graph-level representations. We maximize the mutual information between the graph-level representation and the representations of substructures of different scales (e.g., nodes, edges, triangles). By doing so, the graph-level representations encode aspects of the data that are shared across different scales of substructures. Furthermore, we further propose InfoGraph*, an extension of InfoGraph for semi-supervised scenarios. InfoGraph* maximizes the mutual information between unsupervised graph representations learned by InfoGraph and the representations learned by existing supervised methods. As a result, the supervised encoder learns from unlabeled data while preserving the latent semantic space favored by the current supervised task. Experimental results on the tasks of graph classification and molecular property prediction show that InfoGraph is superior to state-of-the-art baselines and InfoGraph* can achieve performance competitive with state-of-the-art semi-supervised models.

1. INTRODUCTION:

Graphs have proven to be an effective way to represent very diverse types of data including social networks Newman & Girvan (2004) , biological reaction networksPavlopoulos et al. (2011) , proteinprotein interactions Krogan et al. (2006) , the quantum mechanical properties of individual molecules Xie & Grossman (2018) ; Jin et al. (2018) , and many more. Graphs provide explicit information about the coupling between individual units in a larger part along with a well defined framework for assigning properties to the nodes and the edges connecting them. There has been a significant amount of previous work done studying many aspects of graphs including link prediction Gao et al. (2011) ; Wang et al. (2011) and node prediction Blei et al. (2003) . Due to its flexibility, graph-like data structures can capture rich information which is critical in many applications.

At the lowest level, much work has been done on learning node representations-low-dimensional vector embeddings of individual nodes Perozzi et al. (2014) ; Tang et al. (2015) ; Grover & Leskovec (2016) . Another field that has attracted a large amount of attention recently is learning representations of entire graphs. Such a problem is critical in a variety of applications such as predicting the properties of molecular graphs in both drug discovery and material science Chen et al. (2019b; a) . There has been some recent progress based on neural message passing algorithms Gilmer et al. (2017) ; Xie & Grossman (2018) , which learn the representations of entire graphs in a supervised way. These methods have been shown achieving state-of-the-art results on a variety of different prediction tasks Kipf et al. (2018) ; Xie & Grossman (2018) ; Gilmer et al. (2017) ; Chen et al. (2019a) .

However, one of the most difficult obstacles for supervised learning on graphs is that it is often very costly or even impossible to collect annotated labels. For example, in the chemical domain labels are typically produced with a costly Density Functional Theory (DFT) calculation. One option is to use semi-supervised methods which combine a small handful of labels with a larger, unlabeled, dataset. In real-world applications, partially labeled datasets are common, making tools that are able to efficiently utilize the present labels particularly useful.

Coming up with methods that are able to learn unsupervised representations of an entire graph, as opposed to nodes, is an important step in working with unlabeled or partially labeled graphs Narayanan et al. (2017) ; Hu et al. (2019) ; Nguyen et al. (2017) . For example, there exists work that explores pre-training techniques for graphs to improve generalization Hu et al. (2019) . Another common approach to unsupervised representation learning on graphs is through graph kernels Pržulj (2007) ; Kashima et al. (2003) ; Orsini et al. (2015) . However, many of these methods do not provide explicit graph embeddings which many machine learning algorithms operate on. Furthermore, the handcrafted features of graph kernels lead to high dimensional, sparse or non-smooth representations and thus result in poor generalization performance, especially on large datasets Narayanan et al. (2017) .

Unsupervised learning of latent representations is also an important problem in other domains, such as image generation Kingma & Welling (2013); Kim & Mnih (2018) and natural language processing Mikolov et al. (2013a) . A recent work introduced Deep Infomax, a method that maximizes the mutual information content between the input data and the learned representation Hjelm et al. (2018) . This method outperforms other methods on many unsupervised learning tasks. Motivated by Deep InfoMax Hjelm et al. (2018) , we aim to use mutual information maximization for unsupervised representation learning on the entire graph. Specifically, our objective is to maximize the mutual information between the representations of entire graphs and the representations of substructures of different granularity. We name our model InfoGraph.

We also propose a semi-supervised learning model which we name InfoGraph*. We employ a student-teacher framework similar to Mean-Teacher method Tarvainen & Valpola (2017) . We maximize the mutual information between intermediate representations of the two models so that the student model learns from the teacher model. The student model is trained on the labeled data using a supervised objective function while the teacher model is trained on unlabeled data with InfoGraph. Using InfoGraph*, we achieve performance competitive with state-of-the-art methods on molecular property prediction.

We summarize our contributions as follows:

• We propose InfoGraph, an unsupervised graph representation learning method based on Deep InfoMax (DIM) Hjelm et al. (2018) . • We show that InfoGraph can be extended to semi-supervised prediction tasks on graphs.

• We empirically show that InfoGraph surpasses state-of-the-art performance on graph classification tasks with unsupervised learning and obtains performance comparable with state-ofart methods on molecular property prediction tasks using semi-supervised learning.

2. RELATED WORK:

Representation learning for graphs has mainly dealt with supervised learning tasks. Recently, however, researchers have proposed algorithms that learn graph-level representations in an unsupervised manner Narayanan et al. (2017) ; Adhikari et al. (2018) .

Concurrently to this work, information maximizing graph neural networks (IGNN) was introduced which uses mutual information maximization between edge states and transform parameters to achieve state-of-the-art predictions on a variety of supervised molecule property prediction tasks Chen et al. (2019b) . In this work, our focus is on unsupervised and semi-supervised scenarios.

Graph Kernels. Constructing graph kernels is a common unsupervised task in learning graph representations. These kernels are typically evaluated on node classification tasks. In graph kernels, a graph G is decomposed into (possibly different) {G s } sub-structures. The graph kernel K(G 1 , G 2 ) is defined based on the frequency of each sub-structure appearing in G 1 and G 2 respectively. Namely,

K(G 1 , G 2 ) = f Gs 1 , f Gs 2

, where f Gs is the vector containing frequencies of {G s } sub-structures, and , is an inner product in an appropriately normalized vector space. Much work has been devoted to deciding which sub-structures are more suitable than others (refer to appendix A.1). Instead of defining hand crafted similarity measures between substructures, InfoGraph adopts a more principled metric -mutual information.

Contrastive methods. An important approach for unsupervised representation learning is to train an encoder to be contrastive between representations that capture statistical dependencies of interest and those that do not. For example, a contrastive approach may employ a scoring function, training the encoder to increase the score on "real" input (a.k.a, positive examples) and decrease the score on "fake" input (a.k.a., negative samples). For more detailed discussion, refer to appendix A.2.

Deep Graph InfoMax (DGI) Veličković et al. (2018) also belongs to this category, which aims to train a node encoder that maximizes mutual information between node representations and the pooled global graph representation. Although we built upon a similar methodology, our aim is different than theirs as our goal is to obtain embeddings at the whole graph level for unsupervised and semisupervised learning whereas DGI only evaluates node level embeddings. In order to differentiate our method with Deep Graph Infomax (Veličković et al. (2018) ), we term our model InfoGraph.

Semi-supervised Learning. A comprehensive overview of semi-supervised learning (SSL) methods is out of the scope of this paper. We refer readers to Appendix B for a short overview or Zhu et al. (2003) ; Chapelle et al. (2006) ; Oliver et al. (2018) for more comprehensive discussions. Here, we discuss a state-of-the-art method applicable for regression tasks -Mean Teacher Tarvainen & Valpola (2017) .Mean Teacher adds a loss term which encourages the distance between the original network's output and the teacher's output to be small. The teacher's predictions are made using an exponential moving average of parameters from previous training steps. Inspired by the "studentteacher" framework in Mean Teacher model, our semi-supervised model (InfoGraph*) deploys two separate encoders but instead of explicitly encouraging the output of the student model to be similar to the teacher model's output, we enable the student model to learn from the teacher model by maximizing mutual information between intermediate representations learned by two models.

3. METHODOLOGY:

Most recent work on graphs focus on supervised learning tasks or learning node representations. However, many graph analytic tasks such as graph classification, regression, and clustering require representing entire graphs as fixed-length feature vectors. Though graph-level representations can be obtained through the node-level representations implicitly, explicitly extracting the graph can be more straightforward and optimal for graph-oriented tasks.

Another scenario that is important, yet attracts comparatively less attention in the graph related literature is semi-supervised learning. One of the biggest challenges in prediction tasks in biology Yan 2017) is the extreme scarcity of labeled data. Therefore, semi-supervised learning, in which a large number of unlabeled samples are incorporated with a small number of labeled samples to enhance accuracy of models, will play a key role in these areas.

In this section, we first formulate an unsupervised whole graph representation learning problem and a semi-supervised prediction task on graphs. Then, we present our method to learn graph-level representations. Afterwards we present our proposed model for the semi-supervised learning scenario. For the global representation of the blue graph, there will be 7 input pairs to the discriminator and same for the red graph. Thus, the discriminator will take 14 (global representation, patch representation) pairs as input in this case.

3.1. PROBLEM DEFINITION:

Unsupervised Graph Representation Learning. Given a set of graphs G = {G 1 , G 2 , ...} and a positive integer δ (the expected embedding size), our goal is to learn a δ-dimensional distributed representation of every graph G i ∈ G. We denote the number of nodes in G i as |G i |. We denote the matrix of representations of all graphs as Φ ∈ R |G|×δ .

Semi-supervied Graph Prediction Tasks. Given a set of labeled graphs 

G L = {G 1 , • • • , G |G L | } with corresponding output {o 1 , • • • , o |G L | }, and a set of unlabeled samples G U = {G |G L |+1 , • • • , G |G L |+|G U | },

3.2. INFOGRAPH:

We focus on graph neural networks (GNNs)-a flexible class of embedding architectures which generate node representations by repeated aggregation over local node neighborhoods. The representations of nodes are learned by aggregating the features of their neighborhood nodes, so we refer to these as patch representations. GNNs utilize a READOUT function to summarize all the obtained patch representations into a fixed length graph-level representation.

Formally, the k-th layer of a GNN is

EQUATION

where h

(k)

v is the feature vector of node v at the k-th iteration/layer (or patch representation centered at node i), e uv is the feature vector of the edge between u and v, and N (v) are neighborhoods to node v. h (0) v is often initialized as node features. READOUT can be a simple permutation invariant function such as averaging or a more sophisticated graph-level pooling function Ying et al. (2018) ; Zhang et al. (2018) .

We seek to obtain graph representations by maximizing the mutual information between graph-level and patch-level representations. By doing so, the graph representations can learn to encode aspects of the data that are shared across all substructures. Assume that we are given a set of training samples G := {G j ∈ G} N j=1 with empirical probability distribution P on the input space. Let φ denote the set of parameters of a K-layer graph neural network. After the first k layers of the graph neural network, the input graph will be encoded into a set of patch representations {h

(k) i } N i=1 .

Next, we summarize feature vectors at all depths of the graph neural network into a single feature vector that captures patch information at different scales centered at every node. Inspired by Xu et al. (2018b) , we use concatenation. That is,

h i φ = CONCAT({h (k) i } K k=1 ) (2) H φ (G) = READOUT({h i φ } N i=1 ) (3)

where h i φ is the summarized patch representation centered at node i and H φ (G) is the global representation after applying READOUT. Note that here we slightly abuse the notation of h.

We define our mutual information (MI) estimator on global/local pairs, maximizing the estimated MI over the given dataset G := {G j ∈ G} N j=1 :

EQUATION

I φ,ψ is the mutual information estimator modeled by discriminator T ψ and parameterized by a neural network with parameters ψ. We use the Jensen-Shannon MI estimator (following the formulation of Nowozin et al. ( 2016)),

I φ,ψ (h i φ (G); H φ (G)) := E P [-sp(-T φ,ψ ( h i φ (x), H φ (x)))] -E P× P[sp(T φ,ψ ( h i φ (x ), H φ (x)))] (5)

where x is an input sample, x (negative sample) is an input sampled from P = P, a distribution identical to the empirical probability distribution of the input space, and sp(z) = log(1 + e z ) is the softplus function. In practice, we generate negative samples using all possible combinations of global and local patch representations across all graph instances in a batch.

Since H φ (G) is encouraged to have high MI with patches that contain information at all scales, this favours encoding aspects of the data that are shared across patches and aspects that are shared across scales. The algorithm is illustrated in Fig. 1 .

It should be noted that our model is similar to Deep Graph Infomax (DGI) Veličković et al. (2018) , a model proposed for learning unsupervised node embeddings. However, there are important design differences due to the different problems that we are focusing on. First, in DGI they use random sampling to obtain negative samples due to the fact that they are mainly focusing on learning node embeddings on a graph. However, contrastive methods require a large number of negative samples to be competitive Hjelm et al. (2018) , thus the use of batch-wise generation of negative samples is crucial as we are trying to learn graph embeddings given many graph instances. Second, the choice of graph convolution encoders is also crucial. We use GIN Xu et al. (2018a) while DGI uses GCN Kipf & Welling (2016) as GIN provides a better inductive bias for graph level applications. Graph neural network designs should be considered carefully so that graph representations can be discriminative towards other graph instances. For example, we use sum over mean for READOUT and that can provide important information regarding the size of the graph.

3.3. SEMI-SUPERVISED INFOGRAPH:

Based on the previous unsupervised model, a straightforward way to do semi-supervised property prediction on graphs is to combine the purely supervised loss and the unsupervised objective function which acts as a regularization term. In doing so, the model is trained to predict properties for the labeled dataset while keeping a rich discriminative intermediate representation learned from both the labeled and the unlabeled dataset. That is, we try to minimize the following objective function:

EQUATION

where L supervised (y φ (G i ), o i ) is defined as the loss function of graph G i that measures the discrepancy between the classifier output y φ (G i ) and the true output There are two separate encoders with the same architecture, one for the supervised task and the other trained using both labeled and unlabeled data with an unsupervised objective (eq. equation 4). We encourage the mutual information of the two representations learned by the two encoders to be high by deploying a discriminator that takes a pair of representation as input and determines whether they are from the same input graph.

o i . L unsupervised (h φ (G j ); H φ (G j ) is the

unsupervised InfoGraph loss term as defined in eq. equation 4 that can be optimized using both labeled and unlabeled data. The hyper-parameter λ controls the relative weight between the purely supervised and the unsupervised loss. The intuition behind this is that the model will benefit from learning a good representation from the large amount of unlabeled data while learning to predict the corresponding supervised label.

However, supervised tasks and unsupervised tasks may favor different information or a different semantic space. Simply combining the two loss functions using the same encoder may lead to "negative transfer"1 (Pan & Yang, 2009; Rosenstein et al., 2005) . We propose a simple way to alleviate this problem: we deploy two encoder models: the encoder on the labelled data (supervised encoder) and the encoder on the unlabelled data (unsupervised encoder). For transferring the learned representations from the unsupervised encoder to the supervised encoder, we define a loss term that encourages the representations learned by the two encoders to have high mutual information, at all levels of representations (third term of Eq. 8). Formally, let ϕ denote the set of parameters of another K-layered graph neural network, identical to the one parameterized by φ, and let λ be a tunable hyper-parameter, H k φ (G), H k ϕ (G) be global encoder representations of the graph G at encoder layer k, then total loss function can be defined as follows:

EQUATION

)

Notice that this formulation can be seen as a special instance of the student-teacher framework. However, unlike the recent student-teacher methods for semi-supervised learning (Laine & Aila, 2016; Tarvainen & Valpola, 2017; Verma et al., 2019b) , which enforce the predictions of the student model to be similar to the teacher model, we enforce the transfer of knowledge from the teacher model to the student model via mutual-information maximization at various levels of representations.

In practice, to reduce the computation overhead introduced by the third term of Eq 8, instead of enforcing the mutual-information maximization over all the layers of the encoders, at each training update, we enforce mutual-information maximization on a randomly chosen layer of the encoder (Verma et al., 2019a) .

In our semi-supervised experiments, we refer to the naive method using the objective function given in eq. equation 6 as InfoGraph. We refer to the method that uses two separate encoders and employ the objective function given in eq. equation 8 as InfoGraph*. InfoGraph* is fully summarized in Figure 3 .

4. EXPERIMENTS:

We evaluate the effectiveness of the graph-level representation learned by InfoGraph on downstream graph classification tasks and on semi-supervised molecular property prediction tasks.

4.1. DATASETS:

For graph classification, we conduct experiments on 6 well-known benchmark datasets: MUTAG, PTC, REDDIT-BINARY, REDDIT-MULTI-5K, IMDB-BINARY, and IMDB-MULTI (Yanardag & Vishwanathan (2015) ). For semi-supervised learning tasks, we use the publicly available QM9 dataset Ramakrishnan et al. (2014) . Additional details of the datasets can be found in Appendix B.

4.2. BASELINES:

For graph classification, we used 6 state-of-the-art graph kernels for comparison: Random Walk (RW) Gärtner et al. (2003) For semi-supervised tasks, aside from comparing the results with the fully supervised results, we also compare our results with a state-of-the-art semi-supervised method: Mean Teachers Tarvainen & Valpola (2017) .

4.3. EXPERIMENT CONFIGURATION:

For graph classification tasks, we adopt the same procedure of previous works Niepert et al. (2016) ; Verma & Zhang (2017) ; Yanardag & Vishwanathan (2015) ; Zhang et al. (2018) to make a fair comparison and used 10-fold cross validation accuracy to report the classification performance. Experiments are repeated 5 times. We report results from previous papers with the same experimental setup if available. If results are not previously reported, we implement them and conduct a hyperparameter search according to the original paper. For node2vec Grover & Leskovec (2016) , we took the result from Narayanan et al. ( 2017) but we did not run it on all datasets as the implementation details are not clear in the paper. For Deep Graph Kernels, we report the best result out of Deep WL Kernels, Deep GK Kernels, and Deep RW Kernels. For sub2vec, we report the best result out of its two variants: sub2vec-N and sub2vec-S. For all methods, the embedding dimension is set to 512 and parameters of downstream classifiers are independently tuned using cross validation on training folds of data. The best average classification accuracy is reported for each method. The classification accuracies are computed using LIBSVM Chang & Lin (2011) , and the C parameter was selected from {10 -3 , 10 -2 , . . . , 10 2 , 10 3 }.

The QM9 dataset has 130462 molecules in it. We adopt similar experimental settings as traditional semi-supervised methods Tarvainen & Valpola (2017) ; Laine & Aila (2016) ; Miyato et al. (2018) .

We randomly chose 5000 samples as labeled samples for training and another 10000 as validation samples, 10000 samples for testing, and use the rest as unlabeled training samples. Note that we use the exact same split when running the supervised model and the semi-supervised model. We use the validation set to do model selection and we report scores on the test set. All targets were normalized The bottom half shows the error ratio (with respect to supervised result) of the semi-supervised models using the same underlying model. Lower scores are better and values less than 1.0 indicate better performance than the supervised baseline.

to have mean 0 and variance 1. We minimize the mean squared error between the model output and the target, although we evaluate mean absolute error.

4.4. MODEL CONFIGURATION:

For the unsupervised experiments, we use the Graph Isomorphism Network (GIN) Xu et al. (2018a) .

For the semi-supervised experiments, we adopt the same model as in Gilmer et al. (2017) (enn-s2s) .

As recommended in Oliver et al. (2018) , we use the exact same underlying model architecture when comparing semi-supervised learning approaches as our goal is not to produce state-of-the-art results, but instead to provide a rigorous comparative analysis in a common framework. In both scenarios, models were trained using SGD with the Adam optimizer. We use Pytorch Paszke et al. (2017) and the Pytorch Geometric Fey & Lenssen (2019) libraries for all our experiments. For detailed hyper-parameter settings and architecture detail of the discriminator, see Appendix C.

5. RESULTS:

The results of evaluating unsupervised graph level representations using downstream graph classification tasks are presented in Table 1 . We show results from six methods including three state-of-the-art graph kernel methods: WL Shervashidze et al. (2011) , DGK Yanardag & Vishwanathan (2015) , and MLG Kondor & Pan (2016) . While these kernel methods perform well on individual datasets, none of them are competitive across all of the datasets. Additionally, MLG suffers from a long run time and take more than 24 hours to run on the two larger benchmark datasets. We find that InfoGraph outperforms all of these baselines on 4 out of 6 of the datasets. In the other 2 datasets, InfoGraph still has very competitive performance.

The results of the semi-supervised learning experiments on the molecular property prediction task are presented in Table 2 . We observe that by simply combining the supervised objective with the unsupervised infomax objective (InfoGraph) obtains better performance compared to the purely supervised models on 7 out of 12 of the targets. However, in 1 out of 12 targets it does not obtain better performance and in 4 out of 12 targets, it results in poorer performance. This "negative transfer" effect may be caused by the fact that the supervised objective and the unsupervised objective favor different information or different latent semantic space. This effect is alleviated with InfoGraph*, our modified version of InfoGraph for semi-supervised learning. InfoGraph* improves over the supervised model in all the 12 targets. InfoGraph* obtains the best result on 11 targets while the Mean Teacher method obtains the best results on 2 targets (with one overlap). However, the Mean Teacher model yields worse performance on 2 targets when compared to the supervised result.

6. CONCLUSION AND FUTURE WORK:

In this paper, we propose InfoGraph to learn unsupervised graph-level representations and InfoGraph* for semi-supervised learning. We conduct experiments on graph classification and molecular property prediction tasks to evaluate these two methods. Experimental results show that InfoGraph and InfoGraph* are both very competitive with state-of-the-art methods. There are many research works on semi-supervised learning on image data, but few of them focus on semi-supervised learning for graph structured data. In the future, we aim to explore semi-supervised frameworks designed specifically for graphs.

Mean Teacher: A difficulty with the Π-model approach is that it relies on a potentially unstable "target" prediction, namely the second stochastic network prediction which can rapidly change over the course of training. As a result, Tarvainen & Valpola (2017) proposed to obtain a more stable target output for unlabeled data by setting the target to predictions made using an exponential moving average of parameters from previous training steps.

C DATASETS:

C.1 GRAPH CLASSIFICATION DATASETS MUTAG contains 188 mutagenic aromatic and heteroaromatic nitro compounds with 7 different discrete labels. PTC is a dataset of 344 different chemical compounds that have been tested for carcinogenicity in male and female rats. This dataset has 19 discrete labels. IMDB-BINARY and IMDB-MULTI are movie collaboration datasets. Each graph corresponds to an ego-network for each actor/actress, where nodes correspond to actors/actresses and an edge is drawn between two actors/actresses if they appear in the same movie. Each graph is derived from a pre-specified genre of movies, and the task is to classify the genre graph it is derived from. REDDIT-BINARY and REDDIT-MULTI5K are balanced datasets where each graph corresponds to an online discussion thread and nodes correspond to users. An edge was drawn between two nodes if at least one of them responded to another's comment. The task is to classify each graph to the community or subreddit that it belongs to.

C.2 QM9:

All molecules in the dataset consist of Hydrogen (H), Carbon (C), Oxygen (O), Nitrogen (N), and Flourine (F) atoms and contain up to 9 non-Hydrogen atoms. In all, this results in about 134,000 drug-like organic molecules that span a wide range of chemical compositions and properties. A total of 12 interesting and fundamental chemical properties are pre-computed for each molecule. For a detailed description of the properties in the QM9 dataset, see section 10.2 of Gilmer et al. (2017) .

D MODEL CONFIGURATION:

For the unsupervised experiments, we use the Graph Isomorphism Network (GIN) Xu et al. (2018a) . GNN layers are chosen from {4, 8, 12}. Initial learning rate is chosen from the set {10 -2 , 10 -3 , 10 -4 }. The number of epochs are chosen from {10, 20, 100}. The batch size is set to 128.

For the semi-supervised experiments, the number of set2set computations is set to 3. Model were trained with an initial learning rate 0.001 for 500 epochs with a batch size 20. For the supervised case, the weight decay is chosen from {0, 10 -3 , 10 -4 }. For InfoGraph and InfoGraph*, λ is chosen from {10 -3 , 10 -4 , 10 -5 }.

The discriminator scores global-patch representation pairs by passing two representations to different non-linear transformations and then takes the dot product of the two transformed representations. Both non-linear transformations are parameterized by 3-layered feed-forward neural networks with jumping connections. Following each linear layer is a ReLU activation function.

:

We slightly abuse this term in this paper as it usually refers to transferring knowledge from a less related source and thus may hurt the target performance.

Figures and Tables:

et al. (2017); Yang et al. (2014) or molecular machine learning Duvenaud et al. (2015); Gilmer et al. (2017); Jia & Liang (

Figure 1: Illustration of InfoGraph. N.A. denotes neighborhood aggregation. An input graph is encoded into a feature map by graph convolutions and jumping concatenation. The discriminator takes a (global representation, patch representation) pair as input and decides whether they are from the same graph.InfoGraph uses a batch-wise fashion to generate all possible positive and negative samples. For example, consider the toy example with 2 input graphs in the batch and 7 nodes (or patch representations) in total. For the global representation of the blue graph, there will be 7 input pairs to the discriminator and same for the red graph. Thus, the discriminator will take 14 (global representation, patch representation) pairs as input in this case.

Figure 2: Illustration of the semi-supervised version of InfoGraph (InfoGraph*).There are two separate encoders with the same architecture, one for the supervised task and the other trained using both labeled and unlabeled data with an unsupervised objective (eq. equation 4). We encourage the mutual information of the two representations learned by the two encoders to be high by deploying a discriminator that takes a pair of representation as input and determines whether they are from the same input graph.

Classification accuracy on 6 datasets. The result in bold indicates the best reported classification accuracy. The top half of the table compares results with various graph kernel approaches while bottom half compares results with other state-of-the-art unsupervised graph representation learning methods. '> 1 day' represents that the computation exceeds 24 hours. 'OMR' is out of memory error.

Table content: <table><tr><td>Dataset</td><td/><td>MUTAG</td><td colspan="2">PTC-MR</td><td>RDT-B</td><td/><td colspan="2">RDT-M5K</td><td colspan="2">IMDB-B</td><td colspan="2">IMDB-M</td></tr><tr><td>(No. Graphs)</td><td/><td>188</td><td>344</td><td/><td>2000</td><td/><td>4999</td><td/><td>1000</td><td/><td colspan="2">1500</td></tr><tr><td>(No. classes)</td><td/><td>2</td><td>2</td><td/><td>2</td><td/><td>5</td><td/><td>2</td><td/><td>3</td><td/></tr><tr><td>(Avg. Graph Size)</td><td/><td>17.93</td><td>14.29</td><td/><td>429.63</td><td/><td>508.52</td><td/><td colspan="2">19.77</td><td colspan="2">13.00</td></tr><tr><td/><td/><td/><td/><td/><td>Graph Kernels</td><td/><td/><td/><td/><td/><td/><td/></tr><tr><td>RW</td><td colspan="2">83.72 ± 1.50</td><td colspan="2">57.85 ± 1.30</td><td>OMR</td><td/><td>OMR</td><td/><td colspan="2">50.68 ± 0.26</td><td colspan="2">34.65 ± 0.19</td></tr><tr><td>SP</td><td colspan="2">85.22 ± 2.43</td><td colspan="2">58.24 ± 2.44</td><td colspan="2">64.11 ± 0.14</td><td colspan="2">39.55 ± 0.22</td><td colspan="2">55.60 ± 0.22</td><td colspan="2">37.99 ± 0.30</td></tr><tr><td>GK</td><td colspan="2">81.66 ± 2.11</td><td colspan="2">57.26 ± 1.41</td><td colspan="2">77.34 ± 0.18</td><td colspan="2">41.01 ± 0.17</td><td colspan="2">65.87 ± 0.98</td><td colspan="2">43.89 ± 0.38</td></tr><tr><td>WL</td><td colspan="2">80.72 ± 3.00</td><td colspan="2">57.97 ± 0.49</td><td colspan="2">68.82 ± 0.41</td><td colspan="2">46.06 ± 0.21</td><td colspan="2">72.30 ± 3.44</td><td colspan="2">46.95 ± 0.46</td></tr><tr><td>DGK</td><td colspan="2">87.44 ± 2.72</td><td colspan="2">60.08 ± 2.55</td><td colspan="2">78.04 ± 0.39</td><td colspan="2">41.27 ± 0.18</td><td colspan="2">66.96 ± 0.56</td><td colspan="2">44.55 ± 0.52</td></tr><tr><td>MLG</td><td colspan="2">87.94 ± 1.61</td><td colspan="2">63.26 ± 1.48</td><td>&gt; 1 Day</td><td/><td>&gt; 1 Day</td><td/><td colspan="2">66.55 ± 0.25</td><td colspan="2">41.17 ± 0.03</td></tr><tr><td/><td/><td/><td colspan="4">Other Unsupervised Methods</td><td/><td/><td/><td/><td/><td/></tr><tr><td>node2vec</td><td colspan="2">72.63 ± 10.20</td><td colspan="2">58.58 ± 8.00</td><td>-</td><td/><td>-</td><td/><td>-</td><td/><td>-</td><td/></tr><tr><td>sub2vec</td><td colspan="2">61.05 ± 15.80</td><td colspan="2">59.99 ± 6.38</td><td colspan="2">71.48 ± 0.41</td><td colspan="2">36.68 ± 0.42</td><td colspan="2">55.26 ± 1.54</td><td colspan="2">36.67 ± 0.83</td></tr><tr><td>graph2vec</td><td colspan="2">83.15 ± 9.25</td><td colspan="2">60.17 ± 6.86</td><td colspan="2">75.78 ± 1.03</td><td colspan="2">47.86 ± 0.26</td><td colspan="2">71.1 ± 0.54</td><td colspan="2">50.44 ± 0.87</td></tr><tr><td>InfoGraph</td><td colspan="2">89.01 ± 1.13</td><td colspan="2">61.65 ± 1.43</td><td colspan="2">82.50 ± 1.42</td><td colspan="2">53.46 ± 1.03</td><td colspan="2">73.03 ± 0.87</td><td colspan="2">49.69 ± 0.53</td></tr><tr><td>Target</td><td colspan="5">Mu (0) Alpha (1) HOMO (2) LUMO (3) Gap (4)</td><td>R2 (5)</td><td colspan="2">ZPVE(6) U0 (7)</td><td>U (8)</td><td>H (9)</td><td colspan="2">G(10) Cv (11)</td></tr><tr><td>MAE</td><td>0.3201</td><td>0.5792</td><td>0.0060</td><td>0.0062</td><td colspan="2">0.0091 10.0469</td><td>0.0007</td><td colspan="5">0.3204 0.2934 0.2722 0.2948 0.2368</td></tr><tr><td>Semi-Supervised</td><td/><td/><td/><td/><td colspan="3">Error Ratio</td><td/><td/><td/><td/><td/></tr><tr><td>Mean-Teachers</td><td>1.09</td><td>1.00</td><td>0.99</td><td>1.00</td><td>0.97</td><td>0.52</td><td>0.77</td><td>1.16</td><td>0.93</td><td>0.79</td><td>0.86</td><td>0.86</td></tr><tr><td>InfoGraph</td><td>1.02</td><td>0.97</td><td>1.02</td><td>0.99</td><td>1.01</td><td>0.71</td><td>0.96</td><td>0.85</td><td>0.93</td><td>0.93</td><td>0.99</td><td>1.00</td></tr><tr><td>InfoGraph*</td><td>0.99</td><td>0.94</td><td>0.99</td><td>0.99</td><td>0.98</td><td>0.49</td><td>0.52</td><td>0.44</td><td>0.58</td><td>0.57</td><td>0.54</td><td>0.83</td></tr></table>

Results of semi-supervised experiments on QM9 dataset. The result in bold indicates the best performance. The top half of the table shows the mean absolute error (MAE) of the supervised model.

Table content: <table/>

Peer review (iclr2020):
The paper presents a new graph representation learning method for the whole graph under both unsupervised and semi-supervised setting. Different from existing ones using graph kernel, or graph2vec, the proposed InfoGraph is able to extract graph-level representation with fixed-length features that are generalized well. Basically, InfoGraph is parameterized by graph neural networks, but guided by mutual information loss. Experiments on both unsupervised and semi-supervised experiments on popular benchmarks demonstrate the effectiveness of InfoGraph and InfoGraph* * The paper is well written and easy to follow, and the research problem is of great value in different fields. * In general, the novelty of this paper is ok, but it’s partially based on Deep InfoMax (DIM) published recently. This may undermine the novelty of this paper somehow. * Authors change the fonts in equation from italic to non-italic in Eq. (6), please make sure to use one format throughout the paper. * Why Jensen-Shannon MI estimator is used in Eq. (5) instead of other estimators for MI, and any more explanations or motivations here? * Eq. (7) and (8) in facts jointly optimize between two networks phi and varphi, but little details about the optimization have been exposed. Also, we are not sure if the loss from the two models can converge finally. Better to show some qualitative results and analysis. * READOUT seems to play a critical role in building the global representation, however, it is unclear if other READOUT function will work well, and why the current one is feasible. Please explain. * In semi-supervised setting, it seems InfoGraph* is comparable to the SOTA MeanTeachers model on 12 targets. I am not sure if this can reflect the true performance of the proposed model. Maybe another dataset will be able to highlight the superiority.