arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.14890cs.LGcs.AIcs.DBcs.DC
收藏

SMORE:海量知识图谱中的知识图补全与多跳推理

SMORE: Knowledge Graph Completion and Multi-hop Reasoning in Massive Knowledge Graphs

Stanford University(斯坦福大学);Google Brain(谷歌大脑);UC Berkeley(加州大学伯克利分校)

Hongyu Ren, Hanjun Dai, Bo Dai, Xinyun Chen, Denny Zhou, Jure Leskovec, Dale Schuurmans

摘要:

知识图谱(KG)以头-关系-尾三元组的形式捕获知识,并且是许多AI系统中的重要组成部分。KG上有两个重要的推理任务:(1)单跳知识图谱完成,其涉及预测KG中的各个链接;以及(2)多跳推理,其中目标是预测哪些KG实体满足给定的逻辑查询。基于嵌入的方法通过首先计算每个实体和关系的嵌入,然后使用它们来形成预测来解决这两个任务。然而,现有的可扩展KG嵌入框架仅支持单跳知识图谱完成,不能应用于更具挑战性的多跳推理任务。在这里,我们提出了可扩展的多hOp推理(SMORE),第一个通用的框架,单跳和多跳推理在KG。使用单机SMORE可以在Freebase KG(86 M实体,338 M边)中执行多跳推理,这是以前考虑的KG的1,500倍。SMORE的运行时性能的关键是一个新的双向拒绝采样,实现了在线训练数据生成的复杂性的平方根减少。此外,SMORE利用异步调度,重叠基于CPU的数据采样,基于GPU的嵌入计算,以及频繁的CPU-GPU IO。SMORE增加了吞吐量(即,训练速度)是先前多跳KG框架的2.2倍,具有最小的GPU内存需求(2GB用于在86 M节点Freebase上训练400-dim嵌入),并实现了与GPU数量接近线性的加速。此外,在更简单的单跳知识图谱完成任务SMORE上,在单GPU和多GPU设置上实现了与最先进的框架相当甚至更好的运行时性能。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