arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:1809.04110v1 [cs.SI] 11 Sep 2018

Joint Embedding of Meta-Path and Meta-Graph for
Heterogeneous Information Networks

Lichao Sun2, Lifang He31, Zhipeng Huang4, Bokai Cao5, Congying Xia2, Xiaokai Wei5 and Philip S. Yu2 Thanks: 1Corresponding author. Affiliation: 2University of Illinois at Chicago, Chicago, IL 3Cornell University, New York City, NY Affiliation: 4The University of Hong Kong, China 5Facebook, Menlo Park, CA Affiliation:  Email: {lsun29, cxia8, psyu}@uic.edu, {lifanghescut,caobokai.why,weixiaokai}@gmail.com, zphuang@cs.hku.hk
Abstract

Meta-graph is currently the most powerful tool for similarity search on heterogeneous information networks, where a meta-graph is a composition of meta-paths that captures the complex structural information. However, current relevance computing based on meta-graph only considers the complex structural information, but ignores its embedded meta-paths information. To address this problem, we propose MEta-GrAph-based network embedding models, called MEGA and MEGA++, respectively. The MEGA model uses normalized relevance or similarity measures that are derived from a meta-graph and its embedded meta-paths between nodes simultaneously, and then leverages tensor decomposition method to perform node embedding. The MEGA++ further facilitates the use of coupled tensor-matrix decomposition method to obtain a joint embedding for nodes, which simultaneously considers the hidden relations of all meta information of a meta-graph. Extensive experiments on two real datasets demonstrate that MEGA and MEGA++ are more effective than state-of-the-art approaches.

Index Terms: 
node embedding, heterogeneous information networks, tensor learning, meta graph

I Introduction

Many information retrieval and mining tasks such as node classification [7], clustering [30], link prediction [28], and information diffusion [25] become time-consuming in large-scale networks. This motivates researchers to develop network embedding techniques which aim to learn a distributed representation vector for each node in a network. An effective network embedding should preserve the similarity between nodes in order to reconstruct the original network.

The word2vec [21] idea has inspired many studies for network representation learning, most of which are in the context of homogeneous information networks, such as DeepWalk [22], LINE [31], and node2vec [9]. A homogeneous information network is a simple structural network, where all nodes and links are considered to belong to a single class.

However, in practice, there are usually multiple types of nodes (e.g., authors and papers in DBLP) and links (e.g., cite and publish) that compose a heterogeneous information network (HIN). To measure the similarity between nodes in HINs, many customized similarity or relevance measures based on meta-paths have been proposed in recent years  [16, 29]. For example, a meta-path authorpapervenuepaperauthorauthor\rightarrow paper\rightarrow venue\rightarrow paper\rightarrow author (denoted as APVPAAPVPA) indicates two authors having their publications in the same venue. Comparing to meta-path-based relevance measures utilizing only simple structural information, meta-graph [15] is recently proposed to capture complex structural information in HINs. In short, meta-graph is a special directed acyclic graph (DAG) which contains at least two embedded meta-paths, such as a DAG containing APVPAAPVPA and APTPAAPTPA as shown in Figure 1, where TT is the topic of a paper.

Fig. 1: An example of meta-paths 𝒫1\mathcal{P}_{1}, 𝒫2\mathcal{P}_{2}, and meta-graph 𝒮\mathcal{S} of the bibliographic data.

Meta-graph is an effective tool to calculate the relevance score between nodes in HINs, where a higher score indicates that there are more meta-graph instances between two nodes, i.e., a closer relationship. How to explore meta-graphs for representation learning in HINs is still an open question. An intuitive idea for meta-graph-based representation learning is to learn the node embedding by leveraging multiple meta-graphs between nodes in HINs. However, existing meta-graph-based relevance measures only utilize the strong relations as defined by the meta-graphs themselves, and they usually ignore the weak relations as indicated by their embedded meta-paths. To address this problem, we propose to learn the node embedding by leveraging both meta-graph and its embedded meta-paths for similarity search. An effective representation learning based on a single meta-graph should contain both strong and weak relations embedded in this meta-graph. In addition, we explore a novel meta-graph-based similarity measure to compute relevance scores that can better capture the strong relations between nodes in HINs.

In summary, there are three-fold contributions of this paper: 1) We are the first to propose the meta-graph-based node embedding method in HINs. Specifically, we develop two kinds of node embedding methods based on meta-graph, named MEGA and MEGA++ respectively. 2) We introduce GraphSim which is an effective meta-graph-based similarity measure with best performance comparing to previous meta-graph-based similarity measures, such as StructCount and SCSE. 3) Our approaches show the best performance comparing to other competing methods on two real-world datasets.

II Preliminary and Problem Formulation

In this section, we first introduce some related concepts and notations from multilinear algebra. Then, we review some concepts and approaches involved in HIN analysis including meta-graph and relevance measure. Last part, we formulate the problem of node embedding in HINs.

II-A Multilinear Algebra

The basic mathematical object of multilinear algebra is the tensor, a higher order generalization of vectors (first order tensors) and matrices (second order tensors) to multiple indices. The order of a tensor is the number of dimensions, also known as modes or ways. An NN-th order tensor is represented as 𝒳I1×I2××IN\mathcal{X}\in\mathbb{R}^{I_{1}\times I_{2}\times\cdots\times I_{N}}, where InI_{n} is the cardinality of its nn-th mode, n{1,2,,N}n\in\{1,2,\cdots,N\}. An element of a vector 𝐱\mathbf{x}, a matrix 𝐗\mathbf{X}, or a tensor 𝒳\mathcal{X} is denoted by xix_{i}, xi,jx_{i,j}, xi,j,kx_{i,j,k}, etc., depending on the number of modes. All vectors are column vectors unless otherwise specified. For an arbitrary matrix 𝐗I×J\mathbf{X}\in\mathbb{R}^{I\times J}, its ii-th row and jj-th column vector are denoted by 𝐱i\mathbf{x}^{i} and 𝐱j\mathbf{x}_{j}, respectively.

