arXiv:2610.09927cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09927

KGATE : a Knowledge Graph Embedding Training Environment

Benjamin Loire, Galadriel Brière, Célia Brahimi, Antoine Toffano, Anaïs Baudot

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Knowledge graph embedding (KGE) models encode the entities and relations of a knowledge graph into a low-dimensional latent space, enabling tasks such as classification or link prediction. Most KGE models follow an autoencoder architecture, in which an encoder projects the knowledge graph into the latent space and a decoder reconstruct it. Combining both encoder and decoder components is increasingly needed, yet existing libraries rarely support complete autoencoders, are often unmaintained, rely on undocumented default hyperparameters, and produce results that cannot be compared across libraries. Here we present KGATE (Knowledge Graph Autoencoder Training Environment), a modular Python library built on PyTorch Geometric and TorchKGE. KGATE lets users assemble initializers, encoders, decoders, losses, negative samplers, and evaluation metrics as building blocks, or plug in their own block. KGATE includes a preprocessing procedure that controls data leakage, a builtin training pipeline, and reproducibility by design. Benchmarks against six existing KGE libraries show that KGATE training time is comparable with the fastest libraries while offering a broader set of features.

Availability: https://github.com/BAUDOTlab/KGATE

Keywords Knowledge Graph Embedding · Library · Graph Representation Learning · Reproductibility

1 Introduction

A Knowledge Graph (KG) is a data structure encoding entities as nodes and their interactions as edges, where the interaction type is explicitly stated. Formally, a KG is described as a set of triplets (head, relation, tail), where head and tail are the origin and destination nodes, and relation is the type of edge connecting them. This structured representation makes KGs particularly suited to represent heterogeneous domain knowledge. For example, biomedical knowledge graphs routinely encode tens of thousands of associations between genes, diseases, and drugs.

Given the scale of many KGs, their manipulation and interpretation is often computationally intractable. Knowledge Graph Embedding (KGE) addresses this by encoding entities and relations into a continuous, low-dimensional latent space. Once trained, a KGE model can be used to perform downstream tasks such as node or edge classification, or link prediction. The classes may correspond to any class label provided by the user, including multi-class biological labels or simply presence/absence in the KG. Link prediction, in contrast, identifies the most likely entity or relation to complete a triplet when given two of the three parts.

The most common architecture for a KGE model is the autoencoder: the encoder projects the graph nodes and edges into a latent space, and the decoder learns how to reconstruct the original graph in a self-supervised training loop. Encoders learn an embedding function that aggregates, for each node, information from its neighbors. This makes them inductive: the learned function applies to nodes unseen during training. Decoders score each triplet with a scoring function. Since each scoring function captures some topologies better than others, decoder performance varies with the relation of interest. Their main limitation is transductivity: they can only score triplets whose nodes were seen during training.

However, most KGE papers use only a decoder with a random initialization for the latent space and no encoder (Bordes et al., 2013; Boschin, 2020; Lin et al., 2015). On the other hand, papers introducing novel encoder architectures often use only DistMult as the decoder (Brody et al., 2021; Hamilton et al., 2017; Schlichtkrull et al., 2018). The rise in multimodal and ever-expanding KG datasets requires the inductive abilities of an encoder combined with the decoder specificity. Thus, modern KGE tasks call for an architecture able to implement a robust combination of encoders and decoders.

Several libraries including Pytorch Geometric (Fey et al., 2025), TorchKGE (Boschin, 2020), Ampligraph (Costabello et al., 2024), LibKGE (Broscheit et al., 2020), DGL-KE (Zheng et al., 2020) and PyKEEN (Ali et al., 2020) provide frameworks for KGE model training, with implementations of multiple KGE algorithms. Yet, except for PyKEEN and PyTorch Geometric, these libraries are mostly unmaintained. In addition, they are not interoperable, and the results obtained with one library cannot be compared with the results obtained with another (Supplementary materials section 1). Most of these libraries also propagate hardcoded and undocumented default hyperparameters, which might not be the optimal hyperparameters (Prieto & Garrido-Merchán, 2026).

In light of the currently limited KGE ecosystem, we propose here a new library, KGATE, for Knowledge Graph Autoencoder Training Environment. KGATE implements complete autoencoders while enforcing best practices and remaining accessible to newcomers. KGATE is built as a set of building blocks to be modular and adapt to any KGE application.

References (27)