[Paper Review] KESA: A Knowledge Enhanced Approach For Sentiment Analysis
KESA proposes two lightweight, knowledge-enhanced auxiliary tasks—sentiment word cloze (SWC) and conditional sentiment prediction (CSP)—integrated during fine-tuning to improve sentiment analysis without masking sentiment words or relying on large-scale post-training data. The method consistently outperforms BERT and knowledge-enhanced models, achieving gains of up to 0.86% on individual tasks and 0.76% on MR, with minimal parameter increase and reduced dependency on lexicon accuracy.
Though some recent works focus on injecting sentiment knowledge into pre-trained language models, they usually design mask and reconstruction tasks in the post-training phase. In this paper, we aim to benefit from sentiment knowledge in a lighter way. To achieve this goal, we study sentence-level sentiment analysis and, correspondingly, propose two sentiment-aware auxiliary tasks named sentiment word cloze and conditional sentiment prediction. The first task learns to select the correct sentiment words within the input, given the overall sentiment polarity as prior knowledge. On the contrary, the second task predicts the overall sentiment polarity given the sentiment polarity of the word as prior knowledge. In addition, two kinds of label combination methods are investigated to unify multiple types of labels in each task. We argue that more information can promote the models to learn more profound semantic representation. We implement it in a straightforward way to verify this hypothesis. The experimental results demonstrate that our approach consistently outperforms pre-trained models and is additive to existing knowledge-enhanced post-trained models. The code and data are released at https://github.com/lshowway/KESA.
Motivation & Objective
- To reduce reliance on large-scale post-training corpora and avoid sentiment information loss from masking in knowledge-enhanced pre-trained models.
- To minimize dependence on high-accuracy sentiment lexicons by treating word sentiment as input prior rather than ground-truth label.
- To improve sentence-level sentiment classification by integrating sentiment knowledge during fine-tuning through two novel auxiliary tasks.
- To investigate effective label combination strategies (joint vs. conditional) for unifying multi-type sentiment labels in auxiliary tasks.
- To demonstrate that lightweight, knowledge-augmented fine-tuning can outperform standard and existing knowledge-enhanced pre-trained models.
Proposed method
- Proposes sentiment word cloze (SWC): given a sentence with sentiment words masked and a set of K+1 options (1 correct, K negative), the model selects the correct sentiment word based on overall sentence polarity.
- Introduces conditional sentiment prediction (CSP): the model predicts the sentence-level sentiment polarity conditioned on the sentiment polarity of a specific word in the input, treating word sentiment as input context.
- Uses two label combination methods—joint and conditional probability—to unify multiple sentiment labels within each auxiliary task.
- Integrates both auxiliary tasks into the fine-tuning phase only, avoiding additional post-training and preserving inference efficiency.
- Avoids replacing sentiment words with 'MASK' tokens to prevent semantic distortion and information loss.
- Adds auxiliary task losses to the main task loss with a balanced weight, with optimal performance observed at low auxiliary loss weights (e.g., 0.01).
Experimental results
Research questions
- RQ1Can auxiliary tasks that inject sentiment knowledge during fine-tuning outperform post-training approaches in sentiment analysis?
- RQ2Does treating word sentiment as input prior rather than output label reduce dependency on lexicon quality and improve model robustness?
- RQ3How do joint and conditional label combination strategies affect performance in multi-label sentiment auxiliary tasks?
- RQ4Can lightweight, fine-tuning-phase auxiliary tasks achieve consistent gains without increasing inference cost or requiring domain-specific data?
- RQ5What is the optimal balance between main task loss and auxiliary task loss in knowledge-augmented fine-tuning?
Key findings
- KESA achieves a 0.76% absolute improvement on the MR dataset, 0.38% on SST2, 0.72% on SST5, and 0.1% on IMDB compared to BERT.
- The SWC task alone improves performance by up to 0.7% on some datasets, demonstrating the value of word-level sentiment supervision.
- The CSP task alone yields a maximum gain of 0.86%, indicating that word-to-sentence sentiment modeling aids main task optimization.
- Combining SWC and CSP does not always improve performance, suggesting potential negative transfer or task competition, though KESA still outperforms baselines overall.
- Conditional label combination consistently outperforms joint combination in most settings, especially with SentiLARE, and is recommended as the default strategy.
- The model increases parameters by only ~0.7% compared to standard BERT, with minimal computational overhead, due to small output space in auxiliary tasks.
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.