Skip to content
ImagineWorld

Introduction

node_idnode-book_heterogeneous-graph-representations_chapter-01-introduction
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num1
chapter_titleIntroduction
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Abstract Networks (or graphs) are ubiquitous in the real world, such as social networks, academic networks, biological networks, and so on. Heterogeneous information network (HIN), a.k.a., heterogeneous graph (HG), is an important type of network, which contains multiple types of nodes and edges. To date, the research of HG has attracted extensive attention, the most important of which is the heterogeneous graph representation (HGR), a.k.a., heterogeneous network embedding. In this chapter, we first introduce some basic concepts and definitions in HG and emphasize the importance of graph representation learning in the field of data mining. Then, we analyze the unique challenges of HGR compared with homogeneous network. In the end, we briefly introduce the organization of this book.

Before introducing HGR, we first give some basic definitions in HG. The first is information network, which is a template of the real-world networks. Specially, both homogeneous network and heterogeneous network can be seen as special cases of information network. We formally define them as follows:

Definition 1 Information Network [15]. An information network is defined as a graph G={V,E}\mathcal{G} = \{\mathcal{V}, \mathcal{E}\}, in which V\mathcal{V} and E\mathcal{E} represent the node set and the link set, respectively. Each node v∈Vv \in \mathcal{V} and link e∈Ee \in \mathcal{E} is associated with their mapping functions ϕ(v):V→A\phi(v) : \mathcal{V} \to \mathcal{A} and φ(e):E→R\varphi(e) : \mathcal{E} \to \mathcal{R}, where A\mathcal{A} and R\mathcal{R} denote the node types and link types, respectively. Homogeneous Network (or Homogeneous Graph) is an instance of the information network, with ∣A∣=∣R∣=1|\mathcal{A}| = |\mathcal{R}| = 1. Heterogeneous Network (or Heterogeneous Graph) requires ∣A∣+∣R∣>2|\mathcal{A}| + |\mathcal{R}| > 2, i.e., it contains different types of nodes and links.

Compared with homogeneous graph, heterogeneous graph not only has stronger expressive power but also is more complex. An example of heterogeneous academic graph is illustrated in Fig. 1.1a, which consists of four node types (Author, Paper,

© The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2022 C. Shi et al., Heterogeneous Graph Representation Learning and Applications, Artificial Intelligence: Foundations, Theory, and Algorithms, https://doi.org/10.1007/978-981-16-6166-2_1

[!visual-conversion] Scan-verified against assets/pages/page-010.png.

flowchart LR
    subgraph a["(a) An example of HIN"]
        Au1((Author)) -->|Write| P1[Paper]
        Au2((Author)) -->|Write| P1
        P1 -->|Contain| T1[Term]
        Ve1{{Venue}} -->|Publish| P1
    end
    subgraph b["(b) Network Schema"]
        Author --> Paper
        Venue --> Paper
        Paper --> Term
    end
    subgraph c["(c) Meta-paths"]
        c1["APA: Author–Paper–Author"]
        c2["PTP: Paper–Term–Paper"]
    end
    subgraph d["(d) Meta-graph"]
        d1((Author)) --> d2[Paper] --> d3((Author))
        d2 --> d4[Term] --> d5[Paper]
    end

Fig. 1.1 A heterogeneous academic graph, including (a) four types of nodes (i.e., Author, Paper, Venue, and Term) and three types of link (i.e., Publish, Contain, and Write), (b) network schema, (c) meta-paths (i.e., Author–Paper–Author and Paper–Term–Paper), and (d) meta-graph

Venue, and Term) and three link types (Author–Write–Paper, Paper–Contain–Term, and Conference–Publish–Paper). In the next, we will introduce some unique definitions in HG, including network schema (Fig. 1.1b), meta-paths (Fig. 1.1c), and meta-graph (Fig. 1.1d). Finally, we will give the definition of graph representation learning.

Since an HG contains multiple node types and link types, to understand the whole structure of it, it is necessary to provide a meta-level (or schema-level) description of the graph. Therefore, as the blueprint of HG, network schema is proposed to give an abstraction of the graph:

Definition 2 Network Schema of G\mathcal{G} is a directed graph S=(A,R)\mathcal{S} = (\mathcal{A}, \mathcal{R}), which can be seen as a meta template of an HG with the node type mapping function ϕ(v):V→A\phi(v) : \mathcal{V} \to \mathcal{A} and the link type mapping function ϕ(e):E→R\phi(e) : \mathcal{E} \to \mathcal{R}. Figure 1.1b illustrates the network schema of the academic graph.