Definitions of outer product, partial symmetric tensor, mode-nn matricization, and CP factorization are given below, which will be applied to present our approach.

Definition 1

(Outer Product) The outer product of NN vectors 𝐱(n)In\mathbf{x}^{(n)}\in\mathbb{R}^{I_{n}} for n[1:N]n\in[1:N] is an NN-th order tensor and defined element-wise by (𝐱(1)𝐱(N))i1,,iN=xi1(1)xiN(N)\big(\mathbf{x}^{(1)}\circ\cdots\circ\mathbf{x}^{(N)}\big)_{i_{1},\cdots,i_{N}}=x^{(1)}_{i_{1}}\cdots x^{(N)}_{i_{N}} for all values of the indices.

Definition 2

(Partial Symmetric Tensor) An NN-th order tensor is a rank-one partial symmetric tensor if it is partial symmetric on modes i1,,ij1,,Ni_{1},...,i_{j}\in{1,...,N}, and can be written as the tensor product of NN vectors, i.e.,

𝒳=x(1)𝐱(N)\displaystyle\mathcal{X}={x}^{(1)}\circ\cdots\circ\mathbf{x}^{(N)} (1)

where x(i1)==x(ij)x^{(i_{1})}=\cdots=x^{(i_{j})}.

Definition 3

(Mode-nn Matricization) The mode-nn matricization or unfolding of an NN-th order tensor 𝒳I1×I2××IN\mathcal{X}\in\mathbb{R}^{I_{1}\times I_{2}\times\cdots\times I_{N}} is denoted by 𝐗(n)\mathbf{X}_{(n)} and is of size In×JnI_{n}\times J_{n}, where Jn=Πm=1,mnNImJ_{n}=\Pi_{m=1,m\neq n}^{N}I_{m}.

Definition 4

(CP Factorization) For a general tensor 𝒳I1××IN\mathcal{X}\in\mathbb{R}^{I_{1}\times\cdots\times I_{N}}, its CANDECOMP/PARAFAC (CP) factorization is

𝒳=r=1R𝐱r(1)𝐱r(N)=𝐗(1),,𝐗(N)\displaystyle\mathcal{X}=\sum_{r=1}^{R}\mathbf{x}_{r}^{(1)}\circ\cdots\circ\mathbf{x}_{r}^{(N)}=\llbracket\mathbf{X}^{(1)},...,\mathbf{X}^{(N)}\rrbracket (2)

where for n[1:N]n\in[1:N], 𝐗(n)=[𝐱1(n),,𝐱R(n)]\mathbf{X}^{(n)}=[\mathbf{x}_{1}^{(n)},...,\mathbf{x}_{R}^{(n)}] are factor matrices of size In×RI_{n}\times R, RR is the number of factors, and \llbracket\cdot\rrbracket is used for shorthand.

To obtain the CP factorization 𝐗(1),,𝐗(N)\llbracket\mathbf{X}^{(1)},\cdots,\mathbf{X}^{(N)}\rrbracket, the objective is to minimize the following estimation error:

=min𝐗(1),,𝐗(N)𝒳𝐗(1),,𝐗(N)F2\displaystyle\mathcal{L}=\underset{\mathbf{X}^{(1)},\cdots,\mathbf{X}^{(N)}}{\min}\|\mathcal{X}-\llbracket\mathbf{X}^{(1)},\cdots,\mathbf{X}^{(N)}\rrbracket\|_{F}^{2} (3)

However, \mathcal{L} is not jointly convex w.r.t. 𝐗(1),,𝐗(N)\mathbf{X}^{(1)},\cdots,\mathbf{X}^{(N)}. A widely used optimization technique is the Alternating Least Squares (ALS) algorithm, which alternatively minimize \mathcal{L} for each variable while fixing the other, that is,

𝐗(n)argmin𝐗(n)𝐗(n)𝐗(n)(inN𝐗(i))TF2\mathbf{X}^{(n)}\leftarrow\underset{\mathbf{X}^{(n)}}{\arg\min}\|\mathbf{X}_{(n)}-\mathbf{X}^{(n)}(\odot_{i\neq n}^{N}\mathbf{X}^{(i)})^{\mathrm{T}}\|_{F}^{2} (4)

where inN𝐗(i)=𝐗(N)𝐗(n1)𝐗(n+1)𝐗(1)\odot_{i\neq n}^{N}\mathbf{X}^{(i)}=\mathbf{X}^{(N)}\odot\cdots\mathbf{X}^{(n-1)}\odot\mathbf{X}^{(n+1)}\cdots\odot\mathbf{X}^{(1)}.

II-B Meta Graph

Definition 5

(Meta-Graph [15]) A meta-graph SS is a directed acyclic graph (DAG) defined on a HIN schema TG=(𝒪,)T_{G}=(\mathcal{O},\mathcal{R}). A meta-graph SS contains a single source node nsn_{s} with 0 in degree and a single target node ntn_{t} with 0 out degree. Mathematically, a meta-graph S=(A,B,ns,nt)S=(A,B,n_{s},n_{t}), where AA is a set of nodes, BB is a set of edges, nsn_{s} is the of source node, and ntn_{t} is the target node,.

Since a meta-graph only has one source node and one target node, not all sub-graphs of HINs can be meta-graph.

Definition 6

(Meta-graph-based Relevance Measure) Given a HIN G=(V,E)G=(V,E) and a meta-graph 𝒢\mathcal{G}, the similarity of any two nodes vs,vtVv_{s},v_{t}\in V with respect to 𝒢\mathcal{G} is defined as:

