SparseTransX: Efficient Training of Translation-Based Knowledge Graph Embeddings Using Sparse Matrix Operations
Not on the map. Why?
Abstract (arXiv)
Knowledge graph (KG) learning offers a powerful framework for generating new knowledge and making inferences. Training KG embedding can take a significantly long time, especially for larger datasets. Our analysis shows that the gradient computation of embedding is one of the dominant functions in the translation-based KG embedding training loop. We address this issue by replacing the core embedding computation with SpMM (Sparse-Dense Matrix Multiplication) kernels. This allows us to unify multiple scatter (and gather) operations as a single operation, reducing training time and memory usage. We create a general framework for training KG models using sparse kernels and implement four models, namely TransE, TransR, TransH, and TorusE. Our sparse implementations exhibit up to 5.3x speedup on the CPU and up to 4.2x speedup on the GPU with a significantly low GPU memory footprint. The speedups are consistent across large and small datasets for a given model. Our proposed sparse approach can be extended to accelerate other translation-based (such as TransC, TransM, etc.) and non-translational (such as DistMult, ComplEx, RotatE, etc.) models as well. An implementation of the SpTransX framework is publicly available as a Python package in https://github.com/HipGraph/SpTransX.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 27 of its 44 references that are in the map. First posted on arXiv 24 Feb 2025.
Builds on
27 of 44 references.
References · 27
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,434
- 2017Modeling Relational Data with Graph Convolutional Networkscited by 1,694
- 2014Embedding Entities and Relations for Learning and Inference in Knowledge Basescited by 932
- 2016Complex Embeddings for Simple Link Predictioncited by 902
- 2019RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Spacecited by 898
- 2019Deep Graph Library: A Graph-Centric, Highly-Performant Package for Graph Neural Networkscited by 242
- 2017A Novel Embedding Model for Knowledge Base Completion Based on Convolutional Neural Networkcited by 143
- 2019PyTorch-BigGraph: A Large-scale Graph Embedding Systemcited by 119
- 2022SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Modelscited by 91
- 2020DGL-KE: Training Knowledge Graph Embeddings at Scalecited by 67
- 2013A Semantic Matching Energy Function for Learning with Multi-relational Datacited by 61
15 more
- 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
- 2017TorusE: Knowledge Graph Embedding on a Lie Groupcited by 36
- 2020FeatGraph: A Flexible and Efficient Backend for Graph Neural Network Systemscited by 36
- 2015TransG : A Generative Mixture Model for Knowledge Graph Embeddingcited by 28
- 2018Differentiating Concepts and Instances for Knowledge Graph Embeddingcited by 27
- 2020FusedMM: A Unified SDDMM-SpMM Kernel for Graph Embedding and Graph Neural Networkscited by 26
- 2015TransA: An Adaptive Approach for Knowledge Graph Embeddingcited by 19
- 2023Link Prediction with Attention Applied on Multiple Knowledge Graph Embedding Modelscited by 15
- 2019Pykg2vec: A Python Library for Knowledge Graph Embeddingcited by 9
- 2020TorchKGE: Knowledge Graph Embedding in Python and PyTorchcited by 9
- 2020Force2Vec: Parallel force-directed graph embeddingcited by 7
- 2024GraphStorm: all-in-one graph machine learning framework for industry applicationscited by 7
- 2020BatchLayout: A Batch-Parallel Force-Directed Graph Layout Algorithm in Shared Memorycited by 2
- 2024iSpLib: A Library for Accelerating Graph Neural Networks using Auto-tuned Sparse Operationscited by 1
- 2024Distributed-Memory Parallel Algorithms for Sparse Matrix and Sparse Tall-and-Skinny Matrix Multiplicationcited by 1
Built on by
Not cited yet.