BERT Post-Training for Review Reading Comprehension and Aspect-based Sentiment Analysis

Hu Xu, Bing Liu, Lei Shu, Philip S. Yu

Introduction

While BERT has revolutionized natural language processing, its performance often degrades when applied to specialized domains like product reviews. This paper introduces a "post-training" approach designed to bridge the gap between general-purpose language models and the nuances of e-commerce sentiment analysis. The authors propose Review Reading Comprehension (RRC)—the task of extracting answers to user questions directly from reviews—and demonstrate how post-training on domain-specific and task-specific data significantly enhances performance across multiple sentiment-related tasks.

The Challenge: Domain and Task Gaps

Standard BERT models are typically pre-trained on formal corpora like Wikipedia and BooksCorpus. However, product reviews are informal, subjective, and domain-dependent. For instance, the word "bright" in a general context might refer to intelligence or light, but in a laptop review, it specifically denotes screen backlight quality.

The researchers identified two primary hurdles:

  1. The Domain Challenge: General pre-training fails to capture fine-grained e-commerce terminology.
  2. The Task Challenge: Specialized review datasets are often too small to train complex logic, such as identifying exact text spans for reading comprehension, from scratch.

Methodology: The Post-Training Bridge

The core innovation is a Post-Training phase that occurs between general pre-training and task-specific fine-tuning. This phase involves two simultaneous objectives:

  • Domain Knowledge (DK): Masked Language Modeling (MLM) and Next Sentence Prediction (NSP) on over 3.7 million unlabeled reviews from Amazon and Yelp.
  • Task Knowledge (MRC): Training on the SQuAD 1.1 dataset to teach the model the mechanics of span-based question answering.

After post-training, the model is fine-tuned for three downstream tasks: Review Reading Comprehension (RRC), Aspect Extraction (AE), and Aspect Sentiment Classification (ASC).

Architectures for the three downstream tasks: (1) Review Reading Comprehension, (2) Aspect Extraction, and (3) Aspect Sentiment Classification.

Datasets and Evaluation

To evaluate their approach, the authors introduced ReviewRC, a new benchmark for reading comprehension in the laptop and restaurant domains. They also utilized standard SemEval datasets for aspect-based tasks to demonstrate the generalizability of their post-training method.

Dataset statistics for Aspect Extraction (AE) and Aspect Sentiment Classification (ASC) across Laptop and Restaurant domains.

Key Results and Insights

The proposed model, BERT-PT, consistently outperformed vanilla BERT and previous state-of-the-art (SOTA) methods:

  • Review Reading Comprehension: BERT-PT achieved a 64.51 F1 score on laptops, a nearly 10-point improvement over vanilla BERT (54.72).
  • Aspect Extraction: The model reached an 84.26 F1 score on laptops, surpassing the previous SOTA (DE-CNN) at 81.59.
  • Cross-Task Synergy: Interestingly, training on formal SQuAD data improved performance on Aspect Extraction, suggesting that the logic of "finding important spans" is transferable across domains and tasks.

Conclusion

The "Post-Training Sandwich" approach demonstrates that BERT is most effective when adapted to both the target domain and the target task logic before final fine-tuning. While computationally intensive, this method provides a robust framework for specialized NLP applications in e-commerce. Future work may explore more efficient training techniques and handling complex, conflicting opinions within single sentences.

Summary updated

BibTeX
@inproceedings{xu2019bert,
  author = {Hu Xu and Bing Liu and Lei Shu and Philip S. Yu},
  title = {{BERT Post-Training for Review Reading Comprehension and Aspect-based Sentiment Analysis}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=H1W7r7-d-H},
}
Figure