Two Layer Walk: A Community-Aware Graph Embedding

He Yu, Jing Liu
12/17/2024
cs.SIcs.AI

No official code found. Best implementation: leonyuhe/TLWalk (0 stars, last commit 2025-02-24).

Abstract

Community structures are critical for understanding the mesoscopic organization of networks, bridging local and global patterns. While methods such as DeepWalk and node2vec capture local positional information through random walks, they fail to preserve community structures. Other approaches like modularized nonnegative matrix factorization and evolutionary algorithms address this gap but are computationally expensive and unsuitable for large-scale networks. To overcome these limitations, we propose Two Layer Walk (TLWalk), a novel graph embedding algorithm that incorporates hierarchical community structures. TLWalk balances intra- and inter-community relationships through a community-aware random walk mechanism without requiring additional parameters. Theoretical analysis demonstrates that TLWalk effectively mitigates locality bias. Experiments on benchmark datasets show that TLWalk outperforms state-of-the-art methods, achieving up to 3.2% accuracy gains for link prediction tasks. By encoding dense local and sparse global structures, TLWalk proves robust and scalable across diverse networks, offering an efficient solution for network analysis.

View on arXivView PDF

Code Implementations(1)

leonyuhe/TLWalkCommunity100%

A lightweight implementation of TLWalk: A Community-Aware Graph Embedding algorithm for capturing both local and global network structures effectively.

00PythonDec 18, 20241 years ago

Similar Papers

Cite this paper

@article{yu2024layer,
  title  = {Two Layer Walk: A Community-Aware Graph Embedding},
  author = {He Yu and Jing Liu},
  year   = {2024},
  eprint = {2412.12933},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.12933v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.12933.svg)](https://codeofpaper.com/paper/2412.12933)

Discussion