s=gvsvt𝒢s(vs,vt|gvsvt)s=\sum_{g_{v_{s}\rightarrow v_{t}}\in\mathcal{G}}s(v_{s},v_{t}\;|\;g_{v_{s}\rightarrow v_{t}}) (5)

where gvsvtg_{v_{s}\rightarrow v_{t}} is a meta-graph instance of 𝒢\mathcal{G}, and s(vs,vt|gvsvt)s(v_{s},v_{t}\,|\,g_{v_{s}\rightarrow v_{t}}) is the relevance score between vsv_{s} and vtv_{t}, which will be determined by the number of meta-graph instances connecting them.

Prior works provide different meta-graph-based relevance measures, such as StructCount, SCSE and BSCSE [15].

II-C Problem Formulation

We study the problem of meta-graph-based node embedding in the HIN. Given a HIN G=(V,E)G=(V,E), we have two goals in this study. First, we want to explore a customized meta-graph-based relevance measure which can more efficiently capture the complex structural information. Second, we aim at finding an effective node embedding that can better preserve the closeness between nodes in a HIN based on a meta-graph and its embeded meta-paths analysis. Specifically, we integrate all the similarity information of a meta-graph and its embedded meta-paths into a symmetric matrix and a partial symmetric tensor, and perform multilinear analysis of the coupled partial symmetric tensor and symmetric matrix to find the node embedding.

Refer to caption
Fig. 2: Framework of Meta-graph-based Node Embedding with Coupled Tensor-Matrix Decomposition

III Methods

In this section, we will introduce a brand new similarity measure, and the embedding techniques of MEGA++. First, we will introduce a meta-graph-based similarity measure named GraphSim. Then, we proposed a coupled tensor-matrix decomposition to obtain a joint embedding for nodes in HINs.

III-A GraphSim: A Normalized version of StructCount

First, we want to propose a new meta-graph-based similarity measure called GraphSim. In previous work, Huang et al. [15] proposed three meta-graph-based similarity measures: StructCount, SCSE, and BSCSE which is a mixed measure based on previous two measures. GraphSim can be viewed as a normalized version of StructCount.

StructCount [15] is a straightforward meta-graph-based similarity measure in HIN, which counts the number of meta-graph instances in the graph GG with an nsn_{s} as source and an ntn_{t} as target object.

Definition 7

(GraphSim) A meta-graph-based similarity measure. Given a symmetric meta-graph 𝒢\mathcal{G}, GraphSim between two nodes vt,vsVv_{t},v_{s}\in V is defined as:

s(vt,vs)=2×|{gvtvs|gvtvs𝒢}||{gvtvt|gvtvt𝒢}|+|{gvsvs|gvsvs𝒢}|s(v_{t},v_{s})=\frac{2\times|\{g_{v_{t}\rightarrow v_{s}}|g_{v_{t}\rightarrow v_{s}\in\mathcal{G}}\}|}{|\{g_{v_{t}\rightarrow v_{t}}|g_{v_{t}\rightarrow v_{t}\in\mathcal{G}}\}|+|\{g_{v_{s}\rightarrow v_{s}}|g_{v_{s}\rightarrow v_{s}\in\mathcal{G}}\}|} (6)

where gvtvsg_{v_{t}\rightarrow v_{s}}is a meta-graph instance between vtv_{t} and vsv_{s}, gvtvtg_{v_{t}\rightarrow v_{t}} is that between vtv_{t} and vtv_{t}, and gvsvsg_{v_{s}\rightarrow v_{s}} is that between vsv_{s} and vsv_{s}.

Comparing to StructCount, GraphSim is normalized version of StructCount. sGraphSim(vt,vs)s_{GraphSim}(v_{t},v_{s}) is determined by two parts: First, the number of meta-graph instance between vt,vsVv_{t},v_{s}\in V by following 𝒢\mathcal{G}; Second, the balance of their visibility, where the visibility is defined as the number of meta-graph instances between themselves. Normalized relevance score can present better relation between different nodes. For example, an author A1A_{1} published all his four papers with A2A_{2}. A3A_{3} published five papers with A2A_{2}, and A3A_{3} published other five papers with other authors. Without normalized process, the relation between A2A_{2} and A3A_{3} is closer than A2A_{2} and A1A_{1}. However, for common sense, we should agree A2A_{2} and A1A_{1} have closer relation, which indicates GraphSim is a better measure.

Comparing to three measures in [15], s(vt,vs)s(v_{t},v_{s}) of GraphSim is between 0 and 1 like SCSE. However, SCSE measures the random walk probability that vsv_{s} expands a meta-graph instance to vtv_{t}. In our application, we find GraphSim shows better performance than all those three meta-graph measures [15].

III-B MEGA++: Node Embedding by CTMD

In this section, we show how to jointly consider similarity information of a meta-graph and its embedded meta-paths to learn a node embedding. The basic idea is the integration of similarity matrices and coupled embedding by joint factorization. Specifically, we first compute a meta-graph similarity matrix using the proposed GraphSim, denoted as 𝐘M×M\mathbf{Y}\in\mathbb{R}^{M\times M}, and for each meta-path 𝒫\mathcal{P}, compute an embedded meta-path similarity matrix using the PathSim, denoted as 𝐌M×M\mathbf{M}\in\mathbb{R}^{M\times M}. Next, we concatenate the embedded meta-path similarity matrices of different embedded meta-paths to form a third-order tensor comprising three modes: nodes, nodes, and paths, denoted as 𝒳=[𝐌1,,𝐌N]\mathcal{X}=[\mathbf{M}_{1},\cdots,\mathbf{M}_{N}] M×M×N\in\mathbb{R}^{M\times M\times N}. Then, we introduce a novel coupled tensor-matrix decomposition (CTMD) method to find common latent features between 𝒳\mathcal{X} and 𝐘\mathbf{Y}. Last, we use the latent features to measure the similarity between different nodes in the HIN.

