HaSa: Hardness and Structure-Aware Contrastive Knowledge Graph Embedding

Honggen Zhang, June Zhang, Igor Molybog
5/17/2023
cs.AIcs.CL

No official code found. Best implementation: honggen-zhang/HaSa-CKGE (9 stars, last commit 2024-06-10).

Abstract

We consider a contrastive learning approach to knowledge graph embedding (KGE) via InfoNCE. For KGE, efficient learning relies on augmenting the training data with negative triples. However, most KGE works overlook the bias from generating the negative triples-false negative triples (factual triples missing from the knowledge graph). We argue that the generation of high-quality (i.e., hard) negative triples might lead to an increase in false negative triples. To mitigate the impact of false negative triples during the generation of hard negative triples, we propose the Hardness and Structure-aware (\textbf{HaSa}) contrastive KGE method, which alleviates the effect of false negative triples while generating the hard negative triples. Experiments show that HaSa improves the performance of InfoNCE-based KGE approaches and achieves state-of-the-art results in several metrics for WN18RR datasets and competitive results for FB15k-237 datasets compared to both classic and pre-trained LM-based KGE methods.

View on arXivView PDF

Code Implementations(1)

91PythonMay 21, 20232 years ago

Similar Papers

Cite this paper

@article{zhang2023hasa,
  title  = {HaSa: Hardness and Structure-Aware Contrastive Knowledge Graph Embedding},
  author = {Honggen Zhang and June Zhang and Igor Molybog},
  year   = {2023},
  eprint = {2305.10563},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.10563v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.10563.svg)](https://codeofpaper.com/paper/2305.10563)

Discussion