Guessing What's Plausible But Remembering What's True: Accurate Neural Reasoning for Question-Answering

Haitian Sun, Andrew O. Arnold, Tania Bedrax-Weiss, Fernando Pereira, William W. CohenarXiv 2020

Abstract

The deductive closure of an ideal knowledge base (KB) contains exactly the logical queries that the KB can answer. However, in practice KBs are both incomplete and over-specified, failing to answer some queries that have real-world answers. Query embedding (QE) techniques have been recently proposed where KB entities and KB queries are represented jointly in an embedding space, supporting relaxation and generalization in KB inference. However, experiments in this paper show that QE systems may disagree with deductive reasoning on answers that do not require generalization or relaxation. We address this problem with a novel QE method that is more faithful to deductive reasoning, and show that this leads to better performance on complex queries to incomplete KBs. Finally we show that inserting this new QE module into a neural question-answering system leads to substantial improvements over the state-of-the-art.

Introduction: The Faithfulness Gap

Knowledge Bases (KBs) like Freebase or Wikidata are foundational for structured reasoning but are inherently incomplete. To bridge this gap, Query Embedding (QE) models map entities and logical queries into continuous vector spaces, allowing systems to "guess" plausible answers by identifying nearby vectors. However, a significant "faithfulness" gap exists: current models often fail to retrieve answers that are logically certain and explicitly stated in the KB.

Conceptual framework of logical inference vs. generalization

As illustrated in the conceptual framework above, an ideal system must balance logical inference (remembering what is known and entailed) with generalization (predicting what is plausible). Existing QE models often "blur" entity identities so much during embedding that they lose track of explicit facts, failing to return a 100% certain answer for a simple direct query.

Methods: The EmQL Architecture

To address this, we introduce EmQL (Embedding Query Language). EmQL represents sets of entities using a dual "sparse-dense" representation:

  1. The Centroid (Dense): A standard vector representing the "soft type" or general region of the entities (e.g., "US mid-size cities"), facilitating generalization.
  2. The Count-Min Sketch (Sparse/Probabilistic): A randomized data structure that stores entity weights compactly. This acts as a high-fidelity memory, allowing the system to verify if a specific entity is actually in a set with high probability.

EmQL implements logical operators like intersection, union, and follow as differentiable operations. By using neural retrieval (Maximum Inner Product Search) over a triple store of embeddings, EmQL functions more like a precise database query than a fuzzy approximation.

Key Results

We evaluated EmQL on intrinsic QE tasks (FB15k, NELL995) and extrinsic KBQA tasks (MetaQA, WebQuestionsSP). The results demonstrate that being "faithful" to explicit facts is critical for downstream performance.

Performance comparison on generalization and entailment tasks for FB15k-237

On the FB15k-237 "Entailment" task—where all facts are known—EmQL achieved a staggering 94.2% average Hits@3, compared to just 36.2% for the previous state-of-the-art, Query2Box (Q2B). This confirms EmQL's ability to "remember what's true" while still outperforming competitors on generalization tasks (35.8% vs 26.8% on FB15k-237).

When integrated into a full Question Answering pipeline, EmQL achieved new state-of-the-art results:

  • MetaQA 3-hop: 99.1% Hits@1 (a 7.7% absolute improvement).
  • WebQuestionsSP: 75.5% Hits@1 (a 5.8% absolute improvement).

Conclusion

EmQL demonstrates that neural reasoning does not have to sacrifice precision for generalization. By combining dense centroids with probabilistic sketches, we can build systems that are both logically faithful to known data and robust enough to predict missing information. Future work will focus on expanding EmQL to support complex logical negation and more diverse entity sets.

Summary updated

BibTeX
@misc{sun2020guessing,
  author = {Haitian Sun and Andrew O. Arnold and Tania Bedrax-Weiss and Fernando Pereira and William W. Cohen},
  title = {{Guessing What's Plausible But Remembering What's True: Accurate Neural Reasoning for Question-Answering}},
  year = {2020},
  eprint = {2004.03658},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.03658},
}
Figure