Applying deep learning to answer selection: A study and an open task

Bowen Zhou, Minwei Feng, Bing Xiang, Michael R. Glass, Lidan Wang, Bowen Zhou 0006Asru 2015

Abstract

We apply a general deep learning framework to address the non-factoid question answering task. Our approach does not rely on any linguistic tools and can be applied to different languages or domains. Various architectures are presented and compared. We create and release a QA corpus and setup a new QA task in the insurance domain. Experimental results demonstrate superior performance compared to the baseline methods and various technologies give further improvements. For this highly challenging task, the top-1 accuracy can reach up to 65.3% on a test set, which indicates a great potential for practical use.

Introduction

Classical Question Answering (QA) systems, such as the original IBM Watson, often rely on intricate pipelines involving dependency parsers, named entity recognizers, and domain-specific ontologies. While effective, these systems are difficult to port to new languages or specialized domains. This paper explores a more general deep learning framework for non-factoid answer selection—the task of identifying the most relevant answer from a candidate pool for questions that require descriptive explanations (e.g., "How does a deductible work?") rather than simple facts.

Methodology

The core of the proposed framework is a Convolutional Neural Network (CNN) that maps both questions and answers into a shared high-dimensional vector space.

Architecture and Weight Sharing

The researchers investigated several architectural variations, focusing on how weights are distributed between the question (Q) and answer (A) encoders. A critical finding was that shared weights between the two encoders significantly improved performance. By forcing both inputs into the same semantic space, the model more effectively learns the relationship between queries and candidates.

Architecture with shared weights and no post-CNN hidden layer.

In contrast, architectures with separate weights for Q and A (as shown below) were less effective, likely because the optimizer struggled to align two distinct vector spaces for the matching task.

Architecture with separate weights for question and answer encoders.

Interestingly, the study found that adding a fully connected hidden layer after the CNN's max-pooling step actually degraded performance. The CNN and 1-MaxPooling layers appear sufficient for capturing salient semantic features; additional non-linear mapping introduced unnecessary complexity.

Similarity Metrics and Training

While Cosine Similarity is the standard metric for vector comparison, the authors proposed two new metrics: GESD (Geometric mean of Euclidean and Sigmoid Dot product) and AESD (Arithmetic mean). These metrics combine the distance-based intuition of Euclidean space with the angle-based intuition of dot products, providing a significant performance boost.

The models were trained using a hinge loss (ranking loss) function. This approach ensures that the similarity score of a correct question-answer pair is higher than that of a negative pair by a predefined margin ($m$), prioritizing ranking over simple binary classification.

The InsuranceQA Dataset

To benchmark the framework, the authors introduced InsuranceQA, a real-world dataset from the insurance domain. It consists of 12,887 training questions and a pool of 24,981 unique answers. During evaluation, the model must select the correct answer from a pool of 500 candidates (one ground truth and 499 random negatives). This dataset has been released to the public to facilitate further research in non-factoid QA.

Key Results and Insights

The deep learning approach demonstrated a clear advantage over traditional methods:

  • Bag-of-Words (BoW) Baseline: ~32% accuracy.
  • Metzler-Bendersky IR Baseline: ~55% accuracy.
  • Best CNN Model (with GESD): 65.3% top-1 accuracy.

Further experiments showed that increasing the number of CNN filters (from 1,000 to 4,000) led to consistent gains, suggesting that the model benefits from a wide variety of feature detectors to capture diverse linguistic patterns.

Conclusion

This study demonstrates that a general CNN-based framework can outperform traditional, linguistically-heavy IR baselines in the challenging task of non-factoid answer selection. By utilizing shared weights and optimized similarity metrics like GESD, the model achieves high accuracy on the InsuranceQA dataset without requiring domain-specific tuning. While the model does not perform logical reasoning, its robust text-matching capabilities show great potential for practical applications like automated customer support.

Summary updated

BibTeX
@inproceedings{zhou2015applying,
  author = {Bowen Zhou and Minwei Feng and Bing Xiang and Michael R. Glass and Lidan Wang and Bowen Zhou},
  title = {{Applying deep learning to answer selection: A study and an open task}},
  booktitle = {Asru},
  year = {2015},
}
Figure