Case study 3 of 5

ML-assisted chat moderation

Fewer moderators needed to cover each timezone.

Joyn, Backend Engineer.

Skills: Machine Learning.

Problem

#

Communities running around the clock needed moderators in every timezone to catch rule violations and toxic messages.

Approach

#

Built ML-assisted moderation that flags rule violations and toxic content for action.

Two stages. Rule-based filters caught banned words and collected flagged messages and sentences as training data. That data was used to fine-tune a Hugging Face model that flags rule violations and toxic content. The model was also trained to answer some questions and to generate the reason given for each automod action, based on the infraction.

Base model: distilroberta-base, Hugging Face’s distilled version of Facebook’s RoBERTa.

Figure 1. Two stages: rule-filter hits became the training data for the fine-tuned model, which flags violations with a reason per infraction.