[Paper Review] Walk this Way! Entity Walks and Property Walks for RDF2vec
This paper introduces two novel walk strategies—e-walks (entity walks) and p-walks (property walks)—for RDF2vec to disentangle structural similarity from contextual relatedness in knowledge graph embeddings. By isolating entity sequences or predicates around a focus entity, the method enables embeddings that better capture similarity (p-walks) or relatedness (e-walks), with e-walks outperforming others in entity relatedness tasks and p-walks excelling in document similarity, especially when combined with order-aware training.
RDF2vec is a knowledge graph embedding mechanism which first extracts sequences from knowledge graphs by performing random walks, then feeds those into the word embedding algorithm word2vec for computing vector representations for entities. In this poster, we introduce two new flavors of walk extraction coined e-walks and p-walks, which put an emphasis on the structure or the neighborhood of an entity respectively, and thereby allow for creating embeddings which focus on similarity or relatedness. By combining the walk strategies with order-aware and classic RDF2vec, as well as CBOW and skip-gram word2vec embeddings, we conduct a preliminary evaluation with a total of 12 RDF2vec variants.
Motivation & Objective
- To address the limitation of RDF2vec in conflating similarity and relatedness by introducing specialized walk strategies.
- To enable embeddings that emphasize either structural similarity (p-walks) or contextual relatedness (e-walks).
- To evaluate the performance of these walk variants in combination with order-aware and classic word2vec training.
- To determine whether e-walks and p-walks can produce embeddings that better reflect specific semantic relationships.
Proposed method
- e-walks are sequences of entities from random walks, preserving only the focus entity and its neighbors, emphasizing contextual relatedness.
- p-walks are sequences of predicates (relations) connected to the focus entity, emphasizing structural similarity.
- Walks are extracted using a fixed depth of 4 hops, generating 500 walks per entity, with sequences fed into CBOW or skip-gram word2vec models.
- Both classic and order-aware word2vec variants are used, with embeddings trained in 200 dimensions.
- The framework jRDF2Vec is used for implementation, and all models are publicly available via KGvec2go.
- Evaluation uses a standardized benchmark across 20 tasks, including classification, clustering, regression, analogies, entity relatedness, and document similarity.
Experimental results
Research questions
- RQ1Can e-walks and p-walks produce embeddings that better reflect relatedness and similarity, respectively, compared to classic RDF2vec?
- RQ2Does combining e-walks or p-walks with order-aware word2vec improve performance on downstream tasks?
- RQ3In which tasks do e-walks outperform classic walks, and in which do p-walks show superior performance?
- RQ4How do the different walk strategies compare in semantic analogy tasks that require both similarity and relatedness?
Key findings
- e-RDF2vec achieved the best performance in entity relatedness tasks, with a Kendall Tau of 0.832, significantly outperforming classic RDF2vec (0.747).
- p-RDF2vec achieved the highest harmonic mean score (0.382) in document similarity, indicating stronger capture of structural similarity.
- For semantic analogies, classic RDF2vec with skip-gram and order-aware training performed best (ACC 0.905), while e-walks and p-walks underperformed, as expected due to their focus on one dimension.
- Order-aware training consistently outperformed classic training across all walk types, with the effect being slightly stronger for e-walks and p-walks than for classic RDF2vec.
- Skip-gram variants generally outperformed CBOW across all configurations, especially in relatedness and clustering tasks.
- In 12 out of 20 tasks, classic RDF2vec achieved the best result, but e-walks and p-walks showed strong specialization in relatedness and structural similarity tasks, respectively.
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.