Abstract
This paper introduces Review Reading Comprehension (RRC), a task focused on identifying precise answer spans within product reviews in response to user queries. To address the domain and task gaps inherent in applying general-purpose language models to informal review data, the authors propose a post-training approach. This intermediate phase adapts BERT using both large-scale unsupervised review corpora and supervised machine reading comprehension datasets. Experimental results demonstrate that BERT-PT (Post-Trained) significantly outperforms vanilla BERT and previous state-of-the-art models in RRC, Aspect Extraction (AE), and Aspect Sentiment Classification (ASC).
Introduction
Machine Reading Comprehension (MRC) has achieved remarkable performance on formal, fact-based datasets like SQuAD. However, applying these models to the e-commerce domain presents unique challenges. Customer reviews are often informal, subjective, and domain-specific. The authors identify two primary hurdles:
- The Domain Gap: General models trained on Wikipedia lack the nuanced understanding of consumer language (e.g., recognizing technical specifications vs. general descriptions).
- The Task Gap: Fine-tuning on small, specialized datasets is often insufficient for a model to master the complex logic required for span-based reading comprehension.
To bridge these gaps, the authors propose a "post-training" stage that adapts the BERT model to both the domain (reviews) and the task (reading comprehension) before final fine-tuning.
Methodology: The Post-Training Bridge
The core contribution is a Joint Post-Training Algorithm that sits between BERT’s initial pre-training and the final task-specific fine-tuning. This phase incorporates two types of knowledge:
- Domain Knowledge (DK): BERT is trained on a massive corpus of unsupervised reviews (~1.1 million laptop reviews from Amazon and ~2.6 million restaurant reviews from Yelp) using its original self-supervised objectives: Masked Language Modeling (MLM) and Next Sentence Prediction (NSP).
- Task Knowledge (MRC): Simultaneously, the model is trained on the SQuAD 1.1 dataset (87,599 examples). This ensures the model retains its ability to locate answer spans, even when the source material (Wikipedia) differs from the target domain.
To manage the computational demands of joint training, the authors utilize a gradient accumulation technique. This allows the simulation of large batch sizes on standard hardware by splitting batches into smaller sub-batches and accumulating gradients before updating weights.
Downstream Tasks and Architectures
The post-trained model is evaluated on three distinct tasks within the review domain:
- Review Reading Comprehension (RRC): Finding an answer span in a review for a given question.
- Aspect Extraction (AE): Identifying specific product features (aspects) mentioned in the text.
- Aspect Sentiment Classification (ASC): Determining the sentiment polarity (positive, negative, or neutral) toward a specific aspect.
As shown in the figure above, the model architecture is adapted for each task. For RRC, start and end pointers are applied to the document hidden states. AE uses a BIO (Beginning, Inside, Outside) tagging scheme over the sequence, while ASC utilizes the [CLS] token's hidden state for sentiment classification.
Datasets and Evaluation
The authors developed a new benchmark, ReviewRC, by annotating reviews from SemEval 2016 Task 5 with question-answer spans. This dataset covers both laptop and restaurant domains.
For Aspect-Based Sentiment Analysis (ABSA), the study utilizes standard benchmarks from SemEval 2014 and 2016. The post-training data includes millions of reviews from Amazon and Yelp, providing a rich source of domain-specific linguistic patterns.
Key Insights and Results
The proposed BERT-PT model demonstrated superior performance across all evaluated tasks:
- RRC Performance: In the laptop domain, BERT-PT achieved an F1 score of 64.51, a significant improvement over vanilla BERT's 54.72.
- Cross-Task Synergy: Training on SQuAD (formal text) improved performance on ReviewRC (informal text), suggesting that the underlying logic of finding answers is transferable across styles.
- Domain Sensitivity: Domain knowledge was found to be particularly beneficial for Aspect Extraction, helping the model identify domain-specific entities like "hard drive" or "appetizer."
- Sentiment Accuracy: BERT-PT outperformed previous state-of-the-art models like MGAN in Aspect Sentiment Classification, proving that post-training enhances the model's grasp of opinion polarity.
Conclusion
This research highlights the importance of an intermediate post-training phase when adapting large-scale language models to specialized domains. By combining domain-specific unsupervised data with task-specific supervised data, BERT-PT effectively bridges the gap between general language understanding and the messy reality of customer reviews. Future work may explore larger model variants and more sophisticated span detection to handle ambiguous boundaries and conflicting opinions.
Summary updated