Network schema describes the associations between different types of nodes. Based on it, we can further mine the higher-level semantics of the data. Therefore, meta-path [16] is further proposed to capture the higher-order relationships, i.e., semantics, between nodes. The definition of meta-path is given below:

Definition 3 Meta-Path [16]. A meta-path mm is based on a network schema S\mathcal{S}, which is denoted as m=A1→R1A2→R2⋯→RlAl+1m = A_1 \xrightarrow{R_1} A_2 \xrightarrow{R_2} \cdots \xrightarrow{R_l} A_{l+1} (simplified to A1A2⋯Al+1A_1A_2\cdots A_{l+1}) with node types A1,A2,⋯ ,Al+1∈AA_1, A_2, \cdots, A_{l+1} \in \mathcal{A} and link types R1,R2,⋯Rl∈RR_1, R_2, \cdots R_l \in \mathcal{R}.

Different meta-paths capture the semantic relationships from different views. For example, the meta-path of “APA” indicates the co-author relationship and “APCPA” represents the co-conference relation. Both of them can be used to formulate the proximity over authors. Although meta-path can be used to depict the connections over nodes, it fails to capture a more complex relationship, such as motifs [10]. To address this challenge, meta-graph [6] is proposed to use node and link types to capture more complex relationship between two HG nodes.

Definition 4 Meta-Graph [6]. A meta-graph T\mathcal{T} can be seen as a directed acyclic graph (DAG) composed of multiple meta-paths with common nodes. Formally, meta-graph is defined as T=(VT,ET)\mathcal{T} = (V_{\mathcal{T}}, E_{\mathcal{T}}), where VTV_{\mathcal{T}} is a set of nodes and ETE_{\mathcal{T}} is a set of links. For any node v∈VTv \in V_{\mathcal{T}}, ϕ(v)∈A\phi(v) \in \mathcal{A}; for any link e∈ETe \in E_{\mathcal{T}}, φ(e)∈R\varphi(e) \in \mathcal{R}.

An example of meta-graph is shown in Fig. 1.1d, which can be regarded as the combination of meta-path “APA” and “APCPA,” reflecting a high-order similarity of two nodes. Note that a meta-graph can be symmetric or asymmetric [30].

The research of graph is always an important topic in machine learning. However, due to the non-Euclidean property, traditional heuristic methods suffer from high computational cost and low parallelizability [2], which cannot be used for real applications. Therefore, a critical challenge for this field is to find effective data representation. Through graph representation learning, the nodes are projected into vectors and can be incorporated with the advanced machine learning technologies and tasks. We formalize the problem of graph representation learning as follows.

Definition 5 Graph Representation Learning [2], also known as network embedding, aims to learn a function Φ:V→Rd\Phi : \mathcal{V} \rightarrow \mathbb{R}^{d} that embeds the nodes v∈Vv \in \mathcal{V} in a graph into a low-dimensional Euclidean space where d≪∣V∣d \ll |\mathcal{V}|.

A toy example of graph representation learning is shown in Fig. 1.2. Through graph representation learning, the complex network in the non-Euclidean space is projected into a low-dimensional Euclidean space. Therefore, the high computational cost and low parallelizability issues are well-solved. In the next, we will give a brief review of the recent development of graph representation learning.

[!visual-conversion] Scan-verified against assets/pages/page-011.png. (a) is a scatter of raw, unstructured points labeled as the non-Euclidean input graph; (b) is a node-link graph with two visually separated, densely-connected clusters, illustrating that graph representation learning maps the input into a low-dimensional Euclidean space where structurally similar nodes end up close together.

Fig. 1.2 A toy example of graph representation learning. (a) Input graph. (b) Node representations

In the aforementioned chapter, we refer that the analysis of graphs suffers from the high computational complexity and low parallelizability issues. To deal with these problems, graph representation learning is proposed and rapidly becomes the major tool in network analysis [2, 23].

