Bridging the Gap between Community and Node Representations: Graph Embedding via Community Detection

Artem Lutov, Dingqi Yang, Philippe Cudré-MaurouxarXiv 2019

TL;DR

Researchers have developed DAOR, a novel graph embedding technique that bridges the gap between community detection and node representation. By leveraging hierarchical clustering, DAOR produces interpretable, metric-robust embeddings that are orders of magnitude faster to generate than current state-of-the-art methods—all without requiring manual parameter tuning.

What Problem Does This Paper Address?

Graph embedding (GE) is the process of turning complex network structures into low-dimensional vectors that machines can easily process for tasks like link prediction or node classification. However, existing GE methods face a "triple threat" of challenges:

  1. Computational Cost: Techniques like DeepWalk or Node2vec rely on sampling massive numbers of node pairs, while others require factorizing enormous matrices. Both are resource-heavy.
  2. Hyperparameter Hell: Most methods require manual tuning of parameters like walk length, window size, or the number of dimensions. This makes them hard to use in practice.
  3. The "Black Box" Problem: Standard embeddings are typically uninterpretable; a single dimension in a vector doesn't correspond to a recognizable feature. Furthermore, they are often locked into a specific metric space (usually cosine similarity), failing if you try to use them with other measures like Hamming distance.

Methods

The authors propose DAOR (Graph Embedding via Community Detection), which treats communities not just as an output, but as the foundation for embeddings.

The process works in three main stages:

  • Hierarchical Multi-resolution Clustering: DAOR builds upon DAOC, a deterministic, parameter-free clustering algorithm. The authors extended DAOC to be "multi-resolution," meaning it looks for communities at various scales (from tiny clusters to large macro-structures) by dynamically varying a resolution parameter ($\gamma$).
  • Feature Extraction: Instead of using every single cluster, DAOR identifies "salient clusters"—those that represent the core structure of the graph. These salient clusters become the "features" or dimensions of the embedding space.
  • Quantifying Membership: A node’s embedding vector is generated by calculating its degree of belonging to each salient cluster. This is done efficiently by aggregating the weights of a node's links to other members of that cluster.

![Fig.

  1. Transformation of the hierarchy of overlapping clusters into d-dimensional node embeddings.](/figures/art_791b5f1daa6b4c0d8c46ab47f0f72d5a)

Datasets

The researchers evaluated DAOR against ten state-of-the-art baselines using five diverse, widely-used datasets:

  • BlogCatalog: A social network of bloggers categorized by interests.
  • PPI (Protein-Protein Interactions): A biological network where labels represent gene sets.
  • Wikipedia: A co-occurrence network of words with part-of-speech tags.
  • DBLP: A collaboration network of authors labeled by publication venues.
  • YouTube: A massive social network used primarily to test the efficiency and scalability of the algorithms.

Key Insights and Ideas

  • Communities are Proximity: The core "aha!" moment is that community detection intrinsically captures node proximity. If two nodes are in the same cluster, they are structurally "close." DAOR simply formalizes this into a vector space.
  • Interpretability by Design: Because each dimension in a DAOR embedding corresponds to a specific salient community, the vectors are semantically meaningful. You can actually see why a node is represented a certain way.
  • Metric Robustness: Unlike many methods optimized solely for cosine similarity, DAOR embeddings are "metric-robust." They perform consistently well across Jaccard, Hamming, and Cosine spaces.
  • Parameter-Free Efficiency: By using a deterministic clustering approach, DAOR eliminates the need for stochastic optimization, leading to massive speedups without sacrificing accuracy.

Key Results

  • Massive Speedup: DAOR is orders of magnitude faster than its competitors. On the YouTube dataset (over 1 million nodes), DAOR generated embeddings in just 57.1 seconds. In contrast, LINE took over 8 hours, and DeepWalk took more than 8 days (Table VI).
  • Competitive Accuracy: Despite being parameter-free, DAOR achieved top-3 results in node classification and link prediction across multiple datasets, often outperforming tuned versions of DeepWalk and Node2vec.
  • Scalability: The algorithm exhibits near-linear scaling as the number of links in the graph increases, making it highly suitable for "big data" applications.
  • Robustness: DAOR showed the best "worst-case" performance across different metric spaces, proving it isn't reliant on a specific mathematical distance measure to be effective.

Limitations and Future Work

While DAOR is highly efficient, the authors note a few areas for growth:

  • Dimension Recommendation: Currently, the user can specify the number of dimensions ($d$), but the authors want to develop a way to automatically recommend the optimal number of dimensions based on the graph's statistical properties.
  • Deep Dive into Interpretability: While the dimensions are theoretically interpretable, the authors plan to conduct a more comprehensive study to quantify exactly how useful this interpretability is for end-users.
  • Algorithm Integration: The DAOR framework is modular; the authors hope to integrate other state-of-the-art community detection algorithms to see if they can further push the performance boundaries.

Summary updated

BibTeX
@misc{lutov2019bridging,
  author = {Artem Lutov and Dingqi Yang and Philippe Cudré-Mauroux},
  title = {{Bridging the Gap between Community and Node Representations: Graph Embedding via Community Detection}},
  year = {2019},
  eprint = {1912.08808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.08808},
}
Figure