Cross Attention for Selection-based Question Answering

Alessio Gravina, Federico Rossetto, Silvia Severini, Giuseppe AttardiNL4AI@AI*IA 2018

Abstract

This paper introduces a Cross-Attentive Convolutional Neural Network (CNN) designed for Answer Sentence Selection (ASS) in Question Answering systems. By embedding a bidirectional attention mechanism directly into the convolutional layers, the model effectively captures semantic relationships between questions and answers, moving beyond simple keyword matching. The approach achieved state-of-the-art results on the challenging SelQA dataset, securing a win in the Fujitsu AI-NLP challenge.

Introduction

In a typical Question Answering (QA) pipeline, systems first retrieve a set of candidate documents and then must pinpoint the exact sentence containing the answer—a task known as Answer Sentence Selection (ASS). Historically, Information Retrieval (IR) techniques relied on word overlaps (co-occurrences) between the question and candidate sentences. However, this approach fails when questions are paraphrased or use different vocabulary than the source text. To bridge this semantic gap, systems require natural language understanding to recognize when differently phrased sentences hold the same meaning. This paper proposes a deep learning architecture that explicitly models the semantic alignment between a question and a candidate answer.

Methodology

The core of the proposed system is a Cross-Attentive Convolutional Neural Network. Unlike previous works that apply attention mechanisms at the pooling stage, this model integrates attention directly into the convolutional layers, inspired by the "light attentive ConvNet" architecture.

Overall architecture of the Cross-Attentive CNN model.

The architecture follows a multi-stage process:

  1. Initialization: Sentences are tokenized and mapped to GloVe word embeddings.
  2. Cross-Attentive Convolution (CAC): The network computes a similarity matrix between the representations of the question and the candidate answer. A softmax function generates weighting vectors, creating an "attentive context" for both sentences. This bidirectional attention (question-to-answer and answer-to-question) is added to the base convolution operation.
  3. Pooling and Concatenation: Outputs are routed through max-pooling for subsequent layers and global pooling for layer-level representations. These are then combined through concatenation, addition, and multiplication to form a joint question-answer vector.
  4. Hybrid Classification: The joint vector passes through a Feed-Forward Neural Network. The final Linear Regression classifier is augmented with traditional IR features, such as tf-idf scores and word co-occurrence counts, combining deep semantic understanding with reliable lexical signals.

Experimental Setup

The model was evaluated on the SelQA dataset, which was specifically designed to test QA systems by minimizing simple word co-occurrences. Questions in SelQA were crowdsourced from Wikipedia and intentionally paraphrased to require reading comprehension rather than simple keyword matching. Performance was measured using Mean Reciprocal Rank (MRR), which ranks the position of the first correct answer in the model's output.

Results and Discussion

The Cross-Attentive CNN demonstrated superior performance compared to standard baselines. By injecting attention early in the pipeline, the model learns highly context-aware feature representations.

Performance comparison on the SelQA dataset.

As shown in the results, the model achieved a 90.61% MRR on the SelQA test set, significantly outperforming the standard CNN (85.68%) and RNN (87.59%) baselines. This performance highlights the effectiveness of combining deep semantic features with shallow IR features like tf-idf. Furthermore, the model proved to be architecturally efficient, requiring only two hours of training on a 24-core CPU server without GPU acceleration.

Conclusion and Future Work

While the Cross-Attentive CNN achieved state-of-the-art results on SelQA, its evaluation remains limited to this single benchmark. Future work should involve testing on other standard ASS datasets like WikiQA or TREC-QA to establish broader generalizability. Additionally, given the model's deep structure and large parameter count, training on even larger datasets may yield further performance gains.

Summary updated

BibTeX
@inproceedings{gravina2018cross,
  author = {Alessio Gravina and Federico Rossetto and Silvia Severini and Giuseppe Attardi},
  title = {{Cross Attention for Selection-based Question Answering}},
  booktitle = {NL4AI@AI*IA},
  year = {2018},
}
Figure