[Paper Review] Residual2Vec: Debiasing graph embedding with random graphs
Residual2Vec is a graph embedding framework that debiases representations by modeling structural biases—such as degree and community structure—using null random graphs. By leveraging the implicit debiasing of skip-gram negative sampling, it improves link prediction, clustering, and node attribute prediction, revealing salient graph structures like journal impact factors and subject categories.
Graph embedding maps a graph into a convenient vector-space representation for graph analysis and machine learning applications. Many graph embedding methods hinge on a sampling of context nodes based on random walks. However, random walks can be a biased sampler due to the structural properties of graphs. Most notably, random walks are biased by the degree of each node, where a node is sampled proportionally to its degree. The implication of such biases has not been clear, particularly in the context of graph representation learning. Here, we investigate the impact of the random walks' bias on graph embedding and propose residual2vec, a general graph embedding method that can debias various structural biases in graphs by using random graphs. We demonstrate that this debiasing not only improves link prediction and clustering performance but also allows us to explicitly model salient structural properties in graph embedding.
Motivation & Objective
- To investigate how random walk sampling bias—particularly degree bias—impacts graph representation learning.
- To address the lack of explicit control over structural biases in existing graph embedding methods.
- To develop a generalizable framework that can selectively remove systematic biases in graph embeddings.
- To demonstrate that debiasing enhances the capture of meaningful structural features, such as journal impact and subject categories.
- To provide a unifying framework where existing random-walk-based graph embedding methods can be interpreted as special cases with specific null models.
Proposed method
- Residual2Vec constructs a null random graph model that captures the expected structural distribution under a given bias (e.g., degree or community structure).
- It generates synthetic random walk trajectories from the null model to estimate the expected co-occurrence of nodes under that bias.
- The method computes a residual embedding by subtracting the expected co-occurrence from the actual co-occurrence in the real graph, effectively removing the bias.
- The residual embeddings are then trained using skip-gram negative sampling (SGNS), which inherently suppresses degree bias due to its optimization dynamics.
- The framework supports any random graph model as a null model, enabling selective debiasing of various structural properties.
- It integrates prior knowledge about graph structure by explicitly modeling expected patterns, allowing for transparent and interpretable debiasing.
Experimental results
Research questions
- RQ1How does the bias in random walks—specifically degree bias—impact the quality of graph embeddings?
- RQ2Can the built-in debiasing property of SGNS be generalized to remove other structural biases beyond degree?
- RQ3To what extent does debiasing improve downstream tasks such as link prediction and community detection?
- RQ4Can removing structural biases reveal latent, meaningful graph features such as journal impact factors or subject categories?
- RQ5How does residual2vec compare to existing graph embedding methods in capturing salient structural properties?
Key findings
- Residual2Vec significantly improves link prediction and clustering performance compared to baseline graph embedding methods.
- On a citation graph of 260,000 journals, residual2vec achieved the highest R²-score for predicting journal impact factors and subject categories.
- The r2v-dcSBM variant outperformed r2v-config in predicting journal subject categories, indicating effective removal of temporal biases.
- r2v-dcSBM achieved the smallest R²-score for degree and year attributes, confirming successful debiasing of structural and temporal features.
- Residual2Vec revealed that random walk bias can overshadow meaningful structural signals, such as journal impact and subject, in standard embeddings.
- The method demonstrates that explicit debiasing leads to more interpretable and semantically meaningful graph representations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.