In the following, we detail the CTMD method, which can be seen as a special case of the coupled tensor-matrix decomposition [1] with input partial symmetric tensor 𝒳\mathcal{X} and symmetric matrix 𝐘\mathbf{Y}. Notice that since similarity matrix is symmetric, the resulting 𝒳\mathcal{X} is a partial symmetric tensor, and 𝐘\mathbf{Y} is a symmetric matrix.

Tensors (including matrix) provide a natural and efficient representation for a meta-graph data, but there is no guarantee that such representation will be good for subsequent learning, since learning will only be successful if the regularities that underlie the data can be discerned by the model. Tensor factorization is a powerful tool to analyze tensors. In previous work, it was found that CP factorization (which is a higher order generalization of SVD) is particularly effective to acknowledge the connections and find valuable features among tensor data [32]. Motivated by these observations, we exploit the benefits of CP and SVD factorizations to find an effective embedding in the sense of meta-path-based similarity tensor 𝒳\mathcal{X} and meta-graph similarity matrix 𝐘\mathbf{Y}.

Based on above analysis, we design our CTMD objective function as below:

min𝐏,𝐓𝒳𝐏,𝐏,𝐓F2+α𝐘𝐏𝐏TF2\displaystyle\underset{\mathbf{P},\mathbf{T}}{\min}~~\|\mathcal{X}-\llbracket\mathbf{P},\mathbf{P},\mathbf{T}\rrbracket\|_{F}^{2}+\alpha\|\mathbf{Y}-\mathbf{P}\mathbf{P}^{\mathrm{T}}\|_{F}^{2} (7)

where 𝐏M×R\mathbf{P}\in\mathbb{R}^{M\times R} and 𝐓N×R\mathbf{T}\in\mathbb{R}^{N\times R} are latent matrices. Specifically, 𝐏\mathbf{P} is jointly learned from both meta-graph and meta-path similarity information.

The objective function in Eq. (7) is non-convex with respect to 𝐏\mathbf{P} and 𝐓\mathbf{T} together, thus there is no closed-form solution. We introduce an effective iteration method to solve this problem. The main idea is to decouple the parameters using an Alternating Direction Method of Multipliers (ADMM) approach [4], by alternatively optimizing the objective with respect to one variable, while fixing others.

Update 𝐏\mathbf{P}: First, we optimize 𝐏\mathbf{P} while fixing 𝐓\mathbf{T}. Notice that the objective function in Eq. (7) involves a fourth-order term with respect to 𝐏\mathbf{P} which is difficult to optimize directly. To obviate this problem, we use a variable substitution technique and minimize the following objective function

min𝐏,𝐐𝒳𝐏,𝐐,𝐓F2+α𝐘𝐏𝐐TF2\displaystyle\underset{\mathbf{P},\mathbf{Q}}{\min}~~\|\mathcal{X}-\llbracket\mathbf{P},\mathbf{Q},\mathbf{T}\rrbracket\|_{F}^{2}+\alpha\|\mathbf{Y}-\mathbf{P}\mathbf{Q}^{\mathrm{T}}\|_{F}^{2}
s.t.𝐏=𝐐\displaystyle s.t.~~\mathbf{P}=\mathbf{Q} (8)

where 𝐐M×R\mathbf{Q}\in\mathbb{R}^{M\times R} is an auxiliary variable.

The augmented Lagrangian function of Eq. (8) is

(𝐏,𝐐)=\displaystyle\mathcal{L}(\mathbf{P},\mathbf{Q})= 𝒳𝐏,𝐐,𝐓F2+α𝐘𝐏𝐐TF2\displaystyle\|\mathcal{X}-\llbracket\mathbf{P},\mathbf{Q},\mathbf{T}\rrbracket\|_{F}^{2}+\alpha\|\mathbf{Y}-\mathbf{P}\mathbf{Q}^{\mathrm{T}}\|_{F}^{2}
+tr(𝐔T(𝐏𝐐))+λ2𝐏𝐐F2\displaystyle+tr(\mathbf{U}^{\mathrm{T}}(\mathbf{P}-\mathbf{Q}))+\frac{\lambda}{2}\|\mathbf{P}-\mathbf{Q}\|_{F}^{2} (9)

where 𝐔M×R\mathbf{U}\in\mathbb{R}^{M\times R} is the Lagrange multiplier, and λ\lambda is the penalty parameter which can be adjusted efficiently according to [18].

To compute 𝐏\mathbf{P}, Eq. (9) can be transformed as

min𝐏𝒳(1)𝐏𝐅TF2+α𝐘𝐏𝐐TF2+λ2𝐏𝐐+1λ𝐔F2\displaystyle\underset{\mathbf{P}}{\min}\|\mathcal{X}_{(1)}-\mathbf{P}\mathbf{F}^{\mathrm{T}}\|_{F}^{2}+\alpha\|\mathbf{Y}-\mathbf{P}\mathbf{Q}^{\mathrm{T}}\|_{F}^{2}+\frac{\lambda}{2}\|\mathbf{P}-\mathbf{Q}+\frac{1}{\lambda}\mathbf{U}\|_{F}^{2} (10)

where 𝐗(1)M×(MN)\mathbf{X}_{(1)}\in\mathbb{R}^{M\times(MN)} is the mode-1 matricization of 𝒳\mathcal{X}, and 𝐅=𝐓𝐐(MN)×R\mathbf{F}=\mathbf{T}\odot\mathbf{Q}\in\mathbb{R}^{(MN)\times R}.

By setting the derivative of Eq. (10) with respect to 𝐏\mathbf{P} to zero, we obtain the closed-form solution

