Design a Toxicity Detection System for In-Game Chat

Last updated: November 29, 2026

Quick Overview

Design an ML system that flags toxic messages in League of Legends and VALORANT text chat in near real time, feeds player behavior penalties, and keeps false penalties low across many languages.

Riot Games
ML System Design
Machine Learning Engineer
Riot Games
November 29, 2026
Machine Learning Engineer
Onsite
ML System Design
Medium

0

0

0 solved


Design an ML system that flags toxic messages in League of Legends and VALORANT text chat in near real time, feeds player behavior penalties, and keeps false penalties low across many languages.

An ML system design question for player dynamics and trust and safety teams, given how much Riot invests in reducing in-game harassment. The interviewer checks labeling strategy with noisy player reports, multilingual modeling, latency constraints, and the policy layer that turns scores into penalties fairly.

What the Interviewer Expects
  • Define the action: mask, warn, mute, or chat restriction, and its cost of error
  • Combine player reports, human review and policy as label sources
  • Handle multilingual text, slang and evasion spellings
  • Separate a fast online filter from slower offline review
  • Measure precision at the penalty threshold and appeal outcomes
  • Discuss context: friendly banter between premades versus targeted abuse
Key Topics to Cover
text classification
label noise
multilingual models
precision and recall trade-offs
trust and safety
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you handle mass false reports from a losing team?
  • How would you add voice chat to the same system?
  • How do you detect model drift when players invent new slurs?
  • How do you evaluate fairness across regions and languages?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Two paths. Online: score every message within tens of milliseconds to optionally mask severe slurs before display. Offline: after a match, combine message scores, reports and history to decide penalti...

High-Level Design

Chat service publishes messages to a stream. A lightweight online model (a distilled multilingual transformer or a strong lexicon plus small model) returns a severity score; above a high threshold the...


Submit Your Answer
Markdown supported

Related Questions