Skip to main content
QUICK REVIEW

[Paper Review] Bidirectional Attentive Memory Networks for Question Answering over Knowledge Bases

Yu Chen, Lingfei Wu|arXiv (Cornell University)|Mar 6, 2019
Topic ModelingComputer Science40 references11 citations
TL;DR

This paper proposes BAMnet, a bidirectional attentive memory network that models two-way interactions between questions and knowledge bases (KBs) to improve question answering. By leveraging hierarchical attention to capture mutual relevance between question words and KB aspects—such as entities, relations, and answer types—BAMnet achieves state-of-the-art performance among information retrieval-based KBQA methods, outperforming prior IR methods and matching hand-crafted semantic parsing approaches, while offering improved interpretability through attention visualization.

ABSTRACT

When answering natural language questions over knowledge bases (KBs), different question components and KB aspects play different roles. However, most existing embedding-based methods for knowledge base question answering (KBQA) ignore the subtle inter-relationships between the question and the KB (e.g., entity types, relation paths and context). In this work, we propose to directly model the two-way flow of interactions between the questions and the KB via a novel Bidirectional Attentive Memory Network, called BAMnet. Requiring no external resources and only very few hand-crafted features, on the WebQuestions benchmark, our method significantly outperforms existing information-retrieval based methods, and remains competitive with (hand-crafted) semantic parsing based methods. Also, since we use attention mechanisms, our method offers better interpretability compared to other baselines.

Motivation & Objective

  • To address the lexical gap and weak interaction modeling in existing KBQA methods by capturing dynamic, two-way interactions between questions and KB content.
  • To improve answer accuracy in KBQA without relying on hand-crafted rules or external resources, focusing on end-to-end learning with attention mechanisms.
  • To enhance model interpretability by making attention flows between question components and KB aspects explicitly visible and analyzable.
  • To achieve competitive performance against semantic parsing-based methods while maintaining scalability and generalization across diverse KBs.

Proposed method

  • BAMnet employs a two-layered bidirectional attention mechanism: the primary attention layer computes cross-attention between question words and KB aspects (e.g., entities, relations, answer types), enabling mutual focusing.
  • The secondary attention layer, or 'enhancing module,' refines the question and KB representations by further exploiting the two-way attention flows, improving feature abstraction.
  • The model uses a content-addressable memory to store and retrieve KB aspects, allowing dynamic access to relevant knowledge during inference.
  • It integrates entity delexicalization (topic and constraint) to improve generalization and reduce overfitting, with topic delexicalization showing significant performance gains.
  • The architecture is trained end-to-end using a contrastive loss objective to optimize answer prediction, with attention weights visualized for interpretability.
  • The method does not require external knowledge or hand-engineered features, relying solely on attention-driven interaction modeling.

Experimental results

Research questions

  • RQ1Can modeling bidirectional, hierarchical attention between questions and KB aspects significantly improve KBQA performance compared to independent encoding methods?
  • RQ2To what extent does the two-way flow of attention enhance interpretability and model transparency in KBQA?
  • RQ3How do different delexicalization strategies (topic vs. constraint) affect the generalization and robustness of the KBQA model?
  • RQ4Can an attention-based IR method achieve performance competitive with hand-crafted semantic parsing methods without requiring rule-based or schema-matching components?

Key findings

  • On the WebQuestions benchmark, BAMnet significantly outperforms all prior information retrieval-based KBQA methods, achieving a new state-of-the-art result in that category.
  • BAMnet remains competitive with hand-crafted semantic parsing-based methods, demonstrating that end-to-end attention mechanisms can rival rule-based systems in accuracy.
  • Ablation studies confirm that removing the bidirectional attention mechanism leads to a significant performance drop, validating its critical role in modeling interactions.
  • The secondary attention layer (enhancing module) contributes meaningfully to performance, showing that hierarchical attention improves representation learning.
  • Topic entity delexicalization substantially improves model generalization, while constraint delexicalization provides only marginal gains.
  • Error analysis reveals that 33% of low-performing cases are due to gold answer label issues, suggesting that the model's actual performance may be better than metric scores indicate.

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.