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)|2023. 02. 17.
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공유 인코더를 사용한 다중 작업 학습은 단일 작업 학습 대비 분류 정확도와 잘못된 양성 비율 측면에서 어떻게 비교되는가?
  • RQ3단일 언어 BERT 대비 다중 언어 mBERT를 공유 인코더로 사용할 경우, 혐오 및 모욕적 언어 탐지에서 교차 언어 일반화 능력이 향상되는가?
  • RQ4감정 특징은 특히 잘못된 양성 결과를 줄이는 데 얼마나 기여하는가?
  • RQ5다양한 사전 훈련된 모델(BERT 대비 mBERT)은 모욕적 콘텐츠 및 감정 분류 작업을 함께 학습할 때 어떻게 성능을 발휘하는가?

주요 결과

  • 다중 작업 모델은 단일 작업 기반 모델 대비 혐오 발언 탐지에서 3% 성능 향상을 달성했으며, BERT와 mBERT의 경우 F1-macro 점수는 각각 0.9288과 0.9204를 기록했다.
  • 혐오 발언 탐지에서 성능 향상이 있었지만, 모욕적 언어 탐지에서는 유의미한 향상이 없었는데, 이는 Davidson-OFF 데이터셋에서 모욕적 샘플 비율이 91%로 매우 높아서일 가능성이 있다.
  • mBERT-MTL 모델은 BERT 기반 앙상블 모델 대비 혐오 발언 탐지에서 더 적은 잘못된 양성 결과를 보였으며, 특히 소수 클래스(혐오 발언)에서 더 뛰어난 내성성을 보였다.
  • 모욕적 언어 탐지에서 BERT-MTL 모델은 진짜 양성 비율 98.94%와 잘못된 양성 비율 1.06%를 기록했으며, BERT-STL 모델의 14.40%보다 유의미하게 낮았다.
  • 혼동 행렬 분석을 통해 다중 작업 모델이 둘 다의 작업에서 일관되게 오분류 오류를 줄였으며, 특히 잘못된 양성 결과 감소에 효과적이었다.
  • 감정 지식은 매우 불균형한 데이터셋에서도 두 작업의 분류 성능 향상에 기여했으며, 이는 감정 특징이 모욕적 언어 탐지에 유용한 인덕티브 바이어스를 제공함을 시사한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.