𝐏=(2𝐗(1)𝐅+2α𝐘𝐐+λ𝐐𝐔)(2𝐅T𝐅+2α𝐐T𝐐+λ𝐈)1\displaystyle\mathbf{P}=(2\mathbf{X}_{(1)}\mathbf{F}+2\alpha\mathbf{Y}\mathbf{Q}+\lambda\mathbf{Q}-\mathbf{U})(2\mathbf{F}^{\mathrm{T}}\mathbf{F}+2\alpha\mathbf{Q}^{\mathrm{T}}\mathbf{Q}+\lambda\mathbf{I})^{-1} (11)

To efficiently compute 𝐅T𝐅\mathbf{F}^{\mathrm{T}}\mathbf{F}, we consider the following property of the Khatri-Rao product of two matrices

𝐅T𝐅=(𝐓𝐐)T(𝐓𝐐)=𝐓T𝐓𝐐T𝐐\displaystyle\mathbf{F}^{\mathrm{T}}\mathbf{F}=(\mathbf{T}\odot\mathbf{Q})^{\mathrm{T}}(\mathbf{T}\odot\mathbf{Q})=\mathbf{T}^{\mathrm{T}}\mathbf{T}\ast\mathbf{Q}^{\mathrm{T}}\mathbf{Q} (12)

Then the auxiliary matrix 𝐐\mathbf{Q} can be optimized successively in a similar way, and the solution is

𝐐=(2𝐗(2)𝐆+2α𝐘T𝐏+λ𝐏+𝐔)(2𝐆T𝐆+2α𝐏T𝐏+λ𝐈)1\displaystyle\mathbf{Q}=(2\mathbf{X}_{(2)}\mathbf{G}+2\alpha\mathbf{Y}^{\mathrm{T}}\mathbf{P}+\lambda\mathbf{P}+\mathbf{U})(2\mathbf{G}^{\mathrm{T}}\mathbf{G}+2\alpha\mathbf{P}^{\mathrm{T}}\mathbf{P}+\lambda\mathbf{I})^{-1} (13)

where 𝐗(2)\mathbf{X}_{(2)} is the mode-2 matricization of 𝒳\mathcal{X}, and 𝐆=𝐓𝐏\mathbf{G}=\mathbf{T}\odot\mathbf{P}.

Moreover, we optimize the Lagrange multiplier 𝐔\mathbf{U} using the gradient descent method by

𝐔𝐔+λ(𝐏𝐐)\displaystyle\mathbf{U}\leftarrow\mathbf{U}+\lambda(\mathbf{P}-\mathbf{Q}) (14)

Update 𝐓\mathbf{T}: Next, we optimize 𝐓\mathbf{T} while fixing 𝐏\mathbf{P} and 𝐒\mathbf{S}. We need to optimize the following objective function

min𝐓𝐗(3)𝐓𝐇TF2\displaystyle\underset{\mathbf{T}}{\min}~~\|\mathbf{X}_{(3)}-\mathbf{T}\mathbf{H}^{\mathrm{T}}\|_{F}^{2} (15)

where 𝐗(3)\mathbf{X}_{(3)} is the mode-3 matricization of 𝒳\mathcal{X}, and 𝐇=𝐐𝐏\mathbf{H}=\mathbf{Q}\odot\mathbf{P}.

By setting the derivative of Eq. (15) with respect to 𝐓\mathbf{T} to zero, we obtain the closed-form solution as

𝐓=(𝐗(3)𝐇)(𝐇T𝐇)1\displaystyle\mathbf{T}=(\mathbf{X}_{(3)}\mathbf{H})(\mathbf{H}^{\mathrm{T}}\mathbf{H})^{-1} (16)

The overall algorithm is summarized in Algorithm 1.

Algorithm 1 Coupled Tensor-Matrix Decomposition (CTMD)
0:  Meta-path similarity tensor 𝒳\mathcal{X}, and meta-graph similarity matrix 𝐘\mathbf{Y}
0:  Embedding matrix 𝐏\mathbf{P}
1:  : Set λmax=106\lambda_{max}=10^{6}, ρ=1.15\rho=1.15
2:  : Initialize 𝐏,𝐐,𝐓𝒩(0,1),𝐔=𝟎,λ=106\mathbf{P},\mathbf{Q},\mathbf{T}\sim\mathcal{N}(0,1),\mathbf{U}=\mathbf{0},\lambda=10^{-6}
3:loop convergence
4:   : Update P by Eq. (11)
5:   : Update Q by Eq. (13)
6:   : Update T by Eq. (16)
7:   : Update μ\mu by μ\mu \leftarrow min(ρμ\rho\mu, μmax\mu_{max})
8:end loop

III-C Time Complexity

Each iteration in Algorithm 1 consists of simple matrix operations. Therefore, rough estimates of its computational complexity can be easily derived based on ADMM  [17].

The estimate for the update of 𝐏\mathbf{P} according to Eq. (11) is as follows: O(M2NR)O(M^{2}NR) for the computation of the term 2𝐗(1)𝐅+2α𝐘𝐐+λ𝐐𝐔2\mathbf{X}_{(1)}\mathbf{F}+2\alpha\mathbf{Y}\mathbf{Q}+\lambda\mathbf{Q}-\mathbf{U}; O((M+N)R2)O((M+N)R^{2}) for the computation of the term 2𝐅T𝐅+2α𝐐T𝐐+λ𝐈2\mathbf{F}^{\mathrm{T}}\mathbf{F}+2\alpha\mathbf{Q}^{\mathrm{T}}\mathbf{Q}+\lambda\mathbf{I} due to Eq. (12) and O(R3)O(R^{3}) for its Cholesky decomposition; O(MK2)O(MK^{2}) for the computation of the system solution that gives the updated value of 𝐏\mathbf{P}. An analogous estimate can be derived for the update of 𝐐\mathbf{Q}.

Overall, the updates of model parameters 𝐏\mathbf{P} and 𝐐\mathbf{Q}, require O(R3+(M+N)R2+M2NRR^{3}+(M+N)R^{2}+M^{2}NR) arithmetic operations in total.

