struc2gauss: Structure Preserving Network Embedding via Gaussian Embedding

Yulong Pei, Xin Du, Jianpeng Zhang, George H. L. Fletcher, Mykola PechenizkiyarXiv 2018

TL;DR

struc2gauss is a novel network embedding framework that maps nodes to Gaussian distributions rather than traditional point vectors. By prioritizing global structural roles over local community proximity, it achieves state-of-the-art performance in role discovery while explicitly modeling the uncertainty inherent in noisy or incomplete network data.

What Problem Does This Paper Address?

Most existing network embedding (NE) methods, like DeepWalk or node2vec, rely on random walks to capture "local" structural information. This approach excels at identifying communities—groups of nodes that are densely connected to one another. However, it often fails to capture structural roles—global patterns where nodes perform similar functions (e.g., being a "hub" or a "bridge") despite being far apart in the network.

Fig. 1: An example of ten nodes belonging to (1) three groups (different colors indicate different groups) based on global structural information, i.e., the struc- tural roles and (2) two groups (groups are shown by the dashed ellipses) based on local structural information, i.e., the communities. For example, nodes 0, 1, 4, 5 and 8 belong to the same group Community 1 based on local structural perspective because they have more internal connections. Node 0 and 2 are far from each other, but they are in the same group based on global structural perspective.

Furthermore, standard NE methods represent nodes as deterministic points in a low-dimensional space. This "point vector" approach ignores uncertainty. In real-world networks, data is often noisy or incomplete; a deterministic mapping cannot convey how much confidence the model has in a node's specific representation.

Methods

The authors propose struc2gauss, a three-stage framework:

  1. Structural Similarity Calculation: Instead of relying on local connectivity, the model uses a global metric—specifically RoleSim—to measure how structurally similar two nodes are, regardless of their distance.
  2. Training Set Sampling: Based on the similarity matrix, the model generates "positive" pairs (structurally similar nodes) and "negative" pairs (dissimilar nodes).
  3. Gaussian Embedding: Nodes are mapped into the space of Gaussian distributions $\mathcal{N}(\mu, \Sigma)$. The mean ($\mu$) represents the node's position (its role), while the covariance ($\Sigma$) represents its uncertainty.

The model is trained using a max-margin ranking loss that pushes the energy (similarity) of positive pairs above that of negative pairs. The authors explore two different energy functions for comparing distributions: Expected Likelihood (EL) and Kullback-Leibler (KL) Divergence.

Datasets

The researchers evaluated struc2gauss on two types of datasets:

  • Labeled Networks (Air-traffic): Brazilian, European, and USA air-traffic networks where labels represent activity levels (structural roles).
  • Unlabeled Networks: Real-world networks from various domains including Arxiv GR-QC (citation), Advogato, Hamsterster, Anybeat, and Epinion (social networks).

These were compared against a wide array of baselines, ranging from community-focused methods (DeepWalk, LINE) to role-focused ones (struc2vec, DRNE).

Table 1: A brief summary of different NE methods. Note that (1) we only list NE methods for homogeneous networks without attributes, and (2) node2vec (Grover and Leskovec, 2016) aims to capture both local and global structure information but walk-based sampling strategy does not effectively capture global structure information, as shown in our experiments in Section 5.

Key Insights and Ideas

  • Roles $\neq$ Communities: The paper reinforces that being "near" a node is not the same as being "like" a node. By using RoleSim, struc2gauss can identify that two bridge nodes in different countries are more similar than a bridge node and its immediate leaf-node neighbor.
  • Variance as a Noise Detector: A key "aha moment" is the demonstration that the learned variance ($\Sigma$) correlates with data quality. When the authors intentionally added noisy edges or removed existing ones, the average variance of the node embeddings increased, proving the model successfully captures data uncertainty.
  • Spherical vs. Diagonal Covariance: The authors found that spherical covariance (where all diagonal elements are equal) often outperformed diagonal covariance in clustering tasks. They suggest this is because spherical constraints limit the "power" of the covariance matrix, forcing the model to learn more discriminative and robust mean vectors ($\mu$).

Key Results

  • Clustering Performance: In air-traffic networks, struc2gauss achieved significantly higher Normalized Mutual Information (NMI) scores than baselines. For example, on the Brazil-air dataset, it reached an NMI of ~0.56, nearly doubling the performance of node2vec (~0.25).
  • Classification Accuracy: The model consistently outperformed or matched state-of-the-art methods like DRNE and GraphWave in structural role classification across different training ratios.
  • Robustness: Sensitivity analysis showed that struc2gauss is relatively stable across different hyperparameters (like embedding dimensions and sample sizes), making it easier to deploy in practice compared to methods that require heavy tuning.

Limitations and Future Work

The primary bottleneck of the current framework is the computational complexity of calculating global similarity metrics like RoleSim, which can be expensive for very large graphs. While the authors introduced a "Fast struc2gauss" heuristic (setting similarity to zero for nodes with vastly different degrees), scaling to massive, billion-node networks remains a challenge.

Future work suggested by the authors includes:

  • Developing even faster similarity measures to improve scalability.
  • Investigating alternative strategies to model global structural information beyond pairwise similarity.
  • Extending the framework to handle dynamic and temporal networks where roles might change over time.

Summary updated

BibTeX
@misc{pei2018struc,
  author = {Yulong Pei and Xin Du and Jianpeng Zhang and George H. L. Fletcher and Mykola Pechenizkiy},
  title = {{struc2gauss: Structure Preserving Network Embedding via Gaussian Embedding}},
  year = {2018},
  eprint = {1805.10043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.10043},
}
Figure