Cost-Sensitive BERT for Generalisable Sentence Classification with Imbalanced Data

Harish Tayyar Madabushi, Elena Kochkina, Michael Castelle
3/16/2020
cs.CLcs.LGstat.ML

Official code: H-TayyarMadabushi/Cost-Sensitive_Bert_and_Transformers (18 stars, Python, Apache-2.0, last commit 2020-05-28).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Transformers for Cost-Sensitive BERT for Generalisable Sentence Classification on Imbalanced Data

183Python, Jupyter NotebookMay 9, 20206 years agoApache-2.0

Similar Papers

Cite this paper

@article{madabushi2020costsensitive,
  title  = {Cost-Sensitive BERT for Generalisable Sentence Classification with Imbalanced Data},
  author = {Harish Tayyar Madabushi and Elena Kochkina and Michael Castelle},
  year   = {2020},
  eprint = {2003.11563},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.11563}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.11563.svg)](https://codeofpaper.com/paper/2003.11563)

Discussion