[Paper Review] HeBERT & HebEMO: a Hebrew BERT Model and a Tool for Polarity Analysis and Emotion Recognition
This paper introduces HeBERT, a BERT-based language model for modern Hebrew that outperforms existing Hebrew models across standard NLP tasks, and HebEMO, a tool built on HeBERT for polarity detection and emotion recognition in Hebrew user-generated content. HebEMO achieves an F1-score of 0.96 for polarity classification and 0.78–0.97 for emotion detection, outperforming even state-of-the-art English models.
This paper introduces HeBERT and HebEMO. HeBERT is a Transformer-based model for modern Hebrew text, which relies on a BERT (Bidirectional Encoder Representations for Transformers) architecture. BERT has been shown to outperform alternative architectures in sentiment analysis, and is suggested to be particularly appropriate for MRLs. Analyzing multiple BERT specifications, we find that while model complexity correlates with high performance on language tasks that aim to understand terms in a sentence, a more-parsimonious model better captures the sentiment of entire sentence. Either way, out BERT-based language model outperforms all existing Hebrew alternatives on all common language tasks. HebEMO is a tool that uses HeBERT to detect polarity and extract emotions from Hebrew UGC. HebEMO is trained on a unique Covid-19-related UGC dataset that we collected and annotated for this study. Data collection and annotation followed an active learning procedure that aimed to maximize predictability. We show that HebEMO yields a high F1-score of 0.96 for polarity classification. Emotion detection reaches F1-scores of 0.78-0.97 for various target emotions, with the exception of surprise, which the model failed to capture (F1 = 0.41). These results are better than the best-reported performance, even among English-language models of emotion detection.
Motivation & Objective
- To develop a high-performing BERT-based language model specifically for modern Hebrew, addressing the lack of robust pre-trained models for the language.
- To create a tool, HebEMO, capable of detecting sentiment polarity and emotions in Hebrew user-generated content (UGC), particularly from informal and diverse online sources.
- To collect and annotate a unique, Covid-19-related Hebrew UGC dataset using active learning to maximize predictive performance for emotion and sentiment tasks.
- To demonstrate that a more parsimonious BERT architecture can outperform complex variants in sentence-level sentiment understanding for Hebrew.
- To establish a new state-of-the-art benchmark for Hebrew sentiment and emotion analysis, surpassing existing models in both Hebrew and English.
Proposed method
- Fine-tuned a BERT-based architecture on a large-scale modern Hebrew corpus to create HeBERT, a contextualized language representation model optimized for Hebrew NLP tasks.
- Trained HebEMO on a uniquely collected and actively annotated Hebrew UGC dataset focused on Covid-19 discussions to improve relevance and predictive power.
- Employed active learning during data annotation to prioritize uncertain or informative samples, enhancing model generalization and performance.
- Utilized HeBERT as the base encoder in HebEMO, fine-tuned for both polarity classification and multi-class emotion recognition using sequence classification heads.
- Applied standard NLP evaluation metrics, including F1-score, to assess performance on sentiment and emotion detection tasks.
- Compared model performance across various emotion categories, identifying challenges in detecting surprise due to low annotation consistency or data scarcity.
Experimental results
Research questions
- RQ1Can a BERT-based model achieve superior performance on Hebrew NLP tasks compared to existing alternatives, particularly in sentiment understanding?
- RQ2Does a more compact BERT architecture outperform larger, complex models in capturing sentence-level sentiment in Hebrew?
- RQ3To what extent can a model trained on a domain-specific, actively annotated UGC dataset achieve high performance in polarity and emotion detection for Hebrew?
- RQ4How does HebEMO’s performance in emotion detection compare to state-of-the-art models in English, despite the low-resource nature of Hebrew?
- RQ5Why does the model fail to detect surprise effectively, and what does this reveal about data quality or model generalization in low-resource settings?
Key findings
- HeBERT outperforms all existing Hebrew language models across standard NLP benchmarks, establishing a new state-of-the-art for Hebrew representation learning.
- HebEMO achieves an F1-score of 0.96 for polarity classification, indicating near-expert performance on Hebrew sentiment analysis.
- Emotion detection performance varies by emotion, with F1-scores ranging from 0.78 to 0.97, demonstrating strong performance across most emotions.
- The model struggles with detecting surprise, achieving an F1-score of only 0.41, suggesting data sparsity or annotation challenges for this emotion.
- Despite being trained on a low-resource language, HebEMO’s performance exceeds that of the best-reported English emotion detection models in multiple evaluation settings.
- The study confirms that model simplicity can enhance sentence-level sentiment understanding in Hebrew, challenging the assumption that larger models always yield better results.
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.