LIVE · Thursday 3 December

Best Toxicity Detection Model for Gaming Chat Slang: APIs, LLMs and Fine-Tuned BERT Compared by Situation

A fine-tuned DeBERTa or BERT model trained on your own game's chat, reading the conversation, is the best-supported choice. Here is what to use if you can't build one yet, what each option costs, and what nobody has measured.

By Thomas8 min read

For slang-heavy gaming chat, the best toxicity detection model is a small DeBERTa-v3 or BERT-class classifier fine-tuned on a few thousand labelled messages from your own game, with the previous lines of chat as input. Every published game-chat study points that way: fine-tuned models beat Perspective API, Detoxify, generic toxicity classifiers and GPT-4o because the general tools misread trash talk. If you cannot train one yet, OpenAI's free Moderation endpoint or the open-source Detoxify will do as a stopgap behind human review, but no one has published a comparison of Detoxify, Perspective API and OpenAI Moderation on gaming slang false positives, and Perspective itself shuts down on December 31, 2026.

What separates the options

Three things decide how well a toxicity model handles game chat, and the options differ on all of them.

The first is what it was trained on. Detoxify's models learned from Jigsaw's Wikipedia-comment and Civil Comments datasets, and its README warns that a comment containing swearing, insults or profanity is likely to be classified as toxic "regardless of the tone or the intent of the author," giving humorous or self-deprecating remarks as the example. In a match, that is most banter.

The second is whether it reads context. Game chat lines are tiny: Ubisoft researchers measured averages of 3.2 words in Rainbow Six Siege and 2.41 in DOTA 2, against 54.6 in Civil Comments. With 21 to 30 lines of history available, their full ToxBuster model scored an F1 of 84.3 against 75.9 for a version that reads one line at a time. Overall, their ToxBuster model's F1 rose from 77.4 on single lines to 83.3 when it read the chat history and knew which player, team and channel each line came from. Per-message APIs see only the line.

The third is false positives. A League of Legends study published in April 2026, titled after the phrase "bot lane noob", found GPT-4o and Llama 3.2 had precision below 0.4 on in-match chat, so most of what they flagged was harmless. Fine-tuning Toxic-BERT on about 12,000 messages labelled by expert players cut false positives on its test set from 137 to 32.

The options compared

Option Best for Price Main drawback
OpenAI Moderation A free stopgap behind human review Free No published test on game chat; model changes over time
Detoxify (open source) Self-hosting; a base to fine-tune Free software, plus hosting F1 40.3 on Rainbow Six Siege (2023)
Perspective API Nothing new Service ends December 31, 2026 F1 36.8 on Rainbow Six Siege (2023)
General LLM on every line Second opinions on borderline lines About $0.021 per 1,000 messages (Haiku 5.5, cached) GPT-4o precision 35 on League of Legends
Fine-tuned BERT or DeBERTa with context Live chat filtering One GPU, about $3,950 a month Needs labelled chat from your game

The scores come from different studies, games and label sets, so they show direction rather than a ranking. The fine-tuned models in those studies scored F1 83.3 on Rainbow Six Siege and 0.76 on League of Legends, and the GameTox shared-task winner reached a macro-F1 of 0.704. The Rainbow Six Siege figures are from Ubisoft's October 2023 paper, which ran 2023 versions of Perspective and Detoxify against ToxBuster on the simpler toxic-or-not task. GameTox's 0.704 is a macro-F1 across six classes in the EEUCA 2026 shared task, where 35 teams competed on World of Tanks chat.

If you need something running this month

Use OpenAI Moderation or off-the-shelf Detoxify, and treat their flags as a queue for moderators, not as verdicts. OpenAI's guide says the endpoint "is free to use" and scores 13 categories including harassment, hate and violence. It does not mention language coverage or accuracy on any benchmark, and OpenAI says it upgrades the underlying model continuously, so thresholds may drift. Its false-positive rate on gaming slang has not been measured.

Detoxify scored an F1 of 40.3 on Rainbow Six Siege and 57.0 on For Honor in Ubisoft's tests, and below 6 on DOTA 2, where the authors blamed game slang. Its advantage is that it runs on your own hardware under an Apache-2.0 licence and can be fine-tuned later.

Forum operators reached the same conclusion years ago. When Discourse users ran Perspective over their forums in 2018, one long-standing member landed on the "most toxic" list because he signed off with his nickname, Dick; several participants suggested using the scores to flag posts for review rather than to act automatically. The Coral Project's phrase for it was "machine-assisted, not machine-run."

Do not start on Perspective. Its site says the service ends after December 31, 2026, with no extensions.

If you have chat logs and a moderation team

