[Paper Review] SMORE: Knowledge Graph Completion and Multi-hop Reasoning in Massive Knowledge Graphs
SMORE is a scalable framework for both single-hop knowledge graph completion and multi-hop reasoning in massive knowledge graphs, achieving state-of-the-art training throughput via bidirectional rejection sampling and asynchronous CPU-GPU computation. It enables multi-hop reasoning on Freebase (86M entities, 338M edges) with 2.2× speedup over prior frameworks and near-linear scaling across 8 GPUs using only 2GB GPU memory.
Knowledge graphs (KGs) capture knowledge in the form of head--relation--tail triples and are a crucial component in many AI systems. There are two important reasoning tasks on KGs: (1) single-hop knowledge graph completion, which involves predicting individual links in the KG; and (2), multi-hop reasoning, where the goal is to predict which KG entities satisfy a given logical query. Embedding-based methods solve both tasks by first computing an embedding for each entity and relation, then using them to form predictions. However, existing scalable KG embedding frameworks only support single-hop knowledge graph completion and cannot be applied to the more challenging multi-hop reasoning task. Here we present Scalable Multi-hOp REasoning (SMORE), the first general framework for both single-hop and multi-hop reasoning in KGs. Using a single machine SMORE can perform multi-hop reasoning in Freebase KG (86M entities, 338M edges), which is 1,500x larger than previously considered KGs. The key to SMORE's runtime performance is a novel bidirectional rejection sampling that achieves a square root reduction of the complexity of online training data generation. Furthermore, SMORE exploits asynchronous scheduling, overlapping CPU-based data sampling, GPU-based embedding computation, and frequent CPU--GPU IO. SMORE increases throughput (i.e., training speed) over prior multi-hop KG frameworks by 2.2x with minimal GPU memory requirements (2GB for training 400-dim embeddings on 86M-node Freebase) and achieves near linear speed-up with the number of GPUs. Moreover, on the simpler single-hop knowledge graph completion task SMORE achieves comparable or even better runtime performance to state-of-the-art frameworks on both single GPU and multi-GPU settings.
Motivation & Objective
- To address the lack of scalable frameworks for multi-hop reasoning in massive knowledge graphs.
- To enable efficient online training data generation for multi-hop queries without materializing all training instances.
- To co-optimize algorithmic and system-level design for high throughput and low memory usage on large-scale KGs.
- To support both single-hop and multi-hop reasoning tasks within a unified, scalable framework.
Proposed method
- Introduces bidirectional rejection sampling to reduce the complexity of online training data generation by a square root factor.
- Employs asynchronous scheduling to overlap CPU-based data sampling with GPU-based embedding computation and frequent CPU-GPU I/O.
- Uses a single-machine, non-partitioned graph design to preserve multi-hop path integrity across relations.
- Applies sparse embedding and optimizer updates to minimize GPU memory usage during training.
- Supports multiple query embedding models (e.g., GQE, Q2B, BetaE) with unified training pipeline across single and multi-GPU settings.
- Enables efficient sampling of negative entities via bidirectional traversal, avoiding exhaustive search and improving scalability.
Experimental results
Research questions
- RQ1Can multi-hop reasoning be efficiently scaled to massive knowledge graphs with over 80 million entities and 300 million edges?
- RQ2How can online training data generation for multi-hop queries be made efficient enough to fully utilize GPU compute capacity?
- RQ3Can a unified framework support both single-hop knowledge graph completion and complex multi-hop reasoning with minimal system overhead?
- RQ4What system optimizations are required to achieve high throughput and low memory usage on large-scale KGs?
- RQ5How does bidirectional rejection sampling compare to exhaustive or random sampling in terms of training efficiency and model performance?
Key findings
- SMORE achieves 2.2× higher throughput than prior multi-hop KG frameworks while using only 2GB of GPU memory for training 400-dimensional embeddings on Freebase.
- Training speed scales nearly linearly with the number of GPUs, demonstrating minimal communication overhead and effective asynchronous design.
- On the ogbl-wikikg2 dataset, BetaE achieves the best performance among baselines, while Q2B achieves state-of-the-art results on FB400k and Freebase.
- Bidirectional sampling outperforms or matches exhaustive traversal in performance while reducing training time from months to days on large graphs.
- SMORE achieves comparable or better single-hop link prediction performance than state-of-the-art frameworks like Marius and PBG, even with a non-partitioned graph design.
- The system successfully scales to Freebase (86M nodes, 338M edges), which is 1,500× larger than previously supported KGs in multi-hop reasoning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.