---
title: "Network Schema Preserving Heterogeneous Information Network Embedding"
authors:
  - "Jianan Zhao"
  - "Xiao Wang"
  - "Chuan Shi"
  - "Zekuan Liu"
  - "Yanfang Ye"
doi: "10.24963/ijcai.2020/190"
url: "https://ijcai.org/proceedings/2020/190"
pdf: "https://ijcai.org/proceedings/2020/0190.pdf"
venue: "Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence"
year: 2020
pages: "1366-1372"
track: "Main track"
keywords:
  - "Data Mining: Clustering, Unsupervised Learning"
  - "Machine Learning: Deep Learning: Convolutional networks"
  - "Data Mining: Mining Graphs, Semi Structured Data, Complex Data"
  - "Data Mining: Feature Extraction, Selection and Dimensionality Reduction"
---

# Network Schema Preserving Heterogeneous Information Network Embedding

Jianan Zhao, Xiao Wang, Chuan Shi, Zekuan Liu, Yanfang Ye

*Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence*, pages 1366-1372. DOI: [10.24963/ijcai.2020/190](https://doi.org/10.24963/ijcai.2020/190)

## Abstract

As heterogeneous networks have become increasingly ubiquitous, Heterogeneous Information Network (HIN) embedding, aiming to project nodes into a low-dimensional space while preserving the heterogeneous structure, has drawn increasing attention in recent years. Many of the existing HIN embedding methods adopt meta-path guided random walk to retain both the semantics and structural correlations between different types of nodes. However, the selection of meta-paths is still an open problem, which either depends on domain knowledge or is learned from label information. As a uniform blueprint of HIN, the network schema comprehensively embraces the high-order structure and contains rich semantics. In this paper, we make the first attempt to study network schema preserving HIN embedding, and propose a novel model named NSHE. In NSHE, a network schema sampling method is first proposed to generate sub-graphs (i.e., schema instances), and then multi-task learning task is built to preserve the heterogeneous structure of each schema instance. Besides preserving pairwise structure information, NSHE is able to retain high-order structure (i.e., network schema). Extensive experiments on three real-world datasets demonstrate that our proposed model NSHE significantly outperforms the state-of-the-art methods.

## Full text

## 1 Introduction

Network embedding, which aims to project the nodes of a network into a low-dimensional space while preserving the structural properties of the network, has been a promising research field [Cui et al., 2019]. Most of the existing network embedding methods focus on homogeneous network. However, with the proliferation of interaction systems, Heterogeneous Information Networks (HINs) [Sun et al., 2011], which consist of multiple types of entities and links, have emerged as a powerful tool for modeling complex interaction behaviors. Recently, to handle the ubiquitous heterogeneous network data, representation learning on HIN has drawn increasing attention [Dong et al., 2017; Fu et al., 2017] and is widely used in various real-world applications including node classification, clustering, and recommendation.

∗Both authors contributed equally to this research.

†Corresponding author.

��� �� ������� �� ��� ��� ������� ������ ��� ������ ��������

![Image](https://ijcai.org/proceedings/2020/fulltext/190/image_000000_9cc8cabec73b766aceee4447611fd735cedde78aafc59354acaaaee1fe370ecc.png)

Figure 1: A toy example of an HIN on bibliographic data.

To learn the node representation on HINs, HIN embedding methods have been proposed [Dong et al., 2017; Fu et al., 2017; Shi et al., 2019; Zhang et al., 2018; He et al., 2019], many of which exploit the meta-path(s) guided random walk to retain both the semantics and structural correlations between different types of nodes. Typically, a meta-path is a sequence of relations between two nodes in an HIN. For example, given a bibliography HIN (four types of nodes: author (A), paper (P), Venue (V) and term (T); three types of relations: "write", "publish", and "contain") shown in Figure 1(a), Figure 1(b) displays two meta-paths APA and APVPA which describe the co-author or co-venue structure between two authors, respectively. The meta-path based random walk will confine the node sequence along the predefined metapath, and further capture the high-order semantic structure.

Despite the success of meta-path guided HIN embedding methods, the selection of meta-paths still remains an open yet challenging problem [Sun et al., 2011]. The design of meta-path schemes significantly relies on domain knowledge. Manually selecting meta-paths based on prior knowledge may work for a simple HIN, while it is difficult to determine meta-paths for a complex HIN. Furthermore, different meta-paths will result in different embeddings from different points of view, which leads to another challenging problem, i.e., how to effectively fuse different embeddings to generate uniform embeddings. Some existing works [Shi et al., 2019; Wang et al., 2019; Hu et al., 2019b] use label information to guide the embedding fusion; unfortunately, this is not applicable in unsupervised scenarios.

To tackle the above challenges, we observe that the network schema [Sun et al., 2011], as a uniform blueprint of HIN, comprehensively retains node types and their relations in an HIN. Since network schema is a meta template for HIN, guided by it, we can extract subgraphs (i.e., schema instances) from the HIN. An example is shown in Figure 1(c) and (d), from which we can see that the schema instance depicts the high-order structure information of these four nodes, besides the first-order structure information of two nodes (i.e., pairwise structure). Moreover, the schema instance also contains rich semantics, i.e., a schema instance (shown in Figure 1(d)) naturally describes the overall information, such as the author, the term, and the venue of a paper, as well as their relations. More importantly, different from meta-paths, network schema is a unique structure for an HIN, and thus we do not need domain knowledge to make a choice. These benefits of network schema motivate us to study network schema preserving HIN embedding.

However, it is a non-trivial task. First, how to effectively preserve the network schema structure? Network schema structure usually contains all types of nodes. The widely used random walk (with/without meta-path) strategy cannot guarantee to visit all types of nodes and links, therefore it is not applicable for preserving network schema. Moreover, the numbers of various types of nodes in a network schema structure are usually very different, leading to the bias problem. For example, a paper is associated with one venue, but with many terms. Moreover, how to capture the heterogeneity of nodes and links inside network schema? We need to delicately design a method not only preserving network schema structure but also considering node and link heterogeneity.

In this paper, we make the first attempt to investigate Network Schema preserving Heterogeneous information network Embedding and propose a novel model named NSHE. Based on node embedding generated by heterogeneous graph convolutional network, NSHE optimizes the embedding via node pairs and schema instances sampled from the HIN. Particularly, in the network schema preserving component, we propose a network schema sampling method, which generates sub-graphs (i.e., schema instances) naturally preserving schema structure. Furthermore, for each schema instance, a multi-task learning model is built to predict each node in the instance with other nodes, which tackles the challenge of heterogeneity. Our major contributions are highlighted as follows:

- To the best of our knowledge, we make the first attempt to preserve the network schema structure for HIN embedding, which not only preserves high-order structure in HIN but also alleviates the meta-path selection dilemma in meta-path guided HIN embeddings.
- We propose a novel model NSHE, in which some delicate designs, e.g., network schema sampling and multitask learning, are proposed to solve the schema structure preserving and the heterogeneity challenges.
- We conduct extensive experiments on three real-world datasets to validate the effectiveness of NSHE compared with the state-of-the-art methods.

## 2 RelatedWork

Our work is related to network embedding, which assigns nodes in a network to low-dimensional representations and effectively preserves the network structure. For example, the neighbor structure preserving network embedding [Perozzi et al., 2014], the second-order structure preserving network embedding [Tang et al., 2015; Wang et al., 2016], and the community structure preserving network embedding [Wang et al., 2017]. Most of these network embedding methods focus on homogeneous networks, and an elaborate review can be found in [Cui et al., 2019].

With the thriving of heterogeneous network data in realworld applications, HIN Embedding methods have drawn increasing research attention recently. Most existing methods utilize the meta-paths to capture HIN structure. For instance, ESim [Shang et al., 2016] accepts meta-paths as guidance to learn node embedding for similarity search. Metapath2Vec [Dong et al., 2017] proposes meta-path guided random walk and heterogeneous Skip-Gram to handle the heterogeneity in HINs. HIN2Vec [Fu et al., 2017] learns HIN embeddings via predicting different relations in HINs. RHINE [Lu et al., 2019] distinguishes the meta-path based relations and deals with them using different models. HeteSpaceyWalk [He et al., 2019] proposes a spacey random walk to preserve the Markov chain nature of meta-paths based random walks. However, these methods suffer from the meta-path selection and fusion conundrums. In addition, several methods perform HIN embedding without using meta-paths. JUST [Hussein et al., 2018] develops a jump and stay strategy on random walks. HetGNN [Zhang et al., 2019] adopts graph neural networks and preserves the first-order and second-order proximity. HeGAN [Hu et al., 2019a] introduces adversarial learning in HIN embeddings. Though these methods perform HIN embedding without using meta-paths, all of them do not explicitly preserves the network schema structure.

## 3 ProposedMethod

Consider an HIN G = (V,E) composed of a node set V and an edge set E, along with the node type mapping function φ : V → A, and the edge type mapping function ψ : E → R, where A and R denotes the node and edge types, |A| + |R| &gt; 2. The task is to learn the representation of nodes Z ∈ R|V |×d , where d is the dimension of representation.

Figure 2 illustrates the framework of the proposed NSHE. NSHE preserves the pairwise and schema proximity concurrently. First, to fully exploit complex network structure and heterogeneous node feature together, we propose to learn node embedding via heterogeneous node aggregation. Second, we preserve the pairwise structure and the schema structure simultaneously. While directly performing random walk cannot generate the desired schema structure, we propose to sample schema instances and preserve the proximity inside instances. Moreover, as different types of nodes in the instances carry different context, a multi-task learning model is designed to in turn predict a target node with other context nodes to handle heterogeneity inside schema instances. Finally, NSHE iteratively updates node embeddings via optimizing the aggregation of the pairwise and schema preserving loss.

Figure 2: Overview of the NSHE model.

![Image](https://ijcai.org/proceedings/2020/fulltext/190/image_000001_bf804774cc527fb3a9ac106d728452b390ba110f283c51df6267788d8723a110.png)

## 3.1 Preserving Pairwise Proximity

Despite that we need to capture the network schema structure in HIN embedding, the pairwise proximity between nodes [Tang et al., 2015], as one of the most direct expressions of an HIN, still needs to be preserved. It demonstrates that two nodes with a link, regardless of their types, should be similar. Specifically, considering the heterogeneity of different node feature, for each node vi with feature fi and type φ(vi), we use a type-specific mapping matrix Wφ(vi) to map the heterogeneous feature to a common space:

<!-- formula-not-decoded -->

where σ(·) denotes an activation function, and bφ(vi) stands for the bias vector of type φ(vi). Based on Equation (1), all the nodes with different types are mapped to the common space, and we denote their mapped features as H = [f ′ i ]. Then, we use a L-layer graph convolutional network to generate the node embeddings [Kipf and Welling, 2017] as:

<!-- formula-not-decoded -->

where A is the adjacency matrix, and Ai,j = 1 if (vi, vj) ∈ E, otherwise Ai,j = 0. D is a diagonal matrix, where Dii = ∑j Aij. I|V | is the identity matrix of R|V |×|V | . For the first layer, we denote H(0) = H and use the output of the Llayer graph convolutional networks as the node embedding, i.e., Z = H(L) , where the i-th row of Z is the embedding zvi of node vi.

The objective of preserving the pairwise proximity with parameters Θ can be described as:

<!-- formula-not-decoded -->

where Nvi = {vj |(vi, vj) ∈ E}. The conditional probability p (vj |vi; Θ) is defined as a softmax function:

<!-- formula-not-decoded -->

To calculate p (vj|vi;Θ) efficiently, we leverage the negative sampling method [Mikolov et al., 2013] and optimize Θ with the logarithm of Equation (3), therefore the pairwise loss Lp can be calculate by:

<!-- formula-not-decoded -->

where δ(x) = 1/(1 + exp(-x)), Pn (v) is the noisy distribution, and Me is the negative edge sampling rate. Through minimizing Lp, NSHE preserves the pairwise proximity.

## 3.2 Preserving Network Schema Proximity Network Schema Instance Sampling

Network schema is the blueprint of an HIN [Sun et al., 2011]. Given an HIN G = (V, E), a network schema TG = (A, R) preserves all the node types A and relation types R inside G. Network schema proximity implies that all the nodes with different types in a network schema structure should be similar. However, as we mentioned before, the nodes in a network schema structure are usually biased, i.e., the number of nodes of a certain type is larger than those of other types. For example, in Figure 1(a), a paper has multiple authors, but only one venue. To alleviate such bias, we propose to sample a network schema instance defined as follows: A network schema instance S is the smallest sub-graph of an HIN, which contains all the node types and edge types defined by the network schema TG, if existing. By this definition, each network schema instance is composed of all the node types A and relation types R defined by the schema, i.e., one node for each type. To illustrate, Figure 1(d) shows two instances sampled from the given HIN. The sampling process is as follows: Starting from a set S with one node, we keep adding a new node to S until |S| = |A|, where the new node satisfies: (1) its type is different from the node types in S; (2) it connects with the node(s) in S.

## Schema Preserving with Multi-task Learning

Now, we aim to preserve the network schema proximity by predicting whether a network schema instance exists in an HIN. To this end, assume we have a network schema instance S = {A1, P1, V1, T1} as shown in Figure 2, we can predict whether A1 exists given the set {P1, V1, T1}, or whether P1 exists given the set {A1, V1, T1}, and so on. These two predictions are different, because of the node heterogeneity. Considering this, we are motivated to design a multi-task learning model to handle the heterogeneity within schema.

Without loss of generality, assume we have the schema instance S = {vi, vj, vk}, if we aim to predict whether vi exists given {vj, vk}, we call vi the target node and {vj, vk} the context nodes. Therefore, each node will have two roles:

one is as the target node and the other is as the context node, as well as two embeddings: target embedding and context embedding. To fully consider the heterogeneity, each node type φ(vi) is associated with an encoder CEφ(vi) to learn the context embeddings for the context nodes:

<!-- formula-not-decoded -->

where each CE stands for a fully connected layer of neural network. Then for the target node vi, we concatenate its target embedding zvi with the context embeddings to obtain the schema instance embedding with target node vi denoted as zvi S as follows:

<!-- formula-not-decoded -->

After obtaining the embedding zvi S , we predict the probability of S with target node vi, denoted as yvi S , whether exists in the network:

<!-- formula-not-decoded -->

where MLPφ(vi) is the classifier for schema instances with target node type as φ(vi). Similarly, when we treat vj and vk as the target nodes, respectively, yvj S and yvk S can also be obtained following the steps introduced above. Note that, here we take the schema instance with three nodes as an example to explain our method. However, it is easy to extend the model to schema instance with more nodes, since the process is the same.

The schema proximity loss Ls can be obtained by predicting the multi-tasks of the schema instances S sampled from HIN. Additionally, to avoid trivial solutions, we also drawMs negative examples of target type for each schema instance via replacing the target node with another node in the same type. The loss of preserving network schema can be described as:

- DBLP [Lu et al., 2019]: We extract a subset of DBLP which contains 9556 papers (P), 2000 authors (A), and 20 conferences (C). The authors and papers are divided into four areas: database, data mining, machine learning, and information retrieval. We do the two tasks for papers and authors and call them DBLP-P and DBLPA, respectively. We use 4 meta-paths, namely APCPA, APA, PAP, and PCP, for meta-path related baselines.
- IMDB [Wang et al., 2019]: We extract a subset of IMDB which contains 3676 movies (M), 4353 actors (A), and 1678 directors (D). Movies are divided into three classes, namely action, comedy, and drama according to their genre. We use two meta-paths, namely MAM and MDM, for meta-path related baselines.
- ACM [Wang et al., 2019]: We extract papers published in KDD, SIGMOD, SIGCOMM, MobiCOMM, and VLDB and divide them into three classes: database, wireless communication, and data mining. Then we construct an HIN that contains 4019 papers (P), 7167 authors (A), and 60 conference subjects (S). Papers are labeled according to their conferences. Paper features are the bag-of-words representation of keywords. We use PAP and PSP for meta-path related baselines.

We compare NSHE with seven state-of-the-art embedding methods including two homogeneous network embedding methods, i.e., DeepWalk and LINE and five heterogeneous networks embedding methods, i.e., the last five algorithms:

- DeepWalk [Perozzi et al., 2014]: It performs a random walk on networks and then learns the representation of nodes via the Skip-Gram model.

<!-- formula-not-decoded -->

where Rvi S = 1 if Svi is a positive network schema instance, otherwise Rvi S = 0. By minimizing Ls, the schema structure is preserved.

## 3.3 Optimization Objective

To preserve both the pairwise proximity and the network schema proximity of HINs, NSHE optimizes the overall loss L by aggregating the loss of preserving pairwise proximity Lp and preserving schema proximity Ls :

<!-- formula-not-decoded -->

where β is a balancing coefficient. At last, we adopt the Adam [Kingma and Ba, 2015] algorithm to minimize the objective in Equation (10).

## 4 Experimental Results and Analysis

## 4.1 Experimental Setup

In order to demonstrate the effectiveness of the proposed model, we conduct extensive experiments including clustering and classification on three HINs shown below:

- LINE [Tang et al., 2015]: It considers first-order or second-order proximity in networks, denoted as LINE1st and LINE-2nd, respectively.
- Metapath2Vec [Dong et al., 2017]: It adopts metapaths based random walk and heterogeneous Skip-Gram model to perform node embedding.
- HIN2Vec [Fu et al., 2017]: It learns the latent representation of nodes and meta-paths in an HIN by conducting multiple prediction training tasks jointly.
- HERec [Shi et al., 2019]: It adopts meta-paths to filter node sequences of same type with different semantics and applies DeepWalk to perform network embedding.
- DHNE [Tu et al., 2018]: It adopts deep auto-encoders and classifiers to preserve the first and second order proximity of hyper networks. Here we treat the network schema instances as hyper-edges.
- HeGAN [Hu et al., 2019a]: It learns the representation of nodes in HIN via preserving the heterogeneous relations with adversarial learning.

Here, we briefly introduce the experimental settings. For our proposed model, the feature dimension in common space and the embedding dimension d is set as 128. The negative schema instance sample rate Ms in Section 3.2 is set as 4. We perform neighborhood aggregation via an one-layerGCN, i.e., L = 1, and use two-layer-MLPs for schema instance classification. For models that use meta-paths in modeling, we choose the popular meta-paths adopted in previous methods and report the best result. For models that require node feature, we apply DeepWalk [Perozzi et al., 2014] to generate node feature. The code and dataset is publicly available on Github 1 .

Table 1: Performance evaluation of multi-class classification.

|              |   DBLP-P - Micro-F1 |   DBLP-P - Macro-F1 |   DBLP-A - Micro-F1 |   DBLP-A - Macro-F1 |   IMDB - Micro-F1 |   IMDB - Macro-F1 |   ACM - Micro-F1 |   ACM - Macro-F1 |
|--------------|---------------------|---------------------|---------------------|---------------------|-------------------|-------------------|------------------|------------------|
| DeepWalk     |               90.12 |               89.45 |               89.44 |               88.48 |             56.52 |             55.24 |            82.17 |            81.82 |
| LINE-1st     |               81.43 |               80.74 |               82.32 |               80.20 |             43.75 |             39.87 |            82.46 |            82.35 |
| LINE-2nd     |               84.76 |               83.45 |               88.76 |               87.35 |             40.54 |             33.06 |            82.21 |            81.32 |
| DHNE         |               85.71 |               84.67 |               73.30 |               67.61 |             38.99 |             30.53 |            65.27 |            62.31 |
| Metapath2Vec |               92.86 |               92.44 |               89.36 |               87.95 |             51.90 |             50.21 |            83.61 |            82.77 |
| HIN2Vec      |               83.81 |               83.85 |               90.30 |               89.46 |             48.02 |             46.24 |            54.30 |            48.59 |
| HERec        |               90.47 |               87.50 |               86.21 |               84.55 |             54.48 |             53.46 |            81.89 |            81.74 |
| HeGAN        |               88.79 |               83.81 |               90.48 |               89.27 |             58.56 |             57.12 |            83.09 |            82.94 |
| NSHE         |               95.24 |               94.76 |               93.10 |               92.37 |             59.21 |             58.35 |            84.12 |            83.27 |

Table 2: Performance evaluation of node clustering.

|              |   DBLP-P |   DBLP-A |   IMDB |   ACM |
|--------------|----------|----------|--------|-------|
| DeepWalk     |    46.75 |    66.25 |   0.41 | 48.81 |
| LINE-1st     |    42.18 |    29.98 |   0.03 | 37.75 |
| LINE-2nd     |    46.83 |    61.11 |   0.03 | 41.80 |
| DHNE         |    35.33 |    21.00 |   0.05 | 20.25 |
| Metapath2Vec |    56.89 |    68.74 |   0.09 | 42.71 |
| HIN2Vec      |    30.47 |    65.79 |   0.04 | 42.28 |
| HERec        |    39.46 |    24.09 |   0.51 | 40.70 |
| HeGAN        |    60.78 |    68.95 |   6.56 | 43.35 |
| NSHE         |    65.54 |    69.52 |   7.58 | 44.32 |

## 4.2 Node Classification

In this section, we evaluate the performance of node embedding with node classification tasks. After learning the node embeddings, we train a logistic classifier with 80% of the labeled nodes and use the remaining data for testing. We use Micro-F1 and Macro-F1 score as the metrics for evaluation. The results are shown in Table 1, from which we have the following observations: (1) Generally speaking, HIN embedding methods perform better than homogeneous network embedding methods, which proves the benefits of considering heterogeneity. (2) Though NSHE does not utilize any prior knowledge, it consistently outperforms the baselines. It demonstrates the effectiveness of our proposed method in classification tasks.

## 4.3 Node Clustering

We further conduct clustering tasks to evaluate the embeddings learned by NSHE. Here we utilize the K-Means model to perform node clustering and set the number of clusters for K-Means as the number of classes. The performance in terms of NMI is shown in Table 2. Similarly, the proposed method NSHE significantly outperforms others in most cases, which further demonstrates the effectiveness of NSHE.

1 https://github.com/Andy-Border/NSHE

Figure 3: Performance evaluation of variants of NSHE.

![Image](https://ijcai.org/proceedings/2020/fulltext/190/image_000002_1c49b3431d75e369fce931157e241b56e1a1a03552ffae0462ac30b5e9c40884.png)

Figure 4: Embedding visualization of different methods on DBLPA. Each point indicates one author and its color indicates the research area.

![Image](https://ijcai.org/proceedings/2020/fulltext/190/image_000003_d8ccadcf6018e5f0ea0ad7ccf9498dd61f77a180c42d00f211deffeaacda56cf.png)

## 4.4 Comparison of Variants of NSHE

In order to verify the effectiveness of the delicate designs in NSHE, we propose three variants of NSHE as follows:

- NSHE-Pairwise considers the pairwise loss only, i.e., L = Lp. Therefore, the NSHE-Pairwise model does not explicitly preserve the high-order structure of network schema.
- NSHE-NS leverages the structure of network schema only, i.e., L = Ls. Therefore, the NSHE-NS model does not explicitly preserve the pairwise structure.
- NSHE-Homo treats the heterogeneous network schema instances as homogeneous. That is, NSHE-Homo uses one MLP classifier for all of the network schema instances classification tasks.

We use the same parameter for variants of NSHE and show the classification and clustering performances of each model in Figure 3. For better visualization, we scale the NMI value to [0,1] according to the best performance of the variants. It is obvious that NSHE outperforms the variants in most cases. NSHE performs better than NSHE-NS and NSHE-pairwise, indicating that it is necessary to preserve both first-order (i.e., pairwise) and high-order (i.e., network schema) structure information. Moreover, the first-order structure, as the most basic expression of HIN, is more essential, since NSHEPairwise generally performs better than NSHE-NS. The better performance of NSHE against NSHE-Homo confirms the benefit of multi-task learning for handling heterogeneity in network schema instances.

(a) Impact of β on classification (b) Impact of β on clustering (c) Impact of Ms on classification (d) Impact of Ms on clustering

![Image](https://ijcai.org/proceedings/2020/fulltext/190/image_000004_97896a4570693a722322dd90244fa50b259f8c1037011cd79601c755dfd59dbc.png)

Figure 5: Parameter sensitivity of NSHE w.r.t. the balancing coefficient β and the number of negative schema instances Ms.

## 4.5 Visualization

To examine the network representations intuitively, we visualize the embeddings of author nodes in DBLP using the tSNE [Maaten and Hinton, 2008] algorithm. We select DeepWalk and Metapath2Vec as the representative baselines for homogeneous and heterogeneous embedding methods. For Metapath2Vec, the APCPA meta-path is adopted, since it achieves the best results on DBLP. The visualization of embeddings generated by different methods is shown in Figure 4, from which we can observe the following phenomenons: The heterogeneous methods (i.e. Metapath2Vec and NSHE) outperform the homogeneous method DeepWalk, whose embedding has blurry boundaries and may lead to inaccuracy in classification tasks. Moreover, without given any prior knowledge or supervision, NSHE still separates the authors in different research areas with distinct boundaries, which further demonstrates that the preservation of both pairwise and the schema structure in HIN is effective.

## 4.6 Parameter Analysis

In this section, we investigate the sensitivity of parameters and report the results of NSHE in terms of classification on ACM and clustering on DBLP-P with different parameters.

Balance coefficient β. The balance coefficient β, described in Section 3.3, balances the importance between the pairwise similarity and the high-order proximity of network schema. Larger β stands for greater high-order influence on the model. Figure 5(a) and Figure 5(b) show the impact of different β on classification and clustering tasks, respectively. As we can see, for both tasks, it is better to balance the importance of different terms. Specifically, while increasing β, the performance of both tasks firstly increases and reaches a peak with β = e and β = e3 for classification and clustering respectively. Notably, the optimal β differs in different datasets and tasks, which indicates that the importance of the pairwise and the high-order proximity varies in different tasks.

Negative schema instance rate Ms. The negative instance rate, described in Section 3.2, is the ratio between negative and positive network schema instances. Figure 5(c) and Figure 5(d) show the impact of different Ms on classification and clustering tasks, respectively. The results indicate that NSHE needs a suitable negative sample rate to preserve the highorder structure. As we can see, with the growth of the negative sample rate, the performance raises first and then starts to drop slowly after the negative sample rate equals to 4. The reason is that the large negative schema sampling rate will cause imbalance of data which causes trivial solutions (all negative prediction) of classifiers. In this case, the schema proximity cannot be well preserved.

## 5 Conclusion

In this paper, we make the first attempt to study the network schema preserving embedding in HINs. Network embedding via network schema preserves the semantics of network schema and does not suffer from limited domain knowledge. We propose NSHE, which learns embeddings that preserve pairwise structure and network schema structure concurrently. Particularly, NSHE adopts a network schema instance sampling method to deal with the bias of different types of nodes and uses multi-tasks classifiers to preserve the heterogeneity within HINs. Experimental results including classification and clustering demonstrate the effectiveness of NSHE.

## Acknowledgments

J. Zhao, C. Shi, X. Wang, and Z. Liu's work is supported by the National Natural Science Foundation of China (No. U1936220, 61772082, 61702296, 61806020, 61972442), the National Key Research and Development Program of China (2018YFB1402600), the CCF-Tencent Open Research Fund, and the Fundamental Research Funds for the Central Universities. Y. Ye's work is partially supported by the NSF IIS1951504, CNS-1940859, CNS-1946327, CNS-1814825 and OAC-1940855, and the NIJ 2018-75-CX-0032.

## References

1. [Cui et al., 2019] Peng Cui, Xiao Wang, Jian Pei, and Wenwu Zhu. A survey on network embedding. IEEE Trans. Knowl. Data Eng., 31(5):833-852, 2019.
2. [Dong et al., 2017] Yuxiao Dong, Nitesh V Chawla, and Ananthram Swami. metapath2vec: Scalable representa- tion learning for heterogeneous networks. In KDD, pages 135-144, 2017.
3. [Fu et al., 2017] Tao-yang Fu, Wang-Chien Lee, and Zhen Lei. Hin2vec: Explore meta-paths in heterogeneous in- formation networks for representation learning. In CIKM, pages 1797-1806, 2017.
4. [He et al., 2019] Yu He, Yangqiu Song, Jianxin Li, Cheng Ji, Jian Peng, and Hao Peng. Hetespaceywalk: A heteroge- neous spacey random walk for heterogeneous information network embedding. In CIKM, pages 639-648, 2019.
5. [Hu et al., 2019a] Binbin Hu, Yuan Fang, and Chuan Shi. Adversarial learning on heterogeneous information net- works. In KDD, pages 120-129, 2019.
6. [Hu et al., 2019b] Linmei Hu, Tianchi Yang, Chuan Shi, Houye Ji, and Xiaoli Li. Heterogeneous graph attention networks for semi-supervised short text classification. In EMNLP-IJCNLP, pages 4820-4829, 2019.
7. [Hussein et al., 2018] Rana Hussein, Dingqi Yang, and Philippe Cudré-Mauroux. Are meta-paths necessary?: Re- visiting heterogeneous graph embeddings. In CIKM, pages 437-446, 2018.
8. [Kingma and Ba, 2015] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR (Poster), 2015.
9. [Kipf and Welling, 2017] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
10. [Lu et al., 2019] Yuanfu Lu, Chuan Shi, Linmei Hu, and Zhiyuan Liu. Relation structure-aware heterogeneous in- formation network embedding. In AAAI, pages 4456- 4463, 2019.
11. [Maaten and Hinton, 2008] Laurens van der Maaten and Ge- offrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579-2605, 2008.
12. [Mikolov et al., 2013] Tomas Mikolov, Ilya Sutskever, Kai Chen, Gregory S. Corrado, and Jeffrey Dean. Distributed representations of words and phrases and their composi- tionality. In NIPS, pages 3111-3119, 2013.
13. [Perozzi et al., 2014] Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social rep- resentations. In KDD, pages 701-710, 2014.
14. [Shang et al., 2016] Jingbo Shang, Meng Qu, Jialu Liu, Lance M. Kaplan, Jiawei Han, and Jian Peng. Meta- path guided embedding for similarity search in large- scale heterogeneous information networks. CoRR, abs/1610.09769, 2016.
15. [Shi et al., 2019] Chuan Shi, Binbin Hu, Wayne Xin Zhao, and Philip S. Yu. Heterogeneous information network em- bedding for recommendation. IEEE Trans. Knowl. Data Eng., 31(2):357-370, 2019.
16. [Sun et al., 2011] Yizhou Sun, Jiawei Han, Xifeng Yan, Philip S Yu, and Tianyi Wu. Pathsim: Meta path-based top-k similarity search in heterogeneous information net- works. Proceedings of the VLDB Endowment, 4(11):992- 1003, 2011.
17. [Tang et al., 2015] Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large- scale information network embedding. In WWW, pages 1067-1077, 2015.
18. [Tu et al., 2018] Ke Tu, Peng Cui, Xiao Wang, Fei Wang, and Wenwu Zhu. Structural deep embedding for hyper- networks. In AAAI, pages 426-433, 2018.
19. [Wang et al., 2016] Daixin Wang, Peng Cui, and Wenwu Zhu. Structural deep network embedding. In KDD, pages 1225-1234, 2016.
20. [Wang et al., 2017] Xiao Wang, Peng Cui, Jing Wang, Jian Pei, Wenwu Zhu, and Shiqiang Yang. Community preserv- ing network embedding. In AAAI, pages 203-209, 2017.
21. [Wang et al., 2019] Xiao Wang, Houye Ji, Chuan Shi, Bai Wang, Yanfang Ye, Peng Cui, and Philip S. Yu. Hetero- geneous graph attention network. In WWW, pages 2022- 2032, 2019.
22. [Zhang et al., 2018] Daokun Zhang, Jie Yin, Xingquan Zhu, and Chengqi Zhang. Metagraph2vec: Complex seman- tic path augmented heterogeneous network embedding. In PAKDD, pages 196-208, 2018.
23. [Zhang et al., 2019] Chuxu Zhang, Dongjin Song, Chao Huang, Ananthram Swami, and Nitesh V. Chawla. Hetero- geneous graph neural network. In KDD, pages 793-803, 2019.
