Skip to main content
QUICK REVIEW

[Paper Review] Utilizing BERT Intermediate Layers for Aspect Based Sentiment Analysis and Natural Language Inference

Youwei Song, Jiahai Wang|arXiv (Cornell University)|Feb 12, 2020
Sentiment Analysis and Opinion MiningComputer Science14 references59 citations
TL;DR

The paper shows that pooling intermediate BERT CLS token representations with LSTM or attention improves ABSA and NLI performance compared to vanilla BERT, and can extend to state-of-the-art models with minor adjustments.

ABSTRACT

Aspect based sentiment analysis aims to identify the sentimental tendency towards a given aspect in text. Fine-tuning of pretrained BERT performs excellent on this task and achieves state-of-the-art performances. Existing BERT-based works only utilize the last output layer of BERT and ignore the semantic knowledge in the intermediate layers. This paper explores the potential of utilizing BERT intermediate layers to enhance the performance of fine-tuning of BERT. To the best of our knowledge, no existing work has been done on this research. To show the generality, we also apply this approach to a natural language inference task. Experimental results demonstrate the effectiveness and generality of the proposed approach.

Motivation & Objective

  • Motivate leveraging BERT's intermediate layers for ABSA beyond the final layer.
  • Propose pooling strategies (LSTM-Pooling and Attention-Pooling) to fuse multi-layer CLS representations.
  • Demonstrate improved ABSA performance across multiple datasets.
  • Show generality by applying the approach to a large NLI task (SNLI) and to a state-of-the-art model (MT-DNN).

Proposed method

  • Extract CLS hidden states from all BERT intermediate layers.
  • Expose two pooling strategies: LSTM-Pooling connects layer representations via an LSTM over the CLS states; Attention-Pooling computes a weighted sum via dot-product attention over CLS states.
  • Fine-tune BERT with the pooling module for classification.
  • Compare against vanilla BERT and other BERT-based variants on ABSA datasets.
  • Apply the same pooling strategies to MT-DNN to test generality.
  • Use 10-fold cross-validation for ABSA experiments and standard dev/test splits for SNLI.

Experimental results

Research questions

  • RQ1Does incorporating intermediate-layer CLS representations via pooling improve ABSA performance over standard final-layer fine-tuning?
  • RQ2Which pooling strategy (LSTM vs. Attention) yields better ABSA results across domains?
  • RQ3Is the approach generalizable to a large NLI task and to other BERT-based models?
  • RQ4How does the method perform relative to post-trained BERT variants on ABSA datasets?

Key findings

  • BERT-LSTM and BERT-Attention outperform vanilla BERT on all three ABSA datasets (Laptop, Restaurant, Twitter).
  • Pooling strategies provide gains similar to or exceeding post-trained BERT variants on Laptop and Restaurant datasets.
  • On SNLI, BERT-Attention and BERT-LSTM outperform vanilla BERT, and MT-DNN variants also benefit from pooling, showing generality.
  • The improvements are consistent across datasets, with the pooling methods offering straightforward applicability to other tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.