| Literature DB >> 35205570 |
Abstract
Heterogeneous information network (HIN) embedding is an important tool for tasks such as node classification, community detection, and recommendation. It aims to find the representations of nodes that preserve the proximity between entities of different nature. A family of approaches that are widely adopted applies random walk to generate a sequence of heterogeneous contexts, from which, the embedding is learned. However, due to the multipartite graph structure of HIN, hub nodes tend to be over-represented to their context in the sampled sequence, giving rise to imbalanced samples of the network. Here, we propose a new embedding method: CoarSAS2hvec. The self-avoiding short sequence sampling with the HIN coarsening procedure (CoarSAS) is utilized to better collect the rich information in HIN. An optimized loss function is used to improve the performance of the HIN structure embedding. CoarSAS2hvec outperforms nine other methods in node classification and community detection on four real-world data sets. Using entropy as a measure of the amount of information, we confirm that CoarSAS catches richer information of the network compared with that through other methods. Hence, the traditional loss function applied to samples by CoarSAS can also yield improved results. Our work addresses a limitation of the random-walk-based HIN embedding that has not been emphasized before, which can shed light on a range of problems in HIN analyses.Entities:
Keywords: context sampling; heterogeneous information networks; information entropy; network embedding; random walk
Year: 2022 PMID: 35205570 PMCID: PMC8870891 DOI: 10.3390/e24020276
Source DB: PubMed Journal: Entropy (Basel) ISSN: 1099-4300 Impact factor: 2.524
Figure 1The imbalanced sampling as a result of the random walk and fixed sliding window on HIN.
Main notations used in the paper.
| Notation | Description |
|---|---|
|
| Heterogeneous information network |
|
| Node set of HIN |
|
| Edge set of HIN |
|
| Node type set of HIN |
|
| A node |
|
| Neighbor nodes of |
|
| Neighbor node type set of |
| Sampled pairs, sampled pairs of | |
|
| Coarsened HIN after i times coarsening |
|
| The nodes to be removed in coarsening |
| Sampling time of | |
|
| Context node set of |
|
| The |
|
| The relation type indicator matrix |
|
| The embedding vector of |
|
| The context embedding vector of |
Figure 2Heterogeneous network coarsening process.
Description of data sets.
| Data Set | #Node | #Node | #Edge | #Edge | Target | Classes |
|---|---|---|---|---|---|---|
| Types | Nums | Types | Nums | |||
| ACM | 3 | 11,246 | 2 | 13,407 | paper | 3 |
| DBLP | 4 | 37,791 | 3 | 41,794 | author | 4 |
| Aminer | 4 | 439,448 | 3 | 875,214 | author | 10 |
| Freebase | 8 | 164,473 | 36 | 355,072 | book | 7 |
Meta-paths and meta-graphs used for each data set.
| Data Set | Node Types | Meta-Paths | Meta-Graphs |
|---|---|---|---|
| ACM | A: Author | APA | [PAP || PSP] |
| P: Paper | PAP | ||
| S: Subject | PSP | ||
| DBLP | A: Author | APA, APCPA, APTPA | [APA || APCPA] |
| P: Paper | PAP, PCP, PTP | [APA || APTPA] | |
| C: Conference | CPC | [APA || APCPA || APTPA] | |
| T: Term | TPT | [PAP || PCP] | |
| Aminer | A: Author | APA, APCPA, APTPA | [APA || APCPA] |
| P: Paper | PAP, PCP, PTP | [APA || APTPA] | |
| C: Conference | CPC | [APA || APCPA || APTPA] | |
| T: Type | TPT | [PAP || PCP] | |
| Freebase | B: Book | BB | [BB || BOB] |
| F: Film | BOB | [BB || BFB] | |
| L: Location | BFB | [BB || BLMB] | |
| M: Music | BPB | [BB || BPSB] | |
| O: Organization | BUB | [BB || BFB || BLMB] | |
| P: Person | BLMB | [BB || BFB || BPSB] | |
| S: Sport | BPSB | [BB || BFB || BOUB] | |
| U: Business | BOUB | [BB || BFB || BLMB || BPSB] |
Hyper-parameters of CoarSAS2hvec on different data sets.
| Data Set |
|
|
|
|
|
|
|---|---|---|---|---|---|---|
| ACM | 0.3 | 3 | P, S |
| 0.5 | 5 |
| DBLP | 0.3 | 3 | A, C, T |
| 0.5 | 5 |
| Aminer | 0.2 | 4 | A, C, T |
| 0.5 | 5 |
| Freebase | 0.6 | 2 | F, L, O, P, S, U |
| 0.5 | 5 |
Results of node classification; the best and second-place results are highlighted in bold and italics, respectively.
| Method | ACM | DBLP | Aminer | Freebase | ||||
|---|---|---|---|---|---|---|---|---|
| Macro-F1 | Micro-F1 | Macro-F1 | Micro-F1 | Macro-F1 | Micro-F1 | Macro-F1 | Micro-F1 | |
| LINE | 0.787 | 0.794 | 0.912 | 0.916 | 0.887 | 0.891 | 0.105 | 0.484 |
| DGI | 0.790 | 0.800 | 0.859 | 0.854 | - | - | 0.103 | 0.478 |
| HeGAN | 0.786 | 0.793 | 0.888 | 0.894 | 0.884 | 0.905 | 0.133 | 0.485 |
| NSHE | 0.797 | 0.823 | 0.897 | 0.901 | 0.875 | 0.887 | 0.107 | 0.482 |
| Deepwalk | 0.789 | 0.796 | 0.888 | 0.894 | 0.884 | 0.905 | 0.156 | 0.435 |
| HIN2vec | 0.432 | 0.762 | 0.904 | 0.910 | 0.862 | 0.875 | 0.118 | 0.475 |
| Metapath2vec | 0.720 | 0.729 | 0.907 | 0.914 |
|
| 0.134 | 0.436 |
| HeteSpaceyWalk | 0.750 | 0.759 | 0.905 | 0.911 | 0.888 | 0.893 | 0.154 | 0.442 |
| BHIN2vec | 0.750 | 0.759 | 0.905 | 0.911 | 0.890 | 0.893 | 0.153 | 0.416 |
| CoarSAS2vec |
|
|
|
| 0.909 | 0.917 |
|
|
| CoarSAS2hvec |
|
|
|
|
|
|
|
|
Results of community detection (NMI); the best and second-place results are highlighted in bold and italics, respectively.
| Method | ACM | DBLP | Aminer | Freebase |
|---|---|---|---|---|
| LINE | 0.371 | 0.711 | 0.371 | 0.007 |
| DGI | 0.419 | 0.683 | - | 0.011 |
| HeGAN | 0.421 | 0.720 | 0.498 | 0.021 |
| NSHE | 0.422 | 0.733 | 0.502 | 0.012 |
| DeepWalk | 0.430 | 0.720 | 0.485 | 0.021 |
| HIN2vec | 0.434 | 0.673 | 0.475 | 0.014 |
| Metapath2vec | 0.417 | 0.785 | 0.525 | 0.010 |
| HeteSpaceyWalk | 0.433 | 0.772 | 0.475 | 0.024 |
| BHIN2vec | 0.432 | 0.771 | 0.460 | 0.008 |
| CoarSAS2vec |
|
|
|
|
| CoarSAS2hvec |
|
|
|
|
Results of quantitative sample analysis; the best results are highlighted in bold.
| Method | ACM | DBLP | Aminer | Freebase | ||||
|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
|
| |
| Edge | - | 4.241 | - | 5.232 | - | 5.942 | - | 6.134 |
| HIN2vec | 3.912 × 10 | 4.070 | 1.126× 10 | 4.601 | 5.560× 10 | 5.37 | 0.072 | 5.487 |
| DeepWalk | 0.162 | 5.045 | 0.056 | 6.194 | 0.129 | 6.824 | 0.142 | 6.327 |
| Metapath2vec | 0.194 | 4.918 | 0.018 | 6.236 | 0.002 | 6.806 | 0.002 | 5.023 |
| HeteSpaceyWalk | 0.161 | 5.101 | 0.087 | 6.067 | 0.138 | 6.790 | 0.079 | 6.439 |
| BHIN2vec | 0.141 | 5.093 | 0.073 | 6.053 | 0.127 | 6.716 | 0.079 | 6.311 |
| CoarSAS2hvec | 0 |
| 0 |
| 0 |
| 0 |
|
Figure 3Parameter analysis of CoarSAS2hvec.
Community detection on ACM data set (NMI).
| Method | Original | 2hvec |
|---|---|---|
| Deepwalk | 0.430 | 0.381 |
| Metapath2vec | 0.417 | 0.409 |
| HeteSpaceyWalk | 0.433 | 0.362 |
| BHIN2vec | 0.432 | 0.397 |
Figure 4Scalability and convergency of CoarSAS2hvec.