Skip to main navigation Skip to search Skip to main content

A Framework for Explainable Toxic Language Detection in Online Game via Distilling Large Language Model

  • Tianbo Ji
  • , Ali Ala
  • , Penghui Liu
  • , Peng Ping
  • , Quanwei Sun
  • , Kechen Li
  • , Zongshan Wang
  • , Seyedali Mirjalili

Research output: Contribution to journal › Article › peer-review

Abstract

In recent years, online gaming has attracted increasing attention for its entertainment value and social interaction. However, this phenomenon may have also caused an increase in inappropriate in-game behaviors such as toxicity and cyberbullying. This paper introduces a new framework for achieving precise toxicity annotations on a large-scale corpus. We first extracted one million valid in-game utterances from public DOTA2 match data from 2018 to 2024, and then implemented a multistage annotation approach by leveraging advanced Natural Language Processing (NLP) techniques. Our approach employed GPT-4 on a subset of the data through complex example prompting to generate initial annotations, and we additionally applied a data augmentation strategy by paraphrasing low-frequency classifications to mitigate the inherent class imbalance in the dataset. With the balanced dataset, we trained a toxicity classifier and a rationale generator, which were applied to the full corpus. Our additional human evaluation experiment shows that this approach strongly agrees with human judgments. Furthermore, by using the fully annotated corpus, we investigated the patterns and trends of players' toxic behaviors in DOTA2 over six years. Thus, our proposed framework provides a promising solution to explainable toxic language detection and offers valuable insights into the dynamics of online toxicity in gaming communities.

Original languageEnglish
JournalIEEE Transactions on Games
DOIs
Publication statusAccepted/In press - 2026
Externally publishedYes

Fingerprint

Dive into the research topics of 'A Framework for Explainable Toxic Language Detection in Online Game via Distilling Large Language Model'. Together they form a unique fingerprint.

Cite this