Previous graph representation learning methods focus on preserving the structural information of the graph. For example, DeepWalk [11] uses random walk to generate node sequences and then employs the skip-gram model to learn the co-occurrence of nodes within a window, thus capturing the local structures. LINE [17] preserves both the first- and second-order structure similarities, node2vec [5] extends DeepWalk to global structures with a Depth-First Sampling (DFS) and Breadth-First Sampling (BFS), M-NMF [19] learns the community structures, and AROPE [27] preserves arbitrary order proximity through Singular Value Decomposition (SVD). In particular, Qiu et al. [12] proved that most existing graph representation learning methods can be unified into a matrix factorization framework.

Further, some methods begin to incorporate the rich node or edge attributes in node representation. TADW [24] jointly factorizes the adjacency matrix and text matrix to fuse the structural and attribute information. DANE [4] enforces the structural representations and attribute representations to be consistent, so that the learned representations can capture these two kinds of information at the same time. ANRL [28] designs a neighbor enhancement autoencoder. It aims to reconstruct the target neighbors and attributes to model the structural and attribute information.

With the development of deep learning, the emerging graph neural networks (GNNs) show powerful capability in combining the network structures and node attributes. Graph convolutional network (GCN) [7] is one of the most representative works, which designs a convolutional operator in spatial domain to filter the node attributes by network structures. Graph Attention Network (GAT) [18] uses self-attention to learn the importance of nodes in fusing the attributes of neighbors. Klicpera et al. proposed Predict then Propagate (PPNP) [8], which incorporates personalized PageRank into GNNs and alleviates the over-smoothing problem. SGC [22] simplifies the design of GCN through decoupling the transformation step and aggregation step, which not only reduces the parameters of GNNs but also accelerates the training process.

In addition to the structural and attribute information, recently, some researchers tend to explore the semantic information from the multiple node or edge types in graphs [13], leading to the research of HGR.

1.3 Heterogeneous Graph Representation Learning and Challenges

Section titled “1.3 Heterogeneous Graph Representation Learning and Challenges”

Different from homogeneous graph representation learning that mainly needs to preserve the structural information, heterogeneous graph representation learning aims to preserve the structural and semantic information simultaneously. However, due to the heterogeneity of HG, HGR imposes more challenges to this problem, which are illustrated below.

  • Complex structure (the complex HG structure caused by multiple types of nodes and edges). In a homogeneous graph, the fundamental structure can be considered as the so-called first-order, second-order, and even higher-order structure [11, 17, 19]. All these structures are well-defined and have good intuition. However, the structure in HG will dramatically change depending on the selected relations. Let us still take the bibliographic network in Fig. 1.1a as an example: the neighbors of one paper will be authors with the “write” relation, while with “contain” relation, the neighbors become terms. Complicating things further, the combination of these relations, which can be considered as a higher-order structure in HG, will result in different and more complicated structures. How to efficiently and effectively preserve these complex structures is thereby an urgent need but it is still a significant challenge in HGR, and current efforts have been made towards the meta-path structure [3] and meta-graph structure [26], etc.

  • Heterogeneous attributes (the fusion problem caused by the heterogeneity of attributes). Since the nodes and edges in a homogeneous graph have the same type, each dimension of the node or edge attributes has the same meaning. In this situation, node can directly fuse the attributes of its neighbors. However, in heterogeneous graph, the attributes of different types of nodes and edges may have different meanings [20, 29]. For example, the attributes of author can be the research fields, while paper may use keywords as attributes. Therefore, how to overcome the heterogeneity of attributes and effectively fuse the attributes of neighbors is an important challenge in HGR.

  • Application dependent (the domain knowledge hidden in HG structures and attributes). HG is closely related to the real-world applications, while many practical problems remain unsolved. For example, constructing an appropriate HG may require sufficient domain knowledge in a real-world application. Also, meta-path and/or meta-graph are widely used to capture the structure of HG. However, unlike homogeneous graph, where the structure, e.g., the first-order and second-order structure, is well-defined, meta-path selection may also need prior knowledge. Furthermore, to better facilitate the real-world applications, we usually need to elaborately encode the side information, e.g., node attributes [20, 21, 25, 29] or more advanced domain knowledge [1, 9, 14] to the HGR process.

  1. Zhang, C., Song, D., Huang, C., Swami, A., Chawla, N.V.: Heterogeneous graph neural network. In: KDD ‘19: Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 793–803. ACM, New York (2019)

  2. Zhang, W., Fang, Y., Liu, Z., Wu, M., Zhang, X.: mg2vec: learning relationship-preserving heterogeneous graph representations via metagraph embedding. IEEE Trans. Knowl. Data Eng. (2020)