Abstract
A major challenge to the problem of community question answering is the lexical and semantic gap between the sentence representations. Some solutions to minimize this gap includes the introduction of extra parameters to deep models or augmenting the external handcrafted features. In this paper, we propose a novel attentive recurrent tensor network for solving the lexical and semantic gap in community question answering. We introduce token-level and phrase-level attention strategy that maps input sequences to the output using trainable parameters. Further, we use the tensor parameters to introduce a 3-way interaction between question, answer and external features in vector space. We introduce simplified tensor matrices with L2 regularization that results in smooth optimization during training. The proposed model achieves state-of-the-art performance on the task of answer sentence selection (TrecQA and WikiQA datasets) while outperforming the current state-of-the-art on the tasks of best answer selection (Yahoo! L4) and answer triggering task (WikiQA).
Introduction
In Community Question Answering (CQA) platforms such as StackOverflow or Quora, a primary challenge is the lexical and semantic gap. Users often frame questions using terminology that differs significantly from the language used in the ideal answer, despite sharing the same underlying concept. While standard deep learning architectures like CNNs and LSTMs capture general semantics, they frequently fail to model the fine-grained interactions required for precise answer selection. Previous attempts to bridge this gap using tensor-based models often suffered from training instability and poor integration of external knowledge sources like BM25 scores or word overlap metrics.
The Attentive Recurrent Tensor Model (RTM)
The proposed Recurrent Tensor Model (RTM) addresses these challenges through a multi-stage architecture designed to capture complex dependencies between questions, answers, and external features.
1. Attentive Encoding
The model utilizes Bi-directional LSTMs (biLSTMs) to generate contextualized representations of text. To capture nuances at different granularities, it employs two attention mechanisms:
- Phrase-level Attention: Focuses on a summarized representation of the question.
- Token-level Attention: Attends to every individual word in the question while processing the answer, ensuring that specific keywords—often critical for "answer triggering"—are not overlooked.
2. 3-Way Tensor Interaction
The core innovation of RTM is the treatment of External Features ($Ext$) as active participants in the learning process. Rather than simply concatenating these 51 handcrafted metrics (e.g., TF-IDF, readability scores) at the final layer, the model uses three tensor matrices to compute explicit interactions between:
- Question ($Q$) and Answer ($A$)
- Question ($Q$) and External Features ($Ext$)
- Answer ($A$) and External Features ($Ext$)
Experimental Results
The RTM model was evaluated across three major benchmarks: WikiQA (answer sentence selection and triggering), TrecQA (ranking), and Yahoo! Webscope L4 (best answer selection).
Performance and Tensor Complexity
A key finding of the research was that "less is more" regarding tensor complexity. While multi-dimensional tensors are powerful, increasing the number of tensor slices ($k$) often led to overfitting and training instability. The authors found that a simplified model using a single tensor slice ($k=1$) combined with heavy L2 regularization yielded the most stable and high-performing results.
Key Benchmarks
- TrecQA: Achieved a Mean Average Precision (MAP) of 0.784 and Mean Reciprocal Rank (MRR) of 0.839, establishing a new state-of-the-art.
- WikiQA: Reached a MAP of 0.705 and an F1 score of 35.22 for the difficult answer triggering task.
- Yahoo! L4: Improved "Precision at 1" (P@1) to 0.571, outperforming previous holographic LSTM and CNN baselines.
Conclusion
The Attentive Recurrent Tensor Model demonstrates that integrating external features through regularized tensor interactions significantly narrows the lexical gap in CQA. By simplifying the tensor structure and employing dual-level attention, the model achieves superior generalization across diverse datasets. Future work may explore automating the discovery of external features to reduce reliance on manual engineering and further improving performance on the challenging task of answer triggering.
Summary updated