SQUIRE: A Sequence-to-sequence Framework for Multi-hop Knowledge Graph Reasoning

Yushi Bai, Xin Lv, Juanzi Li, Lei Hou, Yincen Qu +2 more
1/17/2022
cs.CLcs.SI
transformer-attentionrl

Official code: bys0318/SQUIRE (35 stars, Python, last commit 2023-06-08).

Abstract

Multi-hop knowledge graph (KG) reasoning has been widely studied in recent years to provide interpretable predictions on missing links with evidential paths. Most previous works use reinforcement learning (RL) based methods that learn to navigate the path towards the target entity.

Show full abstract

However, these methods suffer from slow and poor convergence, and they may fail to infer a certain path when there is a missing edge along the path. Here we present SQUIRE, the first Sequence-to-sequence based multi-hop reasoning framework, which utilizes an encoder-decoder Transformer structure to translate the query to a path. Our framework brings about two benefits: (1) It can learn and predict in an end-to-end fashion, which gives better and faster convergence; (2) Our Transformer model does not rely on existing edges to generate the path, and has the flexibility to complete missing edges along the path, especially in sparse KGs. Experiments on standard and sparse KGs show that our approach yields significant improvement over prior methods, while converging 4x-7x faster.

View on arXivView PDF

Code Implementations(1)

bys0318/SQUIREOfficial100%

EMNLP 22' (Oral): SQUIRE: A Sequence-to-sequence Framework for Multi-hop Knowledge Graph Reasoning

355Python, ShellJan 17, 20223 years ago
knowledge-graphmulti-hop-reasoningtransformer

Similar Papers

Cite this paper

@article{bai2022squire,
  title  = {SQUIRE: A Sequence-to-sequence Framework for Multi-hop Knowledge Graph Reasoning},
  author = {Yushi Bai and Xin Lv and Juanzi Li and Lei Hou and Yincen Qu and Zelin Dai and Feiyu Xiong},
  year   = {2022},
  eprint = {2201.06206},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.06206}
}

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

Discussion