Fast Variational Knowledge Graph Embedding

Pulak Ranjan Giri, Mori Kurokawa, Kazuhiro SaitoQCE 2024

Abstract

Knowledge Graph (KG) embedding is a critical task for modern AI, yet classical methods face scalability challenges as datasets grow. This paper presents "Fast QKGE," a novel approach that leverages quantum superposition and Flexible Fully Quantum RAM (FFQRAM) to reduce training time complexity from linear to logarithmic ($O(\log N)$) relative to the number of samples. Evaluated on the UMLS medical link prediction task, the model achieves competitive results, outperforming classical baselines like NeuralLP.

1. Introduction

Knowledge Graphs represent facts as (Head, Relation, Tail) triples. As these graphs expand to include millions of entities, the computational cost of training classical embedding models increases linearly with the number of samples. While previous quantum-classical hybrids improved scaling relative to feature dimensions, the sample size bottleneck remained. This work addresses this by utilizing quantum superposition to train on multiple triples simultaneously.

2. Methodology

The authors employ a Variational Quantum Circuit (VQC) framework. Entities are mapped to $n$-qubit quantum states, and relations are modeled as unitary operators. The primary innovation is the use of Flexible Fully Quantum RAM (FFQRAM) to encode multiple KG triples into a single quantum superposition, allowing the model to process multiple facts in parallel.

The experimental architecture used a 10-qubit system, with 4 qubits dedicated to entity states and 6 ancilla qubits for training management and measurement. Optimization was performed using a classical Adam optimizer to minimize mean squared error based on a scoring function in the Hilbert space.

Figure 1: Quantum circuit architecture for Fast QKGE, illustrating the integration of FFQRAM and variational layers.

3. Experimental Results

The model was benchmarked using the Unified Medical Language Systems (UMLS) dataset. The "Fast QKGE" model, particularly in a 4-qubit, 4-layer configuration, demonstrated superior performance compared to the classical NeuralLP model and previous quantum iterations.

Figure 2: Performance metrics (MRR, Hits@1, Hits@10) comparing Fast QKGE against classical models and previous quantum versions.

As shown in the results, Fast QKGE achieved an MRR of 79.9 and Hits@1 of 70.7, surpassing NeuralLP's 77.8 and 64.3, respectively. While ConvE remains the top performer, these results validate the effectiveness of the quantum approach.

4. Discussion and Conclusion

The transition from $O(N)$ to $O(\log N)$ complexity represents a significant advancement for large-scale KG embedding. By demonstrating that quantum data loading via FFQRAM can be a catalyst for speedup rather than a bottleneck, this research opens new avenues for Quantum Machine Learning.

Future work will involve scaling the model to larger industrial datasets, testing on physical NISQ hardware, and refining circuit expressivity to further improve accuracy.

Summary updated

BibTeX
@inproceedings{giri2024fast,
  author = {Pulak Ranjan Giri and Mori Kurokawa and Kazuhiro Saito},
  title = {{Fast Variational Knowledge Graph Embedding}},
  booktitle = {QCE},
  year = {2024},
  doi = {10.1109/qce60285.2024.10318},
}
Figure