Skip to main content
QUICK REVIEW

[Paper Review] Differentiable Reasoning over a Virtual Knowledge Base

Bhuwan Dhingra, Manzil Zaheer|ArXiv.org|Feb 25, 2020
Topic ModelingComputer Science36 references44 citations
TL;DR

DrKIT introduces a differentiable module that traverses a text corpus treated as a virtual KB, using a soft multi-hop reasoning process with sparse TFIDF expansions and MIPS to retrieve and compose evidence.

ABSTRACT

We consider the task of answering complex multi-hop questions using a corpus as a virtual knowledge base (KB). In particular, we describe a neural module, DrKIT, that traverses textual data like a KB, softly following paths of relations between mentions of entities in the corpus. At each step the module uses a combination of sparse-matrix TFIDF indices and a maximum inner product search (MIPS) on a special index of contextual representations of the mentions. This module is differentiable, so the full system can be trained end-to-end using gradient based methods, starting from natural language inputs. We also describe a pretraining scheme for the contextual representation encoder by generating hard negative examples using existing knowledge bases. We show that DrKIT improves accuracy by 9 points on 3-hop questions in the MetaQA dataset, cutting the gap between text-based and KB-based state-of-the-art by 70%. On HotpotQA, DrKIT leads to a 10% improvement over a BERT-based re-ranking approach to retrieving the relevant passages required to answer a question. DrKIT is also very efficient, processing 10-100x more queries per second than existing multi-hop systems.

Motivation & Objective

  • Motivate answering complex multi-hop questions when only a text corpus is available as a virtual KB.
  • Develop an end-to-end differentiable module (DrKIT) that grows and follows soft relation paths via indexed mentions.
  • Achieve efficient multi-hop reasoning through sparse representations and MIPS-based retrieval, with pretraining of mention encoders.
  • Demonstrate improved accuracy and speed over text-only and KB-based baselines on MetaQA, WikiData slot-filling, and HotpotQA.

Proposed method

  • Model a multi-hop reasoning process as follows: expand an input set of entities to co-occurring mentions, filter mentions by a learned relevance score, and aggregate to a new set of entities; repeat for multiple hops.
  • Represent the expansion and aggregation with differentiable sparse-matrix operations and a top-K hard selection of mentions, enabling end-to-end training.
  • Use a differentiable textual follow operation that maps Z_t = Z_{t-1} . follow(R) through A_E->M, top-K filtering T_K(s_t(.)), and B_M->E aggregation.
  • Pretrain the mention encoder f(m) via distant supervision from a KB using slot-filling-style QA, then index mention embeddings and train the QA task with fixed embeddings.
  • Encode mentions with BERT-based representations; encode questions with a Transformer; produce MIPS queries g_t(q,z_{t-1}) to retrieve top-K mentions efficiently (O(Kp polylog|M|)).
  • Maintain efficiency with ragged sparse representations and careful top-K filtering to keep the active entity set small across hops.

Experimental results

Research questions

  • RQ1Can a large text corpus be effectively used as a virtual KB for multi-hop QA via differentiable reasoning?
  • RQ2Does a sparse, differentiable multi-hop module over indexed text achieve competitive accuracy with efficient inference?
  • RQ3How important are TFIDF co-occurrence expansion and pretraining of mention representations for performance?
  • RQ4What is the impact of end-to-end training versus cascaded or KB-supervised setups on multi-hop QA tasks?

Key findings

  • DrKIT improves MetaQA 2-hop accuracy by 5 points and 3-hop by 9 points over prior text-based systems.
  • DrKIT reduces the gap to KB-based systems by 30% (2-hop) and 70% (3-hop) on MetaQA.
  • On WikiData slot-filling, DrKIT outperforms DrQA and PIQA baselines, especially with end-to-end training.
  • On HotpotQA, DrKIT is 10x faster than comparable multi-hop systems while improving retrieval quality over BERT-based reranking.
  • Pretraining the mention encoder on KB-derived distant supervision yields substantial gains over using BERT representations alone.
  • Efficient sparse-matrix implementations and top-K mention retrieval with MIPS enable scaling to large corpora (e.g., 10–100x faster inference).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.