CoarSAS2hvec: Heterogeneous Information Network Embedding with Balanced Network Sampling

Ling Zhan, Tao Jia

TL;DR

Random-walk-based embedding methods for Heterogeneous Information Networks (HINs) often suffer from imbalanced sampling, where hub nodes dominate and sliding windows create redundant self-pairs. This paper introduces CoarSAS2hvec, a novel embedding method that uses self-avoiding short sequence sampling and network coarsening to capture richer, more balanced structural information. By combining this high-entropy sampling strategy with an optimized loss function, CoarSAS2hvec significantly outperforms existing state-of-the-art methods in node classification and community detection.

What Problem Does This Paper Address?

Network embedding aims to represent nodes as low-dimensional vectors while preserving their structural proximity. A popular approach uses random walks combined with a sliding window to sample "context" nodes, much like words in a sentence (e.g., Skip-Gram).

However, applying this to Heterogeneous Information Networks (HINs)—networks with diverse node and edge types—creates a major sampling imbalance. Because HINs often feature multipartite "star" structures, random walkers frequently revisit high-degree hub nodes. This leads to two distinct issues:

  1. Redundant "self-pairs": A node is frequently sampled as its own context within a sliding window.
  2. Context domination: Hub nodes are massively over-represented as context nodes, which artificially skews the perceived proximity between other nodes and dilutes second-order proximity measurements.

Methods

The authors propose CoarSAS2hvec, which consists of a novel sampling strategy and an optimized embedding loss function:

  • Self-Avoiding Short Sequence Sampling (SAS): Instead of generating long random walks with a sliding window, SAS generates multiple short sequences for each center node. The number of sequences is proportional to the node's degree, ensuring adequate local information capture. It explicitly omits self-pairs to reduce redundancy.
  • HIN Coarsening (CoarSAS): To prevent hub nodes from dominating the context samples, the network is iteratively "coarsened." The algorithm identifies the most frequently appearing context nodes of specific types, removes them, and randomly rewires their neighbors to preserve local community structure. Sampling is then performed across both the original and coarsened networks to balance context representation.
  • Optimized Loss Function: The standard Skip-Gram with Negative Sampling (SGNS) loss is upgraded. The authors introduce a pair-type embedding matrix that acts as a relation-type indicator, allowing the model to better leverage the semantic associations between different node types in the center-context pairs.

Datasets

The authors evaluated their method on four widely used real-world heterogeneous network datasets of varying scales:

  • ACM: A citation network (11k nodes) with papers, authors, and subjects.
  • DBLP: A bibliographic network (37k nodes) with authors, papers, conferences, and terms.
  • Aminer: A large-scale academic network (439k nodes) with authors, papers, conferences, and types.
  • Freebase: A subgraph of the Freebase knowledge graph (164k nodes) featuring 8 node types (books, films, locations, etc.) and 36 edge types.

Key Insights and Ideas

  • Information Entropy Predicts Quality: The authors use information entropy to quantify the "amount of information" in the sampled node pairs. Baseline methods (like DeepWalk or metapath2vec) generate samples where up to 20% are useless self-pairs, leading to low entropy. CoarSAS generates samples with the highest entropy, proving it captures a richer, more diverse representation of the network.
  • Sample Quality Unlocks Loss Function Gains: The proposed optimized loss function only works well when fed high-quality, balanced samples. When the authors applied their new loss function to samples generated by baseline methods, performance actually dropped.
  • Targeted Coarsening Acts Like a Meta-Path: Coarsening (removing and rewiring) specific node types rather than all node types yields the best results. Preserving certain node types emphasizes high-order relationships between them, functioning similarly to a manually defined meta-path but requiring less prior domain knowledge.

Key Results

  • Multi-label Node Classification: CoarSAS2hvec consistently outperformed 9 baseline methods (including GNN-based and random-walk-based models like NSHE, DGI, and metapath2vec) across all four datasets. For example, on the ACM dataset, it achieved a Macro-F1 score of 0.824 (compared to the next best, 0.805).
  • Community Detection: Evaluated using Normalized Mutual Information (NMI), CoarSAS2hvec again beat all baselines. On the DBLP dataset, it reached an NMI of 0.805, outperforming the second-best method (0.785).
  • Ablation Success: Even without the optimized loss function, the sampling strategy alone (CoarSAS2vec) outperformed most baselines, proving the sheer value of balanced, high-entropy sampling.
  • Scalability: The time complexity of the sampling process scales linearly with the number of nodes $\mathcal{O}(|V|)$, while coarsening and training scale at $\mathcal{O}(|V|\log|V|)$, making it computationally feasible for large networks.

Limitations and Future Work

  • Limitations: The method introduces several hyper-parameters (coarsening rate, number of coarsening steps, and which node types to target for removal) that require tuning for optimal performance. Additionally, on highly imbalanced datasets like Freebase, all methods (including CoarSAS2hvec) struggled to learn meaningful clusters for community detection, yielding NMI scores near zero.
  • Future Work: The authors suggest applying this embedding technique to analyze real-world systems characterized by HINs, such as the evolution of scientific disciplines or the career trajectories of scientists. They also plan to further investigate whether sample information entropy can be used as a universal predictor for the performance of network embedding algorithms.

Summary updated

BibTeX
@article{zhan2022coarsas,
  author = {Ling Zhan and Tao Jia},
  title = {{CoarSAS2hvec: Heterogeneous Information Network Embedding with Balanced Network Sampling}},
  journal = {Entropy},
  year = {2022},
  doi = {10.3390/e24020276},
}

Loading related content...

Figure