DGL-KE: Training Knowledge Graph Embeddings at Scale

Da Zheng, Xiang Song, Chao Ma, Zeyuan Tan, Zihao Ye +4 more
4/18/2020
226 citations
cs.DC

Official code: awslabs/dgl-ke (1,336 stars, Python, Apache-2.0, last commit 2025-08-08).

Abstract

Knowledge graphs have emerged as a key abstraction for organizing information in diverse domains and their embeddings are increasingly used to harness their information in various information retrieval and machine learning tasks. However, the ever growing size of knowledge graphs requires computationally efficient algorithms capable of scaling to graphs with millions of nodes and billions of edges.

Show full abstract

This paper presents DGL-KE, an open-source package to efficiently compute knowledge graph embeddings. DGL-KE introduces various novel optimizations that accelerate training on knowledge graphs with millions of nodes and billions of edges using multi-processing, multi-GPU, and distributed parallelism. These optimizations are designed to increase data locality, reduce communication overhead, overlap computations with memory accesses, and achieve high operation efficiency. Experiments on knowledge graphs consisting of over 86M nodes and 338M edges show that DGL-KE can compute embeddings in 100 minutes on an EC2 instance with 8 GPUs and 30 minutes on an EC2 cluster with 4 machines with 48 cores/machine. These results represent a 2x~5x speedup over the best competing approaches. DGL-KE is available on https://github.com/awslabs/dgl-ke.

View on arXivView PDF

Code Implementations(1)

awslabs/dgl-keOfficial100%
Apache-2.0

High performance, easy-to-use, and scalable package for learning large-scale knowledge graph embeddings.

1,336202Python, Jupyter NotebookMar 3, 20201 years agoApache-2.0
dglgraph-learningknowledge-graphknowledge-graphs-embeddingsmachine-learning

Similar Papers

Cite this paper

@article{zheng2020dglke,
  title  = {DGL-KE: Training Knowledge Graph Embeddings at Scale},
  author = {Da Zheng and Xiang Song and Chao Ma and Zeyuan Tan and Zihao Ye and Jin Dong and Hao Xiong and Zheng Zhang and George Karypis},
  year   = {2020},
  eprint = {2004.08532},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.08532}
}

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

Discussion