CoKE: Contextualized Knowledge Graph Embedding

Quan Wang, Pingping Huang, Haifeng Wang, Songtai Dai, Wenbin Jiang +4 more
11/6/2019
100 citations
cs.AIcs.CL

Official code: PaddlePaddle/Research (1,773 stars, Python, Apache-2.0, last commit 2024-08-16). Most starred: PaddlePaddle/models, a community implementation (6,933 stars, Python, Apache-2.0, last commit 2025-01-15, 3.9× the official stars). 1 more implementation below.

Abstract

Knowledge graph embedding, which projects symbolic entities and relations into continuous vector spaces, is gaining increasing attention. Previous methods allow a single static embedding for each entity or relation, ignoring their intrinsic contextual nature, i.e., entities and relations may appear in different graph contexts, and accordingly, exhibit different properties.

Show full abstract

This work presents Contextualized Knowledge Graph Embedding (CoKE), a novel paradigm that takes into account such contextual nature, and learns dynamic, flexible, and fully contextualized entity and relation embeddings. Two types of graph contexts are studied: edges and paths, both formulated as sequences of entities and relations. CoKE takes a sequence as input and uses a Transformer encoder to obtain contextualized representations. These representations are hence naturally adaptive to the input, capturing contextual meanings of entities and relations therein. Evaluation on a wide variety of public benchmarks verifies the superiority of CoKE in link prediction and path query answering. It performs consistently better than, or at least equally well as current state-of-the-art in almost every case, in particular offering an absolute improvement of 21.0% in H@10 on path query answering. Our code is available at \url{https://github.com/PaddlePaddle/Research/tree/master/KG/CoKE}.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
PaddlePaddle/ResearchOfficial1,773PythonApache-2.02024-08-16
PaddlePaddle/modelsCommunity6,933PythonApache-2.02025-01-15
Apache-2.0

novel deep learning research works with PaddlePaddle

1,773766Python, Jupyter NotebookFeb 13, 20202 years agoApache-2.0
computer-visiondata-miningdeep-learningknowledge-graphnlp+1 more
PaddlePaddle/modelsCommunity100%
Apache-2.0

Officially maintained, supported by PaddlePaddle, including CV, NLP, Speech, Rec, TS, big models and so on.

6,9332,846Python, Jupyter NotebookApr 20, 20171 years agoApache-2.0
computer-visioncvdeep-learningmodelsnatural-language-processing+5 more

Similar Papers

Cite this paper

@article{wang2019coke,
  title  = {CoKE: Contextualized Knowledge Graph Embedding},
  author = {Quan Wang and Pingping Huang and Haifeng Wang and Songtai Dai and Wenbin Jiang and Jing Liu and Yajuan Lyu and Yong Zhu and Hua Wu},
  year   = {2019},
  eprint = {1911.02168},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.02168}
}

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/1911.02168.svg)](https://codeofpaper.com/paper/1911.02168)

Discussion