Skip to main content
QUICK REVIEW

[論文レビュー] Hate Speech and Offensive Language Detection using an Emotion-aware Shared Encoder

Khouloud Mnassri, Praboda Rajapaksha|arXiv (Cornell University)|Feb 17, 2023
Hate Speech and Cyberbullying DetectionComputer Science被引用数 3
ひとこと要約

本稿では、BERTおよびmBERTを共有エンコーダーとして用い、ハトークスおよび攻撃的言語を同時に検出するマルチタスク学習フレームワークを提案する。外部の感情特徴を統合することで、データが不均衡な状況下でも性能を向上させる。モデルはハトークス検出で3%の性能向上を達成し、共有表現と感情知識を活用することで誤検出を顕著に低減した。

ABSTRACT

The rise of emergence of social media platforms has fundamentally altered how people communicate, and among the results of these developments is an increase in online use of abusive content. Therefore, automatically detecting this content is essential for banning inappropriate information, and reducing toxicity and violence on social media platforms. The existing works on hate speech and offensive language detection produce promising results based on pre-trained transformer models, however, they considered only the analysis of abusive content features generated through annotated datasets. This paper addresses a multi-task joint learning approach which combines external emotional features extracted from another corpora in dealing with the imbalanced and scarcity of labeled datasets. Our analysis are using two well-known Transformer-based models, BERT and mBERT, where the later is used to address abusive content detection in multi-lingual scenarios. Our model jointly learns abusive content detection with emotional features by sharing representations through transformers' shared encoder. This approach increases data efficiency, reduce overfitting via shared representations, and ensure fast learning by leveraging auxiliary information. Our findings demonstrate that emotional knowledge helps to more reliably identify hate speech and offensive language across datasets. Our hate speech detection Multi-task model exhibited 3% performance improvement over baseline models, but the performance of multi-task models were not significant for offensive language detection task. More interestingly, in both tasks, multi-task models exhibits less false positive errors compared to single task scenario.

研究の動機と目的

  • マルチタスク学習を用いて、ハトークスおよび攻撃的言語検出におけるデータ不足とクラス不均衡の課題に対処する。
  • 関連するタスク(攻撃的コンテンツ分類および感情分類)間で表現を共有することで、モデルの一般化性能を向上させ、過学習を低減する。
  • 低リソースおよび不均衡な状況下での検出性能向上を目的として、外部の感情特徴を補助信号として有効に活用できるかを検証する。
  • 単語および多言語的文脈下で、BERTおよびmBERTが攻撃的言語検出に於いて共有エンコーダーとしてどのように機能するかを評価する。
  • 感情認識マルチタスク学習が、単一タスクベースラインと比較して誤検出をより少なくすることができるかを実証する。

提案手法

  • ハトークス検出および攻撃的言語検出の両タスクに共通するトランスフォーマー・エンコーダー(BERTまたはmBERT)を用い、文脈的表現を抽出する。
  • 外部の感情ラベル付きコーパスを活用して感情分類を補助タスクとして統合し、追加の監視信号を提供することでデータ効率を向上させる。
  • エンドツーエンドのマルチタスク学習設定でモデルを学習させ、共有エンコーダーが攻撃的コンテンツと感情特徴の両方の統合表現を学習する。
  • 特に不均衡データセットにおいて過学習を防ぐために、エアリー・ストッピングおよび学習率スケジューリングを適用する。
  • ハトークスおよび攻撃的言語データセットにおけるクラス不均衡に対処するため、重み付き交差エントロピー損失を用いる。
  • 標準的な自然言語処理指標(F1-macroおよび正解率)を用いて、マルチタスクモデル(MTL)と単一タスクベースライン(STL)の性能を比較する。
Figure 1: Overview of the BERT and mBERT-based: Single-task, and Multitask leveraging emotions representations (auxiliary task) model architecture in the detection of Hate speech “HS” and Offensive language “OFF” (main tasks) from text input
Figure 1: Overview of the BERT and mBERT-based: Single-task, and Multitask leveraging emotions representations (auxiliary task) model architecture in the detection of Hate speech “HS” and Offensive language “OFF” (main tasks) from text input

実験結果

リサーチクエスチョン

  • RQ1感情特徴を補助タスクとして統合することで、不均衡なデータセット上でのハトークスおよび攻撃的言語検出モデルの性能が向上するか?
  • RQ2共有エンコーダーを用いたマルチタスク学習は、分類精度および誤検出率の観点で単一タスク学習に比べてどのように異なるか?
  • RQ3mBERTを共有エンコーダーとして用いることで、ハトークスおよび攻撃的言語検出において、単語的BERTと比較して多言語的一般化性能が向上するか?
  • RQ4感情特徴は、特に誤検出(誤検出)の誤りをどれほど低減できるか?
  • RQ5攻撃的コンテンツ分類および感情分類タスクを同時に学習する際、異なる事前学習モデル(BERT対mBERT)の性能はどのように異なるか?

主な発見

  • マルチタスクモデルは、単一タスクベースラインと比較して、ハトークス検出で3%の性能向上を達成した。F1-macroスコアは、BERTでは0.9288、mBERTでは0.9204であった。
  • ハトークス検出で性能向上が見られたが、攻撃的言語検出では顕著な向上が見られなかった。これは、Davidson-OFFデータセットに91%の攻撃的サンプルが含まれるなど、極めて高いクラス不均衡に起因すると考えられる。
  • mBERT-MTLモデルは、ハトークス検出において、BERTベースのアンサンブルモデルと比較して、特に少数クラス(ハトークス)において誤検出のエラーが少ないことを示し、より高いロバストネスを示した。
  • 攻撃的言語検出において、BERT-MTLモデルは真正陽性率98.94%、偽陽性率1.06%を達成した。これは、BERT-STLモデルの14.40%と比較して顕著に低い値であった。
  • 混同行列の結果から、マルチタスクモデルは両タスクにおいて一貫して誤分類エラーを低減しており、特に偽陽性の低減が顕著であった。
  • 感情知識は、極めて不均衡なデータセットであっても、両タスクの分類性能を向上させる助けとなった。これは、感情特徴が攻撃的言語検出に有用な誘導的バイアスを提供することを示唆している。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。