LSTM-based Deep Learning Models for non-factoid answer selection

Ming Tan, Bing Xiang, Bowen ZhouarXiv 2015

TL;DR

This paper introduces a deep learning framework for non-factoid answer selection that leverages bidirectional LSTMs (biLSTMs) to learn question and answer embeddings. They enhance this by incorporating convolutional neural networks (CNNs) for richer representations and an attention mechanism to better align question and answer relevance, achieving state-of-the-art results on two benchmark datasets.

What Problem Does This Paper Address?

The core challenge in answer selection, particularly for non-factoid questions (where answers aren't single, precise facts), is identifying the best answer candidate from a pool when the correct answer might not share direct lexical overlap with the question. Traditional methods often rely heavily on manual feature engineering and linguistic tools, which can be brittle and resource-intensive. This paper aims to build a robust, feature-free deep learning approach that can effectively capture semantic relationships between questions and potential answers.

Methods

The paper proposes a general deep learning framework built upon bidirectional Long Short-Term Memory (biLSTM) networks. Here's a breakdown of their approach:

  • Basic QA-LSTM: The foundation involves using biLSTMs to encode both the question and each answer candidate independently. The similarity between the question and answer embeddings is then measured using cosine similarity. A hinge loss function is used for training, aiming to maximize the distance between correct and incorrect answer pairs.
  • QA-LSTM/CNN Extension: To create more composite representations, a Convolutional Neural Network (CNN) is applied on top of the biLSTM outputs. This allows the model to capture local interactions and n-gram-like features within the sequence, potentially highlighting important phrases. They use max-k pooling (with k=1) to emphasize the most relevant features.
  • Attention-Based QA-LSTM Extension: To better focus on relevant parts of the answer relative to the question, an attention mechanism is introduced. This mechanism dynamically assigns weights to different parts of the answer based on their relevance to the question, effectively creating a question-aware answer representation.
  • Combined Approach (QA-LSTM/CNN with Attention): The CNN and attention mechanisms are combined to leverage the strengths of both.

A key design choice is using shared parameters for the question and answer biLSTM networks, which they found leads to faster convergence and better performance compared to separate networks.

Datasets

The proposed models were evaluated on two datasets:

  • InsuranceQA: A recently released, large-scale dataset for non-factoid question answering in the insurance domain.
  • TREC-QA: A well-established dataset based on the Text REtrieval Conference (TREC) QA track.

Key Insights and Ideas

  • BiLSTMs are powerful for semantic matching: The core biLSTM framework effectively captures sequential dependencies and semantic relationships, outperforming simpler bag-of-word models.
  • CNNs enhance representations: Adding a CNN layer on top of biLSTM outputs allows the model to capture local patterns and create richer, more discriminative representations.
  • Attention is crucial for relevance: The attention mechanism significantly improves performance by allowing the model to dynamically focus on the most relevant parts of an answer given the question, especially for longer answers.
  • Shared parameters are beneficial: Using the same biLSTM network for both questions and answers leads to more efficient learning and better results.
  • Max-pooling over average-pooling: For the basic QA-LSTM, max-pooling on the biLSTM outputs yielded better results than average-pooling, suggesting that capturing peak activations is more informative.

Key Results

The proposed models consistently outperformed strong baselines on both datasets.

  • InsuranceQA: The best performing model, QA-LSTM/CNN with attention, achieved a validation accuracy of 67.2% and test accuracies of 65.7% and 63.3% on Test1 and Test2, respectively. This significantly surpassed baseline models, including a strong CNN-based approach. Notably, the attention mechanism showed particular effectiveness for longer answers.
  • TREC-QA: The best model, a QA-LSTM/CNN with attention using a larger LSTM hidden vector size (500), achieved a MAP of 72.79 and MRR of 82.40, outperforming established baselines like Wang & Nyberg (2015) and Feng et al. (2015).

Limitations and Future Work

  • Limitations: The paper notes that while their combined model (QA-LSTM/CNN with attention) outperforms others, the improvement on Test1 and Test2 for InsuranceQA was not as pronounced as expected compared to the attention-only model. They hypothesize that the effective attention might have been diminished during CNN operations. They also found that replacing cosine similarity with a MLP structure led to decreased accuracy and slower convergence.
  • Future Work: The authors plan to explore extending the attention mechanism to phrasal or sentential levels. They also suggest evaluating their models on different tasks, such as answer quality prediction in Community QA and recognizing textual entailment.

Summary updated

BibTeX
@misc{tan2015lstm,
  author = {Ming Tan and Bing Xiang and Bowen Zhou},
  title = {{LSTM-based Deep Learning Models for non-factoid answer selection}},
  year = {2015},
  eprint = {1511.04108},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.04108},
}
Figure