Abstract

Answer selection is one of the key steps in many question answering (QA) applications. In this paper, a new deep model with two kinds of attention is proposed for answer selection: the double attention recurrent convolution neural network (DARCNN). Double attention means self-attention and cross-attention. The design inspiration of this model came from the transformer in the domain of machine translation. Self-attention can directly calculate dependencies between words regardless of the distance. However, self-attention ignores the distinction between its surrounding words and other words. Thus, we design a decay self-attention that prioritizes local words in a sentence. In addition, cross-attention is established to achieve interaction between question and candidate answer. With the outputs of self-attention and decay self-attention, we can get two kinds of interactive information via cross-attention. Finally, using the feature vectors of the question and answer, elementwise multiplication is used to combine with them and multilayer perceptron is used to predict the matching score. Experimental results on four QA datasets containing Chinese and English show that DARCNN performs better than other answer selection models, thereby demonstrating the effectiveness of self-attention, decay self-attention and cross-attention in answer selection tasks.

Highlights

  • Question answering (QA) is an important and challenging task in the field of natural language processing (NLP)

  • (3) Experimental results show that double attention recurrent convolution neural network (DARCNN) performs better than many other networks when analysing the NLPCC DBQA, WikiQA, TrecQA and ANTIQUE datasets

  • The results show that the DARCNN model yields better performance after adding two kinds of attention mechanisms

Read more

Summary

Introduction

Question answering (QA) is an important and challenging task in the field of natural language processing (NLP). It has a wide range of applications in the fields of intelligent online customer service and intelligent assistants. Answer selection is one of the key steps in many QA applications and can be expressed as, given a question and an answer candidate pool {a1, a2 ..., as}, our goal is to pick the answer that matches the question from the pool of candidate answers. The main challenge of this task is that the correct answer may not have the vocabulary mentioned in the question. Questions and answers may only be semantically related.

Objectives
Discussion
Conclusion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call