Train your own model. The evidence is consistent across five games. ToxBuster, a BERT model trained on Ubisoft's own chat, scored F1 83.3 on Rainbow Six Siege and 84.5 on DOTA 2. IGC-BERT reached F1 0.76 on League of Legends against 0.59 for the model it was fine-tuned from, and 0.85 when it judged a player's messages in ten-second groups. On GameTox, the top three shared-task systems were fine-tuned encoders from the BERT family; second place used an mDeBERTa-v3 model pre-trained for one epoch on Jigsaw data, then fine-tuned on GameTox.

How much labelled data you need has not been mapped with a learning curve, and nobody has published how a GameTox-trained model transfers to another title. Ubisoft found a model trained on Rainbow Six Siege matched a from-scratch For Honor model "with less than half the training data," but the League of Legends authors say their model "does not work so well" on other games. Plan to label chat from your own game, with players of that game doing the labelling, and include a set of benign trash talk ("gg ez", "noob", "kill him" as a callout) so you can measure false positives directly.

Expect to keep a human in the loop. ToxBuster's authors say their model is not suitable for fully automated moderation without active learning, and that, tuned to game banter, it may score as neutral some phrases that would be threats in everyday language.

If most of your chat isn't English

Budget more labels and expect lower scores. Ubisoft's 2025 multilingual follow-up reported macro-F1 of 33 to 59 percent on real French, German, Portuguese and Russian game chat, using GPT-4o-mini to transfer labels across languages. In the ToxBuster tests, Perspective returned errors on about 13 percent of chat lines because it did not support their language. Detoxify's multilingual model covers seven languages.

Where LLMs belong

As a second stage, not the first filter. Beyond the League of Legends precision problem, a 2025 study of YouTube comments found GPT-4.1, Gemini 1.5 Pro and Claude 3 Opus all struggled with sarcasm, coded insults and mixed-language slang, though Claude 3 Opus reached 0.92 precision. The best LLM entry in the GameTox task, a fine-tuned Llama 3.1 8B, came fourth with 0.623, and its author warned that validation scores overstated test performance. LLMs earn their place on the small share of lines your classifier is unsure about, and in generating training examples for rare classes such as threats, as the winning team did.

Teams that would rather not build this two-stage setup themselves have a managed option. Parsec, a small language model lab, sells the pattern as a service: its inference page describes tracing production requests, building datasets and evaluations the customer approves, fine-tuning a compact model, and passing requests the model is not confident about to a closed frontier model. Its site says customers can download the weights. It publishes no price for the service and no results on toxicity or game chat, so it would need the same test on your own labelled sample as any other option.

A worked cost example

Latency for these options on game chat has not been measured in any of the sources, so this example covers cost only. Assume a game with 10 million chat messages a day, about 300 million a month or 116 a second. An LLM call uses 450 input tokens (300 of fixed instructions, 150 of message and recent context) and returns a 5-token label.

Running an LLM on every line is the expensive route. At Claude Haiku 5.5's list prices of $0.10 per million input tokens and $0.50 per million output, that comes to about $0.048 per 1,000 messages, or $14,250 a month. Caching the fixed instructions at $0.01 per million brings that to about $0.021 per 1,000, or $6,150 a month. OpenAI's gpt-6-luna has the same list prices, before any reasoning tokens it adds. The cheapest LLM option, OpenAI's gpt-5-nano at $0.05 in and $0.40 out, comes to $7,350 a month, or about $3,300 cached.

A fine-tuned BERT-class model on one Together H100 dedicated endpoint, at $5.49 an hour, costs about $3,950 a month at any volume. Whether one GPU carries 116 messages a second with long context has not been measured; the League of Legends team ran a quantised version of its model on a CPU inside a browser extension, which suggests the hardware bar is low. The hybrid, with the small model on everything and Haiku 5.5 on the least confident 5 percent, adds about $310 to that, for roughly $4,260 a month. OpenAI Moderation as an extra signal on every line adds nothing, because it is free.

At this volume the hybrid costs about two-thirds as much as running cached Haiku 5.5 on every line. Cached gpt-5-nano is cheaper still, but it means trusting a general LLM as the live filter, which is the setup the research argues against.

Bottom line

If you have logs and a team, fine-tune a DeBERTa-v3 or BERT-class model on your own labelled chat with conversation history as input, and send its uncertain cases to an LLM or a moderator. If you need cover now, run OpenAI Moderation or Detoxify behind human review and measure their false positives on your own trash talk before trusting them. If you are on Perspective, plan the switch before December 31. Whatever you choose, test it on your game's chat, because no published benchmark covers your slang.

Sources

More in Research

All Research →