PeerJ Computer Science (Jun 2021)

Investigating cross-lingual training for offensive language detection

  • Andraž Pelicon,
  • Ravi Shekhar,
  • Blaž Škrlj,
  • Matthew Purver,
  • Senja Pollak

DOI
https://doi.org/10.7717/peerj-cs.559
Journal volume & issue
Vol. 7
p. e559

Abstract

Read online Read online

Platforms that feature user-generated content (social media, online forums, newspaper comment sections etc.) have to detect and filter offensive speech within large, fast-changing datasets. While many automatic methods have been proposed and achieve good accuracies, most of these focus on the English language, and are hard to apply directly to languages in which few labeled datasets exist. Recent work has therefore investigated the use of cross-lingual transfer learning to solve this problem, training a model in a well-resourced language and transferring to a less-resourced target language; but performance has so far been significantly less impressive. In this paper, we investigate the reasons for this performance drop, via a systematic comparison of pre-trained models and intermediate training regimes on five different languages. We show that using a better pre-trained language model results in a large gain in overall performance and in zero-shot transfer, and that intermediate training on other languages is effective when little target-language data is available. We then use multiple analyses of classifier confidence and language model vocabulary to shed light on exactly where these gains come from and gain insight into the sources of the most typical mistakes.

Keywords