Attentive Interactive Neural Networks for Answer Selection in Community Question Answering

Xiaodong Zhang, Sujian Li, Lei Sha, Houfeng Wang

Introduction

Community Question Answering (CQA) platforms like Quora or Stack Overflow are rich repositories of human knowledge, but they are notoriously "messy." Unlike curated datasets like Wikipedia, CQA data is rife with informal language, typos, and significant amounts of irrelevant information. A user seeking a massage recommendation might include a lengthy preamble about their budget or personal preferences, creating "noise" that can obscure the core request. Traditional models often struggle to distinguish between this "dross" and the actual "signal."

The AI-NN Architecture

To address this, the authors propose the Attentive Interactive Neural Network (AI-NN). The model is designed to identify and focus on the most relevant segments of long, rambling posts through a multi-stage process.

First, the model uses Convolutional Neural Networks (CNNs) to generate vector representations of text segments. Unlike previous architectures that compute simple scalar similarity scores, AI-NN constructs a 3D interaction tensor. This tensor captures rich, multi-dimensional relationships between every pair of question and answer segments, preserving more information than a standard 2D similarity matrix.

The AI-NN architecture featuring 3D interaction tensors and attentive pooling.

Attentive Pooling and Meta-Features

The core innovation lies in the Attentive Pooling layer. To condense the 3D interaction tensor, the model applies row-wise and column-wise max-pooling followed by a sophisticated attention mechanism. This mechanism determines segment importance based on four distinct information sources:

  1. Segment Representation: The inherent features of the text segment.
  2. Interaction Data: How the segment relates to the corresponding text.
  3. Question Topic: Global context (e.g., "Computers and Internet").
  4. Question Type: Context derived from interrogatives (e.g., "where" or "how").

Additionally, the model incorporates four "hand-crafted" meta-features derived from forum metadata: user anonymity, whether the question and answer are from the same user, the chronological order of the answer, and the answer's length.

Performance and Results

The AI-NN was evaluated using the SemEval-2016 Task 3 dataset, which consists of real-world data from the Qatar Living forums. This dataset is particularly challenging because question bodies average over 40 words, making noise reduction critical.

Performance comparison of AI-NN against baseline models on the SemEval-2016 benchmark.

As shown in the results table, AI-NN achieved a state-of-the-art Mean Average Precision (MAP) of 80.14, outperforming established models like Kelp and ARC-II. An ablation study revealed that the attention mechanism is vital; removing it caused the MAP to drop significantly (from 79.17 to 78.05). While the neural architecture performs the bulk of the work, the meta-features provided a final incremental boost of approximately 1%.

Conclusion

The AI-NN demonstrates that interaction-driven attention is a powerful tool for navigating the complexities of community forums. By modeling fine-grained interactions and leveraging contextual cues like question type and topic, the model effectively filters out redundancy. Future work may involve integrating text standardization to handle informal slang and exploring unsupervised learning to utilize the vast amounts of unlabeled forum data available online.

Summary updated

BibTeX
@inproceedings{zhang2017attentive,
  author = {Xiaodong Zhang and Sujian Li and Lei Sha and Houfeng Wang},
  title = {{Attentive Interactive Neural Networks for Answer Selection in Community Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.11006},
}
Figure