Abstract
SentiLARE is a novel pre-training framework that enriches language models like RoBERTa with word-level linguistic knowledge—specifically Part-of-Speech (POS) tags and sentiment polarity. By introducing a "label-aware" pre-training task that bridges the gap between individual word meanings and global sentence sentiment, it achieves new state-of-the-art results across a wide array of sentiment analysis benchmarks.
Introduction
While massive pre-trained models like BERT and RoBERTa have revolutionized Natural Language Processing (NLP), they are often "sentiment-blind" during their initial training. They learn general linguistic patterns from massive corpora but ignore specific linguistic cues that are vital for understanding emotion and opinion.
The authors identify two major hurdles in current sentiment analysis models:
- Contextual Ambiguity: A word's sentiment often changes based on its context and POS tag (e.g., "long" is positive in "long battery life" but negative in "a long wait"). Static sentiment lexicons cannot handle this nuance.
- The Global-Local Gap: Word-level sentiment (local) does not always scale linearly to sentence-level sentiment (global). Existing models struggle to integrate these two levels of information deeply during pre-training.
Methodology
SentiLARE (Sentiment-Aware Language REpresentation) introduces a two-step pipeline to solve these issues: Knowledge Acquisition and Label-Aware Masked Language Modeling.
Knowledge Acquisition
Instead of just looking up a word in a dictionary, the model uses Context-aware Sentiment Attention. It first identifies the word's POS tag. Then, it looks up all possible sentiment "senses" for that word in SentiWordNet. To pick the right one, it uses Sentence-BERT (SBERT) to calculate the similarity between the current sentence and the dictionary definitions (glosses) of the word. This allows the model to assign a context-specific sentiment polarity (Positive, Negative, or Neutral) to every word.
Label-Aware Masked Language Model (LA-MLM)
The authors propose a new pre-training objective with two sub-tasks:
- Early Fusion: The sentence-level sentiment label is included in the input embeddings. The model is then tasked with predicting the masked word, its POS tag, and its word-level sentiment simultaneously.
- Late Supervision: The model uses the hidden state of the
[CLS]token to predict the global sentence sentiment label, while also predicting masked word-level information at the output layer.
Experimental Setup
The model was pre-trained on the Yelp Dataset Challenge 2019, containing over 6.6 million reviews with 5-star ratings used as sentence-level labels. Evaluation was conducted across a variety of benchmarks:
- Sentence-level: SST (Stanford Sentiment Treebank), Movie Review (MR), IMDB, and Yelp-2/5.
- Aspect-level: SemEval 2014/2016 tasks covering Aspect Term Extraction (ATE) and Aspect Category Sentiment Classification (ACSC).
- Generalization Tasks: Story Ending Prediction (SCT), Textual Entailment (SICK), and Semantic Textual Similarity (STSb).
Results and Discussion
SentiLARE consistently outperformed vanilla RoBERTa and other sentiment-specific models like SentiBERT and BERT-PT. For instance, it achieved 58.59% accuracy on SST-5, a significant jump over RoBERTa’s 54.89%.
Key insights from the results include:
- Lexicons Need Context: Sentiment lexicons are more powerful when paired with modern embedding similarity (SBERT). Using the dictionary definition as a "context" to match against the input sentence effectively "unfreezes" static lexicons.
- Compositional Learning: By forcing the model to predict word tags given a sentence label (and vice versa), SentiLARE learns compositional semantics—how the parts form the whole.
- Targeted Masking: Masking sentiment-bearing words more frequently (30% vs. the standard 15%) forced the model to pay more attention to the tokens that actually drive sentiment.
Conclusion
SentiLARE demonstrates that sentiment awareness is a core component of general logical reasoning in text, as evidenced by improvements even on non-sentiment tasks like story ending prediction. However, the model faces computational overhead due to the SBERT disambiguation step and remains bounded by the coverage of SentiWordNet. Future directions include exploring the integration of other linguistic knowledge, such as syntax trees or broader commonsense knowledge bases.
Summary updated