LASAGNE: Locality and Structure Aware Graph Node Embedding

Evgheniy Faerman, Felix Borutta, Kimon Fountoulakis, Michael W. Mahoney

TL;DR

This paper introduces LASAGNE, a novel graph node embedding method that addresses the limitations of existing random walk-based approaches, particularly on "poorly-structured" graphs. By leveraging Approximate Personalized PageRank (APPR) to focus on local neighborhoods, LASAGNE generates more meaningful embeddings, leading to significant improvements in downstream tasks like multi-label classification.

What Problem Does This Paper Address?

Learning vector representations (embeddings) for nodes in a graph is crucial for various machine learning tasks like link prediction and classification. Many popular methods, such as DeepWalk and node2vec, rely on random walks to explore a node's neighborhood and then use natural language processing techniques to learn embeddings. However, the authors observe that the effectiveness of these methods is highly dependent on the graph's structural properties. Specifically, on large graphs with "flat" Network Community Profiles (NCPs) – often found in real-world social and information networks – random walks tend to explore too broadly, mixing in information from dissimilar nodes. This results in lower-quality embeddings that are less useful for downstream tasks. The paper aims to overcome this by developing a method that more precisely captures local neighborhood structure, especially in these challenging graph types.

Methods

LASAGNE is an unsupervised algorithm that consists of two main steps:

  1. Approximate Personalized PageRank (APPR) Computation: Instead of global random walks, LASAGNE uses APPR to compute a localized "importance" score for nodes relative to a specific "seed" node. This is achieved by adapting the "push" algorithm, which efficiently propagates probability mass locally. Two key modifications are made to the standard APPR:
  2. Seed Node Inclusion: The seed node itself is considered in its APPR vector, allowing it to be more closely related to nodes that have it as a neighbor.
  3. Stopping Criterion: The algorithm stops when the probability mass moved to neighbors becomes insignificant, ensuring that only truly relevant local neighbors are considered.
  4. Embedding Learning: The computed APPR vectors are then used to generate training examples. For each seed node, neighbor nodes are sampled based on their probability in the APPR vector. This sampling strategy, using an alias method, allows for efficient and controlled generation of high-quality training data. The embeddings are learned using a Skip-gram-like model, similar to word2vec, where the goal is to maximize the probability of a neighbor node given the seed node.

Datasets

The paper evaluates LASAGNE on four real-world datasets:

  • PPI (Protein-Protein Interactions): A biological network.
  • BlogCatalog: A social network.
  • IMDb Germany: An artificial dataset derived from movie data, representing actors and their genre collaborations.
  • Flickr: A large social network.

These datasets were chosen to represent diverse graph structures, including those with flat and upward-sloping NCPs, and varying k-core properties. The paper also introduces a "MoreRealisticMethod" for evaluation, which uses stratified cross-validation and a 50% probability threshold for labeling, aiming to better reflect real-world scenarios compared to previous evaluation methods.

Key Insights and Ideas

  • The "Curse" of Flat NCPs: The paper highlights that large graphs with flat NCPs (often expander-like) pose a significant challenge for traditional random walk-based embeddings. The broad exploration of random walks in these graphs dilutes local information, leading to suboptimal embeddings.
  • APPR as a Localizer: Approximate Personalized PageRank is identified as a powerful tool for precisely engineering local neighborhood information into embeddings. By focusing on the stationary distribution from a specific node's perspective, it can better capture relevant local structure.
  • Adaptability is Key: LASAGNE's strength lies in its ability to adapt to the local graph structure. It can effectively handle graphs with varying degrees of "structuredness," performing exceptionally well on poorly-structured graphs while remaining competitive on well-structured ones.
  • Beyond Fixed Hop Distances: Unlike methods that rely on fixed hop distances or global random walks, LASAGNE's APPR-based approach allows for a more nuanced selection of neighbors, prioritizing those with higher relevance.

Key Results

  • Multi-label Classification: LASAGNE significantly outperforms state-of-the-art methods (DeepWalk, node2vec, GraRep) on multi-label classification tasks, especially for graphs with flat NCPs and deep k-cores (e.g., Flickr, BlogCatalog). For instance, on the BlogCatalog dataset, LASAGNE improves the best competitor by approximately 23%.
  • Comparable Performance: On graphs with upward-sloping NCPs (e.g., IMDb Germany), LASAGNE shows comparable performance to existing methods.
  • Link Prediction: LASAGNE achieves competitive results for link prediction tasks, sometimes even outperforming random walk-based methods (e.g., on BlogCatalog).
  • Improved Locality: Figure 5 demonstrates that LASAGNE effectively adapts to different node degrees and graph densities, capturing local neighborhoods more accurately than node2vec.
  • Balanced Training Data: LASAGNE allows for control over the number of training examples per node, preventing the underrepresentation of low-degree nodes that plagues traditional random walk methods (Figure 8).

Limitations and Future Work

  • Parameter Tuning: While LASAGNE shows strong performance, the paper notes that automating the averaging of APPR vectors over different locality parameters (like the teleportation parameter $\alpha$) would be beneficial for a more automated tool.
  • Exploratory Tool: The authors position LASAGNE as primarily an "exploratory tool," suggesting that further work might be needed to fully automate its application in production environments.
  • GraRep Scalability: The paper mentions that GraRep, a strong competitor, could not be run on larger graphs due to out-of-memory errors, highlighting the scalability challenges of some existing methods.

Summary updated

BibTeX
@inproceedings{faerman2018lasagne,
  author = {Evgheniy Faerman and Felix Borutta and Kimon Fountoulakis and Michael W. Mahoney},
  title = {{LASAGNE: Locality and Structure Aware Graph Node Embedding}},
  booktitle = {WI},
  year = {2018},
  url = {https://openreview.net/forum?id=SBlbEdz6kW9},
}
Figure