Abstract
Community Question Answering (CQA) platforms like Stack Overflow and Quora present a unique challenge for automated answer selection due to the structural disparity between concise question subjects and lengthy, often noisy, question bodies. We present Question Condensing Networks (QCN), a novel architecture designed to explicitly model the relationship between these two components. By decomposing the question body into information that mirrors the subject (parallel) and information that provides new context (orthogonal), QCN effectively "condenses" long posts to improve matching with potential answers.
Introduction
In CQA forums, questions are typically structured as a short subject (e.g., "Checking car history") followed by a detailed body that may include context, redundant details, or social pleasantries. Traditional models often treat these as a single sequence, which introduces two primary issues:
- Redundancy and Noise: The high noise-to-signal ratio in long bodies can obscure the core intent.
- Structural Neglect: Treating the subject and body as equals ignores the inherent hierarchy where the subject serves as the primary anchor of intent.
The goal of QCN is to develop a neural architecture that can extract relevant "condensed" information from the body to complement the subject without being overwhelmed by noise.
Methodology: Question Condensing Networks
The QCN architecture (Figure 1) addresses the noise problem through three key innovations:
Orthogonal Decomposition
This is the core of the QCN approach. For every word in the question body, the model decomposes its embedding into two components relative to the subject:
- Parallel Component ($S_{para}$): Captures information already present in or highly similar to the subject.
- Orthogonal Component ($S_{orth}$): Captures additional details, constraints, or context not found in the subject.
Multi-dimensional Attention
Standard attention mechanisms often produce a single scalar score per word. QCN utilizes multi-dimensional attention, computing an attention score for each dimension of the word embedding. This allows the model to selectively attend to specific semantic features of a word that are most relevant to the current context, effectively handling polysemy.
Fusion and Alignment
A fusion gate determines the optimal balance between the original subject representation and the newly condensed body information. The final question representation is then aligned with the answer representation using the same multi-dimensional attention mechanism before classification via a multi-layer perceptron (MLP).
Analysis of Information Decomposition
The effectiveness of QCN stems from its ability to distinguish between redundant and complementary information. As shown in Figure 2, the attention heatmaps for the parallel ($A_{para}$) and orthogonal ($A_{orth}$) components reveal how the model focuses on different aspects of the text.
The "disparity" captured by the orthogonal component is particularly crucial. For example, in a query about car history, the subject might be general, while the body contains specific details like "maintenance" or "accident history." The orthogonal component ensures these vital details are preserved and prioritized during the answer selection process.
Experimental Results
The model was evaluated on the SemEval 2015 and 2017 Task 3 (Community Question Answering) benchmarks, which utilize data from the QatarLiving forum. QCN achieved state-of-the-art results on both datasets:
- SemEval 2015: QCN achieved an F1 score of 83.91, outperforming the previous best model by 1.7%.
- SemEval 2017: QCN achieved a Mean Average Precision (MAP) of 88.51, setting a new benchmark.
Ablation studies further highlight the importance of the QCN approach. Using only the subject yielded 74.02% accuracy, while using only the body yielded 75.57%. However, combining them via the QCN architecture resulted in a significant jump to 80.71% accuracy, proving that the specific method of integration is key to performance.
Conclusion
Question Condensing Networks provide a robust framework for handling the structural complexity of CQA data. By anchoring the noisy body information to the concise subject through orthogonal decomposition, the model maintains focus on the user's core intent while incorporating necessary context. Future work may involve integrating hand-crafted linguistic features or exploring thread-level global inference to further enhance performance in complex community discussions.
Summary updated