Algorithm 2 MEGA++
0:  An HIN G, a particular meta-graph gg, a embedded meta-path pip_{i} of a meta-graph gg, and an empty array 𝐏A\mathbf{P}_{A}
0:  Embedding matrix 𝐏\mathbf{P}
1:  : Y = GraphSim(G, gg)
2:loop pigp_{i}\in g
3:   : 𝐏i\mathbf{P}_{i} = PathSim(G, pip_{i})
4:   : 𝐏A\mathbf{P}_{A} = [𝐏A\mathbf{P}_{A}; 𝐏i\mathbf{P}_{i}] store 𝐏i\mathbf{P}_{i} into 𝐏A\mathbf{P}_{A}
5:end loop
6:  : 𝒳\mathcal{X} = concatenate(𝐏A\mathbf{P}_{A}) 𝒳\mathcal{X} is a tensor of 𝒮\mathcal{S}’s embedded meta-paths
7:  : P = CTMD(𝒳\mathcal{X}, Y)

IV Experiments

In this section, we conduct extensive experiments in order to test the effectiveness of the proposed methods: GraphSim, MEGA and MEGA++. We first introduce two real-life datasets and a set of methods to be compared. Then, we evaluate the effectiveness of proposed methods on four data mining tasks: clustering, classification, parameter analysis and time analysis.

We use two real datasets (e.g. DBLP-4-Area and YAGO Movie) in the evaluation. Table I shows some statistics about them. DBLP-4-Area [29] is the subset of original DBLP, which contains 5,237 papers (P), 5,915 authors (A), 18 venues (V), 4,479 topics (T). The authors and venues are from 4 areas: database, data mining, machine learning and information retrieval. YAGO Movie is a subset of YAGO [15], which contains 7,332 movies (M), 10,789 actors (A), 1,741 directors (D), 3,392 producers (P) and 1,483 composers (C). The movies are divided into five genres: action, horror, adventure, sci-fi and crime. The guided meta-graphs are designed for three tasks as shown in the Figures 1 and 3.

The proposed methods are compared with meta-graph-based relevance measures (e.g. StructCount, SCSE, and BSCSE [15]), and network embedding approaches (e.g. DeepWalk [22], and LINE [31]) in clustering and classification tasks. The experimental results are shown in the following sections.

TABLE I: Statistics of Datasets
|V||V| |E||E| Avg. degree |||\mathcal{L}| |||\mathcal{R}|
DBLP 15,649 51,377 6.57 4 4
MOVIE 25,643 40,173 3.13 5 4
Fig. 3: Guided meta-graphs: 𝒮1\mathcal{S}_{1} is the guided meta-graph for M2M task, and 𝒮2\mathcal{S}_{2} is for V2V task.
TABLE II: Clustering performance
Pre. Meta-Graph Measures Pre. Network Embedding OUR WROKS
Task Method StuctCount SCSE BSCSE(α=1\alpha=1) LINE DeepWalk GraphSim MEGA MEGA++
DBLP (V2V) NMI 0.2634 0.6309 0.6309 0.7954 0.8258 0.8479 0.8521 0.8718
Purity 0.5000 0.7333 0.7333 0.8042 0.8584 0.8744 0.8817 0.8956
DBLP (A2A) NMI 0.0338 0.0156 0.0156 0.3920 0.4896 0.2150 0.5263 0.5315
Purity 0.2997 0.2822 0.2823 0.7135 0.7941 0.4903 0.7956 0.7989
Moive (M2M) NMI 0.0011 0.0008 0.0008 0.0008 0.0007 0.0021 0.0045 0.0045
Purity 0.2991 0.2988 0.2988 0.2981 0.2981 0.3002 0.3017 0.3032
Overall NMI 0.0994 0.2158 0.2158 0.3961 0.4387 0.3550 0.4610 0.4693
Purity 0.3663 0.4381 0.4381 0.6052 0.6502 0.5550 0.6597 0.6659
TABLE III: Classification performance
Pre. Meta-Graph Measures Pre. Network Embedding OUR WROKS
Task Method StuctCount SCSE BSCSE(α=0\alpha=0) LINE DeepWalk GraphSim MEGA MEGA++
DBLP (A2A) Macro-F1 0.734 0.616 0.734 0.816 0.839 0.818 0.863 0.867
Micro-F1 0.730 0.634 0.730 0.817 0.840 0.819 0.863 0.867
Movie (M2M) Macro-F1 0.126 0.111 0.126 0.186 0.189 0.125 0.298 0.310
Micro-F1 0.281 0.276 0.281 0.241 0.245 0.307 0.342 0.352
Overall Macro-F1 0.430 0.364 0.430 0.501 0.514 0.472 0.581 0.589
Micro-F1 0.506 0.455 0.506 0.540 0.543 0.563 0.603 0.610

IV-A Clustering Results

We first conduct a clustering task to evaluate the performance of the compared methods on DBLP and YAGO Movie datasets. For DBLP, we use the areas of authors as ground-truth label for clustering authors (A2A), and use the areas of venues as labels for clustering venues (V2V). For YAGO Movie, we use the genres of movies as labels (M2M). To be specific, we use kk-means on the derived meta-graph-based relevance matrices for the clustering task. To evaluate the results, we use NMI and purity as evaluation metrics.

Clustering results of the three tasks are shown in Table II. Comparing to previous meta-graph-based relevance measures, the proposed GraphSim always shows the best performance of all. We observe at least 19.94% improvement in NMI of GraphSim method when compared with the previous meta-graph-based relevance measure on clustering the venues and authors in DBLP, respectively. The clustering results can be sensitive to initialization of centroid seeds, so we set 100 times of random initializations. All methods show worse performance on YAGO Movie than DBLP, but the proposed methods, especially MEGA++, show the best performance comparing to prior works..

IV-B Classification Results

