Introduction
Community Question Answering (CQA) platforms like StackOverflow or Quora are rich repositories of knowledge. However, finding the "best" answer in a long thread of responses is challenging. Traditional approaches treat each question-answer (QA) pair as an independent classification problem. This paper argues that such a perspective ignores the inherent conversational structure of forum threads. By reframing answer selection as a sequence labeling task, the authors introduce the R-CNN model, which leverages both Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks to capture the semantic flow of a discussion.
The Importance of Context in CQA
In a typical forum thread, answers are rarely isolated. Users often respond to previous comments, provide partial solutions, or ask for clarifications. For instance, an answer might say "I agree with the solution above," which is meaningless without the preceding context. Traditional models that look at a question and one answer in isolation lose this vital information. The authors propose that an answer's quality is often relative to the sequence of responses that came before it.
Methodology: The R-CNN Architecture
The proposed R-CNN (Recurrent Convolutional Neural Network) architecture is designed to model both the local relationship between a question and an answer and the global dependencies within a thread.
- Joint Representation via CNN: For each QA pair, a CNN extracts hierarchical semantic features. This stage summarizes the "meaning" of the interaction into a fixed-length vector, capturing patterns beyond simple keyword matching.
- Sequence Modeling via LSTM: These vectors are fed into an LSTM in their original chronological order. The LSTM maintains a hidden state that "remembers" the context of previous answers while evaluating the current one.
- Classification: A final softmax layer predicts whether an answer is Good, Bad, or Potential.
Experimental Setup
The model was evaluated using the SemEval 2015 CQA dataset (Task 3), which contains 3,229 questions and 21,062 answers. The dataset is characterized by a significant class imbalance: 51% are labeled "Good," 39% "Bad," and only 10% "Potential." On average, each question thread contains about six answers.
Results and Discussion
The R-CNN model was compared against several baseline methods, including Support Vector Machines (SVM), Conditional Random Fields (CRF), and standalone CNNs.
Overall Performance
R-CNN achieved a Macro-F1 score of 56.14%, a notable improvement over the standalone CNN (54.42%) and traditional methods like SVM (52.14%). This confirms that incorporating sequence information provides a consistent performance boost.
Cracking the "Potential" Category
The most significant contribution of the R-CNN model is its performance on the "Potential" category. These are answers that might be helpful but are not complete solutions (e.g., follow-up questions). Because these responses are highly context-dependent, traditional models struggle with them. As shown in the results, while the SVM failed to identify any "Potential" answers (0.00% F1), the R-CNN reached 15.22%.
Conclusion
By treating answer selection as a sequence labeling task, the R-CNN model effectively captures the conversational dynamics of community forums. The integration of CNNs for local feature extraction and LSTMs for global context proves particularly effective for identifying nuanced "Potential" answers. Future work may involve addressing the data imbalance in the "Potential" class and incorporating additional metadata, such as user reputation and post timing, to further enhance selection accuracy.
Summary updated