[Paper Review] Cost-Sensitive BERT for Generalisable Sentence Classification with Imbalanced Data
This paper proposes a cost-sensitive BERT framework to improve generalization in sentence-level propaganda classification under data imbalance and distribution shift. By incorporating cost-weighting during fine-tuning and introducing a statistical similarity measure between training and test datasets, the method achieves the second-highest F1 score (0.4347) on the Propaganda Techniques Corpus, outperforming standard BERT and data augmentation techniques on imbalanced, dissimilar data distributions.
The automatic identification of propaganda has gained significance in recent years due to technological and social changes in the way news is generated and consumed. That this task can be addressed effectively using BERT, a powerful new architecture which can be fine-tuned for text classification tasks, is not surprising. However, propaganda detection, like other tasks that deal with news documents and other forms of decontextualized social communication (e.g. sentiment analysis), inherently deals with data whose categories are simultaneously imbalanced and dissimilar. We show that BERT, while capable of handling imbalanced classes with no additional data augmentation, does not generalise well when the training and test data are sufficiently dissimilar (as is often the case with news sources, whose topics evolve over time). We show how to address this problem by providing a statistical measure of similarity between datasets and a method of incorporating cost-weighting into BERT when the training and test sets are dissimilar. We test these methods on the Propaganda Techniques Corpus (PTC) and achieve the second-highest score on sentence-level propaganda classification.
Motivation & Objective
- To address the challenge of poor model generalization when training and test data in NLP tasks are dissimilar, especially in propaganda detection.
- To improve performance on imbalanced datasets without relying on standard data augmentation techniques.
- To develop a statistical measure of dataset similarity to guide when cost-sensitivity is most beneficial.
- To enable BERT to adapt better to future, evolving data distributions by incorporating class-specific misclassification costs.
- To release code and models to support reproducibility and further research in cost-sensitive fine-tuning.
Proposed method
- Propose a cost-sensitive fine-tuning strategy for BERT by assigning class-specific weights to loss functions based on class imbalance and expected misclassification costs.
- Introduce a statistical similarity measure (e.g., using distributional distance metrics) between training and test sets to detect distribution shift.
- Apply cost-weighted cross-entropy loss during BERT fine-tuning to penalize misclassifications of minority classes more heavily.
- Use the similarity measure to decide whether to apply cost-sensitivity, avoiding unnecessary re-weighting on similar datasets.
- Train and evaluate on the Propaganda Techniques Corpus (PTC) for both sentence-level and fragment-level classification tasks.
- Release code and Colab notebooks to enable community reuse and extension of the method.
Experimental results
Research questions
- RQ1Does standard BERT fine-tuning generalize poorly when training and test data are dissimilar, even with class imbalance?
- RQ2Can cost-sensitive fine-tuning of BERT improve performance on imbalanced, out-of-distribution test sets in propaganda detection?
- RQ3How can dataset similarity between training and test sets be quantitatively measured to guide the use of cost-sensitivity?
- RQ4Does data augmentation improve BERT performance on imbalanced propaganda datasets, or is cost-sensitivity more effective?
- RQ5Can cost-sensitive BERT achieve state-of-the-art performance on fine-grained propaganda detection benchmarks?
Key findings
- Standard data augmentation techniques do not improve BERT performance on imbalanced propaganda datasets, suggesting BERT inherently handles class imbalance well.
- The proposed cost-sensitive BERT method achieved the second-highest F1 score (0.4347) on the sentence-level classification task, outperforming baseline BERT and other methods.
- On the fragment-level classification task, the model achieved the 7th rank with an F1 score of 0.098969, indicating room for improvement in handling fragmented propaganda cues.
- The statistical similarity measure between datasets helps identify when cost-sensitivity is most beneficial, particularly when training and test data differ significantly in topic or distribution.
- The method’s effectiveness is validated through participation in a shared task, demonstrating real-world applicability and competitive performance.
- The authors released code and Colab notebooks to support reproducibility and further research in cost-sensitive NLP.
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.