We then conduct a classification task. Comparing to the clustering task, in DBLP we do not evaluate the results of classifying the venues, as the total number of venues is only 18. We first apply previous methods and our works to generate the similarity matrices or embedding space of the original network. Then, we randomly partition the samples, and set 80% samples as training set and the rest as testing set. Last, we apply kk nearest neighbor (k-NN) classifier with k=5k=5 to evaluate the methods with training and testing dataset [29, 15]. To prevent the special case of random partition, we repeat and use different random partition 10 times in total. For multi-label classification task, we use the average Macro-F1 score and Micro-F1 score as the evaluation metrics.

GraphSim outperforms the existing relevance measures (e.g StructCount, SCSE and BSCSE) because it represents a better relations between objects in the HINs by normalizing the presence of meta-graph structures. MEGA++ outperforms all the baselines because it captures both lower-order (i.e. meta-path) and higher-order (i.e. meta-graph) structural information by facilitating the use of coupled tensor-matrix decomposition method to obtain a joint embedding for nodes in HINs.

(a)
(b)
(c)
(d)
(e)
(f)
Fig. 4: Parameters analysis: two metrics including Purity (a)(c)(e) and NMI (b)(d)(f). (a)-(b) analyzes λ\lambda of MEGA. (c)-(d) analyzes the embedding dimensions RR of MEGA and MEGA++. (e)-(f) analyzes two parameters λ\lambda and α\alpha of MEGA++.

IV-C Parameter Analysis

In this section, we first analyze the parameter sensitivity of our methods as shown in Figure 4. We use two evaluation metrics, Normalized Mutual Information(NMI), and Purity (both the larger, the better), to evaluate the performances of our methods for clustering task. In Figure 4 (a)-(b), the penalty parameters λ\lambda of MEGA is used for minimizing the Frobenius Norm of embedding space 𝐏\mathbf{P} and 𝐐\mathbf{Q} in Eq. (8), and the best performance is achieved when λ\lambda is set as 3.2768e-04. From 4 (b)-(c), setting the embedding dimensions as 5 shows the best performance for both MEGA and MEGA++. MEGA++ outperforms MEGA with the same number of embedding dimensions. The Figure 4 (e)-(f) show the two penalty parameters λ\lambda and α\alpha of MEGA++. The penalty parameter λ\lambda of MEGA++ is the same as that in MEGA. The penalty parameter α\alpha of MEGA++ is used for minimizing the Frobenius Norm of meta-graph similarity matrix 𝐘\mathbf{Y} and its embedding space in Eq. (7). We find that λ=0.6711\lambda=0.6711 and α=1.6\alpha=1.6 produce the best performance of clustering task.

TABLE IV: Time analysis: three tasks of MEGA++: RR is the dimension of the embedding, and second is the time scale
RR 1 5 10 15
DBLP (A2A) 0.338 4.693 9.731 9.689
DBLP (V2V) 0.129 0.169 0.445 0.667
MOVIE (M2M) 1.625 6.013 12.69 19.57

IV-D Time Analysis

In this section, we evaluate the execution time of MEGA++. In Table IV, it shows the execution time is linear with respect to the embedding dimensions. Based on the time complexity of MEGA++, when we have a fixed size of dataset, the embedding dimensions RR, and the number of views NN are linear with respect to the execution time. Sometimes, MEGA++ can be early stopped when it is already converge, so as to the same time consuming of DBLP (A2A) with R=10R=10 and R=15R=15. The same results are shown in the real testing on three tasks, which show the efficiency of MEGA++.

V Related Work

V-A Network Embedding

Network embedding want to learn a low-dimensional representations from a network. Previous traditional works [3] usually construct the affinity graph using the feature vectors of the vertexes and then compute the eigenvectors of the affinity graph. Some other groups use matrix factorization to represent graph as adjacency matrix [2].

Recently, DeepWalk [22] and LINE [31] are proposed for learning the network embedding. Besides these two most popular node embedding methods, many other network embedding are proposed recent years [6, 10, 33, 7]. [6, 33] learn the node embedding by deep learning encoder methods. However, none previous node embedding methods consider the meta-graph and its embedded meta-paths information.

V-B Tensor Learning and Embedding

Just like deep learning, tensor learning becomes very hot and popular topic in recent years due to the stronger computing capability and lower computation cost  [14, 19, 11, 20, 24, 5, 12]. Coupled tensor matrix embedding tries to fuse multiple information sources where matrices and tensors sharing some common modes are jointly embedding [8]. A gradient-based optimization approach for joint tensor-matrix analysis is proposed by Acar et al. [1].

V-C Multi-view Learning

Multi-view learning is a hot idea to think one object with different views [26, 27, 23, 13]. In this paper, we think the HIN with different views such as meta-paths and meta-graph, and fuse the different information for node embedding. However, none of these frameworks can be directly applicable to learn jointly embedding with a partial symmetric tensor and a symmetric matrix, and also do not leverage meta-path and meta-structure information for similarity search in HINs.

VI Conclusion and Future Work

In this paper, we proposed a new meta-graph-based relevance measure, i.e. GraphSim, and two node embeddings, i.e. MEGA and MEGA++, by leveraging a meta-graph and its embedded meta-paths similarity information. In the experiment, MEGA++ shows better performance than other compared methods in different tasks. In the future, we can expend our proposed node embedding for a single meta-graph to multiple meta-graphs node embedding in a HIN. Meanwhile, we can utilize heterogeneous and homogeneous information together for node embedding.

VII Acknowledge

This work is supported in part by NSFC through grants No. 61503253 and 61672313, NSF through grants No. IIS-1526499, IIS-1763325, and CNS-1626432, and NSF of Guangdong Province through grant No. 2017A030313339.

