struc2vec is a framework to generate node vector representations on a graph that preserve the structural identity.[1] In contrast to node2vec, that optimizes node embeddings so that nearby nodes in the graph have similar embedding, struc2vec captures the roles of nodes in a graph, even if structurally similar nodes are far apart in the graph. It learns low-dimensional representations for nodes in a graph, generating random walks through a constructed multi-layer graph starting at each graph node. It is useful for machine learning applications where the downstream application is more related with the structural equivalence of the nodes (e.g., it can be used to detect nodes in networks with similar functions, such as interns in the social network of a corporation). struc2vec identifies nodes that play a similar role based solely on the structure of the graph, for example computing the structural identity of individuals in social networks.[2] In particular, struc2vec employs a degree-based method to measure the pairwise structural role similarity, which is then adopted to build the multi-layer graph. Moreover, the distance between the latent representation of nodes is strongly correlated to their structural similarity. The framework contains three optimizations: reducing the length of degree sequences considered, reducing the number of pairwise similarity calculations, and reducing the number of layers in the generated graph.

struc2vec follows the intuition that random walks through a graph can be treated as sentences in a corpus. Each node in a graph is treated as an individual word, and short random walk is treated as a sentence. In its final phase, the algorithm employs Gensim's word2vec algorithm to learn embeddings based on biased random walks.[3] Sequences of nodes are fed into a skip-gram or continuous bag of words model and traditional machine-learning techniques for classification can be used.[4] It is considered a useful framework to learn node embeddings based on structural equivalence.

References

edit
  1. ^ Hamilton, Willian L.; Ying, Rex; Leskovec, Jure (2017). "Representation learning on graphs: Methods and applications". IEEE Data Engineering Bulletin: 1. arXiv:1709.05584.
  2. ^ "Deep Learning on Graphs, Chapter 4 Graph Embedding" (PDF).
  3. ^ Colyer, Adrian (2017). "Struc2vec: learning node representations from structural identity". The Morning Paper.
  4. ^ Ribeiro, Leonardo F. R.; Savarese, Pedro H. P.; Figueiredo, Daniel R. (2017). "struc2vec: Learning Node Representations from Structural Identity". Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. Vol. 2017. pp. 385–394. arXiv:1704.03165. doi:10.1145/3097983.3098061. ISBN 9781450348874. S2CID 3948366.