SDW2vec: learning structural representations of nodes in weighted networks

Shu Liu, Masaki Chujyo, Fujio ToriumiApplied Network Science 2025

TL;DR

SDW2vec is a novel node embedding framework designed to capture the "structural identity" of nodes in networks that are signed, directed, and weighted. By analyzing the distribution of link weights across multiple hops and using entropy-optimized binning, it maps nodes with similar functional roles to nearby points in a vector space, even if those nodes are far apart in the actual network.

What Problem Does This Paper Address?

In network analysis, there is a crucial distinction between proximity (nodes that are close to each other, like friends in a clique) and structure (nodes that perform similar roles, like "hubs" or "bridges," even if they are in different parts of the graph).

While many embedding methods (like DeepWalk) excel at capturing proximity, "structural embedding" is much harder. Existing structural methods, such as the popular struc2vec, were primarily designed for binary, unweighted networks. They struggle to account for the rich information found in real-world data, such as the strength of a connection (weight), its direction, or its sentiment (positive vs. negative signs). SDW2vec fills this gap by providing a mathematically rigorous way to incorporate these attributes into structural representations.

Methods

The authors propose a multi-stage pipeline that transforms raw network data into low-dimensional vectors:

  1. Weighted Degree Sequences: For every node, links are categorized into four channels: positive-outgoing, negative-outgoing, positive-incoming, and negative-incoming.
  2. Entropy-Optimized Binning: To handle continuous weights (like correlation coefficients), the authors use an "elbow method" based on Shannon entropy to discretize weights into bins. This preserves the most informative "pseudo-structures" while making the math computationally tractable.
  3. Structural Distance Calculation:
    • 0-hop: They use Jensen-Shannon (JS) divergence to compare the weight distributions of two nodes and a scale-difference function to account for nodes with similar patterns but different total degrees.
  4. Multi-hop: They use Dynamic Time Warping (DTW) to compare the structural sequences of neighborhoods as you move further away from the target nodes.
  5. Multi-layer Graph & Learning: These distances are used to build a multi-layer graph where layers represent different "hop" distances. The authors then apply random walks on this graph and use the Skip-gram (Word2vec) model to learn the final embeddings.

Datasets

The researchers evaluated SDW2vec on two fronts:

  • Toy Networks: Four synthetic networks (Star, Mesh, Ring, and Path) designed with specific structural roles to test if the embeddings could visually cluster similar roles.
  • Real-World Networks: 11 diverse datasets spanning social (e.g., advogato, moreno_sampson), biological (moreno_sheep, moreno_kangaroo), transportation (opsahl-usairport), and financial (soc-sign-bitcoinalpha) domains.

Key Insights and Ideas

  • Weights as Distributions: The core "aha moment" is treating a node's connections not just as a list of numbers, but as a probability distribution. This allows the model to recognize that a node with many weak links might be structurally equivalent to another node with many weak links elsewhere.
  • The Importance of Scale: The authors introduced Dscale to ensure that in scale-free networks, the model doesn't get "distracted" by the sheer volume of connections, allowing it to see the underlying pattern of those connections.
  • Beyond Binary: By splitting links into four channels (signed and directed), the model can distinguish between a "trusted leader" (many positive incoming links) and a "critic" (many negative outgoing links), which unweighted models would see as identical.

Key Results

  • Visual Interpretability: In toy networks, SDW2vec achieved significantly higher Silhouette scores than baselines, meaning it clustered structurally identical nodes (represented by colors in the paper's figures) much more cleanly.
  • Link Weight Prediction: SDW2vec outperformed state-of-the-art methods (including struc2vec, DeepWalk, and xNetMF) in 7 out of 11 real-world datasets.
  • Node Strength Prediction: It achieved the best performance in 6 out of 11 datasets, proving that the embeddings inherently preserve the original network's weight information.
  • Robustness: The model showed particular strength in signed networks like BitcoinAlpha, where capturing the "sign" of a relationship is critical for understanding node roles.

Limitations and Future Work

The authors identify weight discretization as a primary bottleneck. In the opsahl-usairport dataset, which has nearly 10,000 unique weight values, the default 10-bin approach led to significant information loss, causing SDW2vec to underperform compared to simpler proximity-based models.

Future directions include: * Developing more adaptive binning strategies that adjust to the complexity of the weight distribution automatically. * Reducing the computational complexity of the multi-layer graph construction to handle massive, billion-node networks. * Exploring "domain adaptation," where structural embeddings learned on one network (e.g., a social network in the US) can be used to infer roles in a different but structurally similar network (e.g., a social network in Japan).

Summary updated

BibTeX
@inproceedings{liu2025sdw,
  author = {Shu Liu and Masaki Chujyo and Fujio Toriumi},
  title = {{SDW2vec: learning structural representations of nodes in weighted networks}},
  booktitle = {Applied Network Science},
  year = {2025},
  doi = {10.1007/s41109-025-00722-x},
}
Figure