Topic-aware latent models for representation learning on networks

Abdulkadir Çelikkanat, Fragkiskos D. Malliaros · DOI

TL;DR

The Topical Node Embeddings (TNE) framework enhances traditional network representation learning by integrating latent community information into node vectors. By treating random walks as "documents" and communities as "topics," TNE captures both local connectivity and global structural patterns, consistently outperforming baseline models like Node2Vec and DeepWalk in node classification and link prediction tasks.

What Problem Does This Paper Address?

Network Representation Learning (NRL) aims to map nodes in a graph to low-dimensional vectors while preserving the graph's structural information. Most popular methods, such as DeepWalk and Node2Vec, rely on random walks and the Skip-Gram architecture borrowed from Natural Language Processing (NLP).

While these methods are excellent at capturing local connectivity (immediate neighbors), they often fail to capture global structural properties, specifically community structures. In real-world networks, nodes belong to functional groups or clusters. The authors argue that ignoring this "topical" context limits the predictive power of the resulting embeddings.

Methods

The authors propose TNE, a generic framework that combines standard node embeddings with "topic-aware" representations. The process follows four main steps as illustrated in the pipeline below:

The TNE framework pipeline: (a) Input Network, (b) Random Walk Generation, (c) Latent Community Assignment, and (d) Learning Enriched Representations.
  1. Random Walk Generation: Perform biased random walks to transform the graph into a collection of node sequences.
  2. Node Embedding Learning: Use the Skip-Gram model to learn initial node vectors based on local context.
  3. Topic (Community) Learning: The authors explore four different ways to assign nodes to latent communities:
  4. TNE-Glda: Applies Latent Dirichlet Allocation (LDA) to the random walks, treating each walk as a document.
  5. TNE-Ghmm: Uses a Hidden Markov Model (HMM) to capture transitions between communities.
  6. TNE-Louvain: Uses the classic Louvain modularity maximization algorithm.
  7. TNE-BigClam: Uses a model designed for overlapping communities.
  8. Concatenation: The final representation of a node is the concatenation of its standard embedding and its "expected topic vector" (a weighted sum of community embeddings).

To capture these latent communities, the framework utilizes generative models like GLDA and GHMM to model the underlying structure of the random walks.

Plate notation for the (a) GLDA and (b) GHMM generative models used to identify latent community structures within the TNE framework.

Datasets and Evaluation

The model was evaluated on seven diverse real-world networks, including citation networks (CiteSeer, Cora), collaboration networks (DBLP, AstroPh, HepTh), social networks (Facebook), and peer-to-peer networks (Gnutella). Controlled experiments were also conducted on Erdős-Rényi and Stochastic Block Model (SBM) graphs.

Key Insights and Results

  • The NLP Analogy: The core innovation is mapping NLP concepts to Graph Theory: Words → Nodes, Sentences → Random Walks, and Topics → Communities.
  • Global vs. Local Balance: Node embeddings alone are insufficient. Adding a community-based "semantic" layer allows the model to differentiate between nodes that look similar locally but belong to different functional groups. Sensitivity analysis showed that a balanced split (e.g., 96 dimensions for nodes, 32 for topics) yielded the best results.
  • Performance: TNE variants outperformed baselines across almost all tasks. On CiteSeer, TNE-Louvain achieved a Micro-F1 of ~0.638 compared to Node2Vec's ~0.599. In link prediction on the Cora dataset, TNE-Ghmm reached an AUC of 0.806, significantly higher than DeepWalk (0.739) and Node2Vec (0.757).
  • Scalability: While generative models like Glda and Ghmm are computationally heavier, the TNE-Louvain variant proved to be highly scalable for large networks.

Limitations and Future Work

The performance of TNE is sensitive to hyperparameter tuning, specifically the number of topics ($K$) and the embedding dimensions. Future research directions include extending TNE to utilize hierarchical community structures and investigating the robustness of these representations in dynamic graphs where communities shift over time.

Summary updated

BibTeX
@article{celikkanat2021topic,
  author = {Abdulkadir Çelikkanat and Fragkiskos D. Malliaros},
  title = {{Topic-aware latent models for representation learning on networks}},
  journal = {Pattern Recognition Letters},
  year = {2021},
  doi = {10.1016/j.patrec.2021.01.006},
}
Figure