[Paper Review] SentiBERT: A Transferable Transformer-Based Architecture for Compositional Sentiment Semantics
SentiBERT is a BERT-based architecture that enhances compositional sentiment semantics by integrating binary constituency parse trees with contextualized representations through a two-level attention mechanism. It achieves state-of-the-art performance on phrase-level sentiment classification and demonstrates strong transferability to related tasks like emotion classification and Twitter sentiment analysis, particularly excelling in handling negation and contrastive relations.
We propose SentiBERT, a variant of BERT that effectively captures compositional sentiment semantics. The model incorporates contextualized representation with binary constituency parse tree to capture semantic composition. Comprehensive experiments demonstrate that SentiBERT achieves competitive performance on phrase-level sentiment classification. We further demonstrate that the sentiment composition learned from the phrase-level annotations on SST can be transferred to other sentiment analysis tasks as well as related tasks, such as emotion classification tasks. Moreover, we conduct ablation studies and design visualization methods to understand SentiBERT. We show that SentiBERT is better than baseline approaches in capturing negation and the contrastive relation and model the compositional sentiment semantics.
Motivation & Objective
- To address the challenge of modeling compositional sentiment semantics in complex sentences involving negation and contrast.
- To integrate syntactic structure (binary constituency trees) with contextualized representations from BERT for improved sentiment compositionality.
- To evaluate the transferability of sentiment composition learned on phrase-level annotated data to other sentiment analysis and emotion classification tasks.
- To analyze the model's interpretability and robustness under low supervision settings.
Proposed method
- SentiBERT uses BERT as a backbone to generate contextualized token representations.
- A two-level attention mechanism composes phrase representations: first attending to constituent tokens, then refining them using child node representations.
- The semantic composition module is trained end-to-end with masked language modeling and phrase-level sentiment prediction.
- Phrase-level sentiment labels from the Stanford Sentiment Treebank (SST) are used to supervise the composition module.
- The model is fine-tuned on downstream tasks using both phrase-level and sentence-level annotations.
- Ablation studies and attention visualization are used to interpret model behavior and analyze contributions of syntactic and contextual components.
Experimental results
Research questions
- RQ1Can a BERT-based model effectively capture compositional sentiment semantics by integrating syntactic structure and contextual representations?
- RQ2How does SentiBERT perform compared to baseline models on phrase-level sentiment classification, especially in handling negation and contrastive relations?
- RQ3To what extent can sentiment compositionality learned on SST be transferred to other sentiment analysis and emotion classification tasks?
- RQ4How much phrase-level supervision is required for SentiBERT to achieve strong performance, and can high-confidence predictions from weak supervision improve results?
Key findings
- SentiBERT achieves 30.7% accuracy on the SST-5 phrase-level sentiment classification benchmark, outperforming BERT with mean pooling (26.1%) and other BERT variants.
- The model shows a significant 1% improvement over baselines in handling contrastive relations, with 30.7% accuracy on the 'X but Y' triple-let evaluation.
- SentiBERT outperforms baseline models by a larger margin on sentences with negation, demonstrating superior handling of negation effects.
- With only 30–50% of phrase-level labels, SentiBERT achieves competitive performance on SST-5 and SST-3, approaching XLNet's performance.
- Even without any phrase-level supervision, using 70–80% of phrase labels during pre-training allows SentiBERT to match XLNet on Twitter sentiment analysis.
- 40–50% of phrase nodes in SST-3 have prediction confidence above 0.9, with accuracy exceeding 90% on those high-confidence predictions, suggesting potential for weak supervision.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.