Introduction
Aspect-based Sentiment Analysis (ABSA) is a fine-grained sentiment analysis task that involves identifying specific aspect terms in text and determining the sentiment expressed toward them. While traditional ABSA focuses on self-contained review sentences, Question Answering (QA) forums—prevalent on platforms like Amazon and Taobao—present a unique set of challenges. In these forums, the aspect is typically introduced in the question (e.g., "How is the battery life?"), while the sentiment is contained within the answer (e.g., "It lasts all day").
This separation creates several difficulties for standard NLP models:
- Spatial Distance: The aspect and its corresponding opinion words are located in different sentences.
- Implicit References: Answers often use pronouns or omit the aspect entirely, requiring the model to maintain context from the question.
- Structural Complexity: Simple concatenation of question and answer pairs often fails to capture the nuanced relationship between the two.
To address these issues, this paper introduces ABSA-QA, a novel BERT-based approach designed specifically for cross-sentence interaction in QA pairs.
Proposed Methodology
The ABSA-QA model treats the task as a sequence labeling problem on the question text. It aims to tag each token in the question with its aspect boundary and sentiment polarity by leveraging information from the answer.
Key Technical Components
- Inter-QA Attention: This mechanism treats the question as a query to extract relevant opinionated clues from the answer. By aligning question tokens with specific parts of the answer, the model can pinpoint which opinion words relate to which aspect.
- Gated Fusion Layer: Rather than simple concatenation, a gating mechanism (similar to those in GRUs) controls the flow of information from the answer into the question token representations. This ensures that only relevant sentiment context is integrated.
- Answer-Guided Sentiment Prediction: The model aggregates the answer's opinionated content into a global vector, providing a high-level sentiment context that assists in final classification.
- Dual Auxiliary Tasks: To enhance performance, the model utilizes two side-tasks:
- Joint Aspect Term Extraction (ATE): Training the model to identify aspects independently helps it focus on relevant noun phrases.
- QA Matching Pre-training: The model is pre-trained to distinguish between genuine and randomly matched QA pairs, teaching it the fundamental semantic relationship between questions and answers.
Experimental Evaluation
The researchers evaluated the ABSA-QA model on three real-world datasets crawled from the Taobao E-commerce platform, covering the Electronics (ELEC), Beauty (BEAUTY), and Bags (BAGS) domains. Each dataset contains approximately 4,500 manually annotated QA pairs.
Main Results
The proposed model consistently outperformed a wide range of baselines, including standard sequence labeling models (BiLSTM-CRF) and specialized BERT-based architectures (BERT-QA, Span-Pipeline).
As shown in the results table, the "Full Model" achieved the highest F1 scores across the ELEC (88.44) and BEAUTY (82.87) datasets. In the BAGS domain, the "Base+QA" variant achieved the top performance (89.38), though the full model remained highly competitive.
Discussion and Insights
Ablation studies revealed that the answer encoding component is the most critical for success; removing it led to the most significant performance degradation. This confirms that the model's primary strength lies in its ability to effectively "read" and integrate the answer context.
Furthermore, the model demonstrated superior performance in handling complex cases with multiple aspects. While simpler models often struggle when a question asks about several features simultaneously, the interaction mechanisms in ABSA-QA allow it to maintain clarity across multiple targets. The use of local context layers (CNNs) after attention also helped maintain "sentiment consistency," preventing the model from assigning conflicting polarities to multi-word aspect terms.
Conclusion and Future Work
The ABSA-QA framework represents a significant step forward in analyzing sentiment within interactive forum contexts. By prioritizing the interaction between questions and answers, the model overcomes the limitations of single-sentence ABSA.
Future research directions include extending the model to identify aspects that are implied but not explicitly named in the question, and adapting the architecture to handle longer, multi-turn forum threads where sentiment may evolve over several replies.
Summary updated