Deep Learning for Answer Sentence Selection

Lei Yu, Karl Moritz Hermann, Phil Blunsom, Stephen PulmanarXiv 2014

Abstract

Answer sentence selection is a critical component of open-domain question answering, requiring the identification of specific sentences that satisfy a user's query. Traditional approaches rely heavily on complex, hand-crafted linguistic features and external resources. This paper presents a neural network-based framework that utilizes distributed representations and a convolutional architecture to achieve state-of-the-art performance without manual feature engineering.

Introduction

In the field of open-domain question answering (QA), the task of answer sentence selection involves pinpointing the exact sentence within a document that contains the answer to a given question. Historically, this has been approached as a syntactic matching problem, where researchers developed intricate models to compare parse trees and utilized extensive "hand-crafted" features—rules designed by linguists to capture grammatical relationships and synonyms.

However, these traditional models are often brittle and lack generalizability across different domains or languages due to their reliance on external resources like WordNet. This research proposes a more automated and generalizable method to capture semantic relatedness between questions and candidate answers using deep learning.

Methodology

The proposed framework treats answer selection as a binary classification task. Both the question ($q$) and the candidate answer ($a$) are represented as vectors in a shared semantic space. The probability of a match is calculated using a transformation matrix ($M$) and a sigmoid function:

$$p(y=1|q, a) = \sigma(q^T M a + b)$$

The core innovation lies in the generation of these sentence vectors. The authors evaluate two primary models:

  1. Bag-of-Words (Unigram): A baseline where sentence vectors are the average of constituent word embeddings.
  2. Bigram Model (CNN): A Convolutional Neural Network (CNN) architecture that processes pairs of adjacent words (bigrams). This model applies a transformation followed by "average pooling" to generate a fixed-length vector, capturing local word order and basic structural information.
Convolutional architecture for sentence representation using bigrams and average pooling.

To address the challenge of rare entities (e.g., specific dates or names) that are often mapped to "UNKNOWN" tokens in embeddings, the authors incorporate a simple "word count" feature. This feature tracks the overlap of words between the question and the answer, providing a hybrid approach that combines neural semantics with symbolic matching.

Experimental Setup

The models were rigorously evaluated on the TREC Answer Selection Dataset, a standard benchmark derived from TREC QA tracks 8-13. The dataset includes a large, automatically labeled training set (TRAIN-ALL) and smaller, manually cleaned sets for training, development, and testing. Performance was measured using Mean Average Precision (MAP) and Mean Reciprocal Rank (MRR).

Results

The experimental results demonstrate that the CNN-based bigram model, particularly when augmented with the word-overlap feature, achieves exceptional performance.

Comparison of the proposed models against baselines and existing state-of-the-art systems on the TREC dataset.

The hybrid model (bigram + count) achieved a MAP of 0.7113 and an MRR of 0.7846, outperforming or matching previous state-of-the-art systems. Notably, these results were obtained using relatively low-dimensional (50-D) word embeddings and a simple architecture, contrasting with competing models that require a vast array of lexical resources and linguistic tools.

Discussion and Conclusion

This research highlights the power of distributed semantics over traditional syntactic rules. By learning a transformation matrix $M$, the model effectively "translates" the semantic space of an answer into that of a question. The transition from unigrams to bigrams via CNNs confirms that capturing local structure is vital for QA tasks.

A key takeaway is the "hybrid necessity": while deep learning captures broad semantics, simple symbolic features like word overlap remain essential for handling specific entities. Future work will explore higher-order n-grams, more complex CNN architectures, and recursive neural networks to further capture the hierarchical nature of language.

Summary updated

BibTeX
@misc{yu2014deep,
  author = {Lei Yu and Karl Moritz Hermann and Phil Blunsom and Stephen Pulman},
  title = {{Deep Learning for Answer Sentence Selection}},
  year = {2014},
  eprint = {1412.1632},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1412.1632},
}
Figure