References

  • [1] Evrim Acar, Tamara G Kolda, and Daniel M Dunlavy. All-at-once optimization for coupled matrix and tensor factorizations. arXiv:1105.3422, 2011.
  • [2] Amr Ahmed, Nino Shervashidze, Shravan Narayanamurthy, Vanja Josifovski, and Alexander J Smola. Distributed large-scale natural graph factorization. In WWW. ACM, 2013.
  • [3] Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps and spectral techniques for embedding and clustering. In NIPS, 2001.
  • [4] Stephen Boyd, Neal Parikh, Eric Chu, Borja Peleato, and Jonathan Eckstein. Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends® in Machine Learning, 2011.
  • [5] Bokai Cao, Lifang He, Xiaokai Wei, Mengqi Xing, Philip S Yu, Heide Klumpp, and Alex D Leow. t-bne: Tensor-based brain network embedding. In SDM. SIAM, 2017.
  • [6] Shiyu Chang, Wei Han, Jiliang Tang, Guo-Jun Qi, Charu C Aggarwal, and Thomas S Huang. Heterogeneous network embedding via deep architectures. In KDD. ACM, 2015.
  • [7] Ting Chen and Yizhou Sun. Task-guided and path-augmented heterogeneous network embedding for author identification. In WSDM. ACM, 2017.
  • [8] Beyza Ermiş, Evrim Acar, and A Taylan Cemgil. Link prediction in heterogeneous data via generalized coupled tensor factorization. DMKD, 2015.
  • [9] Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In KDD. ACM, 2016.
  • [10] Huan Gui, Jialu Liu, Fangbo Tao, Meng Jiang, Brandon Norick, and Jiawei Han. Large-scale embedding learning in heterogeneous event data. In ICDM. IEEE, 2016.
  • [11] Tengjiao Guo, Le Han, Lifang He, and Xiaowei Yang. A ga-based feature selection and parameter optimization for linear support higher-order tensor machine. Neurocomputing, 2014.
  • [12] Lifang He, Xiangnan Kong, Philip S Yu, Xiaowei Yang, Ann B Ragin, and Zhifeng Hao. Dusk: A dual structure-preserving kernel for supervised tensor learning with applications to neuroimages. In SDM. SIAM, 2014.
  • [13] Lifang He, Chun-Ta Lu, Hao Ding, Shen Wang, Linlin Shen, S Yu Philip, and Ann B Ragin. Multi-way multi-level kernel modeling for neuroimaging classification. In CVPR, 2017.
  • [14] Lifang He, Chun-Ta Lu, Guixiang Ma, Shen Wang, Linlin Shen, S Yu Philip, and Ann B Ragin. Kernelized support tensor machines. In ICML, 2017.
  • [15] Zhipeng Huang, Yudian Zheng, Reynold Cheng, Yizhou Sun, Nikos Mamoulis, and Xiang Li. Meta structure: Computing relevance in large heterogeneous information networks. In KDD. ACM, 2016.
  • [16] Ni Lao and William W Cohen. Relational retrieval using a combination of path-constrained random walks. Machine learning, 2010.
  • [17] Athanasios P Liavas and Nicholas D Sidiropoulos. Parallel algorithms for constrained tensor factorization via alternating direction method of multipliers. TSP, 2015.
  • [18] Zhouchen Lin, Risheng Liu, and Zhixun Su. Linearized alternating direction method with adaptive penalty for low-rank representation. In NIPS, 2011.
  • [19] Xiaolan Liu, Tengjiao Guo, Lifang He, and Xiaowei Yang. A low-rank approximation-based transductive support tensor machine for semisupervised classification. TIP, 2015.
  • [20] Chun-Ta Lu, Lifang He, Weixiang Shao, Bokai Cao, and Philip S Yu. Multilinear factorization machines for multi-task multi-view learning. In WSDM. ACM, 2017.
  • [21] Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv, 2013.
  • [22] Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In KDD. ACM, 2014.
  • [23] Weixiang Shao, Lifang He, Chun-Ta Lu, Xiaokai Wei, and Philip S Yu. Online unsupervised multi-view feature selection. ICDM, 2016.
  • [24] Weixiang Shao, Lifang He, and S Yu Philip. Clustering on multi-source incomplete data via tensor modeling and factorization. In PAKDD. Springer, 2015.
  • [25] Lichao Sun, Weiran Huang, Philip S Yu, and Wei Chen. Multi-round influence maximization. In KDD. ACM, 2018.
  • [26] Lichao Sun, Yuqi Wang, Bokai Cao, S Yu Philip, Witawas Srisa-An, and Alex D Leow. Sequential keystroke behavioral biometrics for mobile user identification via multi-view deep learning. In ECML-PKDD. Springer, 2017.
  • [27] Lichao Sun, Xiaokai Wei, Jiawei Zhang, Lifang He, S Yu Philip, and Witawas Srisa-an. Contaminant removal for android malware detection systems. In BigData. IEEE, 2017.
  • [28] Yizhou Sun, Jiawei Han, Charu C Aggarwal, and Nitesh V Chawla. When will it happen?: relationship prediction in heterogeneous information networks. In WSDM. ACM, 2012.
  • [29] Yizhou Sun, Jiawei Han, Xifeng Yan, Philip S Yu, and Tianyi Wu. Pathsim: Meta path-based top-k similarity search in heterogeneous information networks. VLDB, 2011.
  • [30] Yizhou Sun, Brandon Norick, Jiawei Han, Xifeng Yan, Philip S Yu, and Xiao Yu. Pathselclus: Integrating meta-path selection with user-guided object clustering in heterogeneous information networks. TKDD, 2013.
  • [31] Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In WWW. ACM, 2015.
  • [32] Charles F Van Loan. Structured matrix problems from tensors. In Exploiting Hidden Structure in Matrix Computations: Algorithms and Applications. Springer, 2016.
  • [33] Daixin Wang, Peng Cui, and Wenwu Zhu. Structural deep network embedding. In KDD. ACM, 2016.