Binarized Knowledge Graph Embeddings

Koki Kishimoto, Katsuhiko Hayashi, Genki Akai, Masashi Shimbo, Kazunori Komatani
2/8/2019
cs.LGcs.IRstat.ML

Official code: KokiKishimoto/cp_decomposition (8 stars, last commit 2019-02-25).

Abstract

Tensor factorization has become an increasingly popular approach to knowledge graph completion(KGC), which is the task of automatically predicting missing facts in a knowledge graph. However, even with a simple model like CANDECOMP/PARAFAC(CP) tensor decomposition, KGC on existing knowledge graphs is impractical in resource-limited environments, as a large amount of memory is required to store parameters represented as 32-bit or 64-bit floating point numbers. This limitation is expected to become more stringent as existing knowledge graphs, which are already huge, keep steadily growing in scale. To reduce the memory requirement, we present a method for binarizing the parameters of the CP tensor decomposition by introducing a quantization function to the optimization problem. This method replaces floating point-valued parameters with binary ones after training, which drastically reduces the model size at run time. We investigate the trade-off between the quality and size of tensor factorization models for several KGC benchmark datasets. In our experiments, the proposed method successfully reduced the model size by more than an order of magnitude while maintaining the task performance. Moreover, a fast score computation technique can be developed with bitwise operations.

View on arXivView PDF

Code Implementations(1)

80C++, ShellFeb 9, 20197 years ago

Similar Papers

Cite this paper

@article{kishimoto2019binarized,
  title  = {Binarized Knowledge Graph Embeddings},
  author = {Koki Kishimoto and Katsuhiko Hayashi and Genki Akai and Masashi Shimbo and Kazunori Komatani},
  year   = {2019},
  eprint = {1902.02970},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.02970}
}

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

Discussion