TorchKGE: Knowledge Graph Embedding in Python and PyTorch

Armand Boschin
9/7/2020
cs.CLcs.AI

Official code: torchkge-team/torchkge (389 stars, Python, last commit 2025-09-24).

Abstract

TorchKGE is a Python module for knowledge graph (KG) embedding relying solely on PyTorch. This package provides researchers and engineers with a clean and efficient API to design and test new models.

Show full abstract

It features a KG data structure, simple model interfaces and modules for negative sampling and model evaluation. Its main strength is a very fast evaluation module for the link prediction task, a central application of KG embedding. Various KG embedding models are also already implemented. Special attention has been paid to code efficiency and simplicity, documentation and API consistency. It is distributed using PyPI under BSD license. Source code and pointers to documentation and deployment can be found at https://github.com/torchkge-team/torchkge.

View on arXivView PDF

Code Implementations(1)

TorchKGE: Knowledge Graph embedding in Python and PyTorch.

38942PythonMar 29, 20191 years agoNOASSERTION

Similar Papers

Cite this paper

@article{boschin2020torchkge,
  title  = {TorchKGE: Knowledge Graph Embedding in Python and PyTorch},
  author = {Armand Boschin},
  year   = {2020},
  eprint = {2009.02963},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.02963}
}

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

Discussion