Skip to main content
QUICK REVIEW

[Paper Review] Semantic Triple Encoder for Fast Open-Set Link Prediction.

Bo Wang, Tao Shen|arXiv (Cornell University)|Apr 30, 2020
Advanced Graph Neural NetworksComputer Science55 references5 citations
TL;DR

This paper proposes a semantic triple encoder that improves open-set link prediction by modeling contextual semantics of entities and relations via a Siamese-like Transformer architecture. By splitting triples into head+relation and tail entity contexts, it achieves state-of-the-art performance with up to two orders of magnitude lower inference cost than prior context-based methods.

ABSTRACT

We improve both the open-set generalization and efficiency of link prediction on knowledge graphs by leveraging the contexts of entities and relations in a novel semantic triple encoder. Most previous methods, e.g., translation-based and GCN-based embedding approaches, were built upon graph embedding models. They simply treat the entities/relations as a closed set of graph nodes regardless of their context semantics, which however cannot provide critical information for the generalization to unseen entities/relations. In this paper, we partition each graph triple and develop a novel context-based encoder that separately maps each part and its context into a latent semantic space. We train this semantic triple encoder by optimizing two objectives specifically designed for link prediction. In particular, (1) We split each triple into two parts, i.e., i) head entity plus relation and ii) tail entity, process both contexts separately by a Transformer encoder, and combine the encoding outputs to derive the prediction. This Siamese-like architecture avoids the combinatorial explosion of candidate triples and significantly improves the efficiency, especially during inference; (2) We cover the contextualized semantics of the triples in the encoder so it can handle unseen entities during inference, which promisingly improves the generalization ability; (3) We train the model by optimizing two complementary objectives defined on the triple, i.e., classification and contrastive losses, for natural and reliable ranking scores during inference. In experiments, we achieve the state-of-the-art or competitive performance on three popular link prediction benchmarks. In addition, we empirically reduce the inference costs by one or two orders of magnitude compared to a recent context-based encoding approach and meanwhile keep a superior quality of prediction.

Motivation & Objective

  • Address the limitation of existing graph embedding models that treat entities and relations as a closed set, ignoring contextual semantics crucial for generalization.
  • Improve generalization to unseen entities and relations in open-world knowledge graphs by encoding contextual semantics of triples.
  • Enhance inference efficiency by avoiding combinatorial explosion of candidate triples through a Siamese encoder design.
  • Optimize the model using dual objectives—classification and contrastive loss—for robust and reliable ranking scores in link prediction.

Proposed method

  • Partition each triple into two parts: (i) head entity and relation, and (ii) tail entity, and encode each part separately using a Transformer encoder.
  • Employ a Siamese-like architecture where both parts are encoded independently and their representations are concatenated for final prediction.
  • Train the model using two complementary objectives: a classification loss for predicting positive/negative links and a contrastive loss to improve semantic separation.
  • Leverage contextualized representations of entities and relations to enable generalization to unseen entities during inference.
  • Use a shared encoder head for both parts to ensure parameter efficiency and consistent representation learning.
  • Combine the encoded representations of the two parts into a single vector for scoring link predictions.

Experimental results

Research questions

  • RQ1Can a context-aware encoder architecture improve generalization to unseen entities and relations in open-set link prediction?
  • RQ2How does the Siamese-like design of the semantic triple encoder reduce inference cost compared to traditional methods?
  • RQ3To what extent do dual training objectives (classification and contrastive loss) improve ranking quality and robustness?
  • RQ4Can the model maintain high prediction accuracy while significantly reducing inference time?

Key findings

  • The proposed model achieves state-of-the-art or competitive performance on three standard link prediction benchmarks.
  • Inference costs are reduced by one to two orders of magnitude compared to a recent context-based encoding approach.
  • The model generalizes effectively to unseen entities and relations due to its contextualized encoding mechanism.
  • The combination of classification and contrastive losses leads to more reliable and natural ranking scores during inference.
  • The Siamese architecture avoids combinatorial explosion of candidate triples, significantly improving inference efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.