Abstract
Stance detection in community Question Answering (cQA) environments requires models to navigate complex targets and implicit sentiments. Unlike traditional stance detection which focuses on simple entities, cQA targets are often semantically rich questions. We introduce the Recurrent Conditional Attention (RCA) network, a model designed to iteratively "polish" the relationship between a question and its answer. By employing a mutual conditioning mechanism, RCA extracts stance-oriented features through multiple reading steps. Evaluated on a new Chinese community QA dataset of 13,591 pairs, RCA achieves a Macro-F1 of 70.43%, significantly outperforming static attention baselines.
Introduction
Traditional stance detection classifies attitudes—favor, against, or neutral—toward specific entities or claims. However, in community Question Answering (cQA) platforms like Quora or Baidu Knows, the "target" is often a complex question (e.g., "Is the new iPad 2018 worth it?"). This shift introduces two primary challenges: complex targets and implicit sentiment. Questions are semantically denser than single entities, requiring models to abstract core intents. Furthermore, answers rarely provide explicit agreement; instead, they offer evidence or qualitative opinions that imply a stance. Existing models often treat the target as a static vector, failing to capture the dynamic interplay where the answer helps clarify the question's focus and vice versa.
The Recurrent Conditional Attention (RCA) Model
To address these challenges, we propose the Recurrent Conditional Attention (RCA) network. The architecture moves beyond single-pass attention mechanisms by implementing an iterative reasoning process.
The model begins with an Initial Encoding phase using Bi-directional Gated Recurrent Units (Bi-GRU) to generate contextual word representations for both the question and the answer. The core of the model is the Recurrent "Polishing" loop, which performs $k$ reading steps. In each step, the model updates a stance state vector through a conditional attention loop:
- Question Attention: The current stance state is used to attend to the question, distilling a "question context."
- Answer Attention: This new question context is then used to attend to the answer, extracting "stance-oriented" features.
This mutual dependency allows the model to iteratively refine its understanding of how specific words in the answer relate to specific intents in the question. The final stance state is passed through a softmax layer for classification.
Dataset and Experimental Setup
We introduced a new, manually labeled Chinese community QA stance dataset to evaluate the model. The dataset comprises 13,591 question-answer pairs scraped from platforms such as Baidu Knows, Sogou Wenwen, and Mingyi. Labels include Favor, Against, and Neutral, covering diverse topics like food safety, pregnancy, and medical advice. This dataset provides a robust benchmark for stance detection in real-world, linguistically complex scenarios.
Results and Discussion
RCA was benchmarked against several strong baselines, including standard LSTMs, Attention-over-Attention (AoA), and Memory Networks (RAM). RCA achieved a Macro-F1 of 70.43% and a Micro-F1 of 70.37%, outperforming the RAM baseline by 2.2% and the AoA model by 2.6%.
A key finding is the "Polishing Effect." As shown in the performance analysis, increasing the number of reading steps (typically between 3 and 9) consistently improves performance. This suggests that stance in cQA is often "hidden" and requires iterative reasoning to extract. Ablation studies further confirmed that removing either the Question or Answer attention components led to significant performance drops, validating the necessity of the two-way conditional mechanism.
Conclusion
The RCA model demonstrates that iterative, conditional attention is highly effective for stance detection in complex cQA environments. By recognizing the mutual dependency between questions and answers, the model can uncover implicit attitudes that single-pass models miss. Future work will explore using Reinforcement Learning to dynamically determine the optimal number of reading steps for individual QA pairs, potentially enhancing both efficiency and accuracy.
Summary updated