Skip to main content
QUICK REVIEW

[Paper Review] An Attention Mechanism for Answer Selection Using a Combined Global and Local View

Yoram Bachrach, Andrej Žukov-Gregorič|arXiv (Cornell University)|Jul 5, 2017
Topic ModelingComputer Science34 references6 citations
TL;DR

This paper proposes a novel global-local attention mechanism for neural answer selection that combines a bidirectional LSTM's local attention with a separate global embedding of the entire answer, improving performance on the InsuranceQA dataset. The model achieves state-of-the-art results with a 70.1% P@1 score, outperforming prior methods by leveraging both fine-grained and holistic representations of candidate answers.

ABSTRACT

We propose a new attention mechanism for neural based question answering, which depends on varying granularities of the input. Previous work focused on augmenting recurrent neural networks with simple attention mechanisms which are a function of the similarity between a question embedding and an answer embeddings across time. We extend this by making the attention mechanism dependent on a global embedding of the answer attained using a separate network. We evaluate our system on InsuranceQA, a large question answering dataset. Our model outperforms current state-of-the-art results on InsuranceQA. Further, we visualize which sections of text our attention mechanism focuses on, and explore its performance across different parameter settings.

Motivation & Objective

  • To improve neural answer selection by integrating both local and global representations of candidate answers.
  • To address the limitation of prior attention mechanisms that focus only on local word-level similarities between questions and answers.
  • To evaluate whether combining a global embedding with local attention improves answer selection accuracy on long, complex answers.
  • To analyze the attention mechanism's interpretability and its sensitivity to model size and architecture.

Proposed method

  • The model uses a bidirectional LSTM to encode the question and candidate answer, generating local hidden states at each timestep.
  • A separate feedforward network computes a global embedding for the entire candidate answer, capturing overall semantic content.
  • Attention weights are computed by normalizing both the local LSTM hidden states and the global embedding, then concatenating them before computing final attention scores.
  • The final context vector is a weighted sum of the answer’s hidden states, where weights are determined by the combined global-local attention mechanism.
  • The model is trained using cross-entropy loss with early stopping and dropout to prevent overfitting.
  • Performance is evaluated using P@1 and mean reciprocal rank (MRR) on the InsuranceQA benchmark.

Experimental results

Research questions

  • RQ1Can combining a global embedding of the entire answer with local attention improve answer selection performance?
  • RQ2How does the proposed global-local attention mechanism compare to standard local-only attention mechanisms in terms of accuracy and interpretability?
  • RQ3What is the impact of model size on performance, and does the attention mechanism remain effective even in smaller architectures?
  • RQ4How do the attention weights distribute across the answer text, and do they align with human-annotated relevant segments?

Key findings

  • The proposed global-local attention mechanism achieves a P@1 score of 70.1% on the InsuranceQA test set, outperforming the previous state-of-the-art method (69.0%).
  • Even with a relatively small model (hidden size h=141), the system achieves strong performance, indicating efficiency and robustness.
  • The TF-LSTM concatenation baseline, which lacks attention but uses TF features and LSTM states, scores only 62.1% P@1, showing that attention is critical for performance.
  • Performance improves with larger model sizes, but the gains diminish quickly, indicating diminishing returns beyond a certain capacity.
  • Qualitative analysis shows that the attention mechanism effectively focuses on relevant segments of the answer, such as the action-triggering phrase 'you can freeze your account'.
  • The model demonstrates that integrating global context with local attention leads to better alignment with the question's intent than local-only attention.

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.