ZHANGYUXUAN-zR commited on
Commit
fbd4fe7
·
verified ·
1 Parent(s): d2bae48

Add files using upload-large-folder tool

Browse files
parse/train/B1xxAJHFwS/B1xxAJHFwS.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xxAJHFwS/B1xxAJHFwS_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xxAJHFwS/B1xxAJHFwS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B1xxAJHFwS/B1xxAJHFwS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkeStsCcKQ/BkeStsCcKQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/BkeStsCcKQ/BkeStsCcKQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1U_af-0-/H1U_af-0-_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/H1U_af-0-/H1U_af-0-_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1elIi09K7/r1elIi09K7.md ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LEARNING A NEURAL-NETWORK-BASED REPRESENTATION FOR OPEN SET RECOGNITION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ In this paper, we present a neural network based representation for addressing the open set recognition problem. In this representation instances from the same class are close to each other while instances from different classes are further apart, resulting in statistically significant improvement when compared to other approaches on three datasets from two different domains.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ To build robust AI systems, Dietterich Dietterich (2017) reasons that one of the main challenges is handling the “unknown unknowns." One idea is to detect model failures (i.e., the system understands that its model about the world/domain has limitations and may fail). For example, assume you trained a binary classifier model to discriminate between pictures of cats and dogs. Let’s assume this model performs well at recognizing images of cats and dogs. What would this model do if it is faced with a picture of a fox or a caracal? The model being a binary classifier will predict these pictures to be either a dog or a cat, which is not desirable and can be considered as a failure of the model. In machine learning, one direction of research for detecting model failure is “open category learning", where not all categories are known during training, and the system needs to appropriately handle instances from novel/unknown categories that may appear during testing. Besides “open category learning", terms such as “open world recognition" Bendale & Boult (2015) and “open set recognition" Scheirer et al. (2013); Bendale & Boult (2016) have been used in past literatures. In this paper, we will use the term “open set recognition".
12
+
13
+ Where does open set recognition appear in real-world problems? Various real-world applications operate in an open set scenario. For example, Ortiz and Becker Ortiz & Becker (2014) point to the problem of face recognition. One such use case is automatic labeling of friends in social media posts, “where the system must determine if the query face exists in the known gallery, and, if so, the most probable identity." Another domain is in malware classification, where training data usually is incomplete because of novel malware families/classes that emerge regularly. As a result, malware classification systems operate in an open set scenario.
14
+
15
+ In this paper, we propose a neural network based representation and a mechanism that utilizes this representation for performing open set recognition. Since our primary motivation when developing this approach was the malware classification domain, we evaluate our work on two malware datasets. To show the applicability of our approach to other domains, we evaluate our approach on images.
16
+
17
+ Our contributions include: (1) we propose an approach for learning a representation that facilitates open set recognition, (2) we propose a loss function that enables us to use the same distance function both when training and when computing an outlier score, (3) our proposed approaches achieve statistically significant improvement compared to previous research work on three datasets.
18
+
19
+ # 2 RELATED WORK
20
+
21
+ We can broadly categorize existing open set recognition systems into two types. The first type provides mechanisms to discriminate known class instances from unknown class instances. These systems, however, cannot discriminate between the known classes, where there is more than one. Research works such as Scheirer et al. (2013); Bodesheim et al. (2013; 2015) fall in this category. Scheirer et al. Scheirer et al. (2013) formalized the concept of open set recognition and proposed a
22
+
23
+ 1-vs-set binary SVM based approach. Bodesheim et al. Bodesheim et al. (2013) propose KNFST for performing open set recognition for multiple known classes at the same time. The idea of KNFST is further extended in Bodesheim et al. (2015) by considering the locality of a sample when calculating its outlier score.
24
+
25
+ The second type of open set recognition system provides the ability to discriminate between known classes in addition to identifying unknown class instances. Research works such as Jain et al. (2014); Bendale & Boult (2015; 2016); Da et al. (2014); Ge et al. (2017) fall in this category. PI-SVM Jain et al. (2014), for instance, uses a collection of binary SVM classifiers, one for each class, and fits a Weibull distribution over the score of each classifier. This approach allows PI-SVM to be able to both perform recognition of unknown class instances and classification between the known class instances. Bendale and Boult Bendale & Boult (2015) propose an approach to extend Nearest Class Mean (NCM) to perform open set recognition with the added benefit of being able to do incremental learning.
26
+
27
+ Neural Net based methods for open set recognition have been proposed in Bendale & Boult (2016); Cardoso et al. (2015); Ge et al. (2017). Openmax Bendale & Boult (2016) (a state-of-art algorithm) modifies the regular Softmax layer of a neural network by redistributing the activation vector (the values of the final layer of a neural network that are given as input to the Softmax function) to account for unknown classes. Ge et al. Ge et al. (2017) use DCGAN Radford et al. (2015) to generate unknown-class samples. The network is trained on the original instances plus the generated samples, and Openmax is used to ajdusted the activation vector. Similarly, Yu et al. Yu et al. (2017) generate “negative” samples using adversarial learning and use supervised algorithms to learn the final classifier. Our approach does not generate “unknown-class/negative” samples and hence does not increase the training overhead in the learning step. In malware classification, K. Rieck et al.Rieck et al. (2011) proposed a malware clustering approach and an associated outlier score. Although the authors did not propose their work for open set recognition, their outlier score can be used for unsupervised open set recognition. Rudd et al. Rudd et al. (2017) outline ways to extend existing closed set intrusion detection approaches for open set scenarios. Lee et al. Lee et al. (2018) are interested in detecting test samples that are out-of-distribution (different from the training “in-distribution’); however, each test sample is still from one of the known classes.
28
+
29
+ # 3 APPROACH
30
+
31
+ For open set recognition, given a set of instances belonging to known classes, we would like to learn a function that can accurately classify an unseen instance to one of the known classes or an unknown class. Let $D$ be a set of instances $X$ and their respective class labels $Y$ (i.e., $D = ( X , Y ) ,$ , and $K$ be the number of unique known class labels. Given $D$ for training, the problem of open set recognition is to learn a function $f$ that can accurately classify an unseen instance (not in $X$ ) to one of the $K$ classes or an unknown class (or the “none of the above" class).
32
+
33
+ The problem of open set recognition differs from the problem of closed set (“regular") classification because the learned function $f$ needs to handle unseen instances that might belong to classes that are not known during training. That is, the learner is robust in handling instances of classes that are not known. This difference is the main challenge for open set recognition. Another challenge is how to learn a more effective instance representation that facilitates open set recognition than the original instance representation used in $X$ .
34
+
35
+ Learning representations Consider $\vec { x }$ is an instance and $y = f ( \vec { x } )$ is the class label predicted using $f ( \vec { x } )$ . In case of a closed set, $y$ is one of the known class labels. In the case of open set, $y$ could be one of the known classes or an unknown class. The hidden layers in a neural network, ${ \vec { z } } = g ( { \vec { x } } )$ , can be considered as different representations of $\vec { x }$ . Note, we can rewrite $y$ in terms of the hidden layer as $y = f ( \vec { z } ) = f ( g ( \vec { x } ) )$ .
36
+
37
+ The objective of our approach is to learn a representation that facilitates open set recognition. We would like this new representation to have two properties: (P1) instances of the same class are closer together, and (P2) instances of different classes are further apart. The two properties can lead to larger spaces among known classes for the instances of the unknown classes to occupy. Consequently, instances of unknown classes could be more effectively detected. This representation is similar in spirit to a Fisher Discriminant. A Fisher discriminant aims to find a linear projection that maximizes
38
+
39
+ Algorithm 1: Training to minimize ii-loss.
40
+
41
+ Input :
42
+ $( X , Y )$ : Training data and labels
43
+ 1 for number of training iterations do
44
+ 2 Sample a mini-batch ( $X _ { b a t c h }$ , $Y _ { b a t c h . }$ ) from $( X , Y )$
45
+ 3 $Z _ { b a t c h } \gets g ( X _ { b a t c h } )$
46
+ 4 $\{ \vec { \mu } _ { 1 } \cdot \cdot \cdot \vec { \mu } _ { K } \} c l a s s \_ m e a n s ( Z _ { b a t c h } , Y _ { b a t c h } )$
47
+ 5 $\begin{array} { r } { | | \neg | 0 { \sf S } { \sf S } i n t r a _ { - } s p r e a d ( Z _ { b a t c h } , \{ \vec { \mu } _ { 1 } \cdot \cdot \cdot \vec { \mu } _ { K } \} ) } \end{array}$ - inter_separation $\left( \{ \vec { \mu } _ { 1 } \cdots \vec { \mu } _ { K } \} \right)$
48
+ 6 update parameters of $g$ using stochastic gradient descent to minimize ii-loss
49
+ 7 $\{ \vec { \mu } _ { 1 } \cdot \cdot \cdot \vec { \mu } _ { K } \} \gets c l a s s \_ m e a n s ( g ( X ) , Y )$
50
+ 8 return $\{ \vec { \mu } _ { 1 } \cdot \cdot \cdot \vec { \mu } _ { K } \}$ and parameters of $g$ as the model.
51
+
52
+ between class (inter-class) separation while minimizing within class (intra-class) spread. Such a projection is obtained by maximizing the Fisher criteria. However, in the case of this work, we use a neural network with a non-linear projection to learn this representation. The neural network $g$ used to learn the representation can be either a combination of convolution and fully connected layers, as shown in Figure 1a, or it can be all fully connected layers, Figure 1b. Both types are used in our experimental evaluation.
53
+
54
+ II-Loss Function In a typical neural network classifier, the activation vector that comes from the final linear layer is given as input to a Softmax function. Then the network is trained to minimize a loss function such as cross-entropy on the outputs of the Softmax layer. In our case, the output vector $\vec { z _ { i } }$ of the final linear layer of a neural network (i.e., activation vector that serves as input to a softmax in a typical neural net) are considered as the projection of the input vector $\vec { x _ { i } }$ , of instance $i$ , to a different space. The network is trained using mini-batch stochastic gradient descent with backpropagation as outlined in Algorithm 1 to minimize the loss function in Equation 1, which we will refer to ii-loss for the remainder of this paper. In this loss function, we aim to maximize the distance between different classes (inter-class separation) and minimize the distance of an instance from its class mean (intra-class spread). We measure intra-class spread as the average distance of instances from their class means (first part of Equation 1). We measure the inter-class separation in terms of the distance between the closest two class means among all the $K$ known classes (second part of Equation 1). After the network finishes training, the class means are calculated for each class using all the training instances of that class and stored as part of the model.
55
+
56
+ $$
57
+ i i - l o s s = \big ( \underbrace { \frac { 1 } { N } \sum _ { j = 1 } ^ { K } \sum _ { i = 1 } ^ { | C _ { j } | } \| \vec { \mu _ { j } } - \vec { z _ { i } } \| _ { 2 } ^ { 2 } } _ { \mathrm { i n t r a . } \mathrm { s p r e a d } } \big ) - \big ( \ * { \underset { 1 \leq m \leq K } { \operatorname* { m i n } } } \| \vec { \mu _ { m } } - \vec { \mu _ { n } } \| _ { 2 } ^ { 2 } \big )
58
+ $$
59
+
60
+ where $| C _ { j } |$ is the number of training instances in class $C _ { j }$ , $N$ is the number of training instances, $K$ is the number of known classes, and \~µj = 1|C | P|Cj |i=1 z is the mean of class $C _ { j }$ .
61
+
62
+ Combining ii-loss with Cross Entropy Loss While the two desirable properties P1 and P2 discussed in an earlier Section aim to have a representation that separates instances from different classes, lower classification error is not explicitly stated. Hence, a third desirable property (P3) is a low classification error in the training data. To achieve this, alternatively, a network can be trained on both cross entropy loss and ii-loss (Eq 1) simultaneously. The network architecture in Figure 1c can be used. In this configuration, an additional linear layer is added after the $\mathbf { Z }$ -layer. The output of this linear layer is passed through a Softmax function to produce a distribution over the known classes. Although Figure 1c shows a network with convolutional and fully connected layers, combining ii-loss with cross-entropy can also work with a network of fully connected layers only. The network is trained using mini-batch stochastic gradient descent with backpropagation. During each training iteration, the network weights are first updated to minimize on ii-loss and then in a separate step updated to minimize cross entropy loss. Other researchers have trained neural networks using more than one loss function. For example, the encoder network of an Adversarial autoencoder Makhzani et al. (2015) is updated both to minimize the reconstruction loss and the generators loss.
63
+
64
+ ![](images/7e463f1d7aa4660a386dbb6243ffe7299ea829dd5ecc4ed54f0487a622f154ed.jpg)
65
+ Figure 1: Network architecture with ii-loss.
66
+
67
+ Outlier Score for Open Set Recognition During testing, we use an outlier score to indicate the degree to which the network predicts an instance $\vec { x }$ to be an outlier. This outlier score is calculated as the distance of an instance to the closest class mean from among $K$ known classes.
68
+
69
+ $$
70
+ o u t l i e r \_ s c o r e ( \vec { x } ) = \operatorname* { m i n } _ { 1 \leq j \leq K } \left\| \vec { \mu } _ { j } - \vec { z } \right\| _ { 2 } ^ { 2 }
71
+ $$
72
+
73
+ where ${ \vec { z } } = g ( { \vec { x } } )$ . Because the network is trained to project the members of a class as close to the class mean as possible the further away the projection $\vec { z }$ of instance $\vec { x }$ is from the closest class mean, the more likely the instance is an outlier for that class.
74
+
75
+ Threshold Estimation Once an outlier score identified, the next step is determining what threshold value of this score will indicate an outlier. In other words, how far does the projection of an instance need to be from the closest class mean for it to be deemed an outlier. For this work, we propose a simple threshold estimation. To pick an outlier threshold, we assume that a certain percent of the training set to be noise/outliers . We refer to this percentage as the contamination ratio. For example, if we set the contamination ratio to be 0.01, it will be like assuming $1 \%$ of the training data to be noise/outliers. Then, we calculate the outlier score on the training set instances, sort the scores in ascending order and pick the 99 percentile outlier score value as the outlier threshold value. The reader might notice that the threshold proposed in this section is a global threshold. This means that the same outlier threshold value is used for all classes. An alternative to this approach is to estimate the outlier threshold per-class. However, in our evaluation, we observe that global threshold consistently gives more accurate results than the per-class threshold.
76
+
77
+ Performing Open Set Recognition Open set recognition is a classification over $K + 1$ class labels, where the first $K$ labels are from the known classes the classifier is trained on, and the $K + 1 \mathrm { s t }$ label represents the unknown class. This is performed using the outlier score in Equation 2 and the associated threshold. The outlier_score of a test instance is first calculated. If the score is greater than threshold, the test instance is labeled as $K + 1$ , which in our case corresponds to the unknown class; otherwise, the appropriate class label is assigned to the instance from among the known classes, Equation 3. The predicted class probability over the known classes, we can be expressed as the softmax of the negative distance of a projection $\vec { z }$ , of the test instance $\vec { x }$ (i.e., $\vec { z } = g ( \vec { x } ) )$ , from all the known class means, Equation 4. Note, when a network network trained on both ii-loss and cross entropy loss $P ( y = k \mid \vec { x } )$ is from the Softmax layer in Figure 1c.
78
+
79
+ $$
80
+ y = { \left\{ \begin{array} { l l } { K + 1 , } & { { \mathrm { i f ~ } } o u t l i e r \_ s c o r e > t h r e s h o l d } \\ { { \mathrm { a r g m a x } } P ( y = j \mid { \vec { x } } ) , } & { { \mathrm { o t h e r w i s e } } } \end{array} \right. }
81
+ $$
82
+
83
+ $$
84
+ P ( y = j \mid \vec { x } ) = \frac { e ^ { - \parallel \vec { \mu } _ { j } - \vec { z } \parallel _ { 2 } ^ { 2 } } } { \sum _ { m = 1 } ^ { K } e ^ { - \parallel \vec { \mu } _ { m } - \vec { z } \parallel _ { 2 } ^ { 2 } } }
85
+ $$
86
+
87
+ # 4 EVALUATION
88
+
89
+ Datasets and Simulating Open Set Dataset We evaluate our approach using three datasets. The first is the Microsoft Malware Challenge Dataset msc (2015) which consists of disassembled windows malware samples from 9 malware families/classes. We use 10260 samples which are disassembled file parser was able to process correctly. The second dataset is the Android Genome Project Dataset mal which consists of malicious Android apps. In our evaluation, we use only 9 classes that have at least 40 samples. After removing the smaller classes, the dataset has 986 samples. We extract function call graph (FCG) features from the malware samples as proposed by Hassen and Chan Hassen & Chan (2017) . In case of the Android samples Android dataset we first use ada to extract the functions and the function instructions and then used Hassen & Chan (2017) to extract the FCG features. For MS Challenge dataset, we reformat the FCG features as a graph adjacency matrix by taking the edge frequency features in Hassen & Chan (2017) and rearranging them to form an adjacency matrix. Formatting the features this way allowed us to use convolutional layers on the MS Challenge dataset. To show that our approach can be applied to other domains we also evaluate our work on the MNIST Datasetmni, which consists of images of handwritten digits from 0 to 9.
90
+
91
+ To simulate an open world dataset for our evaluation datasets, we randomly choose $K$ number of classes from the dataset, which we will refer to as known classes in the remainder of this evaluation section, and keep only training instances from these classes in the training set. We will refer to the other classes as unknown classes. In case of the MS Dataset and Android Dataset, first, we randomly chose 6 known classes and treat set the remaining 3 as unknown classes. We then randomly select $7 5 \%$ of the instances from the known classes for the training set and the remaining for the test set. We further withhold one-third of the test set to serve as a validation set for hyperparameter tuning. We use only the known class instances for tuning. In these two datasets, all the unknown class instances are placed into the test set. In case of the MNIST dataset, first, we randomly chose 6 known classes and the remaining 4 as unknown classes. We then remove the unknown class instances from the training set. We leave the test set, which has both known and unknown class instances, as it is. For each of our evaluation datasets, we create 3 open set datasets. We will refer to these open set datasets as OpenMNIST1, OpenMNIST2, and OpenMNIST3 for the three open set evaluation datasets created from MNIST. Similarly, we also create OpenMS1, OpenMS2, and OpenMS3 for MS Challenge dataset and OPenAndroid1, OpenAndroid2, and OpenAndroid3 for Android Genom Project dataset.
92
+
93
+ Evaluated Approaches We evaluate five approaches; all implemented using Tensorflow. The first $( i i )$ is a network setup to be trained using ii-loss. The second $( i i + c e )$ is a network setup to be simultaneously trained using ii-loss and cross entropy (Section 8). The third $( c e )$ is a network which we use to represent the baseline, is trained using cross-entropy only (network setup in Figure 1c without the ii-loss.) The forth approach is OpenmaxBendale & Boult (2016) (a state-of-art algorithm), which was reimplemented based on the original paper and the authors’ source code to fit our evaluation framework. The authors of Openmax state that the choice of distance function Euclidean or combined Euclidean and cosine distance give similar performance in the case of their evaluation datasets Bendale & Boult (2016). In our experiments, however, we observed that the combined Euclidean and cosine distance gives a much better performance. So we report the better result from combined Euclidean and cosine distance. The final approach is Generative Openmax (G-Openmax) Ge et al. (2017). The networks used for MS and MNIST datasets have convolutional layers at the beginning followed by fully connected layers, whereas for the android dataset we use only fully connected layers. The architecture is detailed Appendix A. Our source code is available on Github 1. The evaluation datasets are available online on their respective websites.
94
+
95
+ # 4.1 DETECTING UNKNOWN CLASS INSTANCES AND OPEN SET RECOGNITION
96
+
97
+ We start our evaluation by showing how well outlier_score (in Equation 2) is able to identify unknown class instances. We evaluate it using 3 random open set datasets created from MS, Android and MNIST datasets as discussed in the Section on simulating open set dataset. For example, in the case of MNIST dataset, we run 10 experiments on OpenMNIST1, 10 experiments on OpenMNIST2, and 10 experiments on OpenMNIST3. We then report the average of the 30 runs. We do the same for the other two datasets.
98
+
99
+ Table 1: Average AUC of 30 runs up to $100 \%$ FPR and $10 \%$ FPR (the positive label represented instances from unknown classes and the negative label represented instances from the known classes when calculating the AUC). The underlined average AUC values are higher with statistical significance (p-value $< 0 . 0 5$ with a t-test) compared to the values that are not underlined on the same row. The average AUC values in bold are the largest average AUC values in each row.
100
+
101
+ <table><tr><td></td><td>FPR</td><td>ce</td><td>ii</td><td>ii+ce</td></tr><tr><td rowspan="2">MNIST</td><td>100%</td><td>0.9282 (±0.0179)</td><td>0.9588 (±0.0140)</td><td>0.9475 (±0.0151)</td></tr><tr><td>10%</td><td>0.0775 (±0.0044)</td><td>0.0830 (±0.0045)</td><td>0.0801 (±0.0044)</td></tr><tr><td rowspan="2">MS Challenge</td><td>100%</td><td>0.9143 (±0.0433)</td><td>0.9387 (±0.0083)</td><td>0.9407 (±0.0135)</td></tr><tr><td>10%</td><td>0.0526 (±0.0091)</td><td>0.0623 (±0.0030)</td><td>0.0596 (±0.0035)</td></tr><tr><td rowspan="2">Android Genom</td><td>100%</td><td>0.7755 (±0.1114)</td><td>0.8563 (±0.0941)</td><td>0.9007 (±0.0426)</td></tr><tr><td>10%</td><td>0.0066 (±0.0052)</td><td>0.0300 (±0.0193)</td><td>0.0326 (±0.0182)</td></tr></table>
102
+
103
+ Table 2: Average F-Score of 30 Runs. The underlined average AUC values are higher with statistical significance (p-value $< 0 . 0 5$ with a t-test) compared to the values that are not underlined on the same row. The average AUC values in bold are the largest average AUC values in each row.
104
+
105
+ <table><tr><td></td><td>Openmax</td><td>G-Openmax</td><td>ce</td><td>ceii</td><td>ii</td></tr><tr><td>MNIST</td><td>0.88(±0.05)</td><td>0.69(±0.02)</td><td>0.74(±0.20)</td><td>0.92(±0.02)</td><td>0.93(±0.02)</td></tr><tr><td>MS</td><td>0.87(±0.01)</td><td>0.83(±0.02)</td><td>0.86(±0.04)</td><td>0.89(±0.01)</td><td>0.88(±0.01)</td></tr><tr><td>Android</td><td>0.30(±0.12)</td><td>0.60(±0.11)</td><td>0.46(±0.10)</td><td>0.71(±0.17)</td><td>0.69(±0.15)</td></tr></table>
106
+
107
+ Table 1 shows the results of this evaluation. To report the results in such a way that is independent of outlier threshold, we report the area under ROC curve (AUC). This area is calculated using the outlier score and computing the true positive rate (TPR) and the false positive rate (FPR) at different thresholds. We use the t-test to measure the statistical significance of the difference in AUC values. Looking at the AUC up to $100 \%$ FPR in all three datasets, our approach $i i$ and $i i + c e$ perform significantly better(with $\mathsf { p }$ -value of 0.04 or less) in identifying unknown class instances than the baseline approach $c e$ (using only cross entropy loss.) Although AUC up to $100 \%$ FPR gives a full picture, in practice it is desirable to have good performance at lower false positive rates. That is is why we report AUC up to $10 \%$ FPR. Our two approaches report a significantly better AUC than the baseline network trained to only minimize cross entropy loss. We didn’t include Openmax in this section’s evaluation because it doesn’t have an explicit outlier score.
108
+
109
+ When the proposed approach is used for open set recognition, the final prediction is a class label, which can be one of the $K$ known class labels if the test instances has an outlier score less than a threshold value or it can be an “unknown" label if the instance has an outlier score greater than the threshold, Eq. 3. In addition to the three approaches evaluated in the previous section, we also include Openmax Bendale & Boult (2016) and G-Openmax Ge et al. (2017) in these evaluations because they give final class label predictions.
110
+
111
+ We use average F-score to evaluate open set recognition performance and t-test for statistical significance. Using the same experimental setup the earlier experiment, we report the result of the average f-score, averaged across all class labels and across 30 experiment runs in Table 2. On all three datasets the $i i$ and $i i + c e$ networks gives significantly better f-score compared to the other two configurations (with p-value of 0.0002 or less). In case of the Android dataset, all networks perform lower compared to the other two datasets. We attribute this to the small number of samples in the Android datasets. The dataset is also imbalanced with many classes only having less than 60 samples.
112
+
113
+ Two limitations of Openmax can explain its weaker performance compared to our proposed approaches: 1) it does not use a loss function that directly incentivizes projecting class instances around the mean class activation vector and 2) the distance function used by Openmax is not necessarily the right distance function for final activation vector space since it is not used in training. We addressed these limitations by training a neural network with a loss function that explicitly encourages properties P1 and P2. Also, we use the same distance function during training and test.
114
+
115
+ ![](images/c2b45326e66954ea640041c5efcc3e32e8427337726d4e890b76a0da28fa50d5.jpg)
116
+ Figure 2: The z-layer projection of (a, b) known and (c, d) unknown class instances from test set of MNIST dataset. The labels 0,2,3,4,6,9 represent the known classes while the label “unknown" represents the unknown classes.
117
+
118
+ # 4.2 DISCUSSIONS
119
+
120
+ Figure 2 provides evidence on how our network projects unknown class instances in the space between the known classes. In the figure the $\mathbf { Z }$ -layer projection of 2000 random test instances of an open set dataset created from MNIST with 6 known and 4 unknown classes. The class labels 0, 2, 3, 4, 6, and 9 in the figure represent the 6 known classes while the “unknown" label represents all the unknown classes. The network with ii-loss is set up to have a z-layer dimension of 6, and the figure shows a 2D plot of dimension (z0,z1), (z0,z2). The Openmax network also has a similar network architecture and last layer dimension of 6. In case of ii-loss based projection, the instances from the known classes (Figures 2a) are projected close to their respective class while the unknown class instances (Figures 2c) are projected, for the most part, in the region between the classes. In case of Openmax, Figures 2b and 2d, the unknown class instances do not fully occupy the open space between the known classes. In Openmax, most instances are projected along the axis; this is because of the one-hot encoding induced by cross-entropy loss. So compared to Openmax, ii-loss appears to better utilize space “among" the classes.
121
+
122
+ ![](images/68e4758561fecd79ff15bc0e6f1f51b6593435334622f17ac3ec4d5db3b98486.jpg)
123
+ Figure 3: Projections of Android dataset known class test instances from final activation layer of Openmax.
124
+
125
+ ![](images/fea0ce400d50c7fc9581892765c26c8ef8cb76d27c28d10a72d836e7d47d21f5.jpg)
126
+ Figure 4: Projections of Android dataset (a) known class and (b) unknown class test instances from $\mathbf { Z }$ -layer of a network trained with only cross entropy.
127
+
128
+ ![](images/6c55368f55b1ffbe3d37eaf6f46c2ab8e7589e6a763d2b0b10efdec3f97c2381.jpg)
129
+ Figure 5: Inter class separation for networks trained (a) with batch normalization used in all layers and (b) without batch normalization at the $\mathbf { Z }$ -layer.
130
+
131
+ Performance of Openmax is especially low in case of the Android dataset because of low recall on known classes with small number training instances. The low recall was caused by test instances from the smaller classes being projected further away from the class’s mean activation vector (MAV). For example, in Figure 3a we see that test instances of class 2 are further away from the MAV of class 2 (marked by $\because \overrightarrow { \mathbf { \nabla } } \star \overrightarrow { \mathbf { \nabla } }$ ). As a result, these test instances are predicted as unknown. Similarly, in Figure 3b instances of class 3 are far away from the MAV of class 3(marked by ’X’). Performance of network trained with only cross entropy (ce) is also low for Android dataset because unknown class instances were projected close to the known classes (Figure 4). As a result, these instances get labeled as known classes. In turn, resulting in a lower precision score for the known classes.
132
+
133
+ In our experiments, we have observed batch normalization Ioffe & Szegedy (2015) to be extremely important when using ii-loss. Because batch normalization fixes the mean and variance of a layer, it bounds the output of our $\mathbf { Z }$ -layer in a certain hypercube, in turn preventing the inter_separation term in ii-loss from increasing indefinitely. This is evident in Figures 5a and 5b. Figure 5a shows the inter_separation of the network where batch normalization used in all layers including the z-layer; here, the inter_separation increases in the beginning but levels off. Whereas when batch normalization is not used in the $\mathbf { Z }$ -layer the inter_separation term keeps on increasing as seen in Figure 5b; as a result, ii-loss would not converge.
134
+
135
+ Autoencoders can also be considered as another way to learn a representation. However, autoencoders do not try to achieve properties P1 and P2. One of the reasons is autoencoder training is unsupervised. Another reason is that non-regularized autoencoders fracture the manifold into different domains resulting in the representation of instances from the same class being further apart Makhzani et al. (2015). Therefore, in the learned representation, the known classes are not well separated. Additionally, outliers get projected to roughly the same area as the known classes. A figure in Appendix C shows the output of an encoder in an autoencoder.
136
+
137
+ # 5 CONCLUSION
138
+
139
+ We presented an approach for learning a neural network based representation that projects instances of the same class closer together while projecting instances of the different classes further apart. Our empirical evaluation shows that the two properties lead to larger spaces among classes for instances of unknown classes to occupy, hence facilitating open set recognition. We compared our proposed approach with a baseline network trained to minimize a cross entropy loss and with Openmax (a state-of-art neural network based open set recognition approach). We evaluated the approaches on datasets of malware samples and images and observed that our proposed approach achieves statistically significant improvement. We proposed a simple threshold estimation technique in this paper. However, there is room to explore a more robust way to estimate the threshold. We leave this for future work.
140
+
141
+ # REFERENCES
142
+
143
+ Adagio. https://github.com/hgascon/adagio.
144
+
145
+ Android malware genome project. http://www.malgenomeproject.org/.
146
+
147
+ Mnist hand written digit dataset. http://yann.lecun.com/exdb/mnist/.
148
+
149
+ Microsoft malware classification challenge (big 2015). https://www.kaggle.com/c/malwareclassification, 2015. [Online; accessed 27-April-2015].
150
+
151
+ Abhijit Bendale and Terrance Boult. Towards open world recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1893–1902, 2015.
152
+
153
+ Abhijit Bendale and Terrance E Boult. Towards open set deep networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1563–1572, 2016.
154
+
155
+ Paul Bodesheim, Alexander Freytag, Erik Rodner, Michael Kemmler, and Joachim Denzler. Kernel null space methods for novelty detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3374–3381, 2013.
156
+
157
+ Paul Bodesheim, Alexander Freytag, Erik Rodner, and Joachim Denzler. Local novelty detection in multi-class recognition problems. In Applications of Computer Vision (WACV), 2015 IEEE Winter Conference on, pp. 813–820. IEEE, 2015.
158
+
159
+ Douglas O Cardoso, Felipe França, and João Gama. A bounded neural network for open set recognition. In Neural Networks (IJCNN), 2015 International Joint Conference on, pp. 1–7. IEEE, 2015.
160
+
161
+ Qing Da, Yang Yu, and Zhi-Hua Zhou. Learning with augmented class by exploiting unlabeled data. In Twenty-Eighth AAAI Conference on Artificial Intelligence, 2014.
162
+
163
+ Thomas G. Dietterich. Steps toward robust artificial intelligence. AI Magazine, 38(3):3–24, 2017.
164
+
165
+ ZongYuan Ge, Sergey Demyanov, Zetao Chen, and Rahil Garnavi. Generative openmax for multiclass open set classification. arXiv preprint arXiv:1707.07418, 2017.
166
+
167
+ Mehadi Hassen and Philip K. Chan. Scalable function call graph-based malware classification. In 7th Conference on Data and Application Security and Privacy, pp. 239–248. ACM, 2017.
168
+
169
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015.
170
+
171
+ Lalit P Jain, Walter J Scheirer, and Terrance E Boult. Multi-Class Open Set Recognition Using Probability of Inclusion. pp. 393–409, 2014.
172
+
173
+ K. Lee, H. Lee, K. Lee, and J. Shin. Training confidence-calibrated classifiers for detecting out-ofdistribution samples. In Proc. ICLR 2018, 2018.
174
+
175
+ Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. arXiv preprint arXiv:1511.05644, 2015.
176
+
177
+ Enrique G Ortiz and Brian C Becker. Face recognition for web-scale datasets. Computer Vision and Image Understanding, 118:153–170, 2014.
178
+
179
+ Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015.
180
+
181
+ Konrad Rieck, Philipp Trinius, Carsten Willems, and Thorsten Holz. Automatic analysis of malware behavior using machine learning. Journal of Computer Security, 19(4):639–668, 2011.
182
+
183
+ Ethan Rudd, Andras Rozsa, Manuel Gunther, and Terrance Boult. A survey of stealth malware: Attacks, mitigation measures, and steps toward autonomous open world solutions. IEEE Communications Surveys & Tutorials, 2017.
184
+
185
+ Walter J Scheirer, Anderson de Rezende Rocha, Archana Sapkota, and Terrance E Boult. Toward open set recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(7): 1757–1772, 2013.
186
+
187
+ Y. Yu, W. Qu, N. Li, and Z. Guo. Open-category classification by adversarial sample generation. In Proc. IJCAI 2017, pp. 3357–3363, 2017.
188
+
189
+ # A EVALUATION NETWORK ARCHITECTURES
190
+
191
+ We evaluate 5 networks: ii, ce, $_ { \mathrm { i i + c e } }$ , Openmax and G-Openmax. The first four networks and the final classifier of G-Openmax have the same architecture up to the fully connected $\mathbf { Z }$ -layer. In case of the MNIST dataset, the input images are of size (28,28) and are padded to get an input layer size (32,32) with 1 channel. Following the input, layer are 2 non-linear convolutional layers with 32 and 64 units (filters) which have a kernel size of (4,4) with a (1,1) strides and SAME padding. The network also has max polling layers with a kernel size of (3,3), strides of (2,2), and SAME padding after each convolutional layer. Two fully connected non-linear layers with 256 and 128 units follow the second max pooling layer. Then a linear z-layer with a dimension of 6 follows the fully connected layers. In the case of $_ \mathrm { i i + c e }$ and ce networks, the output of the $\mathbf { Z }$ -layer is fed to an additional linear layer of dimension 6 which is then given to a softmax function. We use Relu activation function for all the non-linear layers. Batch normalization is used throughout all the layers. We also use Dropout with keep probability of 0.2 for the fully connected layers. Adam optimizer with a learning rate of 0.001, beta1 of 0.5, and beta2 of 0.999 is used to train our networks for 5000 iterations. In case of the Openmax network, the output of the $\mathbf { Z }$ -layer is directly fed to a softmax layer. Similar to the Openmax paper we use a distance that is a weighted combination of normalized Euclidean and cosine distances. For the ce, ii, and $_ { \mathrm { i i + c e } }$ we use contamination ratio of 0.01 for the threshold selection.
192
+
193
+ The open set experiments for MS Challenge dataset also used similar architectures as the four networks used for MNIST dataset with the following differences. The input layer size MS Challenge dataset is (67,67) with 1 channel after padding the original input of (63,63). Instead of the two fully connected non-linear layers, we use one fully connected layer with 256 units. We use dropout in the fully connected layer with keep probability of 0.9. Finally, the network was trained using Adam optimizer with 0.001 learning rate, 0.9 beta1, and 0.999 beta2.
194
+
195
+ We do not use a convolutional network for the Android dataset open set experiments. We use a network with one fully connected layer of 64 units. This is followed by a $\mathbf { Z }$ -layer with a dimension of 6. For $_ \mathrm { i i + c e }$ and ce networks we further add a linear layer with a dimension of 6 and the output of this layer is fed to a softmax layer. In case of Openmax, the output of the $\mathbf { Z }$ -layer is directly fed to the softmax layer. For Openmax we use a distance that is a weighted combination of normalized Euclidean and cosine distances. We use Relu activation function for all the nonlinear layers. We used batch normalization for all layers. We also used Dropout with keep probability of 0.9 for the fully connected layers. We used Adam optimizer with a learning rate of 0.1 and first momentum of 0.9 to train our networks for 10000 iterations. For the ce, ii, and ii+ce we use contamination ratio of 0.01 for the threshold selection.
196
+
197
+ The closed set experiments use the same set up as the open set experiments with the only difference coming from the dimension of the z-layer. For the MNIST dataset, we used z dimension of 10. For the MS and Android datasets, we use z dimension of 9.
198
+
199
+ # B CLOSED SET CLASSIFICATION
200
+
201
+ In this section, we would like to show that on a closed dataset, a network trained using ii-loss performs comparably to the same network trained using cross entropy loss. For closed set classification, all the classes in the dataset are used for both training and test. For MS and Android datasets, we randomly divide the datasets into training, validation, and test and report the results on the test set. The MNIST dataset is already divided into training, validation, and test.
202
+
203
+ On closed MNIST dataset, a network trained with cross-entropy achieved a 10-run average classification accuracy of $9 9 . 4 2 \%$ . The same network trained using ii-loss achieved an average accuracy of $9 9 . 3 1 \%$ . The network trained only on cross-entropy gives better performance than the network trained on ii-loss. The results from a network trained both ii-loss cross entropy loss to achieve an average classification accuracy of $9 9 . 4 0 \%$ . This result makes it comparable to the performance of the same network trained using cross-entropy only (with a p-value of 0.22). We acknowledge that both results are not state-of-art as we are using simple network architectures. The primary goal of these experiments is to show that the ii-loss trained network can give comparable results to a cross entropy trained network. On the Android dataset, the network trained on a cross entropy gets an average classification accuracy of $9 3 . 1 0 \%$ while ii-loss records $9 2 . 6 8 \%$ , but the difference is not significant (with a p-value at 0.43).
204
+
205
+ # C DISCUSSION
206
+
207
+ ![](images/6bab02304b6eaeec5b486e0dd187d991c65cce0d65554b54371ecdd222f904fd.jpg)
208
+ Figure 6: Projections of (a) known and (b) unknown class instances using the hidden layer of an Autoencoder. The labels 0,2,3,4,6,9 represent the known classes while the label “unknown" represents the unknown classes.
209
+
210
+ We mentioned earlier that we used function call graph (FCG) feature for the malware dataset. We also mentioned that in case of the MS Challenge dataset we reformatted the FCG features proposed in Hassen & Chan (2017) to form a (63, 63) adjacency matrix representation of the graph. We feed this matrix as an input to the convolutional network with a (4,4) kernel. Such kernel shape makes sense when it comes to image input because in images proximity of pixels hold essential information. However, it is not apparent to us how nearby cells in a graph adjacency matrix hold meaning full information. We tried different kernel shapes, for example taking an entire row of the matrix at once (because a row of the matrix represents single nodes outgoing edge weights). However the simple (4,4) gives a better close set performance.
parse/train/r1elIi09K7/r1elIi09K7_content_list.json ADDED
@@ -0,0 +1,1113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "LEARNING A NEURAL-NETWORK-BASED REPRESENTATION FOR OPEN SET RECOGNITION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 826,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "In this paper, we present a neural network based representation for addressing the open set recognition problem. In this representation instances from the same class are close to each other while instances from different classes are further apart, resulting in statistically significant improvement when compared to other approaches on three datasets from two different domains. ",
40
+ "bbox": [
41
+ 232,
42
+ 265,
43
+ 764,
44
+ 335
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 361,
55
+ 336,
56
+ 376
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "To build robust AI systems, Dietterich Dietterich (2017) reasons that one of the main challenges is handling the “unknown unknowns.\" One idea is to detect model failures (i.e., the system understands that its model about the world/domain has limitations and may fail). For example, assume you trained a binary classifier model to discriminate between pictures of cats and dogs. Let’s assume this model performs well at recognizing images of cats and dogs. What would this model do if it is faced with a picture of a fox or a caracal? The model being a binary classifier will predict these pictures to be either a dog or a cat, which is not desirable and can be considered as a failure of the model. In machine learning, one direction of research for detecting model failure is “open category learning\", where not all categories are known during training, and the system needs to appropriately handle instances from novel/unknown categories that may appear during testing. Besides “open category learning\", terms such as “open world recognition\" Bendale & Boult (2015) and “open set recognition\" Scheirer et al. (2013); Bendale & Boult (2016) have been used in past literatures. In this paper, we will use the term “open set recognition\". ",
63
+ "bbox": [
64
+ 174,
65
+ 391,
66
+ 825,
67
+ 571
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Where does open set recognition appear in real-world problems? Various real-world applications operate in an open set scenario. For example, Ortiz and Becker Ortiz & Becker (2014) point to the problem of face recognition. One such use case is automatic labeling of friends in social media posts, “where the system must determine if the query face exists in the known gallery, and, if so, the most probable identity.\" Another domain is in malware classification, where training data usually is incomplete because of novel malware families/classes that emerge regularly. As a result, malware classification systems operate in an open set scenario. ",
74
+ "bbox": [
75
+ 174,
76
+ 579,
77
+ 825,
78
+ 676
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In this paper, we propose a neural network based representation and a mechanism that utilizes this representation for performing open set recognition. Since our primary motivation when developing this approach was the malware classification domain, we evaluate our work on two malware datasets. To show the applicability of our approach to other domains, we evaluate our approach on images. ",
85
+ "bbox": [
86
+ 174,
87
+ 684,
88
+ 825,
89
+ 739
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Our contributions include: (1) we propose an approach for learning a representation that facilitates open set recognition, (2) we propose a loss function that enables us to use the same distance function both when training and when computing an outlier score, (3) our proposed approaches achieve statistically significant improvement compared to previous research work on three datasets. ",
96
+ "bbox": [
97
+ 174,
98
+ 747,
99
+ 825,
100
+ 803
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "2 RELATED WORK ",
107
+ "text_level": 1,
108
+ "bbox": [
109
+ 176,
110
+ 821,
111
+ 344,
112
+ 838
113
+ ],
114
+ "page_idx": 0
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "We can broadly categorize existing open set recognition systems into two types. The first type provides mechanisms to discriminate known class instances from unknown class instances. These systems, however, cannot discriminate between the known classes, where there is more than one. Research works such as Scheirer et al. (2013); Bodesheim et al. (2013; 2015) fall in this category. Scheirer et al. Scheirer et al. (2013) formalized the concept of open set recognition and proposed a ",
119
+ "bbox": [
120
+ 174,
121
+ 854,
122
+ 825,
123
+ 924
124
+ ],
125
+ "page_idx": 0
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "1-vs-set binary SVM based approach. Bodesheim et al. Bodesheim et al. (2013) propose KNFST for performing open set recognition for multiple known classes at the same time. The idea of KNFST is further extended in Bodesheim et al. (2015) by considering the locality of a sample when calculating its outlier score. ",
130
+ "bbox": [
131
+ 174,
132
+ 103,
133
+ 825,
134
+ 159
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "The second type of open set recognition system provides the ability to discriminate between known classes in addition to identifying unknown class instances. Research works such as Jain et al. (2014); Bendale & Boult (2015; 2016); Da et al. (2014); Ge et al. (2017) fall in this category. PI-SVM Jain et al. (2014), for instance, uses a collection of binary SVM classifiers, one for each class, and fits a Weibull distribution over the score of each classifier. This approach allows PI-SVM to be able to both perform recognition of unknown class instances and classification between the known class instances. Bendale and Boult Bendale & Boult (2015) propose an approach to extend Nearest Class Mean (NCM) to perform open set recognition with the added benefit of being able to do incremental learning. ",
141
+ "bbox": [
142
+ 173,
143
+ 166,
144
+ 825,
145
+ 291
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Neural Net based methods for open set recognition have been proposed in Bendale & Boult (2016); Cardoso et al. (2015); Ge et al. (2017). Openmax Bendale & Boult (2016) (a state-of-art algorithm) modifies the regular Softmax layer of a neural network by redistributing the activation vector (the values of the final layer of a neural network that are given as input to the Softmax function) to account for unknown classes. Ge et al. Ge et al. (2017) use DCGAN Radford et al. (2015) to generate unknown-class samples. The network is trained on the original instances plus the generated samples, and Openmax is used to ajdusted the activation vector. Similarly, Yu et al. Yu et al. (2017) generate “negative” samples using adversarial learning and use supervised algorithms to learn the final classifier. Our approach does not generate “unknown-class/negative” samples and hence does not increase the training overhead in the learning step. In malware classification, K. Rieck et al.Rieck et al. (2011) proposed a malware clustering approach and an associated outlier score. Although the authors did not propose their work for open set recognition, their outlier score can be used for unsupervised open set recognition. Rudd et al. Rudd et al. (2017) outline ways to extend existing closed set intrusion detection approaches for open set scenarios. Lee et al. Lee et al. (2018) are interested in detecting test samples that are out-of-distribution (different from the training “in-distribution’); however, each test sample is still from one of the known classes. ",
152
+ "bbox": [
153
+ 173,
154
+ 299,
155
+ 825,
156
+ 520
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "3 APPROACH",
163
+ "text_level": 1,
164
+ "bbox": [
165
+ 176,
166
+ 541,
167
+ 297,
168
+ 558
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "For open set recognition, given a set of instances belonging to known classes, we would like to learn a function that can accurately classify an unseen instance to one of the known classes or an unknown class. Let $D$ be a set of instances $X$ and their respective class labels $Y$ (i.e., $D = ( X , Y ) ,$ , and $K$ be the number of unique known class labels. Given $D$ for training, the problem of open set recognition is to learn a function $f$ that can accurately classify an unseen instance (not in $X$ ) to one of the $K$ classes or an unknown class (or the “none of the above\" class). ",
175
+ "bbox": [
176
+ 174,
177
+ 573,
178
+ 825,
179
+ 656
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "The problem of open set recognition differs from the problem of closed set (“regular\") classification because the learned function $f$ needs to handle unseen instances that might belong to classes that are not known during training. That is, the learner is robust in handling instances of classes that are not known. This difference is the main challenge for open set recognition. Another challenge is how to learn a more effective instance representation that facilitates open set recognition than the original instance representation used in $X$ . ",
186
+ "bbox": [
187
+ 174,
188
+ 662,
189
+ 825,
190
+ 747
191
+ ],
192
+ "page_idx": 1
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "Learning representations Consider $\\vec { x }$ is an instance and $y = f ( \\vec { x } )$ is the class label predicted using $f ( \\vec { x } )$ . In case of a closed set, $y$ is one of the known class labels. In the case of open set, $y$ could be one of the known classes or an unknown class. The hidden layers in a neural network, ${ \\vec { z } } = g ( { \\vec { x } } )$ , can be considered as different representations of $\\vec { x }$ . Note, we can rewrite $y$ in terms of the hidden layer as $y = f ( \\vec { z } ) = f ( g ( \\vec { x } ) )$ . ",
197
+ "bbox": [
198
+ 174,
199
+ 762,
200
+ 825,
201
+ 834
202
+ ],
203
+ "page_idx": 1
204
+ },
205
+ {
206
+ "type": "text",
207
+ "text": "The objective of our approach is to learn a representation that facilitates open set recognition. We would like this new representation to have two properties: (P1) instances of the same class are closer together, and (P2) instances of different classes are further apart. The two properties can lead to larger spaces among known classes for the instances of the unknown classes to occupy. Consequently, instances of unknown classes could be more effectively detected. This representation is similar in spirit to a Fisher Discriminant. A Fisher discriminant aims to find a linear projection that maximizes ",
208
+ "bbox": [
209
+ 174,
210
+ 840,
211
+ 825,
212
+ 924
213
+ ],
214
+ "page_idx": 1
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "Algorithm 1: Training to minimize ii-loss. ",
219
+ "bbox": [
220
+ 176,
221
+ 107,
222
+ 454,
223
+ 122
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "Input : \n$( X , Y )$ : Training data and labels \n1 for number of training iterations do \n2 Sample a mini-batch ( $X _ { b a t c h }$ , $Y _ { b a t c h . }$ ) from $( X , Y )$ \n3 $Z _ { b a t c h } \\gets g ( X _ { b a t c h } )$ \n4 $\\{ \\vec { \\mu } _ { 1 } \\cdot \\cdot \\cdot \\vec { \\mu } _ { K } \\} c l a s s \\_ m e a n s ( Z _ { b a t c h } , Y _ { b a t c h } )$ \n5 $\\begin{array} { r } { | | \\neg | 0 { \\sf S } { \\sf S } i n t r a _ { - } s p r e a d ( Z _ { b a t c h } , \\{ \\vec { \\mu } _ { 1 } \\cdot \\cdot \\cdot \\vec { \\mu } _ { K } \\} ) } \\end{array}$ - inter_separation $\\left( \\{ \\vec { \\mu } _ { 1 } \\cdots \\vec { \\mu } _ { K } \\} \\right)$ \n6 update parameters of $g$ using stochastic gradient descent to minimize ii-loss \n7 $\\{ \\vec { \\mu } _ { 1 } \\cdot \\cdot \\cdot \\vec { \\mu } _ { K } \\} \\gets c l a s s \\_ m e a n s ( g ( X ) , Y )$ \n8 return $\\{ \\vec { \\mu } _ { 1 } \\cdot \\cdot \\cdot \\vec { \\mu } _ { K } \\}$ and parameters of $g$ as the model. ",
230
+ "bbox": [
231
+ 160,
232
+ 126,
233
+ 736,
234
+ 276
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "between class (inter-class) separation while minimizing within class (intra-class) spread. Such a projection is obtained by maximizing the Fisher criteria. However, in the case of this work, we use a neural network with a non-linear projection to learn this representation. The neural network $g$ used to learn the representation can be either a combination of convolution and fully connected layers, as shown in Figure 1a, or it can be all fully connected layers, Figure 1b. Both types are used in our experimental evaluation. ",
241
+ "bbox": [
242
+ 173,
243
+ 310,
244
+ 825,
245
+ 393
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "II-Loss Function In a typical neural network classifier, the activation vector that comes from the final linear layer is given as input to a Softmax function. Then the network is trained to minimize a loss function such as cross-entropy on the outputs of the Softmax layer. In our case, the output vector $\\vec { z _ { i } }$ of the final linear layer of a neural network (i.e., activation vector that serves as input to a softmax in a typical neural net) are considered as the projection of the input vector $\\vec { x _ { i } }$ , of instance $i$ , to a different space. The network is trained using mini-batch stochastic gradient descent with backpropagation as outlined in Algorithm 1 to minimize the loss function in Equation 1, which we will refer to ii-loss for the remainder of this paper. In this loss function, we aim to maximize the distance between different classes (inter-class separation) and minimize the distance of an instance from its class mean (intra-class spread). We measure intra-class spread as the average distance of instances from their class means (first part of Equation 1). We measure the inter-class separation in terms of the distance between the closest two class means among all the $K$ known classes (second part of Equation 1). After the network finishes training, the class means are calculated for each class using all the training instances of that class and stored as part of the model. ",
252
+ "bbox": [
253
+ 173,
254
+ 411,
255
+ 825,
256
+ 606
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "equation",
262
+ "img_path": "images/e35c34fe7f1ed3e2a92f471267aebf358fd76c5a75a68e370400a82b0fcf4b8e.jpg",
263
+ "text": "$$\ni i - l o s s = \\big ( \\underbrace { \\frac { 1 } { N } \\sum _ { j = 1 } ^ { K } \\sum _ { i = 1 } ^ { | C _ { j } | } \\| \\vec { \\mu _ { j } } - \\vec { z _ { i } } \\| _ { 2 } ^ { 2 } } _ { \\mathrm { i n t r a . } \\mathrm { s p r e a d } } \\big ) - \\big ( \\ * { \\underset { 1 \\leq m \\leq K } { \\operatorname* { m i n } } } \\| \\vec { \\mu _ { m } } - \\vec { \\mu _ { n } } \\| _ { 2 } ^ { 2 } \\big )\n$$",
264
+ "text_format": "latex",
265
+ "bbox": [
266
+ 287,
267
+ 625,
268
+ 709,
269
+ 691
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "where $| C _ { j } |$ is the number of training instances in class $C _ { j }$ , $N$ is the number of training instances, $K$ is the number of known classes, and \\~µj = 1|C | P|Cj |i=1 z is the mean of class $C _ { j }$ . ",
276
+ "bbox": [
277
+ 176,
278
+ 703,
279
+ 821,
280
+ 741
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Combining ii-loss with Cross Entropy Loss While the two desirable properties P1 and P2 discussed in an earlier Section aim to have a representation that separates instances from different classes, lower classification error is not explicitly stated. Hence, a third desirable property (P3) is a low classification error in the training data. To achieve this, alternatively, a network can be trained on both cross entropy loss and ii-loss (Eq 1) simultaneously. The network architecture in Figure 1c can be used. In this configuration, an additional linear layer is added after the $\\mathbf { Z }$ -layer. The output of this linear layer is passed through a Softmax function to produce a distribution over the known classes. Although Figure 1c shows a network with convolutional and fully connected layers, combining ii-loss with cross-entropy can also work with a network of fully connected layers only. The network is trained using mini-batch stochastic gradient descent with backpropagation. During each training iteration, the network weights are first updated to minimize on ii-loss and then in a separate step updated to minimize cross entropy loss. Other researchers have trained neural networks using more than one loss function. For example, the encoder network of an Adversarial autoencoder Makhzani et al. (2015) is updated both to minimize the reconstruction loss and the generators loss. ",
287
+ "bbox": [
288
+ 173,
289
+ 756,
290
+ 826,
291
+ 924
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "image",
297
+ "img_path": "images/7e463f1d7aa4660a386dbb6243ffe7299ea829dd5ecc4ed54f0487a622f154ed.jpg",
298
+ "image_caption": [
299
+ "Figure 1: Network architecture with ii-loss. "
300
+ ],
301
+ "image_footnote": [],
302
+ "bbox": [
303
+ 192,
304
+ 101,
305
+ 800,
306
+ 289
307
+ ],
308
+ "page_idx": 3
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "",
313
+ "bbox": [
314
+ 173,
315
+ 344,
316
+ 823,
317
+ 373
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "Outlier Score for Open Set Recognition During testing, we use an outlier score to indicate the degree to which the network predicts an instance $\\vec { x }$ to be an outlier. This outlier score is calculated as the distance of an instance to the closest class mean from among $K$ known classes. ",
324
+ "bbox": [
325
+ 173,
326
+ 391,
327
+ 823,
328
+ 434
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "equation",
334
+ "img_path": "images/ee95714d3bc33a03219b20c488b63d5073fa4f5ba98e29afb97bbbfc6ea592a2.jpg",
335
+ "text": "$$\no u t l i e r \\_ s c o r e ( \\vec { x } ) = \\operatorname* { m i n } _ { 1 \\leq j \\leq K } \\left\\| \\vec { \\mu } _ { j } - \\vec { z } \\right\\| _ { 2 } ^ { 2 }\n$$",
336
+ "text_format": "latex",
337
+ "bbox": [
338
+ 369,
339
+ 443,
340
+ 629,
341
+ 469
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "where ${ \\vec { z } } = g ( { \\vec { x } } )$ . Because the network is trained to project the members of a class as close to the class mean as possible the further away the projection $\\vec { z }$ of instance $\\vec { x }$ is from the closest class mean, the more likely the instance is an outlier for that class. ",
348
+ "bbox": [
349
+ 174,
350
+ 479,
351
+ 825,
352
+ 522
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "Threshold Estimation Once an outlier score identified, the next step is determining what threshold value of this score will indicate an outlier. In other words, how far does the projection of an instance need to be from the closest class mean for it to be deemed an outlier. For this work, we propose a simple threshold estimation. To pick an outlier threshold, we assume that a certain percent of the training set to be noise/outliers . We refer to this percentage as the contamination ratio. For example, if we set the contamination ratio to be 0.01, it will be like assuming $1 \\%$ of the training data to be noise/outliers. Then, we calculate the outlier score on the training set instances, sort the scores in ascending order and pick the 99 percentile outlier score value as the outlier threshold value. The reader might notice that the threshold proposed in this section is a global threshold. This means that the same outlier threshold value is used for all classes. An alternative to this approach is to estimate the outlier threshold per-class. However, in our evaluation, we observe that global threshold consistently gives more accurate results than the per-class threshold. ",
359
+ "bbox": [
360
+ 174,
361
+ 540,
362
+ 825,
363
+ 708
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "Performing Open Set Recognition Open set recognition is a classification over $K + 1$ class labels, where the first $K$ labels are from the known classes the classifier is trained on, and the $K + 1 \\mathrm { s t }$ label represents the unknown class. This is performed using the outlier score in Equation 2 and the associated threshold. The outlier_score of a test instance is first calculated. If the score is greater than threshold, the test instance is labeled as $K + 1$ , which in our case corresponds to the unknown class; otherwise, the appropriate class label is assigned to the instance from among the known classes, Equation 3. The predicted class probability over the known classes, we can be expressed as the softmax of the negative distance of a projection $\\vec { z }$ , of the test instance $\\vec { x }$ (i.e., $\\vec { z } = g ( \\vec { x } ) )$ , from all the known class means, Equation 4. Note, when a network network trained on both ii-loss and cross entropy loss $P ( y = k \\mid \\vec { x } )$ is from the Softmax layer in Figure 1c. ",
370
+ "bbox": [
371
+ 173,
372
+ 726,
373
+ 826,
374
+ 866
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "equation",
380
+ "img_path": "images/71b5e49f20bd4acd3867f5b6ec8c1f6202012375a52faf92a8eb2ced42f7daea.jpg",
381
+ "text": "$$\ny = { \\left\\{ \\begin{array} { l l } { K + 1 , } & { { \\mathrm { i f ~ } } o u t l i e r \\_ s c o r e > t h r e s h o l d } \\\\ { { \\mathrm { a r g m a x } } P ( y = j \\mid { \\vec { x } } ) , } & { { \\mathrm { o t h e r w i s e } } } \\end{array} \\right. }\n$$",
382
+ "text_format": "latex",
383
+ "bbox": [
384
+ 290,
385
+ 886,
386
+ 705,
387
+ 929
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "equation",
393
+ "img_path": "images/a2cb8857d65e7dd7429208bd0b172ec108392f87f983df89144ea5000f4be67a.jpg",
394
+ "text": "$$\nP ( y = j \\mid \\vec { x } ) = \\frac { e ^ { - \\parallel \\vec { \\mu } _ { j } - \\vec { z } \\parallel _ { 2 } ^ { 2 } } } { \\sum _ { m = 1 } ^ { K } e ^ { - \\parallel \\vec { \\mu } _ { m } - \\vec { z } \\parallel _ { 2 } ^ { 2 } } }\n$$",
395
+ "text_format": "latex",
396
+ "bbox": [
397
+ 379,
398
+ 113,
399
+ 619,
400
+ 154
401
+ ],
402
+ "page_idx": 4
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "4 EVALUATION ",
407
+ "text_level": 1,
408
+ "bbox": [
409
+ 174,
410
+ 167,
411
+ 315,
412
+ 184
413
+ ],
414
+ "page_idx": 4
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "Datasets and Simulating Open Set Dataset We evaluate our approach using three datasets. The first is the Microsoft Malware Challenge Dataset msc (2015) which consists of disassembled windows malware samples from 9 malware families/classes. We use 10260 samples which are disassembled file parser was able to process correctly. The second dataset is the Android Genome Project Dataset mal which consists of malicious Android apps. In our evaluation, we use only 9 classes that have at least 40 samples. After removing the smaller classes, the dataset has 986 samples. We extract function call graph (FCG) features from the malware samples as proposed by Hassen and Chan Hassen & Chan (2017) . In case of the Android samples Android dataset we first use ada to extract the functions and the function instructions and then used Hassen & Chan (2017) to extract the FCG features. For MS Challenge dataset, we reformat the FCG features as a graph adjacency matrix by taking the edge frequency features in Hassen & Chan (2017) and rearranging them to form an adjacency matrix. Formatting the features this way allowed us to use convolutional layers on the MS Challenge dataset. To show that our approach can be applied to other domains we also evaluate our work on the MNIST Datasetmni, which consists of images of handwritten digits from 0 to 9. ",
419
+ "bbox": [
420
+ 174,
421
+ 199,
422
+ 825,
423
+ 393
424
+ ],
425
+ "page_idx": 4
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "To simulate an open world dataset for our evaluation datasets, we randomly choose $K$ number of classes from the dataset, which we will refer to as known classes in the remainder of this evaluation section, and keep only training instances from these classes in the training set. We will refer to the other classes as unknown classes. In case of the MS Dataset and Android Dataset, first, we randomly chose 6 known classes and treat set the remaining 3 as unknown classes. We then randomly select $7 5 \\%$ of the instances from the known classes for the training set and the remaining for the test set. We further withhold one-third of the test set to serve as a validation set for hyperparameter tuning. We use only the known class instances for tuning. In these two datasets, all the unknown class instances are placed into the test set. In case of the MNIST dataset, first, we randomly chose 6 known classes and the remaining 4 as unknown classes. We then remove the unknown class instances from the training set. We leave the test set, which has both known and unknown class instances, as it is. For each of our evaluation datasets, we create 3 open set datasets. We will refer to these open set datasets as OpenMNIST1, OpenMNIST2, and OpenMNIST3 for the three open set evaluation datasets created from MNIST. Similarly, we also create OpenMS1, OpenMS2, and OpenMS3 for MS Challenge dataset and OPenAndroid1, OpenAndroid2, and OpenAndroid3 for Android Genom Project dataset. ",
430
+ "bbox": [
431
+ 174,
432
+ 400,
433
+ 825,
434
+ 608
435
+ ],
436
+ "page_idx": 4
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "Evaluated Approaches We evaluate five approaches; all implemented using Tensorflow. The first $( i i )$ is a network setup to be trained using ii-loss. The second $( i i + c e )$ is a network setup to be simultaneously trained using ii-loss and cross entropy (Section 8). The third $( c e )$ is a network which we use to represent the baseline, is trained using cross-entropy only (network setup in Figure 1c without the ii-loss.) The forth approach is OpenmaxBendale & Boult (2016) (a state-of-art algorithm), which was reimplemented based on the original paper and the authors’ source code to fit our evaluation framework. The authors of Openmax state that the choice of distance function Euclidean or combined Euclidean and cosine distance give similar performance in the case of their evaluation datasets Bendale & Boult (2016). In our experiments, however, we observed that the combined Euclidean and cosine distance gives a much better performance. So we report the better result from combined Euclidean and cosine distance. The final approach is Generative Openmax (G-Openmax) Ge et al. (2017). The networks used for MS and MNIST datasets have convolutional layers at the beginning followed by fully connected layers, whereas for the android dataset we use only fully connected layers. The architecture is detailed Appendix A. Our source code is available on Github 1. The evaluation datasets are available online on their respective websites. ",
441
+ "bbox": [
442
+ 174,
443
+ 623,
444
+ 825,
445
+ 830
446
+ ],
447
+ "page_idx": 4
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "4.1 DETECTING UNKNOWN CLASS INSTANCES AND OPEN SET RECOGNITION ",
452
+ "text_level": 1,
453
+ "bbox": [
454
+ 176,
455
+ 847,
456
+ 723,
457
+ 861
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "We start our evaluation by showing how well outlier_score (in Equation 2) is able to identify unknown class instances. We evaluate it using 3 random open set datasets created from MS, Android and MNIST datasets as discussed in the Section on simulating open set dataset. For example, in the case of MNIST dataset, we run 10 experiments on OpenMNIST1, 10 experiments on OpenMNIST2, and 10 experiments on OpenMNIST3. We then report the average of the 30 runs. We do the same for the other two datasets. ",
464
+ "bbox": [
465
+ 176,
466
+ 873,
467
+ 825,
468
+ 901
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "table",
474
+ "img_path": "images/fec90605ea457803d89af82125bf61d98ddc2f7be5d9eb5dc537ec6ec785a9e1.jpg",
475
+ "table_caption": [
476
+ "Table 1: Average AUC of 30 runs up to $100 \\%$ FPR and $10 \\%$ FPR (the positive label represented instances from unknown classes and the negative label represented instances from the known classes when calculating the AUC). The underlined average AUC values are higher with statistical significance (p-value $< 0 . 0 5$ with a t-test) compared to the values that are not underlined on the same row. The average AUC values in bold are the largest average AUC values in each row. "
477
+ ],
478
+ "table_footnote": [],
479
+ "table_body": "<table><tr><td></td><td>FPR</td><td>ce</td><td>ii</td><td>ii+ce</td></tr><tr><td rowspan=\"2\">MNIST</td><td>100%</td><td>0.9282 (±0.0179)</td><td>0.9588 (±0.0140)</td><td>0.9475 (±0.0151)</td></tr><tr><td>10%</td><td>0.0775 (±0.0044)</td><td>0.0830 (±0.0045)</td><td>0.0801 (±0.0044)</td></tr><tr><td rowspan=\"2\">MS Challenge</td><td>100%</td><td>0.9143 (±0.0433)</td><td>0.9387 (±0.0083)</td><td>0.9407 (±0.0135)</td></tr><tr><td>10%</td><td>0.0526 (±0.0091)</td><td>0.0623 (±0.0030)</td><td>0.0596 (±0.0035)</td></tr><tr><td rowspan=\"2\">Android Genom</td><td>100%</td><td>0.7755 (±0.1114)</td><td>0.8563 (±0.0941)</td><td>0.9007 (±0.0426)</td></tr><tr><td>10%</td><td>0.0066 (±0.0052)</td><td>0.0300 (±0.0193)</td><td>0.0326 (±0.0182)</td></tr></table>",
480
+ "bbox": [
481
+ 199,
482
+ 183,
483
+ 799,
484
+ 309
485
+ ],
486
+ "page_idx": 5
487
+ },
488
+ {
489
+ "type": "table",
490
+ "img_path": "images/1aa5fe6bc5af7c2372961cb1d26060e60976adde85074d568d54fbecb0925c81.jpg",
491
+ "table_caption": [
492
+ "Table 2: Average F-Score of 30 Runs. The underlined average AUC values are higher with statistical significance (p-value $< 0 . 0 5$ with a t-test) compared to the values that are not underlined on the same row. The average AUC values in bold are the largest average AUC values in each row. "
493
+ ],
494
+ "table_footnote": [],
495
+ "table_body": "<table><tr><td></td><td>Openmax</td><td>G-Openmax</td><td>ce</td><td>ceii</td><td>ii</td></tr><tr><td>MNIST</td><td>0.88(±0.05)</td><td>0.69(±0.02)</td><td>0.74(±0.20)</td><td>0.92(±0.02)</td><td>0.93(±0.02)</td></tr><tr><td>MS</td><td>0.87(±0.01)</td><td>0.83(±0.02)</td><td>0.86(±0.04)</td><td>0.89(±0.01)</td><td>0.88(±0.01)</td></tr><tr><td>Android</td><td>0.30(±0.12)</td><td>0.60(±0.11)</td><td>0.46(±0.10)</td><td>0.71(±0.17)</td><td>0.69(±0.15)</td></tr></table>",
496
+ "bbox": [
497
+ 209,
498
+ 377,
499
+ 789,
500
+ 450
501
+ ],
502
+ "page_idx": 5
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "",
507
+ "bbox": [
508
+ 174,
509
+ 477,
510
+ 825,
511
+ 534
512
+ ],
513
+ "page_idx": 5
514
+ },
515
+ {
516
+ "type": "text",
517
+ "text": "Table 1 shows the results of this evaluation. To report the results in such a way that is independent of outlier threshold, we report the area under ROC curve (AUC). This area is calculated using the outlier score and computing the true positive rate (TPR) and the false positive rate (FPR) at different thresholds. We use the t-test to measure the statistical significance of the difference in AUC values. Looking at the AUC up to $100 \\%$ FPR in all three datasets, our approach $i i$ and $i i + c e$ perform significantly better(with $\\mathsf { p }$ -value of 0.04 or less) in identifying unknown class instances than the baseline approach $c e$ (using only cross entropy loss.) Although AUC up to $100 \\%$ FPR gives a full picture, in practice it is desirable to have good performance at lower false positive rates. That is is why we report AUC up to $10 \\%$ FPR. Our two approaches report a significantly better AUC than the baseline network trained to only minimize cross entropy loss. We didn’t include Openmax in this section’s evaluation because it doesn’t have an explicit outlier score. ",
518
+ "bbox": [
519
+ 174,
520
+ 540,
521
+ 825,
522
+ 693
523
+ ],
524
+ "page_idx": 5
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "When the proposed approach is used for open set recognition, the final prediction is a class label, which can be one of the $K$ known class labels if the test instances has an outlier score less than a threshold value or it can be an “unknown\" label if the instance has an outlier score greater than the threshold, Eq. 3. In addition to the three approaches evaluated in the previous section, we also include Openmax Bendale & Boult (2016) and G-Openmax Ge et al. (2017) in these evaluations because they give final class label predictions. ",
529
+ "bbox": [
530
+ 174,
531
+ 700,
532
+ 825,
533
+ 784
534
+ ],
535
+ "page_idx": 5
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "We use average F-score to evaluate open set recognition performance and t-test for statistical significance. Using the same experimental setup the earlier experiment, we report the result of the average f-score, averaged across all class labels and across 30 experiment runs in Table 2. On all three datasets the $i i$ and $i i + c e$ networks gives significantly better f-score compared to the other two configurations (with p-value of 0.0002 or less). In case of the Android dataset, all networks perform lower compared to the other two datasets. We attribute this to the small number of samples in the Android datasets. The dataset is also imbalanced with many classes only having less than 60 samples. ",
540
+ "bbox": [
541
+ 174,
542
+ 791,
543
+ 825,
544
+ 888
545
+ ],
546
+ "page_idx": 5
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "Two limitations of Openmax can explain its weaker performance compared to our proposed approaches: 1) it does not use a loss function that directly incentivizes projecting class instances around the mean class activation vector and 2) the distance function used by Openmax is not necessarily the right distance function for final activation vector space since it is not used in training. We addressed these limitations by training a neural network with a loss function that explicitly encourages properties P1 and P2. Also, we use the same distance function during training and test. ",
551
+ "bbox": [
552
+ 174,
553
+ 895,
554
+ 823,
555
+ 924
556
+ ],
557
+ "page_idx": 5
558
+ },
559
+ {
560
+ "type": "image",
561
+ "img_path": "images/c2b45326e66954ea640041c5efcc3e32e8427337726d4e890b76a0da28fa50d5.jpg",
562
+ "image_caption": [
563
+ "Figure 2: The z-layer projection of (a, b) known and (c, d) unknown class instances from test set of MNIST dataset. The labels 0,2,3,4,6,9 represent the known classes while the label “unknown\" represents the unknown classes. "
564
+ ],
565
+ "image_footnote": [],
566
+ "bbox": [
567
+ 138,
568
+ 103,
569
+ 828,
570
+ 378
571
+ ],
572
+ "page_idx": 6
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "",
577
+ "bbox": [
578
+ 174,
579
+ 460,
580
+ 825,
581
+ 517
582
+ ],
583
+ "page_idx": 6
584
+ },
585
+ {
586
+ "type": "text",
587
+ "text": "4.2 DISCUSSIONS ",
588
+ "text_level": 1,
589
+ "bbox": [
590
+ 174,
591
+ 534,
592
+ 310,
593
+ 547
594
+ ],
595
+ "page_idx": 6
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "Figure 2 provides evidence on how our network projects unknown class instances in the space between the known classes. In the figure the $\\mathbf { Z }$ -layer projection of 2000 random test instances of an open set dataset created from MNIST with 6 known and 4 unknown classes. The class labels 0, 2, 3, 4, 6, and 9 in the figure represent the 6 known classes while the “unknown\" label represents all the unknown classes. The network with ii-loss is set up to have a z-layer dimension of 6, and the figure shows a 2D plot of dimension (z0,z1), (z0,z2). The Openmax network also has a similar network architecture and last layer dimension of 6. In case of ii-loss based projection, the instances from the known classes (Figures 2a) are projected close to their respective class while the unknown class instances (Figures 2c) are projected, for the most part, in the region between the classes. In case of Openmax, Figures 2b and 2d, the unknown class instances do not fully occupy the open space between the known classes. In Openmax, most instances are projected along the axis; this is because of the one-hot encoding induced by cross-entropy loss. So compared to Openmax, ii-loss appears to better utilize space “among\" the classes. ",
600
+ "bbox": [
601
+ 173,
602
+ 559,
603
+ 825,
604
+ 741
605
+ ],
606
+ "page_idx": 6
607
+ },
608
+ {
609
+ "type": "image",
610
+ "img_path": "images/68e4758561fecd79ff15bc0e6f1f51b6593435334622f17ac3ec4d5db3b98486.jpg",
611
+ "image_caption": [
612
+ "Figure 3: Projections of Android dataset known class test instances from final activation layer of Openmax. "
613
+ ],
614
+ "image_footnote": [],
615
+ "bbox": [
616
+ 305,
617
+ 756,
618
+ 694,
619
+ 869
620
+ ],
621
+ "page_idx": 6
622
+ },
623
+ {
624
+ "type": "image",
625
+ "img_path": "images/fea0ce400d50c7fc9581892765c26c8ef8cb76d27c28d10a72d836e7d47d21f5.jpg",
626
+ "image_caption": [
627
+ "Figure 4: Projections of Android dataset (a) known class and (b) unknown class test instances from $\\mathbf { Z }$ -layer of a network trained with only cross entropy. "
628
+ ],
629
+ "image_footnote": [],
630
+ "bbox": [
631
+ 284,
632
+ 103,
633
+ 722,
634
+ 236
635
+ ],
636
+ "page_idx": 7
637
+ },
638
+ {
639
+ "type": "image",
640
+ "img_path": "images/6c55368f55b1ffbe3d37eaf6f46c2ab8e7589e6a763d2b0b10efdec3f97c2381.jpg",
641
+ "image_caption": [
642
+ "Figure 5: Inter class separation for networks trained (a) with batch normalization used in all layers and (b) without batch normalization at the $\\mathbf { Z }$ -layer. "
643
+ ],
644
+ "image_footnote": [],
645
+ "bbox": [
646
+ 316,
647
+ 296,
648
+ 687,
649
+ 410
650
+ ],
651
+ "page_idx": 7
652
+ },
653
+ {
654
+ "type": "text",
655
+ "text": "Performance of Openmax is especially low in case of the Android dataset because of low recall on known classes with small number training instances. The low recall was caused by test instances from the smaller classes being projected further away from the class’s mean activation vector (MAV). For example, in Figure 3a we see that test instances of class 2 are further away from the MAV of class 2 (marked by $\\because \\overrightarrow { \\mathbf { \\nabla } } \\star \\overrightarrow { \\mathbf { \\nabla } }$ ). As a result, these test instances are predicted as unknown. Similarly, in Figure 3b instances of class 3 are far away from the MAV of class 3(marked by ’X’). Performance of network trained with only cross entropy (ce) is also low for Android dataset because unknown class instances were projected close to the known classes (Figure 4). As a result, these instances get labeled as known classes. In turn, resulting in a lower precision score for the known classes. ",
656
+ "bbox": [
657
+ 174,
658
+ 478,
659
+ 825,
660
+ 604
661
+ ],
662
+ "page_idx": 7
663
+ },
664
+ {
665
+ "type": "text",
666
+ "text": "In our experiments, we have observed batch normalization Ioffe & Szegedy (2015) to be extremely important when using ii-loss. Because batch normalization fixes the mean and variance of a layer, it bounds the output of our $\\mathbf { Z }$ -layer in a certain hypercube, in turn preventing the inter_separation term in ii-loss from increasing indefinitely. This is evident in Figures 5a and 5b. Figure 5a shows the inter_separation of the network where batch normalization used in all layers including the z-layer; here, the inter_separation increases in the beginning but levels off. Whereas when batch normalization is not used in the $\\mathbf { Z }$ -layer the inter_separation term keeps on increasing as seen in Figure 5b; as a result, ii-loss would not converge. ",
667
+ "bbox": [
668
+ 174,
669
+ 611,
670
+ 825,
671
+ 723
672
+ ],
673
+ "page_idx": 7
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "Autoencoders can also be considered as another way to learn a representation. However, autoencoders do not try to achieve properties P1 and P2. One of the reasons is autoencoder training is unsupervised. Another reason is that non-regularized autoencoders fracture the manifold into different domains resulting in the representation of instances from the same class being further apart Makhzani et al. (2015). Therefore, in the learned representation, the known classes are not well separated. Additionally, outliers get projected to roughly the same area as the known classes. A figure in Appendix C shows the output of an encoder in an autoencoder. ",
678
+ "bbox": [
679
+ 174,
680
+ 729,
681
+ 826,
682
+ 827
683
+ ],
684
+ "page_idx": 7
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "5 CONCLUSION ",
689
+ "text_level": 1,
690
+ "bbox": [
691
+ 176,
692
+ 848,
693
+ 318,
694
+ 864
695
+ ],
696
+ "page_idx": 7
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "We presented an approach for learning a neural network based representation that projects instances of the same class closer together while projecting instances of the different classes further apart. Our empirical evaluation shows that the two properties lead to larger spaces among classes for instances of unknown classes to occupy, hence facilitating open set recognition. We compared our proposed approach with a baseline network trained to minimize a cross entropy loss and with Openmax (a state-of-art neural network based open set recognition approach). We evaluated the approaches on datasets of malware samples and images and observed that our proposed approach achieves statistically significant improvement. We proposed a simple threshold estimation technique in this paper. However, there is room to explore a more robust way to estimate the threshold. We leave this for future work. ",
701
+ "bbox": [
702
+ 174,
703
+ 882,
704
+ 823,
705
+ 924
706
+ ],
707
+ "page_idx": 7
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "",
712
+ "bbox": [
713
+ 174,
714
+ 103,
715
+ 825,
716
+ 200
717
+ ],
718
+ "page_idx": 8
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "REFERENCES ",
723
+ "text_level": 1,
724
+ "bbox": [
725
+ 174,
726
+ 223,
727
+ 287,
728
+ 238
729
+ ],
730
+ "page_idx": 8
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "Adagio. https://github.com/hgascon/adagio. ",
735
+ "bbox": [
736
+ 176,
737
+ 246,
738
+ 460,
739
+ 261
740
+ ],
741
+ "page_idx": 8
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "Android malware genome project. http://www.malgenomeproject.org/. ",
746
+ "bbox": [
747
+ 174,
748
+ 270,
749
+ 637,
750
+ 285
751
+ ],
752
+ "page_idx": 8
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "Mnist hand written digit dataset. http://yann.lecun.com/exdb/mnist/. ",
757
+ "bbox": [
758
+ 173,
759
+ 295,
760
+ 620,
761
+ 309
762
+ ],
763
+ "page_idx": 8
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "Microsoft malware classification challenge (big 2015). https://www.kaggle.com/c/malwareclassification, 2015. [Online; accessed 27-April-2015]. ",
768
+ "bbox": [
769
+ 173,
770
+ 318,
771
+ 826,
772
+ 348
773
+ ],
774
+ "page_idx": 8
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "Abhijit Bendale and Terrance Boult. Towards open world recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1893–1902, 2015. ",
779
+ "bbox": [
780
+ 174,
781
+ 357,
782
+ 821,
783
+ 386
784
+ ],
785
+ "page_idx": 8
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "Abhijit Bendale and Terrance E Boult. Towards open set deep networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1563–1572, 2016. ",
790
+ "bbox": [
791
+ 173,
792
+ 395,
793
+ 821,
794
+ 424
795
+ ],
796
+ "page_idx": 8
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "Paul Bodesheim, Alexander Freytag, Erik Rodner, Michael Kemmler, and Joachim Denzler. Kernel null space methods for novelty detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3374–3381, 2013. ",
801
+ "bbox": [
802
+ 173,
803
+ 433,
804
+ 826,
805
+ 477
806
+ ],
807
+ "page_idx": 8
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "Paul Bodesheim, Alexander Freytag, Erik Rodner, and Joachim Denzler. Local novelty detection in multi-class recognition problems. In Applications of Computer Vision (WACV), 2015 IEEE Winter Conference on, pp. 813–820. IEEE, 2015. ",
812
+ "bbox": [
813
+ 174,
814
+ 484,
815
+ 825,
816
+ 529
817
+ ],
818
+ "page_idx": 8
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "Douglas O Cardoso, Felipe França, and João Gama. A bounded neural network for open set recognition. In Neural Networks (IJCNN), 2015 International Joint Conference on, pp. 1–7. IEEE, 2015. ",
823
+ "bbox": [
824
+ 173,
825
+ 536,
826
+ 826,
827
+ 580
828
+ ],
829
+ "page_idx": 8
830
+ },
831
+ {
832
+ "type": "text",
833
+ "text": "Qing Da, Yang Yu, and Zhi-Hua Zhou. Learning with augmented class by exploiting unlabeled data. In Twenty-Eighth AAAI Conference on Artificial Intelligence, 2014. ",
834
+ "bbox": [
835
+ 171,
836
+ 589,
837
+ 823,
838
+ 619
839
+ ],
840
+ "page_idx": 8
841
+ },
842
+ {
843
+ "type": "text",
844
+ "text": "Thomas G. Dietterich. Steps toward robust artificial intelligence. AI Magazine, 38(3):3–24, 2017. ",
845
+ "bbox": [
846
+ 173,
847
+ 627,
848
+ 813,
849
+ 643
850
+ ],
851
+ "page_idx": 8
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "ZongYuan Ge, Sergey Demyanov, Zetao Chen, and Rahil Garnavi. Generative openmax for multiclass open set classification. arXiv preprint arXiv:1707.07418, 2017. ",
856
+ "bbox": [
857
+ 173,
858
+ 651,
859
+ 825,
860
+ 681
861
+ ],
862
+ "page_idx": 8
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "Mehadi Hassen and Philip K. Chan. Scalable function call graph-based malware classification. In 7th Conference on Data and Application Security and Privacy, pp. 239–248. ACM, 2017. ",
867
+ "bbox": [
868
+ 173,
869
+ 689,
870
+ 825,
871
+ 720
872
+ ],
873
+ "page_idx": 8
874
+ },
875
+ {
876
+ "type": "text",
877
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015. ",
878
+ "bbox": [
879
+ 176,
880
+ 728,
881
+ 825,
882
+ 771
883
+ ],
884
+ "page_idx": 8
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "Lalit P Jain, Walter J Scheirer, and Terrance E Boult. Multi-Class Open Set Recognition Using Probability of Inclusion. pp. 393–409, 2014. ",
889
+ "bbox": [
890
+ 171,
891
+ 780,
892
+ 825,
893
+ 809
894
+ ],
895
+ "page_idx": 8
896
+ },
897
+ {
898
+ "type": "text",
899
+ "text": "K. Lee, H. Lee, K. Lee, and J. Shin. Training confidence-calibrated classifiers for detecting out-ofdistribution samples. In Proc. ICLR 2018, 2018. ",
900
+ "bbox": [
901
+ 169,
902
+ 819,
903
+ 826,
904
+ 848
905
+ ],
906
+ "page_idx": 8
907
+ },
908
+ {
909
+ "type": "text",
910
+ "text": "Alireza Makhzani, Jonathon Shlens, Navdeep Jaitly, Ian Goodfellow, and Brendan Frey. Adversarial autoencoders. arXiv preprint arXiv:1511.05644, 2015. ",
911
+ "bbox": [
912
+ 173,
913
+ 857,
914
+ 823,
915
+ 886
916
+ ],
917
+ "page_idx": 8
918
+ },
919
+ {
920
+ "type": "text",
921
+ "text": "Enrique G Ortiz and Brian C Becker. Face recognition for web-scale datasets. Computer Vision and Image Understanding, 118:153–170, 2014. ",
922
+ "bbox": [
923
+ 173,
924
+ 895,
925
+ 823,
926
+ 924
927
+ ],
928
+ "page_idx": 8
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434, 2015. ",
933
+ "bbox": [
934
+ 173,
935
+ 103,
936
+ 823,
937
+ 132
938
+ ],
939
+ "page_idx": 9
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Konrad Rieck, Philipp Trinius, Carsten Willems, and Thorsten Holz. Automatic analysis of malware behavior using machine learning. Journal of Computer Security, 19(4):639–668, 2011. ",
944
+ "bbox": [
945
+ 173,
946
+ 150,
947
+ 823,
948
+ 179
949
+ ],
950
+ "page_idx": 9
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Ethan Rudd, Andras Rozsa, Manuel Gunther, and Terrance Boult. A survey of stealth malware: Attacks, mitigation measures, and steps toward autonomous open world solutions. IEEE Communications Surveys & Tutorials, 2017. ",
955
+ "bbox": [
956
+ 174,
957
+ 196,
958
+ 826,
959
+ 239
960
+ ],
961
+ "page_idx": 9
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "Walter J Scheirer, Anderson de Rezende Rocha, Archana Sapkota, and Terrance E Boult. Toward open set recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(7): 1757–1772, 2013. ",
966
+ "bbox": [
967
+ 174,
968
+ 257,
969
+ 825,
970
+ 299
971
+ ],
972
+ "page_idx": 9
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Y. Yu, W. Qu, N. Li, and Z. Guo. Open-category classification by adversarial sample generation. In Proc. IJCAI 2017, pp. 3357–3363, 2017. ",
977
+ "bbox": [
978
+ 173,
979
+ 318,
980
+ 825,
981
+ 347
982
+ ],
983
+ "page_idx": 9
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "A EVALUATION NETWORK ARCHITECTURES ",
988
+ "text_level": 1,
989
+ "bbox": [
990
+ 174,
991
+ 381,
992
+ 560,
993
+ 397
994
+ ],
995
+ "page_idx": 9
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "We evaluate 5 networks: ii, ce, $_ { \\mathrm { i i + c e } }$ , Openmax and G-Openmax. The first four networks and the final classifier of G-Openmax have the same architecture up to the fully connected $\\mathbf { Z }$ -layer. In case of the MNIST dataset, the input images are of size (28,28) and are padded to get an input layer size (32,32) with 1 channel. Following the input, layer are 2 non-linear convolutional layers with 32 and 64 units (filters) which have a kernel size of (4,4) with a (1,1) strides and SAME padding. The network also has max polling layers with a kernel size of (3,3), strides of (2,2), and SAME padding after each convolutional layer. Two fully connected non-linear layers with 256 and 128 units follow the second max pooling layer. Then a linear z-layer with a dimension of 6 follows the fully connected layers. In the case of $_ \\mathrm { i i + c e }$ and ce networks, the output of the $\\mathbf { Z }$ -layer is fed to an additional linear layer of dimension 6 which is then given to a softmax function. We use Relu activation function for all the non-linear layers. Batch normalization is used throughout all the layers. We also use Dropout with keep probability of 0.2 for the fully connected layers. Adam optimizer with a learning rate of 0.001, beta1 of 0.5, and beta2 of 0.999 is used to train our networks for 5000 iterations. In case of the Openmax network, the output of the $\\mathbf { Z }$ -layer is directly fed to a softmax layer. Similar to the Openmax paper we use a distance that is a weighted combination of normalized Euclidean and cosine distances. For the ce, ii, and $_ { \\mathrm { i i + c e } }$ we use contamination ratio of 0.01 for the threshold selection. ",
1000
+ "bbox": [
1001
+ 174,
1002
+ 416,
1003
+ 825,
1004
+ 637
1005
+ ],
1006
+ "page_idx": 9
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "The open set experiments for MS Challenge dataset also used similar architectures as the four networks used for MNIST dataset with the following differences. The input layer size MS Challenge dataset is (67,67) with 1 channel after padding the original input of (63,63). Instead of the two fully connected non-linear layers, we use one fully connected layer with 256 units. We use dropout in the fully connected layer with keep probability of 0.9. Finally, the network was trained using Adam optimizer with 0.001 learning rate, 0.9 beta1, and 0.999 beta2. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 645,
1014
+ 825,
1015
+ 728
1016
+ ],
1017
+ "page_idx": 9
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "We do not use a convolutional network for the Android dataset open set experiments. We use a network with one fully connected layer of 64 units. This is followed by a $\\mathbf { Z }$ -layer with a dimension of 6. For $_ \\mathrm { i i + c e }$ and ce networks we further add a linear layer with a dimension of 6 and the output of this layer is fed to a softmax layer. In case of Openmax, the output of the $\\mathbf { Z }$ -layer is directly fed to the softmax layer. For Openmax we use a distance that is a weighted combination of normalized Euclidean and cosine distances. We use Relu activation function for all the nonlinear layers. We used batch normalization for all layers. We also used Dropout with keep probability of 0.9 for the fully connected layers. We used Adam optimizer with a learning rate of 0.1 and first momentum of 0.9 to train our networks for 10000 iterations. For the ce, ii, and ii+ce we use contamination ratio of 0.01 for the threshold selection. ",
1022
+ "bbox": [
1023
+ 174,
1024
+ 736,
1025
+ 825,
1026
+ 875
1027
+ ],
1028
+ "page_idx": 9
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "The closed set experiments use the same set up as the open set experiments with the only difference coming from the dimension of the z-layer. For the MNIST dataset, we used z dimension of 10. For the MS and Android datasets, we use z dimension of 9. ",
1033
+ "bbox": [
1034
+ 176,
1035
+ 882,
1036
+ 823,
1037
+ 922
1038
+ ],
1039
+ "page_idx": 9
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "B CLOSED SET CLASSIFICATION ",
1044
+ "text_level": 1,
1045
+ "bbox": [
1046
+ 176,
1047
+ 102,
1048
+ 460,
1049
+ 118
1050
+ ],
1051
+ "page_idx": 10
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "In this section, we would like to show that on a closed dataset, a network trained using ii-loss performs comparably to the same network trained using cross entropy loss. For closed set classification, all the classes in the dataset are used for both training and test. For MS and Android datasets, we randomly divide the datasets into training, validation, and test and report the results on the test set. The MNIST dataset is already divided into training, validation, and test. ",
1056
+ "bbox": [
1057
+ 174,
1058
+ 133,
1059
+ 825,
1060
+ 203
1061
+ ],
1062
+ "page_idx": 10
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "On closed MNIST dataset, a network trained with cross-entropy achieved a 10-run average classification accuracy of $9 9 . 4 2 \\%$ . The same network trained using ii-loss achieved an average accuracy of $9 9 . 3 1 \\%$ . The network trained only on cross-entropy gives better performance than the network trained on ii-loss. The results from a network trained both ii-loss cross entropy loss to achieve an average classification accuracy of $9 9 . 4 0 \\%$ . This result makes it comparable to the performance of the same network trained using cross-entropy only (with a p-value of 0.22). We acknowledge that both results are not state-of-art as we are using simple network architectures. The primary goal of these experiments is to show that the ii-loss trained network can give comparable results to a cross entropy trained network. On the Android dataset, the network trained on a cross entropy gets an average classification accuracy of $9 3 . 1 0 \\%$ while ii-loss records $9 2 . 6 8 \\%$ , but the difference is not significant (with a p-value at 0.43). ",
1067
+ "bbox": [
1068
+ 173,
1069
+ 210,
1070
+ 825,
1071
+ 363
1072
+ ],
1073
+ "page_idx": 10
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "C DISCUSSION ",
1078
+ "text_level": 1,
1079
+ "bbox": [
1080
+ 174,
1081
+ 382,
1082
+ 313,
1083
+ 400
1084
+ ],
1085
+ "page_idx": 10
1086
+ },
1087
+ {
1088
+ "type": "image",
1089
+ "img_path": "images/6bab02304b6eaeec5b486e0dd187d991c65cce0d65554b54371ecdd222f904fd.jpg",
1090
+ "image_caption": [
1091
+ "Figure 6: Projections of (a) known and (b) unknown class instances using the hidden layer of an Autoencoder. The labels 0,2,3,4,6,9 represent the known classes while the label “unknown\" represents the unknown classes. "
1092
+ ],
1093
+ "image_footnote": [],
1094
+ "bbox": [
1095
+ 287,
1096
+ 421,
1097
+ 663,
1098
+ 695
1099
+ ],
1100
+ "page_idx": 10
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "We mentioned earlier that we used function call graph (FCG) feature for the malware dataset. We also mentioned that in case of the MS Challenge dataset we reformatted the FCG features proposed in Hassen & Chan (2017) to form a (63, 63) adjacency matrix representation of the graph. We feed this matrix as an input to the convolutional network with a (4,4) kernel. Such kernel shape makes sense when it comes to image input because in images proximity of pixels hold essential information. However, it is not apparent to us how nearby cells in a graph adjacency matrix hold meaning full information. We tried different kernel shapes, for example taking an entire row of the matrix at once (because a row of the matrix represents single nodes outgoing edge weights). However the simple (4,4) gives a better close set performance. ",
1105
+ "bbox": [
1106
+ 173,
1107
+ 768,
1108
+ 825,
1109
+ 893
1110
+ ],
1111
+ "page_idx": 10
1112
+ }
1113
+ ]
parse/train/r1elIi09K7/r1elIi09K7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/r1elIi09K7/r1elIi09K7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rke_YiRct7/rke_YiRct7.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rke_YiRct7/rke_YiRct7_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rke_YiRct7/rke_YiRct7_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rke_YiRct7/rke_YiRct7_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ryeHuJBtPH/ryeHuJBtPH.md ADDED
@@ -0,0 +1,353 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HYPER-SAGNN: A SELF-ATTENTION BASED GRAPH NEURAL NETWORK FOR HYPERGRAPHS
2
+
3
+ Ruochi Zhang School of Computer Science Carnegie Mellon University
4
+
5
+ Yuesong Zou School of Computer Science Carnegie Mellon University IIIS, Tsinghua University
6
+
7
+ Jian Ma School of Computer Science Carnegie Mellon University jianma@cs.cmu.edu
8
+
9
+ # ABSTRACT
10
+
11
+ Graph representation learning for hypergraphs can be used to extract patterns among higher-order interactions that are critically important in many real world problems. Current approaches designed for hypergraphs, however, are unable to handle different types of hypergraphs and are typically not generic for various learning tasks. Indeed, models that can predict variable-sized heterogeneous hyperedges have not been available. Here we develop a new self-attention based graph neural network called Hyper-SAGNN applicable to homogeneous and heterogeneous hypergraphs with variable hyperedge sizes. We perform extensive evaluations on multiple datasets, including four benchmark network datasets and two single-cell Hi-C datasets in genomics. We demonstrate that Hyper-SAGNN significantly outperforms the state-of-the-art methods on traditional tasks while also achieving great performance on a new task called outsider identification. Hyper-SAGNN will be useful for graph representation learning to uncover complex higher-order interactions in different applications.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Graph structure is a widely used representation for data with complex interactions. Learning on graphs has also been an active research area in machine learning on how to predict or discover patterns based on the graph structure (Hamilton et al., 2017b). Although existing methods can achieve strong performance in tasks such as link prediction and node classification, they are mostly designed for analyzing pair-wise interactions and thus are unable to effectively capture higher-order interactions in graphs. In many real-world applications, however, relationships among multiple instances are key to capturing critical properties, e.g., co-authorship involving more than two authors or relationships among multiple heterogeneous objects such as “(human, location, activity)”. Hypergraphs can be used to represent higher-order interactions (Zhou et al., 2007). To analyze higher-order interaction data, it is straightforward to expand each hyperedge into pair-wise edges with the assumption that the hyperedge is decomposable.
16
+
17
+ Several previous methods were developed based on this notion (Sun et al., 2008; Feng et al., 2018). However, earlier work DHNE (Deep Hyper-Network Embedding) (Tu et al., 2018) suggested the existence of heterogeneous indecomposable hyperedges where relationships within an incomplete subset of a hyperedge do not exist. Although DHNE provides a potential solution by modeling the hyperedge directly without decomposing it, due to the neural network structure used in DHNE, the method is limited to the fixed type and fixed-size heterogeneous hyperedges and is unable to consider relationships among multiple types of instances with variable size. For example, Fig. 1 shows a heterogeneous co-authorship hypergraph with two types of nodes (corresponding author and coauthor). Due to the variable number of both authors and corresponding authors in a publication, the hyperedges (co-authorship) have different sizes or types. Unfortunately, methods for representation learning of heterogeneous hypergraph with variable-sized hyperedges, especially those that can predict variable-sized hyperedges, have not been developed.
18
+
19
+ ![](images/3d7185edb618596f7109f17a04f2b6c586a88751d39a1bcfc0f96085b26d4a91.jpg)
20
+ Figure 1: An example of the coauthorship hypergraph. Here authors are represented as nodes (in dark blue and light blue) and coauthorships are represented as hyperedges.
21
+
22
+ In this work, we developed a self-attention based graph neural network, called Hyper-SAGNN that can work with both homogeneous and heterogeneous hypergraphs with variable hyperedge size. Using the same datasets in the DHNE paper (Tu et al., 2018), we demonstrated the advantage of Hyper-SAGNN over DHNE in multiple tasks. We further tested the effectiveness of the method in predicting edges and hyperedges and showed that the model can achieve better performance from the multi-tasking setting. We also formulated a novel task called outsider identification and showed that Hyper-SAGNN performs strongly. Importantly, as an application of Hyper-SAGNN to singlecell genomics, we were able to learn the embeddings for the most recently produced single-cell Hi-C (scHi-C) datasets to uncover the clustering of cells based on their 3D genome structure (Ramani et al., 2017; Nagano et al., 2017). We showed that Hyper-SAGNN achieved improved results in identifying distinct cell populations as compared to existing scHi-C clustering methods. Taken together, Hyper-SAGNN can significantly outperform state-of-the-art methods and can be applied to a wide range of hypergraphs for different applications.
23
+
24
+ # 2 RELATED WORK
25
+
26
+ Deep learning based models have been developed recently to generalize from graphs to hypergraphs (Gui et al., 2016; Tu et al., 2018). The HyperEdge Based Embedding (HEBE) method (Gui et al., 2016) aims to learn the embeddings for each object in a specific heterogeneous event by representing it as a hyperedge. However, as demonstrated in Tu et al. (2018), HEBE does not perform well on sparse hypergraphs. Notably, previous methods typically decompose the hyperedge into pair-wise relationships where the decomposition methods can be divided into two categories: explicit and implicit. For instance, given a hyperedge $( v _ { 1 } , v _ { 2 } , v _ { 3 } )$ , the explicit approach would decompose it directly into three edges, $( v _ { 1 } , v _ { 2 } ) , ( v _ { 2 } , v _ { 3 } ) , ( v _ { 1 } , v _ { 3 } )$ , while the implicit approach would add a hidden node $e$ representing the hyperedge before decomposition, i.e., $( \bar { v } _ { 1 } , e ) , \bar { ( v } _ { 2 } , e ) , ( v _ { 3 } , e )$ . The deep hypergraph embedding (DHNE) model, however, directly models the tuple-wise relationship using MLP (Multilayer Perceptron). The method is able to achieve better performance on multiple tasks as compared to other methods designed for graphs or hypergraphs such as Deepwalk (Perozzi et al., 2014), node2vec (Grover & Leskovec, 2016), and HEBE. Unfortunately, the structure of MLP takes fixed-size input, making DHNE only capable of handling $k$ -uniform hypergraphs, i.e., hyperedges containing $k$ nodes. To use DHNE for non- $k$ -uniform hypergraphs or hypergraphs with different types of hyperedges, a function for each type of hyperedges needs to be trained individually, which leads to significant computational cost and loss of the capability to generalize to unseen types of hyperedges. Similarly, heterogeneous hyper-network embedding (Baytas et al., 2018) also used MLP as part of the model which requires fixed size input to train the model. Another recent method, hyper2vec (Huang et al., 2019), can also generate embeddings for nodes within the hypergraph and outperforms other hypergraph embedding methods such as HGE (Yu et al., 2018) in the node classification task. However, hyper2vec cannot solve the link prediction problem directly as it only generates the embeddings of nodes in an unsupervised manner without a learned function to map from embeddings of nodes to hyperedges. Also, for $k$ -uniform hypergraphs, hyper2vec is equivalent to node2vec, which cannot capture the high-order network structures for indecomposable hyperedges (as shown in Tu et al. (2018)). Moreover, graph neural network based methods (Yadati et al., 2018; Feng et al., 2019; Bai et al., 2019) have been proposed to generalize the convolution operation or attention mechanism from graphs to hypergraphs. However, these methods mainly focus on the hypergraphs where node attributes are known and are typically used for semi-supervised node classification tasks. Similar to hyper2vec, these methods cannot be directly used for predicting hyperedges. Our Hyper-SAGNN in this work addresses all these challenges with a self-attention based graph neural network that can learn embeddings of the nodes and predict hyperedges for non- $k$ -uniform heterogeneous hypergraphs.
27
+
28
+ # 3 METHOD
29
+
30
+ # 3.1 DEFINITIONS AND NOTATIONS
31
+
32
+ Definition 1. (Hypergraph) A hypergraph is defined as $G = ( V , E )$ , where $V = \{ v _ { 1 } , . . . , v _ { n } \}$ represents the set of nodes in the graph, and $E = \{ e _ { i } = ( v _ { 1 } ^ { ( i ) } , . . . , v _ { k } ^ { ( i ) } ) \}$ represents the set of hyperedges. For any hyperedge $e$ , it can contain more than two nodes (i.e., $\bar { \delta } ( e ) \geq 2 )$ . If all hyperedges within a hypergraph have the same size of $k$ , it is called a $k$ -uniform hypergraph. Note that even if a hypergraph is $k$ -uniform, it can still have different types of hyperedges because the node type can vary for nodes within the hyperedges.
33
+
34
+ Definition 2. (The hyperedge prediction problem) We formally define the hyperedge prediction problem. For a given tuple $( v _ { 1 } , v _ { 2 } , . . . , v _ { k } )$ , our goal is to learn a function $f$ that satisfies:
35
+
36
+ $$
37
+ f ( v _ { 1 } , v _ { 2 } , . . . , v _ { k } ) = { \left\{ \begin{array} { l l } { \geq s , } & { { \mathrm { i f ~ } } ( v _ { 1 } , v _ { 2 } , . . . , v _ { k } ) \in E } \\ { < s , } & { { \mathrm { i f ~ } } ( v _ { 1 } , v _ { 2 } , . . . , v _ { k } ) \not \in E } \end{array} \right. }
38
+ $$
39
+
40
+ where $s$ is the threshold to binarize the continuous value of $f$ into a label, which indicates whether the tuple is an hyperedge or not. Specifically, when we are given the pre-trained embedding vectors or the features of nodes $X = \{ x _ { 1 } , . . . , x _ { i } \}$ , we can rewrite this function as:
41
+
42
+ $$
43
+ f ( v _ { 1 } , v _ { 2 } , . . . , v _ { k } ) \triangleq f ( g ( x _ { 1 } ) , g ( x _ { 2 } ) , . . . , g ( x _ { k } ) )
44
+ $$
45
+
46
+ where the vectors $g ( x _ { i } )$ can be considered as the fine-tuned embedding or embedding vectors for the nodes. For convenience, we refer to $x _ { i }$ as the features and $g ( x _ { i } )$ as the learned embeddings.
47
+
48
+ # 3.2 STRUCTURE OF HYPER-SAGNN
49
+
50
+ Our goal is to learn the functions $f$ and $g$ that take tuples of node features $( x _ { 1 } , . . . , x _ { k } )$ as input and produce the probability of these nodes forming a hyperedge. Without the assumption that the hypergraph is $k$ -uniform and the type of each hyperedge is identical, we require that $f$ can take variable-sized, non-ordered input. Although simple functions such as average pooling $\begin{array} { r } { f ( g ( x _ { 1 } ) , . . . , g ( x _ { k } ) ) = \frac { 1 } { K } \sum _ { i = 1 } ^ { k } g ( x _ { i } ) } \end{array}$ satisfy this tuple-wise condition, previous work showed that the linear function is not sufficient to model this relationship (Tu et al., 2018). DHNE used an MLP to model the non-linear function, but it requires that an individual function needs to be trained for different types of hyperedges. Here we propose a new method to tackle the general hyperedge prediction problem.
51
+
52
+ Graph neural network based methods such as GraphSAGE (Hamilton et al., 2017a) typically define a unique computational graph for each node, allowing it to perform efficient information aggregation for nodes with different degrees. Graph Attention Network (GAT) (Velickovi ˇ c et al., 2017) utilizes ´ a self-attention mechanism in the information aggregation process. Motivated by these properties, we propose our method Hyper-SAGNN based on the self-attention mechanism within each tuple to learn the function $f$ .
53
+
54
+ We first briefly introduce the selfattention mechanism. We use the same terms as the self-attention mechanism described in Vaswani et al. (2017); Velickovi ˇ c et al. (2017). Given a group ´ of nodes $\left( \vec { x } _ { 1 } , \vec { x } _ { 2 } , . . . , \vec { x } _ { k } \right)$ and weight matrices $W _ { Q } , W _ { K } , W _ { V }$ that represent linear transformations of features before applying the dot-product attention to be trained, we first compute the attention coefficients that reflect the pairwise importance of nodes:
55
+
56
+ ![](images/ef89afc7791475249e0d6dca699c8f8ba53f3028d25320bc26dae489763651e6.jpg)
57
+ Figure 2: Structure of the neural network used in HyperSAGNN. The input $\left( \vec { x } _ { 1 } , \vec { x } _ { 2 } , . . . , \vec { x } _ { k } \right)$ , representing the features for nodes 1 to $k$ , passes through two branches of the network resulting in static embeddings $\left( \vec { s } _ { 1 } , \vec { s } _ { 2 } , . . . , \vec { s } _ { k } \right)$ and dynamic embeddings $( \vec { d } _ { 1 } , \vec { d } _ { 2 } , . . . , \vec { d } _ { k } )$ , respectively. The layer for generating dynamic embeddings is the multi-head attention layer. An example for its mechanism on node 1 here is shown in the figure as well. Then the pseudo-euclidean distance of each pair of static and dynamic embeddings is calculated by onelayered position-wise feed-forward network to produce probability scores $\left( p _ { 1 } , p _ { 2 } , . . . , p _ { k } \right)$ . These scores are further averaged to represent whether this group of nodes form a hyperedge.
58
+
59
+ $$
60
+ e _ { i j } = \left( W _ { Q } ^ { T } x _ { i } \right) ^ { T } \left( W _ { K } ^ { T } x _ { j } \right) , \forall 1 \leq i , j \leq k
61
+ $$
62
+
63
+ We then normalize $e _ { i j }$ by all possible $j$ within the tuple through the softmax function, i.e.,
64
+
65
+ $$
66
+ \alpha _ { i j } = \frac { \exp ( e _ { i j } ) } { \sum _ { 1 \leq l \leq k } \exp ( e _ { i l } ) }
67
+ $$
68
+
69
+ Finally, a weighted sum of the transformed features with an activation function is calculated:
70
+
71
+ $$
72
+ \vec { d } _ { i } = \operatorname { t a n h } \left( \sum _ { 1 \leq j \leq k , i \neq j } \alpha _ { i j } W _ { V } ^ { T } x _ { j } \right)
73
+ $$
74
+
75
+ In GAT, each node is applied to the self-attention mechanism usually with all its first-order neighbors. In Hyper-SAGNN, we aggregate the information for a node $v _ { i }$ only with its neighbors for a given tuple. The structure of Hyper-SAGNN is illustrated in Fig. 2.
76
+
77
+ The input to our model can be represented as tuples, i.e., $\left( \vec { x } _ { 1 } , \vec { x } _ { 2 } , . . . , \vec { x } _ { k } \right)$ . Each tuple first passes through a position-wise feed-forward network to produce $\left( \vec { s } _ { 1 } , \vec { s } _ { 2 } , . . . , \vec { s } _ { k } \right)$ , where $\vec { s } _ { i } = \bar { \operatorname { t a n h } } ( \bar { W } _ { s } ^ { T } \vec { x } _ { i } )$ . We refer to each $\vec { s _ { i } }$ as the static embedding for node $i$ since it remains the same for node $i$ no matter what the given tuple is. The tuple also passes through a multi-head graph attention layer to produce a new set of node embedding vectors $( \dot { \vec { d } } _ { 1 } , \vec { d } _ { 2 } , . . . , \vec { d } _ { k } )$ , which we refer to as the dynamic embeddings because they are dependent on all the node features within this tuple.
78
+
79
+ Note that unlike the standard attention mechanism described above, when calculating $\vec { d _ { i } }$ , we require that $j \neq i$ in Eqn. (5). In other words, we exclude the term $\alpha _ { i i } W _ { V } ^ { T } x _ { i }$ in the calculation of dynamic embeddings. Based on our results we found that including $\vec { \alpha } _ { i i }$ would lead to either similar or worse performance in terms of hyperedge prediction and node classification (see Appendix A.6 for details). We will elaborate on the motivation of this choice later in this section.
80
+
81
+ With the static and dynamic embedding vectors for each node, we calculate the Hadamard power (element-wise power) of the difference of the corresponding static/dynamic pair. It is then further passed through a one-layered neural network with sigmoid as the activation function to produce a probability score $p _ { i }$ . Finally, all the output $p _ { i } \in [ 0 , 1 ]$ is averaged to get the final $p$ , i.e.,
82
+
83
+ $$
84
+ \begin{array} { l } { { \displaystyle o _ { i } = W _ { o } ^ { T } ( ( \vec { d } _ { i } - \vec { s } _ { i } ) ^ { \circ 2 } ) + b } } \\ { { \displaystyle p = \frac { 1 } { K } \sum _ { i = 1 } ^ { k } p _ { i } = \frac { 1 } { K } \sum _ { i = 1 } ^ { k } \sigma ( o _ { i } ) } } \end{array}
85
+ $$
86
+
87
+ By design, $o _ { i }$ can be regarded as the squared weighted pseudo-euclidean distance between the static embedding $\vec { s } _ { i }$ and the dynamic one $\vec { d } _ { i }$ . It is called pseudo-euclidean distance because we do not require the weight to be non-zero or to sum up to 1. One rationale for allowing negative weights when calculating the distance could be the Minkowski space where the distance is defined as $d ^ { 2 } = x ^ { 2 } + \stackrel { . } { y } ^ { 2 } + z ^ { 2 } - t ^ { 2 }$ . Therefore, for these high-dimensional embedding vectors, we do not specifically treat them as euclidean vectors.
88
+
89
+ Our network essentially aims to build the correlation of the average “distance” of the static/dynamic embedding pairs with the probability of the node group forming a hyperedge. Since the dynamic embedding is the weighted sum of features (with potential non-linear transformation) from neighbors within the tuple, this “distance” reflects how well the static embedding of each node can be approximated by the features of their neighbors within that tuple. This design strategy shares some similarities with the CBOW model in natural language processing (Mikolov
90
+
91
+ ![](images/6a00ff2a4d42bad32d89a9c2c2151c1735c9865d97d2f01dfb33ed2874e0e494.jpg)
92
+ Figure 3: Illustration of the method for generating node features for node $_ { i }$ in the hypergraph. In the walk based approach, a biased random walk on hypergraphs is used to produce walking paths (the yellow circles in the walking paths represent node i). These walks are further used to train a skip-gram model to generate features. In the encoder based approach, the $_ { i }$ -th row of the adjacency matrix (as shown in the figure where the orange/white blocks represent whether or not node $_ { i }$ is adjacent to other nodes in the graph) is used as the input to an autoencoder. The output of the encoder part is used as the features for node $_ { i }$ .
93
+
94
+ et al., 2013), where the model aims to predict the target word given its context (see Appendix A.5 for the analysis of the static/dynamic embedding pairs). In principle, we could still include the $\vec { \alpha } _ { i i }$ term to obtain the embedding $\vec { d } _ { i } ^ { * }$ . Alternatively, we can directly pass $\vec { d } _ { i } ^ { * }$ through a fully connected layer to produce $p _ { i } ^ { * }$ while the rest remains the same. However, we argue that our proposed model would be able to produce $s _ { i }$ that can be directly used for tasks such as node classification while the alternative approach is unable to achieve that (see Appendix A.6 for detailed analysis).
95
+
96
+ # 3.3 APPROACHES FOR GENERATING FEATURES
97
+
98
+ In an inductive learning setting with known attributes for the nodes, $\vec { x } _ { i }$ can just be the attributes of the node. However, in a transductive learning setting without knowing the attributes of the nodes, we have to generate $\vec { x } _ { i }$ based on the graph structure solely. Here we use two existing strategies to generate features $\vec { x } _ { i }$ . As shown in Fig. 3, the first approach is the random walk based method. We designed a biased random walk scheme for nodes in hypergraphs and used that to sample walks. Then, similar to node2vec, a skip-gram model is trained to generate features. The second approach is the encoder based approach where the corresponding row of the adjacency matrix is used as the features. The features are further passed through an autoencoder-like structure to reduce the dimensionality with the output of the hidden layer used as the features. The detailed description of these two approaches can be found in Appendix A.1.
99
+
100
+ # 4 RESULTS
101
+
102
+ We sought to compare Hyper-SAGNN with the state-of-the-art method DHNE as it has already been demonstrated with superior performance over previous algorithms such as DeepWalk, LINE, and HEBE. We first used the same four datasets in the DHNE paper to have a direct comparison. The details on these datasets can be found in the Appendix A.2. The details on the parameters used in this section for both Hyper-SAGNN and other methods can also be found in the Appendix A.3. The details of the tasks and the evaluation metrics used in this section are explained in the Appendix A.4.
103
+
104
+ # 4.1 PERFORMANCE COMPARISON WITH EXISTING METHODS
105
+
106
+ We evaluated the effectiveness of our embedding vectors and the learned function with the network reconstruction task. We compared our Hyper-SAGNN using the encoder based approach and also the model using the random walk based pre-trained embeddings against DHNE and the baseline node2vec. We first trained the model and then used the learned embeddings to predict the hyperedges of the original network. We sampled the negative samples to be 5 times the amount of the positive samples following the same setup of DHNE. We evaluated the performance based on both the AUROC (Area Under the Receiver Operating Characteristic curve) and the AUPR (Area under the Precision-Recall curve). As shown in Table 1, Hyper-SAGNN can capture the network structure better than DHNE over all datasets either using the encoder based approach or the random walk based approach.
107
+
108
+ Table 1: AUC and AUPR values for network reconstruction. The models trained with the random walk based approach and the encoder based approach are marked as Hyper-SAGNN-W and Hyper-SAGNN-E, respectively.
109
+
110
+ <table><tr><td rowspan="2"></td><td colspan="2">GPS</td><td colspan="2">MOVIELENS</td><td colspan="2">DRUG</td><td colspan="2">WORDNET</td></tr><tr><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td></tr><tr><td>node2vec-mean</td><td>0.572</td><td>0.188</td><td>0.557</td><td>0.197</td><td>0.668</td><td>0.246</td><td>0.613</td><td>0.215</td></tr><tr><td>node2vec-min</td><td>0.570</td><td>0.187</td><td>0.535</td><td>0.186</td><td>0.682</td><td>0.257</td><td>0.576</td><td>0.201</td></tr><tr><td>DHNE</td><td>0.959</td><td>0.836</td><td>0.974</td><td>0.878</td><td>0.952</td><td>0.873</td><td>0.989</td><td>0.953</td></tr><tr><td>Hyper-SAGNN-E</td><td>0.971</td><td>0.877</td><td>0.991</td><td>0.952</td><td>0.977</td><td>0.916</td><td>0.989</td><td>0.950</td></tr><tr><td>Hyper-SAGNN-W</td><td>0.976</td><td>0.857</td><td>0.998</td><td>0.986</td><td>0.988</td><td>0.945</td><td>0.994</td><td>0.956</td></tr></table>
111
+
112
+ We further assessed the performance of Hyper-SAGNN on the hyperedge prediction task. We randomly split the hyperedge set into training and testing set by a ratio of 4:1. The way to generate negative samples is the same as the network reconstruction task. As shown in Table 2, our model again achieves significant improvement over DHNE for predicting the unseen hyperedges. The most significant improvement is from the wordnet dataset, which is about a $2 4 . 6 \%$ increase on the AUPR score. For network reconstruction and hyperedge prediction tasks, the difference between the random walk based Hyper-SAGNN and the encoder based Hyper-SAGNN is minor.
113
+
114
+ In addition to the tasks related to the prediction of hyperedges, we also evaluated whether the learned embeddings are effective for node classification tasks. A multi-label classification experiment and a multi-class classification experiment were carried out for the MovieLens dataset and the wordnet dataset, respectively. We used Logistic Regression as the classifier. The proportion of the training data was chosen to be from $10 \%$ to $90 \%$ for the MovieLens dataset, and $1 \%$ to $10 \%$ for the wordnet dataset. We used averaged Mirco-F1 and Macro-F1 to evaluate the performance. The results are in Fig. 4. We observed that Hyper-SAGNN consistently achieves both higher Micro-F1 and Macro-F1 scores over DHNE for different fractions of the training data. Also, Hyper-SAGNN based on the random walk generally achieves the best performance (Hyper-SAGNN-W in Fig. 4).
115
+
116
+ ![](images/b81cc54be66315c169f54f95b8208888706edca91c358f6796546394ccdc348f.jpg)
117
+ Figure 4: Performance of classification on MovieLens and wordnet datasets. Hyper-SAGNNs trained with the random walk based approach and the encoder based approach are marked as Hyper-SAGNN-W, HyperSAGNN-E, respectively. The models trained with a mix of edges and hyperedges are denoted with “(mix)”.
118
+
119
+ # 4.2 PERFORMANCE ON NON- $k$ -UNIFORM HYPERGRAPH
120
+
121
+ Next, we evaluated Hyper-SAGNN using the non- $k$ -uniform heterogeneous hypergraph. For the above four datasets, we decomposed each hyperedge into 3 pairwise edges and added them to the existing graph. We trained our model to predict both the hyperedges and the edges (i.e., nonhyperedges). We then evaluated the performance for link prediction tasks for both the hyperedges and the edges. We also performed the node classification task following the same setting as above. The results for link prediction are in Table 2. Fig. 4 shows the results for the node classification task.
122
+
123
+ Table 2: Performance evaluation based on AUROC and AUPR for hyperedge/edge prediction. Methods with annotation (mix) represent Hyper-SAGNN trained with a mixture of edges and hyper-edges. Datasets marked with “(2)” represent the performance on pair-wise edge prediction (i.e., non-hyperedges).
124
+
125
+ <table><tr><td rowspan="2"></td><td colspan="2">GPS</td><td colspan="2">MOVIELENS</td><td colspan="2">DRUG</td><td colspan="2">WORDNET</td></tr><tr><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td></tr><tr><td>node2vec-mean</td><td>0.563</td><td>0.191</td><td>0.562</td><td>0.197</td><td>0.670</td><td>0.246</td><td>0.608</td><td>0.213</td></tr><tr><td>node2vec - min</td><td>0.570</td><td>0.185</td><td>0.539</td><td>0.186</td><td>0.684</td><td>0.258</td><td>0.575</td><td>0.200</td></tr><tr><td>DHNE</td><td>0.910</td><td>0.668</td><td>0.877</td><td>0.668</td><td>0.925</td><td>0.859</td><td>0.816</td><td>0.459</td></tr><tr><td>Hyper-SAGNN-E</td><td>0.952</td><td>0.798</td><td>0.926</td><td>0.793</td><td>0.961</td><td>0.895</td><td>0.890</td><td>0.705</td></tr><tr><td>Hyper-SAGNN-W</td><td>0.922</td><td>0.722</td><td>0.930</td><td>0.810</td><td>0.955</td><td>0.892</td><td>0.880</td><td>0.706</td></tr><tr><td>Hyper-SAGNN-E (mix)</td><td>0.950</td><td>0.795</td><td>0.928</td><td>0.799</td><td>0.956</td><td>0.887</td><td>0.881</td><td>0.694</td></tr><tr><td>Hyper-SAGNN-W (mix)</td><td>0.920</td><td>0.720</td><td>0.929</td><td>0.811</td><td>0.950</td><td>0.889</td><td>0.884</td><td>0.684</td></tr><tr><td></td><td colspan="2">GPS (2)</td><td></td><td>MOVIELENS (2)</td><td></td><td>DRUG (2)</td><td>WORDNET (2)</td><td></td></tr><tr><td></td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td></tr><tr><td>Hyper-SAGNN-E (mix)</td><td>0.921</td><td>0.899</td><td>0.971</td><td>0.967</td><td>0.981</td><td>0.973</td><td>0.891</td><td>0.897</td></tr><tr><td>Hyper-SAGNN-W (mix)</td><td>0.931</td><td>0.910</td><td>0.999</td><td>0.999</td><td>0.999</td><td>0.999</td><td>0.923</td><td>0.916</td></tr></table>
126
+
127
+ We observed that Hyper-SAGNN can preserve the graph structure on different levels. Compared to training the model with hyperedges only, including the edges into the training would not cause obvious changes in performance for hyperedge predictions (about a $1 \%$ fluctuation for AUC/AUPR).
128
+
129
+ We then further assessed the model in a new evaluation setting where there are adequate edges but only a few hyperedges presented. We asked whether the model can still achieve good performance on the hyperedge prediction based on this dataset. This scenario is possible in real-world applications especially when the dataset is combined from different sources. For example, in the drug dataset, it is possible that, in addition to the (user, drug, reaction) hyperedges, there are also extra edges that come from other sources, e.g., (drug, reaction) edges from the drug database, (user, drug) and (user, reaction) edges from the medical record. Here for each dataset that we tested, we used $50 \%$ of the edges and only $5 \%$ of the hyperedges to train the model. The results are in Fig. 5.
130
+
131
+ When using only the edges to train the model, our method still achieves higher AUROC and AUPR score for hyperedge prediction as compared to node2vec (Table 2). We found that when the model is trained with both the downsampled hyperedge dataset and the edge dataset, it would be able to reach higher performance or suffer less from overfitting than being trained with each of the datasets individually. This demonstrates that our model can capture the consensus information on the graph structure across different sizes of hyperedges.
132
+
133
+ ![](images/fae418121b31e783d45f3c35949e2f20fea66c4b8d15ea3f051e738578a0dfd8.jpg)
134
+ Figure 5: AUROC and AUPR scores of Hyper-SAGNN for hyperedge prediction on the downsampled dataset over training epochs.
135
+
136
+ # 4.3 OUTSIDER IDENTIFICATION
137
+
138
+ In addition to the standard link prediction and node classification, we further formulated a new task called “outsider identification”. Previous methods such as DHNE can answer the question of whether a specific tuple of nodes $( v _ { 1 } , v _ { 2 } , . . . , v _ { k } )$ form a hyperedge. However, in many settings, we might also want to know the reason why this group of nodes will not form a hyperedge. We first define the outsider of a group of nodes as follows. Node $v _ { i }$ is the outsider of the node group $( v _ { 1 } , v _ { 2 } , . . . , v _ { k } )$ if it satisfies:
139
+
140
+ $$
141
+ \begin{array} { l } { \exists e \in E , ( v _ { 1 } , v _ { 2 } , . . . , v _ { i - 1 } , v _ { i + 1 } , . . . , v _ { k } ) \in e } \\ { \exists e \in E , s . t . \exists j \in \{ 1 , 2 , . . , k \} , j \not = i , ( v _ { i } , v _ { j } ) \in e } \end{array}
142
+ $$
143
+
144
+ We speculated that Hyper-SAGNN can answer this question by analyzing the probability score $p _ { 1 }$ to $p _ { k }$ (defined in Eqn. 7). We assume that the node $v _ { i }$ with the smallest $p _ { i }$ would be the outsider. We then set the evaluation as follows. We first trained the model as usual, but at the final stage, we replaced the average pooling layer with the min pooling layer and fine-tuned the model for several epochs. We then fed the generated triplets with known outsider node into the trained model and calculated the top- $k$ accuracy of the outsider node matching the node with the smallest probability. Because this task is based on the prediction results of the hyperedges, we only tested on the dataset that achieves the best hyperedge prediction, i.e., the drug dataset. We found that we have $8 1 . 9 \%$ accuracy for the smallest probability and $9 5 . 3 \%$ accuracy for the top-2 smallest probability. These results show that by switching the pooling layer we would have better outsider identification accuracy (from $78 . 5 \%$ to $8 1 . 9 \%$ ) with the cost of slightly decreased hyperedge prediction performance (AUC from 0.955 to 0.935). This demonstrates that our model is able to accurately predict the outsider within the group even without further labeled information. Moreover, the performance of outsider identification can be further improved if we include the cross-entropy between $p _ { i }$ and the label of whether $v _ { i }$ is an outsider for all applicable triplets in the loss term. Together, these results show the advantage of Hyper-SAGNN in terms of the interpretability of hyperedge prediction.
145
+
146
+ # 4.4 APPLICATION TO SINGLE-CELL HI-C DATASETS
147
+
148
+ We next applied Hyper-SAGNN to the recently produced single-cell Hi-C (scHi-C) datasets (Ramani et al., 2017; Nagano et al., 2017). Genome-wide mapping of chromatin interactions by HiC (Lieberman-Aiden et al., 2009; Rao et al., 2014) has enabled comprehensive characterization of the 3D genome organization that reveals patterns of chromatin interactions between genomic loci. However, unlike bulk Hi-C data where signals are aggregated from cell populations, scHi-C provides unique information about chromatin interactions at single-cell resolution, thus allowing us to ascertain cell-to-cell variation of the 3D genome organization. Specifically, we propose that scHi-C makes it possible to model the cell-to-cell variation of chromatin interaction as a hyperedge, i.e., (cell, genomic locus, genomic locus). Note that the hyperedege here is “partially non-ordered”, namely (cell $i$ , locus $j$ , locus $k$ ) should be equivalent to (cell $i$ , locus $k$ , locus $j$ ). Our method is able to guarantee that while DHNE cannot achieve that directly. For the analysis of scHi-C, the most common strategy would be revealing the cell-to-cell variation by embedding the cells based on the contact matrix and then applying the clustering algorithms such as $K$ -means clustering on the embedded vectors. We performed the following evaluation to assess the effectiveness of HyperSAGNN on learning the embeddings of cells by representing the scHi-C data as hypergraphs.
149
+
150
+ We tested Hyper-SAGNN on two datasets. The first one consists of scHi-C from four human cell lines: HAP1, GM12878, K562, and HeLa (Ramani et al., 2017). The second one includes the scHiC that represents the cell cycle of the mouse embryonic stem cells (Nagano et al., 2017). We refer to the first dataset as “Ramani et al. data”, and the second as “Nagano et al. data” for abbreviation. We trained Hyper-SAGNN with the corresponding datasets. Due to the large average degrees of cell nodes, the random walk approach would take an extensive amount of time to sample the walks. Thus, we only applied the encoder version of our method. We visualize the learned embeddings by reducing them to 2 dimensions with PCA and UMAP (McInnes et al., 2018) (Fig. 6A-D).
151
+
152
+ We quantified the effectiveness of the embeddings by applying $K$ -means clustering on the Ramani et al. data and evaluating with Adjusted Rand Index (ARI). In addition, we also assessed the effectiveness of the embeddings with a supervised scenario. We used Logistic Regression as the classifier with $10 \%$ of the cell as training samples and evaluated the multi-class classification task with Micro-F1 and Macro-F1. We did not run $K$ -means clustering on the Nagano et al. data as it represents a state of continuous cell cycle which is not suitable for a clustering task. We instead used the metric ACROC (Average Circular ROC) developed in the HiCRep/MDS paper (Liu et al., 2018) to evaluate the performance of the three methods on the Nagano et al. data. We compared the performance with two recently developed computational methods based on dimensionality reduction of the contact matrix, HiC-Rep/MDS (Liu et al., 2018) and scHiCluster (Zhou et al., 2019). Because Hyper-SAGNN is not a deterministic method for generating embeddings for scHi-C, we repeated the training process 5 times and averaged the score. All these results are in Fig. 6E.
153
+
154
+ ![](images/e42575c08dd82a72351d9f23fffa4d7550e8993ed0dfe1a812f27b8b0b2ffd7f.jpg)
155
+ Figure 6: (A) and (B): Visualization of the learned embedding based on Hyper-SAGNN for the Ramani et al. data. (C) and (D): Visualization of the learned embedding based on Hyper-SAGNN for the Nagano et al. data. Embedding vectors are projected to two dimensional space using either UMAP or PCA. (E): Quantitative evaluation of the Hyper-SAGNN on two scHi-C datasets
156
+
157
+ For the Ramani et al. data (Fig. 6A-B), the visualization of the embedding vectors learned by HyperSAGNN exhibits clear patterns that cells with the same cell type are clustered together. Moreover, cell line HAP1, GM12878, and K562 are all blood-related cell lines, which are likely to be more similar to each other in terms of 3D genome organization as compared to HeLa. Indeed, we observed that they are also closer to each other in the embedding space. Quantitative results in Fig. 6E are consistent with the visualization as our method achieves the highest ARI, Micro-F1, MacroF1 score among all three methods. For the Nagano et al. data, as shown in Fig. 6C-D, we found that the embeddings exhibit a circular pattern that corresponds to the cell cycle. Also, both HiCRep/MDS and Hyper-SAGNN achieve high ACROC scores. All these results show the effectiveness of representing the scHi-C datasets as hypergraphs using Hyper-SAGNN, which has great potential to provide insights into the cell-to-cell variation of higher-order genome organization.
158
+
159
+ # 5 CONCLUSION
160
+
161
+ In this work, we developed a new graph neural network called Hyper-SAGNN for the representation learning of general hypergraphs. The model has the flexibility to deal with homogeneous and heterogeneous, and uniform and non-uniform hypergraphs. We demonstrated that Hyper-SAGNN can improve or match state-of-the-art performance for hypergraph representation learning while addressing the shortcomings of prior methods such as the inability to predict hyperedges for non- $k$ -uniform heterogeneous hypergraphs. Hyper-SAGNN is computationally efficient as the input size to the attention layer is bounded by the maximum hyperedge size as opposed to the number of neighbors.
162
+
163
+ One potential improvement of Hyper-SAGNN as future work would be to allow information aggregation over all the first-order neighbors before calculating the static/dynamic embeddings for a node with the additional computational cost. With this design, the static embedding for a node would still satisfy our constraint that it is fixed for a known hypergraph with varying input tuples. This would allow us to incorporate previously developed methods on graphs, such as GraphSAGE (Hamilton et al., 2017a) and GCN (Kipf & Welling, 2016), as well as methods designed for hypergraphs like HyperGCN (Yadati et al., 2018) into this framework for better link prediction performance. Such improvement may also extend the application of Hyper-SAGNN to semi-supervised learning.
164
+
165
+ # ACKNOWLEDGMENT
166
+
167
+ J.M. acknowledges support from the National Institutes of Health Common Fund 4D Nucleome Program grant U54DK107965, National Institutes of Health grant R01HG007352, and National Science Foundation grant 1717205. Y.Z. (Yao Class, IIIS, Tsinghua University) contributed to this work as a visiting undergraduate student at Carnegie Mellon University during summer 2019.
168
+
169
+ # REFERENCES
170
+
171
+ Song Bai, Feihu Zhang, and Philip HS Torr. Hypergraph convolution and hypergraph attention. arXiv preprint arXiv:1901.08150, 2019.
172
+
173
+ Inci M Baytas, Cao Xiao, Fei Wang, Anil K Jain, and Jiayu Zhou. Heterogeneous hyper-network embedding. In 2018 IEEE International Conference on Data Mining (ICDM), pp. 875–880. IEEE, 2018.
174
+
175
+ Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. Translating embeddings for modeling multi-relational data. In Advances in Neural Information Processing Systems 26, pp. 2787–2795. Curran Associates, Inc., 2013.
176
+
177
+ Fuli Feng, Xiangnan He, Yiqun Liu, Liqiang Nie, and Tat-Seng Chua. Learning on partial-order hypergraphs. In Proceedings of the 2018 World Wide Web Conference, pp. 1523–1532. International World Wide Web Conferences Steering Committee, 2018.
178
+
179
+ Yifan Feng, Haoxuan You, Zizhao Zhang, Rongrong Ji, and Yue Gao. Hypergraph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 3558–3565, 2019.
180
+
181
+ Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge Discovery and Data Mining, pp. 855–864. ACM, 2016.
182
+
183
+ Huan Gui, Jialu Liu, Fangbo Tao, Meng Jiang, Brandon Norick, and Jiawei Han. Large-scale embedding learning in heterogeneous event data. In 2016 IEEE 16th International Conference on Data Mining (ICDM), pp. 907–912. IEEE, 2016.
184
+
185
+ Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems, pp. 1024–1034, 2017a.
186
+
187
+ William L Hamilton, Rex Ying, and Jure Leskovec. Representation learning on graphs: Methods and applications. arXiv preprint arXiv:1709.05584, 2017b.
188
+
189
+ F. Maxwell Harper and Joseph A. Konstan. The movielens datasets: History and context. ACM Trans. Interact. Intell. Syst., 5(4):19:1–19:19, December 2015. ISSN 2160-6455.
190
+
191
+ Jie Huang, Chuan Chen, Fanghua Ye, Jiajing Wu, Zibin Zheng, and Guohui Ling. Hyper2vec: Biased random walk for hyper-network embedding. In International Conference on Database Systems for Advanced Applications, pp. 273–277. Springer, 2019.
192
+
193
+ Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
194
+
195
+ Erez Lieberman-Aiden, Nynke L Van Berkum, Louise Williams, Maxim Imakaev, Tobias Ragoczy, Agnes Telling, Ido Amit, Bryan R Lajoie, Peter J Sabo, Michael O Dorschner, et al. Comprehensive mapping of long-range interactions reveals folding principles of the human genome. Science, 326(5950):289–293, 2009.
196
+
197
+ Jie Liu, Dejun Lin, Galip Gurkan Yardımcı, and William Stafford Noble. Unsupervised embedding ¨ of single-cell hi-c data. Bioinformatics, 34(13):i96–i104, 2018.
198
+
199
+ Leland McInnes, John Healy, and James Melville. Umap: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426, 2018.
200
+
201
+ Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient Estimation of Word Representations in Vector Space. arXiv e-prints, art. arXiv:1301.3781, Jan 2013.
202
+
203
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In C. J. C. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 26, pp. 3111–3119. Curran Associates, Inc., 2013.
204
+
205
+ Takashi Nagano, Yaniv Lubling, Csilla Varnai, Carmel Dudley, Wing Leung, Yael Baran, ´ Netta Mendelson Cohen, Steven Wingett, Peter Fraser, and Amos Tanay. Cell-cycle dynamics of chromosomal organization at single-cell resolution. Nature, 547(7661):61, 2017.
206
+
207
+ 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, pp. 701–710. ACM, 2014.
208
+
209
+ Vijay Ramani, Xinxian Deng, Ruolan Qiu, Kevin L Gunderson, Frank J Steemers, Christine M Disteche, William S Noble, Zhijun Duan, and Jay Shendure. Massively multiplex single-cell hi-c. Nature Methods, 14(3):263, 2017.
210
+
211
+ Suhas SP Rao, Miriam H Huntley, Neva C Durand, Elena K Stamenova, Ivan D Bochkov, James T Robinson, Adrian L Sanborn, Ido Machol, Arina D Omer, Eric S Lander, et al. A 3d map of the human genome at kilobase resolution reveals principles of chromatin looping. Cell, 159(7): 1665–1680, 2014.
212
+
213
+ Liang Sun, Shuiwang Ji, and Jieping Ye. Hypergraph spectral learning for multi-label classification. In Proceedings of the 14th ACM SIGKDD international Conference on Knowledge Discovery and Data Mining, pp. 668–676. ACM, 2008.
214
+
215
+ Ke Tu, Peng Cui, Xiao Wang, Fei Wang, and Wenwu Zhu. Structural deep embedding for hypernetworks. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
216
+
217
+ 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, pp. 5998–6008, 2017.
218
+
219
+ Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
220
+
221
+ Naganand Yadati, Madhav Nimishakavi, Prateek Yadav, Anand Louis, and Partha Talukdar. Hypergcn: Hypergraph convolutional networks for semi-supervised classification. arXiv preprint arXiv:1809.02589, 2018.
222
+
223
+ Chia-An Yu, Ching-Lun Tai, Tak-Shing Chan, and Yi-Hsuan Yang. Modeling multi-way relations with hypergraph embedding. In Proceedings of the 27th ACM International Conference on Information and Knowledge Management, pp. 1707–1710, 2018.
224
+
225
+ Vincent W. Zheng, Bin Cao, Yu Zheng, Xing Xie, and Qiang Yang. Collaborative filtering meets mobile recommendation: A user-centered approach. In Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence, AAAI’10, pp. 236–241. AAAI Press, 2010.
226
+
227
+ Dengyong Zhou, Jiayuan Huang, and Bernhard Scholkopf. Learning with hypergraphs: Clustering, ¨ classification, and embedding. In Advances in Neural Information Processing systems, pp. 1601– 1608, 2007.
228
+
229
+ Jingtian Zhou, Jianzhu Ma, Yusi Chen, Chuankai Cheng, Bokan Bao, Jian Peng, Terrence J Sejnowski, Jesse R Dixon, and Joseph R Ecker. Robust single-cell hi-c clustering by convolutionand random-walk–based imputation. Proceedings of the National Academy of Sciences, pp. 201901423, 2019.
230
+
231
+ # A APPENDIX
232
+
233
+ # A.1 DETAILS OF THE STRATEGIES FOR GENERATING FEATURE VECTORS
234
+
235
+ We first define the functions used in the subsequent sections as follows: a hyperedge $e$ with weight $w ( e )$ is incident with a vertex $v$ if and only if $v \in e$ . We denote the indicator function that represents the incident relationship between $v$ and $e$ by $h ( v , e )$ , which equals 1 when $e$ is incident with $v$ . The degree of vertex and the size of hyperedge are defined as:
236
+
237
+ $$
238
+ \begin{array} { l } { { d ( v ) \triangleq \displaystyle \sum _ { e \in E } h ( v , e ) w ( e ) } } \\ { { \delta ( e ) \triangleq \displaystyle \sum _ { v \in V } h ( v , e ) = | e | } } \end{array}
239
+ $$
240
+
241
+ # A.1.1 ENCODER BASED APPROACH
242
+
243
+ As shown on the right side of Fig. 3, the first method to generate features is referred to as the encoder based approach, which is similar to the structure used in DHNE (Tu et al., 2018). We first obtain the incident matrix of the hypergraph $H \in \mathbb { R } ^ { | V | \times | E | }$ with entries $h ( v , e ) = 1$ if $v \in e$ and 0 otherwise. We also calculate the diagonal degree matrix $D _ { v }$ containing the vertex degree $\begin{array} { r } { d ( v ) = \sum _ { e \in E } h ( v , e ) } \end{array}$ . We thus have the adjacency matrix $A = H H ^ { T } - D _ { v }$ , of which the entries $a ( v _ { i } , v _ { j } )$ denote the concurrent times between each pair of nodes $( v _ { i } , v _ { j } )$ . The $i$ -th row of $A$ , denoted by $\vec { a } _ { i }$ , shows the neighborhood structures of the node $v _ { i }$ , which then passes through a one-layer neural network to produce $\vec { x } _ { i }$ :
244
+
245
+ $$
246
+ \vec { x } _ { i } = \operatorname { t a n h } \left( W _ { \mathrm { e n c } } \cdot \vec { a } _ { i } + \vec { b } _ { \mathrm { e n c } } \right)
247
+ $$
248
+
249
+ In DHNE, a symmetric structure was introduced where there are corresponding decoders to transform the $\vec { x } _ { i }$ back to $\vec { a } _ { i }$ . Tu et al. (2018) remarked that including this reconstruction error term would help DHNE to learn the graph structure better. We also include the reconstruction error term into the loss function, but with tied-weights between encoder and decoder to reduce the number of parameters that need to be trained.
250
+
251
+ # A.1.2 RANDOM WALK BASED APPROACH
252
+
253
+ Besides the encoder based approach, we also utilize a random walk based framework to generate the feature vectors $\vec { x } _ { i }$ (shown on the left side of Fig. 3). We extend the biased 2nd-order random walks proposed in node2vec (Grover & Leskovec, 2016) to generalize to hypergraphs. For a walk from $v$ to $x$ then to $t$ , the strategies are described as follows.
254
+
255
+ The 1st-order random walk strategy given the current vertex $x$ is to randomly select a hyperedge $e$ incident with $x$ based on the weight of $e$ and then to choose the next vertex $y$ from $e$ uniformly (Zhou et al., 2007). Therefore, the 1st-order transition probability is defined as:
256
+
257
+ $$
258
+ \pi _ { 1 } ( t | x ) \triangleq \sum _ { e \in E } w ( e ) { \frac { h ( t , e ) h ( x , e ) } { \delta ( e ) } }
259
+ $$
260
+
261
+ We then generalize the 2nd-order bias $\alpha _ { p q }$ from ordinary graph to hypergraph for a walk from $v$ to $x$ to $t$ as:
262
+
263
+ $$
264
+ \alpha _ { p , q } ( t , v ) = { \left\{ \begin{array} { l l } { 1 / p , } & { { \mathrm { i f ~ } } \exists e \in E { \mathrm { , ~ s . t . ~ } } t , v , x \in e } \\ { 1 { \mathrm { , ~ } } } & { { \mathrm { e l s e ~ i f ~ } } \exists e \in E { \mathrm { , ~ s . t . ~ } } t , x \in e } \\ { 1 / q , } & { { \mathrm { o t h e r w i s e } } } \end{array} \right. }
265
+ $$
266
+
267
+ where the parameters $p$ and $q$ are to control the tendencies that encourage outward exploration and obtain a local view.
268
+
269
+ Next we add the above terms to set the biased 2nd-order transition probability as:
270
+
271
+ $$
272
+ \pi ( t | v , x ) = { \left\{ \begin{array} { l l } { { \frac { \pi _ { 1 } ( t | x ) \cdot \alpha _ { p q } ( t , v ) } { Z } } , } & { { \mathrm { i f ~ } } \exists e \in E { \mathrm { , ~ s . t . ~ } } v , x \in e } \\ { 0 , } & { { \mathrm { o t h e r w i s e } } } \end{array} \right. }
273
+ $$
274
+
275
+ where $Z$ is a normalizing factor.
276
+
277
+ With the well-defined 2nd-order transition probability $\pi ( t | v , x )$ , we simulate a random walk of fixed length $l$ through a 2nd-order Markov process marked by $\begin{array} { r } { \dot { P } ( c _ { i } = t | c _ { i - 1 } = x , c _ { i - 2 } = v ) = \pi ( t | v , x ) } \end{array}$ , where $c _ { i }$ is the $i$ -th node in the walk. A Skip-gram model (Mikolov et al., 2013; Mikolov et al., 2013) is then used to extract the node features from sampled walks such that the nodes that appear in similar contexts would have similar embeddings.
278
+
279
+ # A.2 DETAILS OF THE DATASETS USED IN THIS WORK
280
+
281
+ The four datasets used in the first part of our evaluation are:
282
+
283
+ • GPS (Zheng et al., 2010): GPS network. The hyperedges are based on (user, location, activity) relations.
284
+ • MovieLens (Harper & Konstan, 2015): Social network. The hyperedges are based on (user, movie, tag) relations, describing peoples’ tagging activities.
285
+ • drug: Medicine network from FAERS1. The hyperedges are based on (user, drug, reaction) relations.
286
+ • wordnet (Bordes et al., 2013): Semantic network from WordNet 3.0. The hyperedges are based on (head entity, relation, tail entity), expressing the relationships between words.
287
+
288
+ Details of the datasets are shown in Table A1.
289
+
290
+ Table A1: Datasets used in this work. Note that the columns under $\ddot { \# } ( \mathrm { V } ) \dot { \cdot }$ ” correspond to the columns under “node type” for each dataset.
291
+
292
+ <table><tr><td>DATASETS</td><td colspan="4">NODETYPE</td><td colspan="2">#(V)</td><td>#(E)</td></tr><tr><td>GPS</td><td>user</td><td>location</td><td>activity</td><td>146</td><td>70</td><td>5</td><td>1,436</td></tr><tr><td>MovieLens</td><td>user</td><td>movie</td><td>tag</td><td>2,113</td><td>5,908</td><td>9,079</td><td>47,957</td></tr><tr><td>drug</td><td>user</td><td>drug</td><td>reaction</td><td>12</td><td>1,076</td><td>6,398</td><td>171,756</td></tr><tr><td>wordnet</td><td>head</td><td>relation</td><td>tail</td><td>40,504</td><td>18</td><td>40,551</td><td>145,966</td></tr></table>
293
+
294
+ # A.3 PARAMETER SETTING
295
+
296
+ We downloaded the source code of DHNE from its GitHub repository. The structure of the neural network of DHNE was set to be the same as what the authors described in Tu et al. (2018). We tuned parameters such as the $\alpha$ term and the learning rate following the same procedure. We also tried adding dropout between representation vectors and the fully connected layer for better performance of DHNE. All these parameters were tuned until it was able to replicate or even improve the performance reported in the original paper. To make a fair comparison, for all the results below, we made sure that the training and validation data setups were the same across different methods.
297
+
298
+ For node2vec, we decomposed the hypergraph into pairwise edges and ran node2vec on the decomposed graph. For the hyperedge prediction task, we first used the learned embedding to predict pairwise edges. We then used the mean or min of the pairwise similarity as the probability for the tuple to form a hyperedge. We set the window size to 10, walk length to 40, the number of walks per vertex to 10, which are the same parameters used in DHNE for node2vec. However, we found that for the baseline method node2vec, when we tuned the hyper-parameter $p , q$ and also used larger walk length, window size and walks per vertex (120, 20, 80 instead of 40, 10, 10), it would achieve comparable performance for node classification task as DHNE. This observation is consistent with our designed biased hypergraph random walk. But this would result in a longer time for sampling the walks and training the skip-gram model. We therefore kept the parameters consistent with what was used in DHNE paper.
299
+
300
+ For our Hyper-SAGNN, we set the representation size to 64, which is the same as DHNE. The number of heads in the multi-head attention layer is set to 8. When using the encoder based approach to calculate $x _ { i }$ , we set the encoder structure to be the same as the encoder part in DHNE. When using the random walk based approach, we decomposed the hypergraph into a graph as described above. We set the window size to 10, walk length to 40, the number of walks per vertex to 10, to allow time-efficient generation of feature vector $\vec { x } _ { i }$ . The results in Section 4.1 showed that even when the pre-trained embeddings are not so ideal, Hyper-SAGNN can still well capture the structure of the graph.
301
+
302
+ To train the model, we used the Adam optimizer with learning rate 1e-3. Each batch contains 96 positive hyperedges with 480 negative samples. The training is terminated when it reaches the maximum training epoch number (100) or the performance on the validation set no longer improves.
303
+
304
+ # A.4 EXPERIMENT SETTING
305
+
306
+ To compare the performance of Hyper-SAGNN with other baseline methods, we used the same three tasks in the DHNE paper, i.e., network reconstruction, link prediction, and node classification. In this section, we describe the setting of these three tasks and the evaluation metrics.
307
+
308
+ Network reconstruction aims to reconstruct the input hypergraph from the learned embedding. Specifically, a hypergraph $G = ( V , E )$ is used as input to the algorithm. After training, the model makes predictions for the original hyperedge set $E$ . Link prediction, on the other hand, aims to predict the unseen hyperedge set $E ^ { ' }$ based on the model trained with hypergraph $G = ( V , E )$ . These two tasks can be regarded as binary classification tasks and thus can be evaluated by metrics such as AUROC and AUPR. For both tasks, the negative samples are set to be 5 times the amount of the positive samples following the same setup of DHNE.
309
+
310
+ For the node classification, after training the model, the embeddings for the nodes are used to train a Logistic Regression classifier with targets as the pre-defined labels for the nodes. Here we have a multi-label classification and a multi-class classification task for dataset MovieLens and wordnet, respectively, making the metrics defined for binary classification not applicable. Therefore, the performances are evaluated by Micro and Macro F1 scores that are used for quantifying the performance of multi-label/multi-class classification.
311
+
312
+ # A.5 ANALYSIS OF THE DYNAMIC EMBEDDINGS
313
+
314
+ In this section, we discuss the relationships between dynamic embeddings and static embeddings. As mentioned in the Method section, we design the model to establish the connection between the probability score for a tuple with how well the static embedding of each node can be approximated by the features of their neighbor within that tuple. If the model works as we designed, the dynamic embedding of node $i$ conditioned on an actual hyperedge $( i , j , . . . , k )$ should approximate the static embedding of node $i$ better. In contrast, the dynamic embedding of node $i$ when it is a member of a non-hyperedge tuple would not have a good “approximation”. To evaluate this, after training the model we collected all the dynamic embeddings for nodes when they are within the tuples of positive samples, which would be referred to as positive dynamic embeddings. We also collected the dynamic embeddings for nodes when conditioned on the “hard negative samples” (the negative samples that are generated by only changing one node in the positive samples), which would be referred to as negative dynamic embeddings. We tested whether the positive dynamic embeddings indeed resemble the static embeddings better by comparing the performance of node classification using dynamic embeddings and static embeddings. For each node, since the number of positive and negative dynamic embeddings is not finite, we sampled and averaged a number of them as the features. The remaining setting of node classification is the same as described in the main text. As shown in Fig. A1, in general, the positive dynamic embeddings can achieve much better performance as compared to the negative dynamic embeddings. Both the micro and macro F1 scores increase when more positive dynamic embeddings are sampled and averaged. When averaging all positive dynamic embeddings and using those as features, the node classification performance is close to what we achieved using static embeddings. This analysis demonstrates that the positive dynamic embeddings “approximate” the static embeddings as they contain sufficient information for accurate node classification. In addition, for the negative dynamic embeddings where only one node is changed when generating negative samples, it performs dramatically worse. Note that we exclude the $\alpha _ { i i }$ term in the calculation of dynamic embeddings, which makes the dynamic embedding for node $i$ the combination of features of its neighbor within a given tuple. These results demonstrate that the probability scores for each node indicate the “distances” of static/dynamic embedding pairs that reflect how well the static embedding of each node can be approximated by the features of their neighbor within that tuple.
315
+
316
+ ![](images/cb460ae70ceeb9a325f12172826863dd0024c467475db80935c30b53d25ef7e7.jpg)
317
+ Figure A1: Node classification performance comparison for static embeddings and dynamic embeddings. The results based on static embeddings are marked as “static”. Results based on positive/negative dynamic embeddings are marked as “dynamic P/dynamic $\mathbf { N } ^ { \ast }$ . The numbers of dynamic embeddings sampled during this process are also included in the legend.
318
+
319
+ # A.6 COMPARISON OF HYPER-SAGNN VS. THE VARIANTS
320
+
321
+ As mentioned above, unlike the standard GAT model, we exclude the $\alpha _ { i i }$ term in the self-attention mechanism. To test whether this constraint would improve or reduce the model’s ability to learn, we implemented a variant of our model (referred to as variant type I) by including this term. Also, as mentioned in the Method section, another potential variant of our model would be directly using the $\vec { d } _ { i } ^ { * }$ to calculate the probability score $p _ { i } ^ { * }$ . We refer to this variant as variant type II. For variant type II, on node classification task, since it does not have a static embedding, we used $W _ { v } ^ { T } x _ { i }$ . The rest of the parameters and structure of the neural network remain the same.
322
+
323
+ We then compared the performance of Hyper-SAGNN and two variants in terms of AUC and AUPR values for network reconstruction task and hyperedge link prediction task on the following four datasets: MovieLens, wordnet, drug, and GPS. We also compared the performance in terms of the Micro F1 score and Macro F1 score on the node classification task on the MovieLens and the wordnet dataset. For the MovieLens dataset, we used $90 \%$ nodes as training data while for wordnet, we used $1 \%$ of the nodes as training data. All the evaluation setup is the same as described in the main text. To avoid the effect of randomness from the neural network training, we repeated the training process for each experiment five times and made the line plot of the score versus the epoch number. To illustrate the differences more clearly, we started the plot at epoch 3 for the random walk based approach and epoch 12 for the encoder based approach. The performance of the model using the random walk based approach is shown in Fig. A2 to Fig. A5. The performance of the model using the encoder based approach is shown in Fig. A6 to Fig. A9.
324
+
325
+ For models with the random walk based approach, Hyper-SAGNN is the best in terms of all metrics for the GPS, MovieLens, and wordnet dataset. On the drug dataset, Hyper-SAGNN achieves higher AUROC and AUPR score on the network reconstruction task than two variants, but slightly lower AUROC score for the link prediction task (less than $0 . 5 \%$ ).
326
+
327
+ For models with the encoder based approach, the advantage is not that obvious. All 3 methods achieve similar performance in terms of all metrics for the GPS and the drug dataset. For the MovieLens and wordnet dataset, Hyper-SAGNN performs similar to variant type I, higher than variant type II on the network reconstruction and link prediction task. However, our model achieves slightly higher accuracy on the node classification task than variant type I.
328
+
329
+ Therefore, these evaluations show that the choice of the structure of Hyper-SAGNN can achieve higher or at least comparable performance than the two potential variants over multiple tasks on multiple datasets.
330
+
331
+ ![](images/51e83ee47bb78e57d5d07a62922e2371e76bac3c9f5ba046f817cf40e271982a.jpg)
332
+ Figure A2: Performance comparison of Hyper-SAGNN – Walk and Variant Type I, II (GPS)
333
+
334
+ ![](images/9382330a834f8f978055a6ca4455646e2ac520152c58fcd1285082668294877f.jpg)
335
+ Figure A3: Performance comparison of Hyper-SAGNN – Walk and Variant Type I, II (MovieLens)
336
+
337
+ ![](images/593260bbf4d269b2e743f2b2302db1123091baf47f951389eea7223f51914fae.jpg)
338
+ Figure A4: Performance comparison of Hyper-SAGNN – Walk and Variant Type I, II (drug)
339
+
340
+ ![](images/77dbd2b072ced8c9d0eca0cc205863e3f7958ec022875ec18fed5eec74415cc9.jpg)
341
+ Figure A5: Performance comparison of Hyper-SAGNN – Walk and Variant Type I, II (wordnet)
342
+
343
+ ![](images/62c4b08ae880e11812964c3db4cab98703489e417dbe87bf91139b323a320f57.jpg)
344
+ Figure A6: Performance comparison of Hyper-SAGNN – Encoder and Variant Type I, II (GPS)
345
+
346
+ ![](images/047d6767bbdd4d374629324ce84b71ce57ca325ee96f6fa2721e2ec1fe9f8a5b.jpg)
347
+ Figure A7: Performance comparison of Hyper-SAGNN – Encoder and Variant Type I, II (MovieLens)
348
+
349
+ ![](images/73e154b86af5c356ef1314dc08e6b0cc394cc96efddeb08bc2aecbb52121848f.jpg)
350
+ Figure A8: Performance comparison of Hyper-SAGNN – Encoder and Variant Type I, II (drug)
351
+
352
+ ![](images/cd304b130b7f2610d04d5b246f96dab66458b07093fbaf55601a91075e353667.jpg)
353
+ Figure A9: Performance comparison of Hyper-SAGNN – Encoder and Variant Type I, II (wordnet)
parse/train/ryeHuJBtPH/ryeHuJBtPH_content_list.json ADDED
@@ -0,0 +1,1875 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "HYPER-SAGNN: A SELF-ATTENTION BASED GRAPH NEURAL NETWORK FOR HYPERGRAPHS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ruochi Zhang School of Computer Science Carnegie Mellon University ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 372,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Yuesong Zou School of Computer Science Carnegie Mellon University IIIS, Tsinghua University ",
28
+ "bbox": [
29
+ 398,
30
+ 170,
31
+ 589,
32
+ 227
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Jian Ma School of Computer Science Carnegie Mellon University jianma@cs.cmu.edu ",
39
+ "bbox": [
40
+ 614,
41
+ 171,
42
+ 805,
43
+ 226
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 454,
53
+ 262,
54
+ 544,
55
+ 277
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Graph representation learning for hypergraphs can be used to extract patterns among higher-order interactions that are critically important in many real world problems. Current approaches designed for hypergraphs, however, are unable to handle different types of hypergraphs and are typically not generic for various learning tasks. Indeed, models that can predict variable-sized heterogeneous hyperedges have not been available. Here we develop a new self-attention based graph neural network called Hyper-SAGNN applicable to homogeneous and heterogeneous hypergraphs with variable hyperedge sizes. We perform extensive evaluations on multiple datasets, including four benchmark network datasets and two single-cell Hi-C datasets in genomics. We demonstrate that Hyper-SAGNN significantly outperforms the state-of-the-art methods on traditional tasks while also achieving great performance on a new task called outsider identification. Hyper-SAGNN will be useful for graph representation learning to uncover complex higher-order interactions in different applications. ",
62
+ "bbox": [
63
+ 233,
64
+ 295,
65
+ 764,
66
+ 488
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 511,
77
+ 336,
78
+ 526
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Graph structure is a widely used representation for data with complex interactions. Learning on graphs has also been an active research area in machine learning on how to predict or discover patterns based on the graph structure (Hamilton et al., 2017b). Although existing methods can achieve strong performance in tasks such as link prediction and node classification, they are mostly designed for analyzing pair-wise interactions and thus are unable to effectively capture higher-order interactions in graphs. In many real-world applications, however, relationships among multiple instances are key to capturing critical properties, e.g., co-authorship involving more than two authors or relationships among multiple heterogeneous objects such as “(human, location, activity)”. Hypergraphs can be used to represent higher-order interactions (Zhou et al., 2007). To analyze higher-order interaction data, it is straightforward to expand each hyperedge into pair-wise edges with the assumption that the hyperedge is decomposable. ",
85
+ "bbox": [
86
+ 173,
87
+ 535,
88
+ 825,
89
+ 689
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Several previous methods were developed based on this notion (Sun et al., 2008; Feng et al., 2018). However, earlier work DHNE (Deep Hyper-Network Embedding) (Tu et al., 2018) suggested the existence of heterogeneous indecomposable hyperedges where relationships within an incomplete subset of a hyperedge do not exist. Although DHNE provides a potential solution by modeling the hyperedge directly without decomposing it, due to the neural network structure used in DHNE, the method is limited to the fixed type and fixed-size heterogeneous hyperedges and is unable to consider relationships among multiple types of instances with variable size. For example, Fig. 1 shows a heterogeneous co-authorship hypergraph with two types of nodes (corresponding author and coauthor). Due to the variable number of both authors and corresponding authors in a publication, the hyperedges (co-authorship) have different sizes or types. Unfortunately, methods for representation learning of heterogeneous hypergraph with variable-sized hyperedges, especially those that can predict variable-sized hyperedges, have not been developed. ",
96
+ "bbox": [
97
+ 174,
98
+ 689,
99
+ 562,
100
+ 868
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/3d7185edb618596f7109f17a04f2b6c586a88751d39a1bcfc0f96085b26d4a91.jpg",
107
+ "image_caption": [
108
+ "Figure 1: An example of the coauthorship hypergraph. Here authors are represented as nodes (in dark blue and light blue) and coauthorships are represented as hyperedges. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 578,
113
+ 699,
114
+ 821,
115
+ 773
116
+ ],
117
+ "page_idx": 0
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "",
122
+ "bbox": [
123
+ 176,
124
+ 868,
125
+ 823,
126
+ 924
127
+ ],
128
+ "page_idx": 0
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In this work, we developed a self-attention based graph neural network, called Hyper-SAGNN that can work with both homogeneous and heterogeneous hypergraphs with variable hyperedge size. Using the same datasets in the DHNE paper (Tu et al., 2018), we demonstrated the advantage of Hyper-SAGNN over DHNE in multiple tasks. We further tested the effectiveness of the method in predicting edges and hyperedges and showed that the model can achieve better performance from the multi-tasking setting. We also formulated a novel task called outsider identification and showed that Hyper-SAGNN performs strongly. Importantly, as an application of Hyper-SAGNN to singlecell genomics, we were able to learn the embeddings for the most recently produced single-cell Hi-C (scHi-C) datasets to uncover the clustering of cells based on their 3D genome structure (Ramani et al., 2017; Nagano et al., 2017). We showed that Hyper-SAGNN achieved improved results in identifying distinct cell populations as compared to existing scHi-C clustering methods. Taken together, Hyper-SAGNN can significantly outperform state-of-the-art methods and can be applied to a wide range of hypergraphs for different applications. ",
133
+ "bbox": [
134
+ 174,
135
+ 103,
136
+ 825,
137
+ 284
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "2 RELATED WORK ",
144
+ "text_level": 1,
145
+ "bbox": [
146
+ 176,
147
+ 299,
148
+ 344,
149
+ 315
150
+ ],
151
+ "page_idx": 1
152
+ },
153
+ {
154
+ "type": "text",
155
+ "text": "Deep learning based models have been developed recently to generalize from graphs to hypergraphs (Gui et al., 2016; Tu et al., 2018). The HyperEdge Based Embedding (HEBE) method (Gui et al., 2016) aims to learn the embeddings for each object in a specific heterogeneous event by representing it as a hyperedge. However, as demonstrated in Tu et al. (2018), HEBE does not perform well on sparse hypergraphs. Notably, previous methods typically decompose the hyperedge into pair-wise relationships where the decomposition methods can be divided into two categories: explicit and implicit. For instance, given a hyperedge $( v _ { 1 } , v _ { 2 } , v _ { 3 } )$ , the explicit approach would decompose it directly into three edges, $( v _ { 1 } , v _ { 2 } ) , ( v _ { 2 } , v _ { 3 } ) , ( v _ { 1 } , v _ { 3 } )$ , while the implicit approach would add a hidden node $e$ representing the hyperedge before decomposition, i.e., $( \\bar { v } _ { 1 } , e ) , \\bar { ( v } _ { 2 } , e ) , ( v _ { 3 } , e )$ . The deep hypergraph embedding (DHNE) model, however, directly models the tuple-wise relationship using MLP (Multilayer Perceptron). The method is able to achieve better performance on multiple tasks as compared to other methods designed for graphs or hypergraphs such as Deepwalk (Perozzi et al., 2014), node2vec (Grover & Leskovec, 2016), and HEBE. Unfortunately, the structure of MLP takes fixed-size input, making DHNE only capable of handling $k$ -uniform hypergraphs, i.e., hyperedges containing $k$ nodes. To use DHNE for non- $k$ -uniform hypergraphs or hypergraphs with different types of hyperedges, a function for each type of hyperedges needs to be trained individually, which leads to significant computational cost and loss of the capability to generalize to unseen types of hyperedges. Similarly, heterogeneous hyper-network embedding (Baytas et al., 2018) also used MLP as part of the model which requires fixed size input to train the model. Another recent method, hyper2vec (Huang et al., 2019), can also generate embeddings for nodes within the hypergraph and outperforms other hypergraph embedding methods such as HGE (Yu et al., 2018) in the node classification task. However, hyper2vec cannot solve the link prediction problem directly as it only generates the embeddings of nodes in an unsupervised manner without a learned function to map from embeddings of nodes to hyperedges. Also, for $k$ -uniform hypergraphs, hyper2vec is equivalent to node2vec, which cannot capture the high-order network structures for indecomposable hyperedges (as shown in Tu et al. (2018)). Moreover, graph neural network based methods (Yadati et al., 2018; Feng et al., 2019; Bai et al., 2019) have been proposed to generalize the convolution operation or attention mechanism from graphs to hypergraphs. However, these methods mainly focus on the hypergraphs where node attributes are known and are typically used for semi-supervised node classification tasks. Similar to hyper2vec, these methods cannot be directly used for predicting hyperedges. Our Hyper-SAGNN in this work addresses all these challenges with a self-attention based graph neural network that can learn embeddings of the nodes and predict hyperedges for non- $k$ -uniform heterogeneous hypergraphs. ",
156
+ "bbox": [
157
+ 173,
158
+ 324,
159
+ 825,
160
+ 784
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "3 METHOD ",
167
+ "text_level": 1,
168
+ "bbox": [
169
+ 174,
170
+ 799,
171
+ 282,
172
+ 815
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "3.1 DEFINITIONS AND NOTATIONS ",
179
+ "text_level": 1,
180
+ "bbox": [
181
+ 176,
182
+ 825,
183
+ 424,
184
+ 840
185
+ ],
186
+ "page_idx": 1
187
+ },
188
+ {
189
+ "type": "text",
190
+ "text": "Definition 1. (Hypergraph) A hypergraph is defined as $G = ( V , E )$ , where $V = \\{ v _ { 1 } , . . . , v _ { n } \\}$ represents the set of nodes in the graph, and $E = \\{ e _ { i } = ( v _ { 1 } ^ { ( i ) } , . . . , v _ { k } ^ { ( i ) } ) \\}$ represents the set of hyperedges. For any hyperedge $e$ , it can contain more than two nodes (i.e., $\\bar { \\delta } ( e ) \\geq 2 )$ . If all hyperedges within a hypergraph have the same size of $k$ , it is called a $k$ -uniform hypergraph. Note that even if a hypergraph is $k$ -uniform, it can still have different types of hyperedges because the node type can vary for nodes within the hyperedges. ",
191
+ "bbox": [
192
+ 174,
193
+ 848,
194
+ 825,
195
+ 909
196
+ ],
197
+ "page_idx": 1
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "",
202
+ "bbox": [
203
+ 173,
204
+ 103,
205
+ 823,
206
+ 132
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "Definition 2. (The hyperedge prediction problem) We formally define the hyperedge prediction problem. For a given tuple $( v _ { 1 } , v _ { 2 } , . . . , v _ { k } )$ , our goal is to learn a function $f$ that satisfies: ",
213
+ "bbox": [
214
+ 173,
215
+ 135,
216
+ 823,
217
+ 165
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "equation",
223
+ "img_path": "images/1b42a1f8ad6986dc1d48dfde75d88ff652057f57ef3f232bcd02bb2291f688d4.jpg",
224
+ "text": "$$\nf ( v _ { 1 } , v _ { 2 } , . . . , v _ { k } ) = { \\left\\{ \\begin{array} { l l } { \\geq s , } & { { \\mathrm { i f ~ } } ( v _ { 1 } , v _ { 2 } , . . . , v _ { k } ) \\in E } \\\\ { < s , } & { { \\mathrm { i f ~ } } ( v _ { 1 } , v _ { 2 } , . . . , v _ { k } ) \\not \\in E } \\end{array} \\right. }\n$$",
225
+ "text_format": "latex",
226
+ "bbox": [
227
+ 325,
228
+ 167,
229
+ 665,
230
+ 202
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "where $s$ is the threshold to binarize the continuous value of $f$ into a label, which indicates whether the tuple is an hyperedge or not. Specifically, when we are given the pre-trained embedding vectors or the features of nodes $X = \\{ x _ { 1 } , . . . , x _ { i } \\}$ , we can rewrite this function as: ",
237
+ "bbox": [
238
+ 173,
239
+ 204,
240
+ 825,
241
+ 247
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "equation",
247
+ "img_path": "images/50cf6293354b0a11e7737d8d9d32d69b30a1af8abe0a7f82d3726f22f811d68d.jpg",
248
+ "text": "$$\nf ( v _ { 1 } , v _ { 2 } , . . . , v _ { k } ) \\triangleq f ( g ( x _ { 1 } ) , g ( x _ { 2 } ) , . . . , g ( x _ { k } ) )\n$$",
249
+ "text_format": "latex",
250
+ "bbox": [
251
+ 348,
252
+ 252,
253
+ 650,
254
+ 270
255
+ ],
256
+ "page_idx": 2
257
+ },
258
+ {
259
+ "type": "text",
260
+ "text": "where the vectors $g ( x _ { i } )$ can be considered as the fine-tuned embedding or embedding vectors for the nodes. For convenience, we refer to $x _ { i }$ as the features and $g ( x _ { i } )$ as the learned embeddings. ",
261
+ "bbox": [
262
+ 173,
263
+ 273,
264
+ 826,
265
+ 303
266
+ ],
267
+ "page_idx": 2
268
+ },
269
+ {
270
+ "type": "text",
271
+ "text": "3.2 STRUCTURE OF HYPER-SAGNN ",
272
+ "text_level": 1,
273
+ "bbox": [
274
+ 176,
275
+ 313,
276
+ 441,
277
+ 327
278
+ ],
279
+ "page_idx": 2
280
+ },
281
+ {
282
+ "type": "text",
283
+ "text": "Our goal is to learn the functions $f$ and $g$ that take tuples of node features $( x _ { 1 } , . . . , x _ { k } )$ as input and produce the probability of these nodes forming a hyperedge. Without the assumption that the hypergraph is $k$ -uniform and the type of each hyperedge is identical, we require that $f$ can take variable-sized, non-ordered input. Although simple functions such as average pooling $\\begin{array} { r } { f ( g ( x _ { 1 } ) , . . . , g ( x _ { k } ) ) = \\frac { 1 } { K } \\sum _ { i = 1 } ^ { k } g ( x _ { i } ) } \\end{array}$ satisfy this tuple-wise condition, previous work showed that the linear function is not sufficient to model this relationship (Tu et al., 2018). DHNE used an MLP to model the non-linear function, but it requires that an individual function needs to be trained for different types of hyperedges. Here we propose a new method to tackle the general hyperedge prediction problem. ",
284
+ "bbox": [
285
+ 173,
286
+ 334,
287
+ 825,
288
+ 463
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "Graph neural network based methods such as GraphSAGE (Hamilton et al., 2017a) typically define a unique computational graph for each node, allowing it to perform efficient information aggregation for nodes with different degrees. Graph Attention Network (GAT) (Velickovi ˇ c et al., 2017) utilizes ´ a self-attention mechanism in the information aggregation process. Motivated by these properties, we propose our method Hyper-SAGNN based on the self-attention mechanism within each tuple to learn the function $f$ . ",
295
+ "bbox": [
296
+ 173,
297
+ 469,
298
+ 431,
299
+ 664
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "We first briefly introduce the selfattention mechanism. We use the same terms as the self-attention mechanism described in Vaswani et al. (2017); Velickovi ˇ c et al. (2017). Given a group ´ of nodes $\\left( \\vec { x } _ { 1 } , \\vec { x } _ { 2 } , . . . , \\vec { x } _ { k } \\right)$ and weight matrices $W _ { Q } , W _ { K } , W _ { V }$ that represent linear transformations of features before applying the dot-product attention to be trained, we first compute the attention coefficients that reflect the pairwise importance of nodes: ",
306
+ "bbox": [
307
+ 174,
308
+ 671,
309
+ 431,
310
+ 837
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "image",
316
+ "img_path": "images/ef89afc7791475249e0d6dca699c8f8ba53f3028d25320bc26dae489763651e6.jpg",
317
+ "image_caption": [
318
+ "Figure 2: Structure of the neural network used in HyperSAGNN. The input $\\left( \\vec { x } _ { 1 } , \\vec { x } _ { 2 } , . . . , \\vec { x } _ { k } \\right)$ , representing the features for nodes 1 to $k$ , passes through two branches of the network resulting in static embeddings $\\left( \\vec { s } _ { 1 } , \\vec { s } _ { 2 } , . . . , \\vec { s } _ { k } \\right)$ and dynamic embeddings $( \\vec { d } _ { 1 } , \\vec { d } _ { 2 } , . . . , \\vec { d } _ { k } )$ , respectively. The layer for generating dynamic embeddings is the multi-head attention layer. An example for its mechanism on node 1 here is shown in the figure as well. Then the pseudo-euclidean distance of each pair of static and dynamic embeddings is calculated by onelayered position-wise feed-forward network to produce probability scores $\\left( p _ { 1 } , p _ { 2 } , . . . , p _ { k } \\right)$ . These scores are further averaged to represent whether this group of nodes form a hyperedge. "
319
+ ],
320
+ "image_footnote": [],
321
+ "bbox": [
322
+ 452,
323
+ 463,
324
+ 818,
325
+ 641
326
+ ],
327
+ "page_idx": 2
328
+ },
329
+ {
330
+ "type": "equation",
331
+ "img_path": "images/f09afece060782fec5dcac77af521748d3972c4276606fb12bdebc6756f63bb0.jpg",
332
+ "text": "$$\ne _ { i j } = \\left( W _ { Q } ^ { T } x _ { i } \\right) ^ { T } \\left( W _ { K } ^ { T } x _ { j } \\right) , \\forall 1 \\leq i , j \\leq k\n$$",
333
+ "text_format": "latex",
334
+ "bbox": [
335
+ 361,
336
+ 842,
337
+ 637,
338
+ 864
339
+ ],
340
+ "page_idx": 2
341
+ },
342
+ {
343
+ "type": "text",
344
+ "text": "We then normalize $e _ { i j }$ by all possible $j$ within the tuple through the softmax function, i.e., ",
345
+ "bbox": [
346
+ 174,
347
+ 867,
348
+ 766,
349
+ 882
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "equation",
355
+ "img_path": "images/f3441f85b635ba12e7fc8078dd8b1477c577ac6bb4cdb24a387ba39cc257423f.jpg",
356
+ "text": "$$\n\\alpha _ { i j } = \\frac { \\exp ( e _ { i j } ) } { \\sum _ { 1 \\leq l \\leq k } \\exp ( e _ { i l } ) }\n$$",
357
+ "text_format": "latex",
358
+ "bbox": [
359
+ 416,
360
+ 886,
361
+ 581,
362
+ 922
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "Finally, a weighted sum of the transformed features with an activation function is calculated: ",
369
+ "bbox": [
370
+ 169,
371
+ 103,
372
+ 781,
373
+ 118
374
+ ],
375
+ "page_idx": 3
376
+ },
377
+ {
378
+ "type": "equation",
379
+ "img_path": "images/f149f9a7601ef3df41c04ee6232a12f8e7dfd48a79e6b9c9aaa3856905365483.jpg",
380
+ "text": "$$\n\\vec { d } _ { i } = \\operatorname { t a n h } \\left( \\sum _ { 1 \\leq j \\leq k , i \\neq j } \\alpha _ { i j } W _ { V } ^ { T } x _ { j } \\right)\n$$",
381
+ "text_format": "latex",
382
+ "bbox": [
383
+ 379,
384
+ 125,
385
+ 617,
386
+ 175
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "In GAT, each node is applied to the self-attention mechanism usually with all its first-order neighbors. In Hyper-SAGNN, we aggregate the information for a node $v _ { i }$ only with its neighbors for a given tuple. The structure of Hyper-SAGNN is illustrated in Fig. 2. ",
393
+ "bbox": [
394
+ 173,
395
+ 188,
396
+ 825,
397
+ 229
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "The input to our model can be represented as tuples, i.e., $\\left( \\vec { x } _ { 1 } , \\vec { x } _ { 2 } , . . . , \\vec { x } _ { k } \\right)$ . Each tuple first passes through a position-wise feed-forward network to produce $\\left( \\vec { s } _ { 1 } , \\vec { s } _ { 2 } , . . . , \\vec { s } _ { k } \\right)$ , where $\\vec { s } _ { i } = \\bar { \\operatorname { t a n h } } ( \\bar { W } _ { s } ^ { T } \\vec { x } _ { i } )$ . We refer to each $\\vec { s _ { i } }$ as the static embedding for node $i$ since it remains the same for node $i$ no matter what the given tuple is. The tuple also passes through a multi-head graph attention layer to produce a new set of node embedding vectors $( \\dot { \\vec { d } } _ { 1 } , \\vec { d } _ { 2 } , . . . , \\vec { d } _ { k } )$ , which we refer to as the dynamic embeddings because they are dependent on all the node features within this tuple. ",
404
+ "bbox": [
405
+ 173,
406
+ 236,
407
+ 825,
408
+ 323
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Note that unlike the standard attention mechanism described above, when calculating $\\vec { d _ { i } }$ , we require that $j \\neq i$ in Eqn. (5). In other words, we exclude the term $\\alpha _ { i i } W _ { V } ^ { T } x _ { i }$ in the calculation of dynamic embeddings. Based on our results we found that including $\\vec { \\alpha } _ { i i }$ would lead to either similar or worse performance in terms of hyperedge prediction and node classification (see Appendix A.6 for details). We will elaborate on the motivation of this choice later in this section. ",
415
+ "bbox": [
416
+ 174,
417
+ 332,
418
+ 825,
419
+ 401
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "With the static and dynamic embedding vectors for each node, we calculate the Hadamard power (element-wise power) of the difference of the corresponding static/dynamic pair. It is then further passed through a one-layered neural network with sigmoid as the activation function to produce a probability score $p _ { i }$ . Finally, all the output $p _ { i } \\in [ 0 , 1 ]$ is averaged to get the final $p$ , i.e., ",
426
+ "bbox": [
427
+ 174,
428
+ 409,
429
+ 825,
430
+ 465
431
+ ],
432
+ "page_idx": 3
433
+ },
434
+ {
435
+ "type": "equation",
436
+ "img_path": "images/a08ccc9f33163ac8b441f927702bcff283f2a87c33a10f804cf92e824dd43d77.jpg",
437
+ "text": "$$\n\\begin{array} { l } { { \\displaystyle o _ { i } = W _ { o } ^ { T } ( ( \\vec { d } _ { i } - \\vec { s } _ { i } ) ^ { \\circ 2 } ) + b } } \\\\ { { \\displaystyle p = \\frac { 1 } { K } \\sum _ { i = 1 } ^ { k } p _ { i } = \\frac { 1 } { K } \\sum _ { i = 1 } ^ { k } \\sigma ( o _ { i } ) } } \\end{array}\n$$",
438
+ "text_format": "latex",
439
+ "bbox": [
440
+ 233,
441
+ 481,
442
+ 436,
443
+ 549
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "By design, $o _ { i }$ can be regarded as the squared weighted pseudo-euclidean distance between the static embedding $\\vec { s } _ { i }$ and the dynamic one $\\vec { d } _ { i }$ . It is called pseudo-euclidean distance because we do not require the weight to be non-zero or to sum up to 1. One rationale for allowing negative weights when calculating the distance could be the Minkowski space where the distance is defined as $d ^ { 2 } = x ^ { 2 } + \\stackrel { . } { y } ^ { 2 } + z ^ { 2 } - t ^ { 2 }$ . Therefore, for these high-dimensional embedding vectors, we do not specifically treat them as euclidean vectors. ",
450
+ "bbox": [
451
+ 174,
452
+ 554,
453
+ 496,
454
+ 722
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "Our network essentially aims to build the correlation of the average “distance” of the static/dynamic embedding pairs with the probability of the node group forming a hyperedge. Since the dynamic embedding is the weighted sum of features (with potential non-linear transformation) from neighbors within the tuple, this “distance” reflects how well the static embedding of each node can be approximated by the features of their neighbors within that tuple. This design strategy shares some similarities with the CBOW model in natural language processing (Mikolov ",
461
+ "bbox": [
462
+ 174,
463
+ 729,
464
+ 496,
465
+ 896
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "image",
471
+ "img_path": "images/6a00ff2a4d42bad32d89a9c2c2151c1735c9865d97d2f01dfb33ed2874e0e494.jpg",
472
+ "image_caption": [
473
+ "Figure 3: Illustration of the method for generating node features for node $_ { i }$ in the hypergraph. In the walk based approach, a biased random walk on hypergraphs is used to produce walking paths (the yellow circles in the walking paths represent node i). These walks are further used to train a skip-gram model to generate features. In the encoder based approach, the $_ { i }$ -th row of the adjacency matrix (as shown in the figure where the orange/white blocks represent whether or not node $_ { i }$ is adjacent to other nodes in the graph) is used as the input to an autoencoder. The output of the encoder part is used as the features for node $_ { i }$ . "
474
+ ],
475
+ "image_footnote": [],
476
+ "bbox": [
477
+ 517,
478
+ 472,
479
+ 816,
480
+ 689
481
+ ],
482
+ "page_idx": 3
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "et al., 2013), where the model aims to predict the target word given its context (see Appendix A.5 for the analysis of the static/dynamic embedding pairs). In principle, we could still include the $\\vec { \\alpha } _ { i i }$ term to obtain the embedding $\\vec { d } _ { i } ^ { * }$ . Alternatively, we can directly pass $\\vec { d } _ { i } ^ { * }$ through a fully connected layer to produce $p _ { i } ^ { * }$ while the rest remains the same. However, we argue that our proposed model would be able to produce $s _ { i }$ that can be directly used for tasks such as node classification while the alternative approach is unable to achieve that (see Appendix A.6 for detailed analysis). ",
487
+ "bbox": [
488
+ 173,
489
+ 896,
490
+ 825,
491
+ 924
492
+ ],
493
+ "page_idx": 3
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "",
498
+ "bbox": [
499
+ 174,
500
+ 102,
501
+ 825,
502
+ 160
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "3.3 APPROACHES FOR GENERATING FEATURES",
509
+ "text_level": 1,
510
+ "bbox": [
511
+ 174,
512
+ 171,
513
+ 509,
514
+ 185
515
+ ],
516
+ "page_idx": 4
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "In an inductive learning setting with known attributes for the nodes, $\\vec { x } _ { i }$ can just be the attributes of the node. However, in a transductive learning setting without knowing the attributes of the nodes, we have to generate $\\vec { x } _ { i }$ based on the graph structure solely. Here we use two existing strategies to generate features $\\vec { x } _ { i }$ . As shown in Fig. 3, the first approach is the random walk based method. We designed a biased random walk scheme for nodes in hypergraphs and used that to sample walks. Then, similar to node2vec, a skip-gram model is trained to generate features. The second approach is the encoder based approach where the corresponding row of the adjacency matrix is used as the features. The features are further passed through an autoencoder-like structure to reduce the dimensionality with the output of the hidden layer used as the features. The detailed description of these two approaches can be found in Appendix A.1. ",
521
+ "bbox": [
522
+ 173,
523
+ 193,
524
+ 825,
525
+ 333
526
+ ],
527
+ "page_idx": 4
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "4 RESULTS ",
532
+ "text_level": 1,
533
+ "bbox": [
534
+ 174,
535
+ 348,
536
+ 281,
537
+ 364
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "We sought to compare Hyper-SAGNN with the state-of-the-art method DHNE as it has already been demonstrated with superior performance over previous algorithms such as DeepWalk, LINE, and HEBE. We first used the same four datasets in the DHNE paper to have a direct comparison. The details on these datasets can be found in the Appendix A.2. The details on the parameters used in this section for both Hyper-SAGNN and other methods can also be found in the Appendix A.3. The details of the tasks and the evaluation metrics used in this section are explained in the Appendix A.4. ",
544
+ "bbox": [
545
+ 174,
546
+ 373,
547
+ 825,
548
+ 458
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "4.1 PERFORMANCE COMPARISON WITH EXISTING METHODS ",
555
+ "text_level": 1,
556
+ "bbox": [
557
+ 174,
558
+ 469,
559
+ 602,
560
+ 483
561
+ ],
562
+ "page_idx": 4
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "We evaluated the effectiveness of our embedding vectors and the learned function with the network reconstruction task. We compared our Hyper-SAGNN using the encoder based approach and also the model using the random walk based pre-trained embeddings against DHNE and the baseline node2vec. We first trained the model and then used the learned embeddings to predict the hyperedges of the original network. We sampled the negative samples to be 5 times the amount of the positive samples following the same setup of DHNE. We evaluated the performance based on both the AUROC (Area Under the Receiver Operating Characteristic curve) and the AUPR (Area under the Precision-Recall curve). As shown in Table 1, Hyper-SAGNN can capture the network structure better than DHNE over all datasets either using the encoder based approach or the random walk based approach. ",
567
+ "bbox": [
568
+ 173,
569
+ 491,
570
+ 825,
571
+ 631
572
+ ],
573
+ "page_idx": 4
574
+ },
575
+ {
576
+ "type": "table",
577
+ "img_path": "images/fc4183757594eae59685c46f60cc5346c4987237e3133dfb671d77d68b1c1fb1.jpg",
578
+ "table_caption": [
579
+ "Table 1: AUC and AUPR values for network reconstruction. The models trained with the random walk based approach and the encoder based approach are marked as Hyper-SAGNN-W and Hyper-SAGNN-E, respectively. "
580
+ ],
581
+ "table_footnote": [],
582
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">GPS</td><td colspan=\"2\">MOVIELENS</td><td colspan=\"2\">DRUG</td><td colspan=\"2\">WORDNET</td></tr><tr><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td></tr><tr><td>node2vec-mean</td><td>0.572</td><td>0.188</td><td>0.557</td><td>0.197</td><td>0.668</td><td>0.246</td><td>0.613</td><td>0.215</td></tr><tr><td>node2vec-min</td><td>0.570</td><td>0.187</td><td>0.535</td><td>0.186</td><td>0.682</td><td>0.257</td><td>0.576</td><td>0.201</td></tr><tr><td>DHNE</td><td>0.959</td><td>0.836</td><td>0.974</td><td>0.878</td><td>0.952</td><td>0.873</td><td>0.989</td><td>0.953</td></tr><tr><td>Hyper-SAGNN-E</td><td>0.971</td><td>0.877</td><td>0.991</td><td>0.952</td><td>0.977</td><td>0.916</td><td>0.989</td><td>0.950</td></tr><tr><td>Hyper-SAGNN-W</td><td>0.976</td><td>0.857</td><td>0.998</td><td>0.986</td><td>0.988</td><td>0.945</td><td>0.994</td><td>0.956</td></tr></table>",
583
+ "bbox": [
584
+ 245,
585
+ 680,
586
+ 753,
587
+ 755
588
+ ],
589
+ "page_idx": 4
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "We further assessed the performance of Hyper-SAGNN on the hyperedge prediction task. We randomly split the hyperedge set into training and testing set by a ratio of 4:1. The way to generate negative samples is the same as the network reconstruction task. As shown in Table 2, our model again achieves significant improvement over DHNE for predicting the unseen hyperedges. The most significant improvement is from the wordnet dataset, which is about a $2 4 . 6 \\%$ increase on the AUPR score. For network reconstruction and hyperedge prediction tasks, the difference between the random walk based Hyper-SAGNN and the encoder based Hyper-SAGNN is minor. ",
594
+ "bbox": [
595
+ 174,
596
+ 763,
597
+ 825,
598
+ 861
599
+ ],
600
+ "page_idx": 4
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "In addition to the tasks related to the prediction of hyperedges, we also evaluated whether the learned embeddings are effective for node classification tasks. A multi-label classification experiment and a multi-class classification experiment were carried out for the MovieLens dataset and the wordnet dataset, respectively. We used Logistic Regression as the classifier. The proportion of the training data was chosen to be from $10 \\%$ to $90 \\%$ for the MovieLens dataset, and $1 \\%$ to $10 \\%$ for the wordnet dataset. We used averaged Mirco-F1 and Macro-F1 to evaluate the performance. The results are in Fig. 4. We observed that Hyper-SAGNN consistently achieves both higher Micro-F1 and Macro-F1 scores over DHNE for different fractions of the training data. Also, Hyper-SAGNN based on the random walk generally achieves the best performance (Hyper-SAGNN-W in Fig. 4). ",
605
+ "bbox": [
606
+ 174,
607
+ 867,
608
+ 823,
609
+ 924
610
+ ],
611
+ "page_idx": 4
612
+ },
613
+ {
614
+ "type": "image",
615
+ "img_path": "images/b81cc54be66315c169f54f95b8208888706edca91c358f6796546394ccdc348f.jpg",
616
+ "image_caption": [
617
+ "Figure 4: Performance of classification on MovieLens and wordnet datasets. Hyper-SAGNNs trained with the random walk based approach and the encoder based approach are marked as Hyper-SAGNN-W, HyperSAGNN-E, respectively. The models trained with a mix of edges and hyperedges are denoted with “(mix)”. "
618
+ ],
619
+ "image_footnote": [],
620
+ "bbox": [
621
+ 223,
622
+ 88,
623
+ 772,
624
+ 195
625
+ ],
626
+ "page_idx": 5
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "",
631
+ "bbox": [
632
+ 173,
633
+ 263,
634
+ 825,
635
+ 333
636
+ ],
637
+ "page_idx": 5
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "4.2 PERFORMANCE ON NON- $k$ -UNIFORM HYPERGRAPH ",
642
+ "text_level": 1,
643
+ "bbox": [
644
+ 174,
645
+ 344,
646
+ 568,
647
+ 358
648
+ ],
649
+ "page_idx": 5
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "Next, we evaluated Hyper-SAGNN using the non- $k$ -uniform heterogeneous hypergraph. For the above four datasets, we decomposed each hyperedge into 3 pairwise edges and added them to the existing graph. We trained our model to predict both the hyperedges and the edges (i.e., nonhyperedges). We then evaluated the performance for link prediction tasks for both the hyperedges and the edges. We also performed the node classification task following the same setting as above. The results for link prediction are in Table 2. Fig. 4 shows the results for the node classification task. ",
654
+ "bbox": [
655
+ 174,
656
+ 367,
657
+ 825,
658
+ 450
659
+ ],
660
+ "page_idx": 5
661
+ },
662
+ {
663
+ "type": "table",
664
+ "img_path": "images/06e023bd691c7e2496cc830fc9d549787ec0ebf503e27b8e211884c14d5cd92c.jpg",
665
+ "table_caption": [
666
+ "Table 2: Performance evaluation based on AUROC and AUPR for hyperedge/edge prediction. Methods with annotation (mix) represent Hyper-SAGNN trained with a mixture of edges and hyper-edges. Datasets marked with “(2)” represent the performance on pair-wise edge prediction (i.e., non-hyperedges). "
667
+ ],
668
+ "table_footnote": [],
669
+ "table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">GPS</td><td colspan=\"2\">MOVIELENS</td><td colspan=\"2\">DRUG</td><td colspan=\"2\">WORDNET</td></tr><tr><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td></tr><tr><td>node2vec-mean</td><td>0.563</td><td>0.191</td><td>0.562</td><td>0.197</td><td>0.670</td><td>0.246</td><td>0.608</td><td>0.213</td></tr><tr><td>node2vec - min</td><td>0.570</td><td>0.185</td><td>0.539</td><td>0.186</td><td>0.684</td><td>0.258</td><td>0.575</td><td>0.200</td></tr><tr><td>DHNE</td><td>0.910</td><td>0.668</td><td>0.877</td><td>0.668</td><td>0.925</td><td>0.859</td><td>0.816</td><td>0.459</td></tr><tr><td>Hyper-SAGNN-E</td><td>0.952</td><td>0.798</td><td>0.926</td><td>0.793</td><td>0.961</td><td>0.895</td><td>0.890</td><td>0.705</td></tr><tr><td>Hyper-SAGNN-W</td><td>0.922</td><td>0.722</td><td>0.930</td><td>0.810</td><td>0.955</td><td>0.892</td><td>0.880</td><td>0.706</td></tr><tr><td>Hyper-SAGNN-E (mix)</td><td>0.950</td><td>0.795</td><td>0.928</td><td>0.799</td><td>0.956</td><td>0.887</td><td>0.881</td><td>0.694</td></tr><tr><td>Hyper-SAGNN-W (mix)</td><td>0.920</td><td>0.720</td><td>0.929</td><td>0.811</td><td>0.950</td><td>0.889</td><td>0.884</td><td>0.684</td></tr><tr><td></td><td colspan=\"2\">GPS (2)</td><td></td><td>MOVIELENS (2)</td><td></td><td>DRUG (2)</td><td>WORDNET (2)</td><td></td></tr><tr><td></td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td><td>AUC</td><td>AUPR</td></tr><tr><td>Hyper-SAGNN-E (mix)</td><td>0.921</td><td>0.899</td><td>0.971</td><td>0.967</td><td>0.981</td><td>0.973</td><td>0.891</td><td>0.897</td></tr><tr><td>Hyper-SAGNN-W (mix)</td><td>0.931</td><td>0.910</td><td>0.999</td><td>0.999</td><td>0.999</td><td>0.999</td><td>0.923</td><td>0.916</td></tr></table>",
670
+ "bbox": [
671
+ 225,
672
+ 506,
673
+ 767,
674
+ 652
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "We observed that Hyper-SAGNN can preserve the graph structure on different levels. Compared to training the model with hyperedges only, including the edges into the training would not cause obvious changes in performance for hyperedge predictions (about a $1 \\%$ fluctuation for AUC/AUPR). ",
681
+ "bbox": [
682
+ 176,
683
+ 672,
684
+ 823,
685
+ 715
686
+ ],
687
+ "page_idx": 5
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "We then further assessed the model in a new evaluation setting where there are adequate edges but only a few hyperedges presented. We asked whether the model can still achieve good performance on the hyperedge prediction based on this dataset. This scenario is possible in real-world applications especially when the dataset is combined from different sources. For example, in the drug dataset, it is possible that, in addition to the (user, drug, reaction) hyperedges, there are also extra edges that come from other sources, e.g., (drug, reaction) edges from the drug database, (user, drug) and (user, reaction) edges from the medical record. Here for each dataset that we tested, we used $50 \\%$ of the edges and only $5 \\%$ of the hyperedges to train the model. The results are in Fig. 5. ",
692
+ "bbox": [
693
+ 174,
694
+ 722,
695
+ 825,
696
+ 833
697
+ ],
698
+ "page_idx": 5
699
+ },
700
+ {
701
+ "type": "text",
702
+ "text": "When using only the edges to train the model, our method still achieves higher AUROC and AUPR score for hyperedge prediction as compared to node2vec (Table 2). We found that when the model is trained with both the downsampled hyperedge dataset and the edge dataset, it would be able to reach higher performance or suffer less from overfitting than being trained with each of the datasets individually. This demonstrates that our model can capture the consensus information on the graph structure across different sizes of hyperedges. ",
703
+ "bbox": [
704
+ 174,
705
+ 840,
706
+ 825,
707
+ 924
708
+ ],
709
+ "page_idx": 5
710
+ },
711
+ {
712
+ "type": "image",
713
+ "img_path": "images/fae418121b31e783d45f3c35949e2f20fea66c4b8d15ea3f051e738578a0dfd8.jpg",
714
+ "image_caption": [
715
+ "Figure 5: AUROC and AUPR scores of Hyper-SAGNN for hyperedge prediction on the downsampled dataset over training epochs. "
716
+ ],
717
+ "image_footnote": [],
718
+ "bbox": [
719
+ 223,
720
+ 98,
721
+ 766,
722
+ 304
723
+ ],
724
+ "page_idx": 6
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "4.3 OUTSIDER IDENTIFICATION ",
729
+ "text_level": 1,
730
+ "bbox": [
731
+ 176,
732
+ 359,
733
+ 406,
734
+ 375
735
+ ],
736
+ "page_idx": 6
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "In addition to the standard link prediction and node classification, we further formulated a new task called “outsider identification”. Previous methods such as DHNE can answer the question of whether a specific tuple of nodes $( v _ { 1 } , v _ { 2 } , . . . , v _ { k } )$ form a hyperedge. However, in many settings, we might also want to know the reason why this group of nodes will not form a hyperedge. We first define the outsider of a group of nodes as follows. Node $v _ { i }$ is the outsider of the node group $( v _ { 1 } , v _ { 2 } , . . . , v _ { k } )$ if it satisfies: ",
741
+ "bbox": [
742
+ 174,
743
+ 382,
744
+ 825,
745
+ 467
746
+ ],
747
+ "page_idx": 6
748
+ },
749
+ {
750
+ "type": "equation",
751
+ "img_path": "images/4930aa78d0fb98d1cfc449a3769776886cfebb21326824a4e01fea94d3e50a95.jpg",
752
+ "text": "$$\n\\begin{array} { l } { \\exists e \\in E , ( v _ { 1 } , v _ { 2 } , . . . , v _ { i - 1 } , v _ { i + 1 } , . . . , v _ { k } ) \\in e } \\\\ { \\exists e \\in E , s . t . \\exists j \\in \\{ 1 , 2 , . . , k \\} , j \\not = i , ( v _ { i } , v _ { j } ) \\in e } \\end{array}\n$$",
753
+ "text_format": "latex",
754
+ "bbox": [
755
+ 334,
756
+ 473,
757
+ 658,
758
+ 511
759
+ ],
760
+ "page_idx": 6
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "We speculated that Hyper-SAGNN can answer this question by analyzing the probability score $p _ { 1 }$ to $p _ { k }$ (defined in Eqn. 7). We assume that the node $v _ { i }$ with the smallest $p _ { i }$ would be the outsider. We then set the evaluation as follows. We first trained the model as usual, but at the final stage, we replaced the average pooling layer with the min pooling layer and fine-tuned the model for several epochs. We then fed the generated triplets with known outsider node into the trained model and calculated the top- $k$ accuracy of the outsider node matching the node with the smallest probability. Because this task is based on the prediction results of the hyperedges, we only tested on the dataset that achieves the best hyperedge prediction, i.e., the drug dataset. We found that we have $8 1 . 9 \\%$ accuracy for the smallest probability and $9 5 . 3 \\%$ accuracy for the top-2 smallest probability. These results show that by switching the pooling layer we would have better outsider identification accuracy (from $78 . 5 \\%$ to $8 1 . 9 \\%$ ) with the cost of slightly decreased hyperedge prediction performance (AUC from 0.955 to 0.935). This demonstrates that our model is able to accurately predict the outsider within the group even without further labeled information. Moreover, the performance of outsider identification can be further improved if we include the cross-entropy between $p _ { i }$ and the label of whether $v _ { i }$ is an outsider for all applicable triplets in the loss term. Together, these results show the advantage of Hyper-SAGNN in terms of the interpretability of hyperedge prediction. ",
765
+ "bbox": [
766
+ 173,
767
+ 515,
768
+ 825,
769
+ 738
770
+ ],
771
+ "page_idx": 6
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "4.4 APPLICATION TO SINGLE-CELL HI-C DATASETS ",
776
+ "text_level": 1,
777
+ "bbox": [
778
+ 174,
779
+ 747,
780
+ 544,
781
+ 762
782
+ ],
783
+ "page_idx": 6
784
+ },
785
+ {
786
+ "type": "text",
787
+ "text": "We next applied Hyper-SAGNN to the recently produced single-cell Hi-C (scHi-C) datasets (Ramani et al., 2017; Nagano et al., 2017). Genome-wide mapping of chromatin interactions by HiC (Lieberman-Aiden et al., 2009; Rao et al., 2014) has enabled comprehensive characterization of the 3D genome organization that reveals patterns of chromatin interactions between genomic loci. However, unlike bulk Hi-C data where signals are aggregated from cell populations, scHi-C provides unique information about chromatin interactions at single-cell resolution, thus allowing us to ascertain cell-to-cell variation of the 3D genome organization. Specifically, we propose that scHi-C makes it possible to model the cell-to-cell variation of chromatin interaction as a hyperedge, i.e., (cell, genomic locus, genomic locus). Note that the hyperedege here is “partially non-ordered”, namely (cell $i$ , locus $j$ , locus $k$ ) should be equivalent to (cell $i$ , locus $k$ , locus $j$ ). Our method is able to guarantee that while DHNE cannot achieve that directly. For the analysis of scHi-C, the most common strategy would be revealing the cell-to-cell variation by embedding the cells based on the contact matrix and then applying the clustering algorithms such as $K$ -means clustering on the embedded vectors. We performed the following evaluation to assess the effectiveness of HyperSAGNN on learning the embeddings of cells by representing the scHi-C data as hypergraphs. ",
788
+ "bbox": [
789
+ 174,
790
+ 770,
791
+ 825,
792
+ 924
793
+ ],
794
+ "page_idx": 6
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "",
799
+ "bbox": [
800
+ 174,
801
+ 103,
802
+ 823,
803
+ 160
804
+ ],
805
+ "page_idx": 7
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "We tested Hyper-SAGNN on two datasets. The first one consists of scHi-C from four human cell lines: HAP1, GM12878, K562, and HeLa (Ramani et al., 2017). The second one includes the scHiC that represents the cell cycle of the mouse embryonic stem cells (Nagano et al., 2017). We refer to the first dataset as “Ramani et al. data”, and the second as “Nagano et al. data” for abbreviation. We trained Hyper-SAGNN with the corresponding datasets. Due to the large average degrees of cell nodes, the random walk approach would take an extensive amount of time to sample the walks. Thus, we only applied the encoder version of our method. We visualize the learned embeddings by reducing them to 2 dimensions with PCA and UMAP (McInnes et al., 2018) (Fig. 6A-D). ",
810
+ "bbox": [
811
+ 174,
812
+ 166,
813
+ 825,
814
+ 279
815
+ ],
816
+ "page_idx": 7
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "We quantified the effectiveness of the embeddings by applying $K$ -means clustering on the Ramani et al. data and evaluating with Adjusted Rand Index (ARI). In addition, we also assessed the effectiveness of the embeddings with a supervised scenario. We used Logistic Regression as the classifier with $10 \\%$ of the cell as training samples and evaluated the multi-class classification task with Micro-F1 and Macro-F1. We did not run $K$ -means clustering on the Nagano et al. data as it represents a state of continuous cell cycle which is not suitable for a clustering task. We instead used the metric ACROC (Average Circular ROC) developed in the HiCRep/MDS paper (Liu et al., 2018) to evaluate the performance of the three methods on the Nagano et al. data. We compared the performance with two recently developed computational methods based on dimensionality reduction of the contact matrix, HiC-Rep/MDS (Liu et al., 2018) and scHiCluster (Zhou et al., 2019). Because Hyper-SAGNN is not a deterministic method for generating embeddings for scHi-C, we repeated the training process 5 times and averaged the score. All these results are in Fig. 6E. ",
821
+ "bbox": [
822
+ 173,
823
+ 285,
824
+ 825,
825
+ 452
826
+ ],
827
+ "page_idx": 7
828
+ },
829
+ {
830
+ "type": "image",
831
+ "img_path": "images/e42575c08dd82a72351d9f23fffa4d7550e8993ed0dfe1a812f27b8b0b2ffd7f.jpg",
832
+ "image_caption": [
833
+ "Figure 6: (A) and (B): Visualization of the learned embedding based on Hyper-SAGNN for the Ramani et al. data. (C) and (D): Visualization of the learned embedding based on Hyper-SAGNN for the Nagano et al. data. Embedding vectors are projected to two dimensional space using either UMAP or PCA. (E): Quantitative evaluation of the Hyper-SAGNN on two scHi-C datasets "
834
+ ],
835
+ "image_footnote": [],
836
+ "bbox": [
837
+ 181,
838
+ 464,
839
+ 810,
840
+ 695
841
+ ],
842
+ "page_idx": 7
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "For the Ramani et al. data (Fig. 6A-B), the visualization of the embedding vectors learned by HyperSAGNN exhibits clear patterns that cells with the same cell type are clustered together. Moreover, cell line HAP1, GM12878, and K562 are all blood-related cell lines, which are likely to be more similar to each other in terms of 3D genome organization as compared to HeLa. Indeed, we observed that they are also closer to each other in the embedding space. Quantitative results in Fig. 6E are consistent with the visualization as our method achieves the highest ARI, Micro-F1, MacroF1 score among all three methods. For the Nagano et al. data, as shown in Fig. 6C-D, we found that the embeddings exhibit a circular pattern that corresponds to the cell cycle. Also, both HiCRep/MDS and Hyper-SAGNN achieve high ACROC scores. All these results show the effectiveness of representing the scHi-C datasets as hypergraphs using Hyper-SAGNN, which has great potential to provide insights into the cell-to-cell variation of higher-order genome organization. ",
847
+ "bbox": [
848
+ 174,
849
+ 770,
850
+ 825,
851
+ 924
852
+ ],
853
+ "page_idx": 7
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "5 CONCLUSION ",
858
+ "text_level": 1,
859
+ "bbox": [
860
+ 176,
861
+ 102,
862
+ 318,
863
+ 118
864
+ ],
865
+ "page_idx": 8
866
+ },
867
+ {
868
+ "type": "text",
869
+ "text": "In this work, we developed a new graph neural network called Hyper-SAGNN for the representation learning of general hypergraphs. The model has the flexibility to deal with homogeneous and heterogeneous, and uniform and non-uniform hypergraphs. We demonstrated that Hyper-SAGNN can improve or match state-of-the-art performance for hypergraph representation learning while addressing the shortcomings of prior methods such as the inability to predict hyperedges for non- $k$ -uniform heterogeneous hypergraphs. Hyper-SAGNN is computationally efficient as the input size to the attention layer is bounded by the maximum hyperedge size as opposed to the number of neighbors. ",
870
+ "bbox": [
871
+ 174,
872
+ 127,
873
+ 825,
874
+ 226
875
+ ],
876
+ "page_idx": 8
877
+ },
878
+ {
879
+ "type": "text",
880
+ "text": "One potential improvement of Hyper-SAGNN as future work would be to allow information aggregation over all the first-order neighbors before calculating the static/dynamic embeddings for a node with the additional computational cost. With this design, the static embedding for a node would still satisfy our constraint that it is fixed for a known hypergraph with varying input tuples. This would allow us to incorporate previously developed methods on graphs, such as GraphSAGE (Hamilton et al., 2017a) and GCN (Kipf & Welling, 2016), as well as methods designed for hypergraphs like HyperGCN (Yadati et al., 2018) into this framework for better link prediction performance. Such improvement may also extend the application of Hyper-SAGNN to semi-supervised learning. ",
881
+ "bbox": [
882
+ 174,
883
+ 232,
884
+ 825,
885
+ 343
886
+ ],
887
+ "page_idx": 8
888
+ },
889
+ {
890
+ "type": "text",
891
+ "text": "ACKNOWLEDGMENT ",
892
+ "text_level": 1,
893
+ "bbox": [
894
+ 176,
895
+ 361,
896
+ 346,
897
+ 375
898
+ ],
899
+ "page_idx": 8
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "J.M. acknowledges support from the National Institutes of Health Common Fund 4D Nucleome Program grant U54DK107965, National Institutes of Health grant R01HG007352, and National Science Foundation grant 1717205. Y.Z. (Yao Class, IIIS, Tsinghua University) contributed to this work as a visiting undergraduate student at Carnegie Mellon University during summer 2019. ",
904
+ "bbox": [
905
+ 174,
906
+ 385,
907
+ 825,
908
+ 440
909
+ ],
910
+ "page_idx": 8
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "REFERENCES ",
915
+ "text_level": 1,
916
+ "bbox": [
917
+ 176,
918
+ 102,
919
+ 285,
920
+ 118
921
+ ],
922
+ "page_idx": 9
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "Song Bai, Feihu Zhang, and Philip HS Torr. Hypergraph convolution and hypergraph attention. arXiv preprint arXiv:1901.08150, 2019. ",
927
+ "bbox": [
928
+ 173,
929
+ 127,
930
+ 823,
931
+ 156
932
+ ],
933
+ "page_idx": 9
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "Inci M Baytas, Cao Xiao, Fei Wang, Anil K Jain, and Jiayu Zhou. Heterogeneous hyper-network embedding. In 2018 IEEE International Conference on Data Mining (ICDM), pp. 875–880. IEEE, 2018. ",
938
+ "bbox": [
939
+ 173,
940
+ 165,
941
+ 823,
942
+ 208
943
+ ],
944
+ "page_idx": 9
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. Translating embeddings for modeling multi-relational data. In Advances in Neural Information Processing Systems 26, pp. 2787–2795. Curran Associates, Inc., 2013. ",
949
+ "bbox": [
950
+ 176,
951
+ 218,
952
+ 823,
953
+ 261
954
+ ],
955
+ "page_idx": 9
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "Fuli Feng, Xiangnan He, Yiqun Liu, Liqiang Nie, and Tat-Seng Chua. Learning on partial-order hypergraphs. In Proceedings of the 2018 World Wide Web Conference, pp. 1523–1532. International World Wide Web Conferences Steering Committee, 2018. ",
960
+ "bbox": [
961
+ 173,
962
+ 270,
963
+ 826,
964
+ 314
965
+ ],
966
+ "page_idx": 9
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Yifan Feng, Haoxuan You, Zizhao Zhang, Rongrong Ji, and Yue Gao. Hypergraph neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 3558–3565, 2019. ",
971
+ "bbox": [
972
+ 174,
973
+ 321,
974
+ 825,
975
+ 364
976
+ ],
977
+ "page_idx": 9
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In Proceedings of the 22nd ACM SIGKDD international conference on Knowledge Discovery and Data Mining, pp. 855–864. ACM, 2016. ",
982
+ "bbox": [
983
+ 174,
984
+ 375,
985
+ 825,
986
+ 417
987
+ ],
988
+ "page_idx": 9
989
+ },
990
+ {
991
+ "type": "text",
992
+ "text": "Huan Gui, Jialu Liu, Fangbo Tao, Meng Jiang, Brandon Norick, and Jiawei Han. Large-scale embedding learning in heterogeneous event data. In 2016 IEEE 16th International Conference on Data Mining (ICDM), pp. 907–912. IEEE, 2016. ",
993
+ "bbox": [
994
+ 173,
995
+ 426,
996
+ 823,
997
+ 470
998
+ ],
999
+ "page_idx": 9
1000
+ },
1001
+ {
1002
+ "type": "text",
1003
+ "text": "Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems, pp. 1024–1034, 2017a. ",
1004
+ "bbox": [
1005
+ 171,
1006
+ 479,
1007
+ 823,
1008
+ 508
1009
+ ],
1010
+ "page_idx": 9
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "William L Hamilton, Rex Ying, and Jure Leskovec. Representation learning on graphs: Methods and applications. arXiv preprint arXiv:1709.05584, 2017b. ",
1015
+ "bbox": [
1016
+ 171,
1017
+ 518,
1018
+ 823,
1019
+ 547
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "F. Maxwell Harper and Joseph A. Konstan. The movielens datasets: History and context. ACM Trans. Interact. Intell. Syst., 5(4):19:1–19:19, December 2015. ISSN 2160-6455. ",
1026
+ "bbox": [
1027
+ 174,
1028
+ 556,
1029
+ 821,
1030
+ 585
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "Jie Huang, Chuan Chen, Fanghua Ye, Jiajing Wu, Zibin Zheng, and Guohui Ling. Hyper2vec: Biased random walk for hyper-network embedding. In International Conference on Database Systems for Advanced Applications, pp. 273–277. Springer, 2019. ",
1037
+ "bbox": [
1038
+ 174,
1039
+ 594,
1040
+ 825,
1041
+ 638
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
1048
+ "bbox": [
1049
+ 173,
1050
+ 647,
1051
+ 821,
1052
+ 676
1053
+ ],
1054
+ "page_idx": 9
1055
+ },
1056
+ {
1057
+ "type": "text",
1058
+ "text": "Erez Lieberman-Aiden, Nynke L Van Berkum, Louise Williams, Maxim Imakaev, Tobias Ragoczy, Agnes Telling, Ido Amit, Bryan R Lajoie, Peter J Sabo, Michael O Dorschner, et al. Comprehensive mapping of long-range interactions reveals folding principles of the human genome. Science, 326(5950):289–293, 2009. ",
1059
+ "bbox": [
1060
+ 173,
1061
+ 685,
1062
+ 825,
1063
+ 742
1064
+ ],
1065
+ "page_idx": 9
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "Jie Liu, Dejun Lin, Galip Gurkan Yardımcı, and William Stafford Noble. Unsupervised embedding ¨ of single-cell hi-c data. Bioinformatics, 34(13):i96–i104, 2018. ",
1070
+ "bbox": [
1071
+ 169,
1072
+ 751,
1073
+ 823,
1074
+ 781
1075
+ ],
1076
+ "page_idx": 9
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "Leland McInnes, John Healy, and James Melville. Umap: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426, 2018. ",
1081
+ "bbox": [
1082
+ 171,
1083
+ 790,
1084
+ 823,
1085
+ 820
1086
+ ],
1087
+ "page_idx": 9
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient Estimation of Word Representations in Vector Space. arXiv e-prints, art. arXiv:1301.3781, Jan 2013. ",
1092
+ "bbox": [
1093
+ 171,
1094
+ 829,
1095
+ 823,
1096
+ 858
1097
+ ],
1098
+ "page_idx": 9
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In C. J. C. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 26, pp. 3111–3119. Curran Associates, Inc., 2013. ",
1103
+ "bbox": [
1104
+ 174,
1105
+ 867,
1106
+ 825,
1107
+ 924
1108
+ ],
1109
+ "page_idx": 9
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Takashi Nagano, Yaniv Lubling, Csilla Varnai, Carmel Dudley, Wing Leung, Yael Baran, ´ Netta Mendelson Cohen, Steven Wingett, Peter Fraser, and Amos Tanay. Cell-cycle dynamics of chromosomal organization at single-cell resolution. Nature, 547(7661):61, 2017. ",
1114
+ "bbox": [
1115
+ 176,
1116
+ 103,
1117
+ 823,
1118
+ 146
1119
+ ],
1120
+ "page_idx": 10
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "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, pp. 701–710. ACM, 2014. ",
1125
+ "bbox": [
1126
+ 178,
1127
+ 155,
1128
+ 820,
1129
+ 198
1130
+ ],
1131
+ "page_idx": 10
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "Vijay Ramani, Xinxian Deng, Ruolan Qiu, Kevin L Gunderson, Frank J Steemers, Christine M Disteche, William S Noble, Zhijun Duan, and Jay Shendure. Massively multiplex single-cell hi-c. Nature Methods, 14(3):263, 2017. ",
1136
+ "bbox": [
1137
+ 179,
1138
+ 207,
1139
+ 821,
1140
+ 250
1141
+ ],
1142
+ "page_idx": 10
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "Suhas SP Rao, Miriam H Huntley, Neva C Durand, Elena K Stamenova, Ivan D Bochkov, James T Robinson, Adrian L Sanborn, Ido Machol, Arina D Omer, Eric S Lander, et al. A 3d map of the human genome at kilobase resolution reveals principles of chromatin looping. Cell, 159(7): 1665–1680, 2014. ",
1147
+ "bbox": [
1148
+ 173,
1149
+ 257,
1150
+ 826,
1151
+ 314
1152
+ ],
1153
+ "page_idx": 10
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Liang Sun, Shuiwang Ji, and Jieping Ye. Hypergraph spectral learning for multi-label classification. In Proceedings of the 14th ACM SIGKDD international Conference on Knowledge Discovery and Data Mining, pp. 668–676. ACM, 2008. ",
1158
+ "bbox": [
1159
+ 173,
1160
+ 323,
1161
+ 826,
1162
+ 366
1163
+ ],
1164
+ "page_idx": 10
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Ke Tu, Peng Cui, Xiao Wang, Fei Wang, and Wenwu Zhu. Structural deep embedding for hypernetworks. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. ",
1169
+ "bbox": [
1170
+ 173,
1171
+ 375,
1172
+ 823,
1173
+ 405
1174
+ ],
1175
+ "page_idx": 10
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "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, pp. 5998–6008, 2017. ",
1180
+ "bbox": [
1181
+ 173,
1182
+ 412,
1183
+ 823,
1184
+ 455
1185
+ ],
1186
+ "page_idx": 10
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017. ",
1191
+ "bbox": [
1192
+ 169,
1193
+ 463,
1194
+ 823,
1195
+ 494
1196
+ ],
1197
+ "page_idx": 10
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Naganand Yadati, Madhav Nimishakavi, Prateek Yadav, Anand Louis, and Partha Talukdar. Hypergcn: Hypergraph convolutional networks for semi-supervised classification. arXiv preprint arXiv:1809.02589, 2018. ",
1202
+ "bbox": [
1203
+ 174,
1204
+ 501,
1205
+ 823,
1206
+ 545
1207
+ ],
1208
+ "page_idx": 10
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Chia-An Yu, Ching-Lun Tai, Tak-Shing Chan, and Yi-Hsuan Yang. Modeling multi-way relations with hypergraph embedding. In Proceedings of the 27th ACM International Conference on Information and Knowledge Management, pp. 1707–1710, 2018. ",
1213
+ "bbox": [
1214
+ 176,
1215
+ 553,
1216
+ 823,
1217
+ 597
1218
+ ],
1219
+ "page_idx": 10
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "Vincent W. Zheng, Bin Cao, Yu Zheng, Xing Xie, and Qiang Yang. Collaborative filtering meets mobile recommendation: A user-centered approach. In Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence, AAAI’10, pp. 236–241. AAAI Press, 2010. ",
1224
+ "bbox": [
1225
+ 178,
1226
+ 604,
1227
+ 821,
1228
+ 648
1229
+ ],
1230
+ "page_idx": 10
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Dengyong Zhou, Jiayuan Huang, and Bernhard Scholkopf. Learning with hypergraphs: Clustering, ¨ classification, and embedding. In Advances in Neural Information Processing systems, pp. 1601– 1608, 2007. ",
1235
+ "bbox": [
1236
+ 174,
1237
+ 656,
1238
+ 825,
1239
+ 699
1240
+ ],
1241
+ "page_idx": 10
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Jingtian Zhou, Jianzhu Ma, Yusi Chen, Chuankai Cheng, Bokan Bao, Jian Peng, Terrence J Sejnowski, Jesse R Dixon, and Joseph R Ecker. Robust single-cell hi-c clustering by convolutionand random-walk–based imputation. Proceedings of the National Academy of Sciences, pp. 201901423, 2019. ",
1246
+ "bbox": [
1247
+ 174,
1248
+ 708,
1249
+ 825,
1250
+ 765
1251
+ ],
1252
+ "page_idx": 10
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "A APPENDIX ",
1257
+ "text_level": 1,
1258
+ "bbox": [
1259
+ 176,
1260
+ 102,
1261
+ 299,
1262
+ 117
1263
+ ],
1264
+ "page_idx": 11
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "A.1 DETAILS OF THE STRATEGIES FOR GENERATING FEATURE VECTORS ",
1269
+ "text_level": 1,
1270
+ "bbox": [
1271
+ 174,
1272
+ 128,
1273
+ 686,
1274
+ 143
1275
+ ],
1276
+ "page_idx": 11
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "We first define the functions used in the subsequent sections as follows: a hyperedge $e$ with weight $w ( e )$ is incident with a vertex $v$ if and only if $v \\in e$ . We denote the indicator function that represents the incident relationship between $v$ and $e$ by $h ( v , e )$ , which equals 1 when $e$ is incident with $v$ . The degree of vertex and the size of hyperedge are defined as: ",
1281
+ "bbox": [
1282
+ 173,
1283
+ 151,
1284
+ 825,
1285
+ 208
1286
+ ],
1287
+ "page_idx": 11
1288
+ },
1289
+ {
1290
+ "type": "equation",
1291
+ "img_path": "images/743d8fbb20d31a6146169106c1776a75438101543481a225ecc39b039dd41522.jpg",
1292
+ "text": "$$\n\\begin{array} { l } { { d ( v ) \\triangleq \\displaystyle \\sum _ { e \\in E } h ( v , e ) w ( e ) } } \\\\ { { \\delta ( e ) \\triangleq \\displaystyle \\sum _ { v \\in V } h ( v , e ) = | e | } } \\end{array}\n$$",
1293
+ "text_format": "latex",
1294
+ "bbox": [
1295
+ 415,
1296
+ 213,
1297
+ 583,
1298
+ 284
1299
+ ],
1300
+ "page_idx": 11
1301
+ },
1302
+ {
1303
+ "type": "text",
1304
+ "text": "A.1.1 ENCODER BASED APPROACH",
1305
+ "text_level": 1,
1306
+ "bbox": [
1307
+ 174,
1308
+ 297,
1309
+ 436,
1310
+ 313
1311
+ ],
1312
+ "page_idx": 11
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "As shown on the right side of Fig. 3, the first method to generate features is referred to as the encoder based approach, which is similar to the structure used in DHNE (Tu et al., 2018). We first obtain the incident matrix of the hypergraph $H \\in \\mathbb { R } ^ { | V | \\times | E | }$ with entries $h ( v , e ) = 1$ if $v \\in e$ and 0 otherwise. We also calculate the diagonal degree matrix $D _ { v }$ containing the vertex degree $\\begin{array} { r } { d ( v ) = \\sum _ { e \\in E } h ( v , e ) } \\end{array}$ . We thus have the adjacency matrix $A = H H ^ { T } - D _ { v }$ , of which the entries $a ( v _ { i } , v _ { j } )$ denote the concurrent times between each pair of nodes $( v _ { i } , v _ { j } )$ . The $i$ -th row of $A$ , denoted by $\\vec { a } _ { i }$ , shows the neighborhood structures of the node $v _ { i }$ , which then passes through a one-layer neural network to produce $\\vec { x } _ { i }$ : ",
1317
+ "bbox": [
1318
+ 173,
1319
+ 320,
1320
+ 826,
1321
+ 436
1322
+ ],
1323
+ "page_idx": 11
1324
+ },
1325
+ {
1326
+ "type": "equation",
1327
+ "img_path": "images/a41983913a048d981b102d3bf96a72a94deff66078da0a1a3de5e039d95ff49d.jpg",
1328
+ "text": "$$\n\\vec { x } _ { i } = \\operatorname { t a n h } \\left( W _ { \\mathrm { e n c } } \\cdot \\vec { a } _ { i } + \\vec { b } _ { \\mathrm { e n c } } \\right)\n$$",
1329
+ "text_format": "latex",
1330
+ "bbox": [
1331
+ 400,
1332
+ 443,
1333
+ 598,
1334
+ 469
1335
+ ],
1336
+ "page_idx": 11
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "In DHNE, a symmetric structure was introduced where there are corresponding decoders to transform the $\\vec { x } _ { i }$ back to $\\vec { a } _ { i }$ . Tu et al. (2018) remarked that including this reconstruction error term would help DHNE to learn the graph structure better. We also include the reconstruction error term into the loss function, but with tied-weights between encoder and decoder to reduce the number of parameters that need to be trained. ",
1341
+ "bbox": [
1342
+ 173,
1343
+ 473,
1344
+ 825,
1345
+ 544
1346
+ ],
1347
+ "page_idx": 11
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "A.1.2 RANDOM WALK BASED APPROACH ",
1352
+ "text_level": 1,
1353
+ "bbox": [
1354
+ 174,
1355
+ 551,
1356
+ 478,
1357
+ 566
1358
+ ],
1359
+ "page_idx": 11
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "Besides the encoder based approach, we also utilize a random walk based framework to generate the feature vectors $\\vec { x } _ { i }$ (shown on the left side of Fig. 3). We extend the biased 2nd-order random walks proposed in node2vec (Grover & Leskovec, 2016) to generalize to hypergraphs. For a walk from $v$ to $x$ then to $t$ , the strategies are described as follows. ",
1364
+ "bbox": [
1365
+ 173,
1366
+ 574,
1367
+ 825,
1368
+ 631
1369
+ ],
1370
+ "page_idx": 11
1371
+ },
1372
+ {
1373
+ "type": "text",
1374
+ "text": "The 1st-order random walk strategy given the current vertex $x$ is to randomly select a hyperedge $e$ incident with $x$ based on the weight of $e$ and then to choose the next vertex $y$ from $e$ uniformly (Zhou et al., 2007). Therefore, the 1st-order transition probability is defined as: ",
1375
+ "bbox": [
1376
+ 173,
1377
+ 638,
1378
+ 825,
1379
+ 680
1380
+ ],
1381
+ "page_idx": 11
1382
+ },
1383
+ {
1384
+ "type": "equation",
1385
+ "img_path": "images/885e9d1772d18ca174b55f954148a8029ce5164e9da8651cf657d82389861813.jpg",
1386
+ "text": "$$\n\\pi _ { 1 } ( t | x ) \\triangleq \\sum _ { e \\in E } w ( e ) { \\frac { h ( t , e ) h ( x , e ) } { \\delta ( e ) } }\n$$",
1387
+ "text_format": "latex",
1388
+ "bbox": [
1389
+ 383,
1390
+ 685,
1391
+ 612,
1392
+ 724
1393
+ ],
1394
+ "page_idx": 11
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "We then generalize the 2nd-order bias $\\alpha _ { p q }$ from ordinary graph to hypergraph for a walk from $v$ to $x$ to $t$ as: ",
1399
+ "bbox": [
1400
+ 173,
1401
+ 731,
1402
+ 823,
1403
+ 758
1404
+ ],
1405
+ "page_idx": 11
1406
+ },
1407
+ {
1408
+ "type": "equation",
1409
+ "img_path": "images/3a8798d0be07371576e48672d7533c13c441cf7e4fb0004444b03bcd75250deb.jpg",
1410
+ "text": "$$\n\\alpha _ { p , q } ( t , v ) = { \\left\\{ \\begin{array} { l l } { 1 / p , } & { { \\mathrm { i f ~ } } \\exists e \\in E { \\mathrm { , ~ s . t . ~ } } t , v , x \\in e } \\\\ { 1 { \\mathrm { , ~ } } } & { { \\mathrm { e l s e ~ i f ~ } } \\exists e \\in E { \\mathrm { , ~ s . t . ~ } } t , x \\in e } \\\\ { 1 / q , } & { { \\mathrm { o t h e r w i s e } } } \\end{array} \\right. }\n$$",
1411
+ "text_format": "latex",
1412
+ "bbox": [
1413
+ 325,
1414
+ 762,
1415
+ 663,
1416
+ 808
1417
+ ],
1418
+ "page_idx": 11
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "where the parameters $p$ and $q$ are to control the tendencies that encourage outward exploration and obtain a local view. ",
1423
+ "bbox": [
1424
+ 174,
1425
+ 813,
1426
+ 823,
1427
+ 840
1428
+ ],
1429
+ "page_idx": 11
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "Next we add the above terms to set the biased 2nd-order transition probability as: ",
1434
+ "bbox": [
1435
+ 174,
1436
+ 848,
1437
+ 707,
1438
+ 863
1439
+ ],
1440
+ "page_idx": 11
1441
+ },
1442
+ {
1443
+ "type": "equation",
1444
+ "img_path": "images/88c35c57eb1b2402d42f4c869c995ee05bea1a2cd24c0ca3fd5a37359a7d5cbe.jpg",
1445
+ "text": "$$\n\\pi ( t | v , x ) = { \\left\\{ \\begin{array} { l l } { { \\frac { \\pi _ { 1 } ( t | x ) \\cdot \\alpha _ { p q } ( t , v ) } { Z } } , } & { { \\mathrm { i f ~ } } \\exists e \\in E { \\mathrm { , ~ s . t . ~ } } v , x \\in e } \\\\ { 0 , } & { { \\mathrm { o t h e r w i s e } } } \\end{array} \\right. }\n$$",
1446
+ "text_format": "latex",
1447
+ "bbox": [
1448
+ 305,
1449
+ 868,
1450
+ 681,
1451
+ 904
1452
+ ],
1453
+ "page_idx": 11
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "where $Z$ is a normalizing factor. ",
1458
+ "bbox": [
1459
+ 174,
1460
+ 909,
1461
+ 387,
1462
+ 924
1463
+ ],
1464
+ "page_idx": 11
1465
+ },
1466
+ {
1467
+ "type": "text",
1468
+ "text": "With the well-defined 2nd-order transition probability $\\pi ( t | v , x )$ , we simulate a random walk of fixed length $l$ through a 2nd-order Markov process marked by $\\begin{array} { r } { \\dot { P } ( c _ { i } = t | c _ { i - 1 } = x , c _ { i - 2 } = v ) = \\pi ( t | v , x ) } \\end{array}$ , where $c _ { i }$ is the $i$ -th node in the walk. A Skip-gram model (Mikolov et al., 2013; Mikolov et al., 2013) is then used to extract the node features from sampled walks such that the nodes that appear in similar contexts would have similar embeddings. ",
1469
+ "bbox": [
1470
+ 174,
1471
+ 103,
1472
+ 825,
1473
+ 174
1474
+ ],
1475
+ "page_idx": 12
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "A.2 DETAILS OF THE DATASETS USED IN THIS WORK ",
1480
+ "text_level": 1,
1481
+ "bbox": [
1482
+ 174,
1483
+ 185,
1484
+ 552,
1485
+ 199
1486
+ ],
1487
+ "page_idx": 12
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "The four datasets used in the first part of our evaluation are: ",
1492
+ "bbox": [
1493
+ 174,
1494
+ 207,
1495
+ 563,
1496
+ 222
1497
+ ],
1498
+ "page_idx": 12
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "text": "• GPS (Zheng et al., 2010): GPS network. The hyperedges are based on (user, location, activity) relations. \n• MovieLens (Harper & Konstan, 2015): Social network. The hyperedges are based on (user, movie, tag) relations, describing peoples’ tagging activities. \n• drug: Medicine network from FAERS1. The hyperedges are based on (user, drug, reaction) relations. \n• wordnet (Bordes et al., 2013): Semantic network from WordNet 3.0. The hyperedges are based on (head entity, relation, tail entity), expressing the relationships between words. ",
1503
+ "bbox": [
1504
+ 215,
1505
+ 233,
1506
+ 825,
1507
+ 364
1508
+ ],
1509
+ "page_idx": 12
1510
+ },
1511
+ {
1512
+ "type": "text",
1513
+ "text": "Details of the datasets are shown in Table A1. ",
1514
+ "bbox": [
1515
+ 174,
1516
+ 376,
1517
+ 473,
1518
+ 390
1519
+ ],
1520
+ "page_idx": 12
1521
+ },
1522
+ {
1523
+ "type": "table",
1524
+ "img_path": "images/c8f57ad17c2083e90dce2c27943db42afa37caa92737d04263cb1702c4815e0b.jpg",
1525
+ "table_caption": [
1526
+ "Table A1: Datasets used in this work. Note that the columns under $\\ddot { \\# } ( \\mathrm { V } ) \\dot { \\cdot }$ ” correspond to the columns under “node type” for each dataset. "
1527
+ ],
1528
+ "table_footnote": [],
1529
+ "table_body": "<table><tr><td>DATASETS</td><td colspan=\"4\">NODETYPE</td><td colspan=\"2\">#(V)</td><td>#(E)</td></tr><tr><td>GPS</td><td>user</td><td>location</td><td>activity</td><td>146</td><td>70</td><td>5</td><td>1,436</td></tr><tr><td>MovieLens</td><td>user</td><td>movie</td><td>tag</td><td>2,113</td><td>5,908</td><td>9,079</td><td>47,957</td></tr><tr><td>drug</td><td>user</td><td>drug</td><td>reaction</td><td>12</td><td>1,076</td><td>6,398</td><td>171,756</td></tr><tr><td>wordnet</td><td>head</td><td>relation</td><td>tail</td><td>40,504</td><td>18</td><td>40,551</td><td>145,966</td></tr></table>",
1530
+ "bbox": [
1531
+ 264,
1532
+ 444,
1533
+ 732,
1534
+ 500
1535
+ ],
1536
+ "page_idx": 12
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "A.3 PARAMETER SETTING ",
1541
+ "text_level": 1,
1542
+ "bbox": [
1543
+ 176,
1544
+ 527,
1545
+ 370,
1546
+ 541
1547
+ ],
1548
+ "page_idx": 12
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "We downloaded the source code of DHNE from its GitHub repository. The structure of the neural network of DHNE was set to be the same as what the authors described in Tu et al. (2018). We tuned parameters such as the $\\alpha$ term and the learning rate following the same procedure. We also tried adding dropout between representation vectors and the fully connected layer for better performance of DHNE. All these parameters were tuned until it was able to replicate or even improve the performance reported in the original paper. To make a fair comparison, for all the results below, we made sure that the training and validation data setups were the same across different methods. ",
1553
+ "bbox": [
1554
+ 173,
1555
+ 549,
1556
+ 825,
1557
+ 647
1558
+ ],
1559
+ "page_idx": 12
1560
+ },
1561
+ {
1562
+ "type": "text",
1563
+ "text": "For node2vec, we decomposed the hypergraph into pairwise edges and ran node2vec on the decomposed graph. For the hyperedge prediction task, we first used the learned embedding to predict pairwise edges. We then used the mean or min of the pairwise similarity as the probability for the tuple to form a hyperedge. We set the window size to 10, walk length to 40, the number of walks per vertex to 10, which are the same parameters used in DHNE for node2vec. However, we found that for the baseline method node2vec, when we tuned the hyper-parameter $p , q$ and also used larger walk length, window size and walks per vertex (120, 20, 80 instead of 40, 10, 10), it would achieve comparable performance for node classification task as DHNE. This observation is consistent with our designed biased hypergraph random walk. But this would result in a longer time for sampling the walks and training the skip-gram model. We therefore kept the parameters consistent with what was used in DHNE paper. ",
1564
+ "bbox": [
1565
+ 174,
1566
+ 655,
1567
+ 825,
1568
+ 808
1569
+ ],
1570
+ "page_idx": 12
1571
+ },
1572
+ {
1573
+ "type": "text",
1574
+ "text": "For our Hyper-SAGNN, we set the representation size to 64, which is the same as DHNE. The number of heads in the multi-head attention layer is set to 8. When using the encoder based approach to calculate $x _ { i }$ , we set the encoder structure to be the same as the encoder part in DHNE. When using the random walk based approach, we decomposed the hypergraph into a graph as described above. We set the window size to 10, walk length to 40, the number of walks per vertex to 10, to allow time-efficient generation of feature vector $\\vec { x } _ { i }$ . The results in Section 4.1 showed that even when the pre-trained embeddings are not so ideal, Hyper-SAGNN can still well capture the structure of the graph. ",
1575
+ "bbox": [
1576
+ 174,
1577
+ 814,
1578
+ 825,
1579
+ 897
1580
+ ],
1581
+ "page_idx": 12
1582
+ },
1583
+ {
1584
+ "type": "text",
1585
+ "text": "",
1586
+ "bbox": [
1587
+ 173,
1588
+ 103,
1589
+ 823,
1590
+ 132
1591
+ ],
1592
+ "page_idx": 13
1593
+ },
1594
+ {
1595
+ "type": "text",
1596
+ "text": "To train the model, we used the Adam optimizer with learning rate 1e-3. Each batch contains 96 positive hyperedges with 480 negative samples. The training is terminated when it reaches the maximum training epoch number (100) or the performance on the validation set no longer improves. ",
1597
+ "bbox": [
1598
+ 176,
1599
+ 138,
1600
+ 821,
1601
+ 181
1602
+ ],
1603
+ "page_idx": 13
1604
+ },
1605
+ {
1606
+ "type": "text",
1607
+ "text": "A.4 EXPERIMENT SETTING ",
1608
+ "text_level": 1,
1609
+ "bbox": [
1610
+ 176,
1611
+ 191,
1612
+ 377,
1613
+ 207
1614
+ ],
1615
+ "page_idx": 13
1616
+ },
1617
+ {
1618
+ "type": "text",
1619
+ "text": "To compare the performance of Hyper-SAGNN with other baseline methods, we used the same three tasks in the DHNE paper, i.e., network reconstruction, link prediction, and node classification. In this section, we describe the setting of these three tasks and the evaluation metrics. ",
1620
+ "bbox": [
1621
+ 178,
1622
+ 215,
1623
+ 821,
1624
+ 257
1625
+ ],
1626
+ "page_idx": 13
1627
+ },
1628
+ {
1629
+ "type": "text",
1630
+ "text": "Network reconstruction aims to reconstruct the input hypergraph from the learned embedding. Specifically, a hypergraph $G = ( V , E )$ is used as input to the algorithm. After training, the model makes predictions for the original hyperedge set $E$ . Link prediction, on the other hand, aims to predict the unseen hyperedge set $E ^ { ' }$ based on the model trained with hypergraph $G = ( V , E )$ . These two tasks can be regarded as binary classification tasks and thus can be evaluated by metrics such as AUROC and AUPR. For both tasks, the negative samples are set to be 5 times the amount of the positive samples following the same setup of DHNE. ",
1631
+ "bbox": [
1632
+ 174,
1633
+ 263,
1634
+ 823,
1635
+ 363
1636
+ ],
1637
+ "page_idx": 13
1638
+ },
1639
+ {
1640
+ "type": "text",
1641
+ "text": "For the node classification, after training the model, the embeddings for the nodes are used to train a Logistic Regression classifier with targets as the pre-defined labels for the nodes. Here we have a multi-label classification and a multi-class classification task for dataset MovieLens and wordnet, respectively, making the metrics defined for binary classification not applicable. Therefore, the performances are evaluated by Micro and Macro F1 scores that are used for quantifying the performance of multi-label/multi-class classification. ",
1642
+ "bbox": [
1643
+ 173,
1644
+ 371,
1645
+ 825,
1646
+ 454
1647
+ ],
1648
+ "page_idx": 13
1649
+ },
1650
+ {
1651
+ "type": "text",
1652
+ "text": "A.5 ANALYSIS OF THE DYNAMIC EMBEDDINGS ",
1653
+ "text_level": 1,
1654
+ "bbox": [
1655
+ 176,
1656
+ 465,
1657
+ 511,
1658
+ 479
1659
+ ],
1660
+ "page_idx": 13
1661
+ },
1662
+ {
1663
+ "type": "text",
1664
+ "text": "In this section, we discuss the relationships between dynamic embeddings and static embeddings. As mentioned in the Method section, we design the model to establish the connection between the probability score for a tuple with how well the static embedding of each node can be approximated by the features of their neighbor within that tuple. If the model works as we designed, the dynamic embedding of node $i$ conditioned on an actual hyperedge $( i , j , . . . , k )$ should approximate the static embedding of node $i$ better. In contrast, the dynamic embedding of node $i$ when it is a member of a non-hyperedge tuple would not have a good “approximation”. To evaluate this, after training the model we collected all the dynamic embeddings for nodes when they are within the tuples of positive samples, which would be referred to as positive dynamic embeddings. We also collected the dynamic embeddings for nodes when conditioned on the “hard negative samples” (the negative samples that are generated by only changing one node in the positive samples), which would be referred to as negative dynamic embeddings. We tested whether the positive dynamic embeddings indeed resemble the static embeddings better by comparing the performance of node classification using dynamic embeddings and static embeddings. For each node, since the number of positive and negative dynamic embeddings is not finite, we sampled and averaged a number of them as the features. The remaining setting of node classification is the same as described in the main text. As shown in Fig. A1, in general, the positive dynamic embeddings can achieve much better performance as compared to the negative dynamic embeddings. Both the micro and macro F1 scores increase when more positive dynamic embeddings are sampled and averaged. When averaging all positive dynamic embeddings and using those as features, the node classification performance is close to what we achieved using static embeddings. This analysis demonstrates that the positive dynamic embeddings “approximate” the static embeddings as they contain sufficient information for accurate node classification. In addition, for the negative dynamic embeddings where only one node is changed when generating negative samples, it performs dramatically worse. Note that we exclude the $\\alpha _ { i i }$ term in the calculation of dynamic embeddings, which makes the dynamic embedding for node $i$ the combination of features of its neighbor within a given tuple. These results demonstrate that the probability scores for each node indicate the “distances” of static/dynamic embedding pairs that reflect how well the static embedding of each node can be approximated by the features of their neighbor within that tuple. ",
1665
+ "bbox": [
1666
+ 174,
1667
+ 488,
1668
+ 825,
1669
+ 890
1670
+ ],
1671
+ "page_idx": 13
1672
+ },
1673
+ {
1674
+ "type": "image",
1675
+ "img_path": "images/cb460ae70ceeb9a325f12172826863dd0024c467475db80935c30b53d25ef7e7.jpg",
1676
+ "image_caption": [
1677
+ "Figure A1: Node classification performance comparison for static embeddings and dynamic embeddings. The results based on static embeddings are marked as “static”. Results based on positive/negative dynamic embeddings are marked as “dynamic P/dynamic $\\mathbf { N } ^ { \\ast }$ . The numbers of dynamic embeddings sampled during this process are also included in the legend. "
1678
+ ],
1679
+ "image_footnote": [],
1680
+ "bbox": [
1681
+ 179,
1682
+ 102,
1683
+ 821,
1684
+ 220
1685
+ ],
1686
+ "page_idx": 14
1687
+ },
1688
+ {
1689
+ "type": "text",
1690
+ "text": "A.6 COMPARISON OF HYPER-SAGNN VS. THE VARIANTS ",
1691
+ "text_level": 1,
1692
+ "bbox": [
1693
+ 176,
1694
+ 310,
1695
+ 591,
1696
+ 324
1697
+ ],
1698
+ "page_idx": 14
1699
+ },
1700
+ {
1701
+ "type": "text",
1702
+ "text": "As mentioned above, unlike the standard GAT model, we exclude the $\\alpha _ { i i }$ term in the self-attention mechanism. To test whether this constraint would improve or reduce the model’s ability to learn, we implemented a variant of our model (referred to as variant type I) by including this term. Also, as mentioned in the Method section, another potential variant of our model would be directly using the $\\vec { d } _ { i } ^ { * }$ to calculate the probability score $p _ { i } ^ { * }$ . We refer to this variant as variant type II. For variant type II, on node classification task, since it does not have a static embedding, we used $W _ { v } ^ { T } x _ { i }$ . The rest of the parameters and structure of the neural network remain the same. ",
1703
+ "bbox": [
1704
+ 174,
1705
+ 333,
1706
+ 825,
1707
+ 434
1708
+ ],
1709
+ "page_idx": 14
1710
+ },
1711
+ {
1712
+ "type": "text",
1713
+ "text": "We then compared the performance of Hyper-SAGNN and two variants in terms of AUC and AUPR values for network reconstruction task and hyperedge link prediction task on the following four datasets: MovieLens, wordnet, drug, and GPS. We also compared the performance in terms of the Micro F1 score and Macro F1 score on the node classification task on the MovieLens and the wordnet dataset. For the MovieLens dataset, we used $90 \\%$ nodes as training data while for wordnet, we used $1 \\%$ of the nodes as training data. All the evaluation setup is the same as described in the main text. To avoid the effect of randomness from the neural network training, we repeated the training process for each experiment five times and made the line plot of the score versus the epoch number. To illustrate the differences more clearly, we started the plot at epoch 3 for the random walk based approach and epoch 12 for the encoder based approach. The performance of the model using the random walk based approach is shown in Fig. A2 to Fig. A5. The performance of the model using the encoder based approach is shown in Fig. A6 to Fig. A9. ",
1714
+ "bbox": [
1715
+ 174,
1716
+ 440,
1717
+ 825,
1718
+ 608
1719
+ ],
1720
+ "page_idx": 14
1721
+ },
1722
+ {
1723
+ "type": "text",
1724
+ "text": "For models with the random walk based approach, Hyper-SAGNN is the best in terms of all metrics for the GPS, MovieLens, and wordnet dataset. On the drug dataset, Hyper-SAGNN achieves higher AUROC and AUPR score on the network reconstruction task than two variants, but slightly lower AUROC score for the link prediction task (less than $0 . 5 \\%$ ). ",
1725
+ "bbox": [
1726
+ 174,
1727
+ 614,
1728
+ 823,
1729
+ 670
1730
+ ],
1731
+ "page_idx": 14
1732
+ },
1733
+ {
1734
+ "type": "text",
1735
+ "text": "For models with the encoder based approach, the advantage is not that obvious. All 3 methods achieve similar performance in terms of all metrics for the GPS and the drug dataset. For the MovieLens and wordnet dataset, Hyper-SAGNN performs similar to variant type I, higher than variant type II on the network reconstruction and link prediction task. However, our model achieves slightly higher accuracy on the node classification task than variant type I. ",
1736
+ "bbox": [
1737
+ 174,
1738
+ 678,
1739
+ 823,
1740
+ 747
1741
+ ],
1742
+ "page_idx": 14
1743
+ },
1744
+ {
1745
+ "type": "text",
1746
+ "text": "Therefore, these evaluations show that the choice of the structure of Hyper-SAGNN can achieve higher or at least comparable performance than the two potential variants over multiple tasks on multiple datasets. ",
1747
+ "bbox": [
1748
+ 176,
1749
+ 755,
1750
+ 823,
1751
+ 796
1752
+ ],
1753
+ "page_idx": 14
1754
+ },
1755
+ {
1756
+ "type": "image",
1757
+ "img_path": "images/51e83ee47bb78e57d5d07a62922e2371e76bac3c9f5ba046f817cf40e271982a.jpg",
1758
+ "image_caption": [
1759
+ "Figure A2: Performance comparison of Hyper-SAGNN – Walk and Variant Type I, II (GPS) "
1760
+ ],
1761
+ "image_footnote": [],
1762
+ "bbox": [
1763
+ 307,
1764
+ 121,
1765
+ 686,
1766
+ 320
1767
+ ],
1768
+ "page_idx": 15
1769
+ },
1770
+ {
1771
+ "type": "image",
1772
+ "img_path": "images/9382330a834f8f978055a6ca4455646e2ac520152c58fcd1285082668294877f.jpg",
1773
+ "image_caption": [
1774
+ "Figure A3: Performance comparison of Hyper-SAGNN – Walk and Variant Type I, II (MovieLens) "
1775
+ ],
1776
+ "image_footnote": [],
1777
+ "bbox": [
1778
+ 307,
1779
+ 393,
1780
+ 686,
1781
+ 595
1782
+ ],
1783
+ "page_idx": 15
1784
+ },
1785
+ {
1786
+ "type": "image",
1787
+ "img_path": "images/593260bbf4d269b2e743f2b2302db1123091baf47f951389eea7223f51914fae.jpg",
1788
+ "image_caption": [
1789
+ "Figure A4: Performance comparison of Hyper-SAGNN – Walk and Variant Type I, II (drug) "
1790
+ ],
1791
+ "image_footnote": [],
1792
+ "bbox": [
1793
+ 310,
1794
+ 672,
1795
+ 686,
1796
+ 872
1797
+ ],
1798
+ "page_idx": 15
1799
+ },
1800
+ {
1801
+ "type": "image",
1802
+ "img_path": "images/77dbd2b072ced8c9d0eca0cc205863e3f7958ec022875ec18fed5eec74415cc9.jpg",
1803
+ "image_caption": [
1804
+ "Figure A5: Performance comparison of Hyper-SAGNN – Walk and Variant Type I, II (wordnet) "
1805
+ ],
1806
+ "image_footnote": [],
1807
+ "bbox": [
1808
+ 312,
1809
+ 122,
1810
+ 686,
1811
+ 320
1812
+ ],
1813
+ "page_idx": 16
1814
+ },
1815
+ {
1816
+ "type": "image",
1817
+ "img_path": "images/62c4b08ae880e11812964c3db4cab98703489e417dbe87bf91139b323a320f57.jpg",
1818
+ "image_caption": [
1819
+ "Figure A6: Performance comparison of Hyper-SAGNN – Encoder and Variant Type I, II (GPS) "
1820
+ ],
1821
+ "image_footnote": [],
1822
+ "bbox": [
1823
+ 312,
1824
+ 397,
1825
+ 686,
1826
+ 595
1827
+ ],
1828
+ "page_idx": 16
1829
+ },
1830
+ {
1831
+ "type": "image",
1832
+ "img_path": "images/047d6767bbdd4d374629324ce84b71ce57ca325ee96f6fa2721e2ec1fe9f8a5b.jpg",
1833
+ "image_caption": [
1834
+ "Figure A7: Performance comparison of Hyper-SAGNN – Encoder and Variant Type I, II (MovieLens) "
1835
+ ],
1836
+ "image_footnote": [],
1837
+ "bbox": [
1838
+ 315,
1839
+ 672,
1840
+ 684,
1841
+ 872
1842
+ ],
1843
+ "page_idx": 16
1844
+ },
1845
+ {
1846
+ "type": "image",
1847
+ "img_path": "images/73e154b86af5c356ef1314dc08e6b0cc394cc96efddeb08bc2aecbb52121848f.jpg",
1848
+ "image_caption": [
1849
+ "Figure A8: Performance comparison of Hyper-SAGNN – Encoder and Variant Type I, II (drug) "
1850
+ ],
1851
+ "image_footnote": [],
1852
+ "bbox": [
1853
+ 310,
1854
+ 190,
1855
+ 686,
1856
+ 388
1857
+ ],
1858
+ "page_idx": 17
1859
+ },
1860
+ {
1861
+ "type": "image",
1862
+ "img_path": "images/cd304b130b7f2610d04d5b246f96dab66458b07093fbaf55601a91075e353667.jpg",
1863
+ "image_caption": [
1864
+ "Figure A9: Performance comparison of Hyper-SAGNN – Encoder and Variant Type I, II (wordnet) "
1865
+ ],
1866
+ "image_footnote": [],
1867
+ "bbox": [
1868
+ 312,
1869
+ 606,
1870
+ 686,
1871
+ 803
1872
+ ],
1873
+ "page_idx": 17
1874
+ }
1875
+ ]
parse/train/ryeHuJBtPH/ryeHuJBtPH_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ryeHuJBtPH/ryeHuJBtPH_model.json ADDED
The diff for this file is too large to render. See raw diff