[Paper Review] Vertex-Context Sampling for Weighted Network Embedding
This paper proposes a weighted vertex-context sampling (VCS) framework that enhances network embedding by replacing uniform sampling with weighted, context-aware sampling to preserve edge weights and improve representation quality. The method uses a sequential vertex-context graph structure for constant-time sampling, enabling efficient, low-memory training that outperforms uniform sampling and state-of-the-art methods on similarity search, classification, and recommendation tasks.
In recent years, network embedding methods have garnered increasing attention because of their effectiveness in various information retrieval tasks. The goal is to learn low-dimensional representations of vertexes in an information network and simultaneously capture and preserve the network structure. Critical to the performance of a network embedding method is how the edges/vertexes of the network is sampled for the learning process. Many existing methods adopt a uniform sampling method to reduce learning complexity, but when the network is non-uniform (i.e. a weighted network) such uniform sampling incurs information loss. The goal of this paper is to present a generalized vertex sampling framework that works seamlessly with most existing network embedding methods to support weighted instead of uniform vertex/edge sampling. For efficiency, we propose a delicate sequential vertex-to-context graph data structure, such that sampling a training pair for learning takes only constant time. For scalability and memory efficiency, we design the graph data structure in a way that keeps space consumption low without requiring additional space. In addition to implementing existing network embedding methods, the proposed framework can be used to implement extensions that feature high-order proximity modeling and weighted relation modeling. Experiments conducted on three datasets, including a commercial large-scale one, verify the effectiveness and efficiency of the proposed weighted network embedding methods on a variety of tasks, including word similarity search, multi-label classification, and item recommendation.
Motivation & Objective
- Address the limitation of uniform sampling in weighted networks, which ignores edge weight information and degrades representation quality.
- Develop a scalable and memory-efficient sampling framework compatible with existing network embedding methods.
- Enable high-order proximity and weighted relation modeling within a unified sampling framework.
- Achieve both high efficiency (constant-time sampling) and low memory usage without pre-computation or large data structures.
- Demonstrate superior performance on real-world and large-scale datasets across multiple downstream tasks.
Proposed method
- Introduce a sequential vertex-context graph data structure that stores connections in a compact, sequential format to enable O(1) sampling of training pairs.
- Design a weighted vertex-context sampling function that prioritizes stronger edges based on edge weights, replacing uniform sampling.
- Decompose the network into sub-networks based on vertex characteristics to enable efficient, localized sampling.
- Integrate the VCS framework with existing network embedding models (e.g., LINE, DeepWalk, node2vec) without modifying their core optimization procedures.
- Support extensions for high-order proximity and weighted relation modeling by leveraging the sampling framework’s flexibility.
- Enable on-the-fly sampling and training, avoiding pre-computation of random walks or large intermediate data structures.
Experimental results
Research questions
- RQ1Can a weighted sampling strategy improve network embedding performance compared to uniform sampling in weighted networks?
- RQ2Can a sampling framework be designed to achieve constant-time pair sampling while maintaining low memory usage?
- RQ3Does the proposed framework enable effective modeling of high-order proximity and weighted relations in network embeddings?
- RQ4How does the VCS-based method scale in terms of memory and execution time compared to existing methods on large-scale networks?
- RQ5To what extent does the weighted sampling improve performance on real-world tasks like recommendation and similarity search?
Key findings
- The proposed VCS-based network embedding method achieved a 14.5% mAP on the KKBOX on-line recommendation task, significantly outperforming DeepWalk (6.8%) and uniform VCS-HPE (8.2%).
- On the Movielens-20M dataset, the non-uniform VCS-HPE method surpassed DeepWalk in movie-movie recommendation, especially when rare but informative items were considered.
- The memory usage of the VCS-based approach was comparable to LINE and DeepWalk (with single walk time), and less than 1/10th of node2vec’s edge-edge graph structure.
- The proposed method achieved a 2x speedup over the original LINE algorithm when using multi-threading, despite LINE being natively optimized for scalability.
- The performance gap between uniform and non-uniform VCS-HPE confirmed the effectiveness of weighted sampling, particularly in capturing user preferences via rating-based weights.
- The framework successfully enabled high-order proximity and weighted relation modeling without increasing computational or memory overhead.
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.