Papers › A benchmark for toxic comment classification on Civil Comments dataset

A benchmark for toxic comment classification on Civil Comments dataset

26 Jan 2023arXiv:2301.11125archive 2025-07-28

Corentin Duchene, Henri Jamet, Pierre Guillaume, Reda Dehak

Toxic comment detection on social media has proven to be essential for content moderation. This paper compares a wide set of different models on a highly skewed multi-label hate speech dataset. We consider inference time and several metrics to measure performance and bias in our comparison. We show that all BERTs have similar performance regardless of the size, optimizations or language used to pre-train the models. RNNs are much faster at inference than any of the BERT. BiLSTM remains a good compromise between performance and inference time. RoBERTa with Focal Loss offers the best performance on biases and AUROC. However, DistilBERT combines both good AUROC and a low inference time. All models are affected by the bias of associating identities. BERT, RNN, and XLNet are less sensitive than the CNN and Compact Convolutional Transformers.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Toxic Comment Classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Toxic Comment Classification Civil Comments RoBERTa Focal Loss AUROC 0.9818 #1 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa Focal Loss GMB BNSP 0.9581 #1 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa Focal Loss GMB BPSN 0.901 #1 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa Focal Loss GMB Subgroup 0.8807 #1 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa Focal Loss Macro F1 0.4648 #1 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa Focal Loss Micro F1 0.5524 #1 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa Focal Loss Precision 0.4017 #1 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa Focal Loss Recall 0.8839 #1 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments AlBERT AUROC 0.979 #2 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments AlBERT GMB BNSP 0.9499 #2 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments AlBERT GMB BPSN 0.8982 #2 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments AlBERT GMB Subgroup 0.8734 #2 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments AlBERT Macro F1 0.3541 #2 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments AlBERT Micro F1 0.4845 #2 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments AlBERT Precision 0.3247 #2 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments AlBERT Recall 0.9104 #2 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BERTweet AUROC 0.979 #3 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BERTweet GMB BNSP 0.9603 #3 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BERTweet GMB BPSN 0.8945 #3 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BERTweet GMB Subgroup 0.878 #3 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BERTweet Macro F1 0.3612 #3 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BERTweet Micro F1 0.4928 #3 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BERTweet Precision 0.3363 #3 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BERTweet Recall 0.9216 #3 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments HateBERT AUROC 0.9791 #4 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments HateBERT GMB BNSP 0.9589 #4 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments HateBERT GMB BPSN 0.8915 #4 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments HateBERT GMB Subgroup 0.8744 #4 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments HateBERT Macro F1 0.3679 #4 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments HateBERT Micro F1 0.4844 #4 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments HateBERT Precision 0.3297 #4 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments HateBERT Recall 0.9165 #4 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa BCE AUROC 0.9813 #5 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa BCE GMB BNSP 0.9616 #5 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa BCE GMB BPSN 0.8901 #5 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa BCE GMB Subgroup 0.88 #5 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa BCE Macro F1 0.4749 #5 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa BCE Micro F1 0.5359 #5 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa BCE Precision 0.3836 #5 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments RoBERTa BCE Recall 0.8891 #5 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLM RoBERTa GMB BPSN 0.8859 #6 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLM RoBERTa Micro F1 0.468 #6 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLM RoBERTa Precision 0.3135 #6 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLM RoBERTa Recall 0.923 #6 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLNet GMB BNSP 0.9597 #7 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLNet GMB BPSN 0.8834 #7 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLNet GMB Subgroup 0.8689 #7 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLNet Macro F1 0.3336 #7 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLNet Micro F1 0.4586 #7 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLNet Precision 0.3045 #7 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments XLNet Recall 0.9254 #7 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments DistilBERT AUROC 0.9804 #8 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments DistilBERT GMB BNSP 0.9644 #8 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments DistilBERT GMB BPSN 0.874 #8 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments DistilBERT GMB Subgroup 0.8762 #8 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments DistilBERT Macro F1 0.3879 #8 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments DistilBERT Micro F1 0.5115 #8 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments DistilBERT Precision 0.3572 #8 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments DistilBERT Recall 0.9001 #8 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BiGRU GMB BPSN 0.8616 #9 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 44 AUROC 0.966 #10 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 44 GMB BPSN 0.8493 #10 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 44 GMB Subgroup 0.8421 #10 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 44 Macro F1 0.4648 #10 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 44 Micro F1 0.5958 #10 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 44 Precision 0.4835 #10 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 44 Recall 0.7759 #10 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 56 AUROC 0.9639 #11 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 56 GMB BPSN 0.8445 #11 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 56 GMB Subgroup 0.8487 #11 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 56 Macro F1 0.3778 #11 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Unfreeze Glove ResNet 56 Recall 0.8707 #11 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Compact Convolutional Transformer (CCT) AUROC 0.9526 #12 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Compact Convolutional Transformer (CCT) GMB BNSP 0.9447 #12 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Compact Convolutional Transformer (CCT) GMB BPSN 0.8307 #12 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Compact Convolutional Transformer (CCT) GMB Subgroup 0.8133 #12 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Compact Convolutional Transformer (CCT) Macro F1 0.3428 #12 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Compact Convolutional Transformer (CCT) Micro F1 0.4874 #12 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Compact Convolutional Transformer (CCT) Precision 0.3507 #12 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Compact Convolutional Transformer (CCT) Recall 0.7983 #12 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Freeze Glove ResNet 44 GMB BPSN 0.7876 #13 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Freeze Glove ResNet 44 GMB Subgroup 0.8219 #13 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Freeze Glove ResNet 44 Macro F1 0.4189 #13 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Freeze Glove ResNet 44 Micro F1 0.5591 #13 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Freeze Glove ResNet 44 Precision 0.4631 #13 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments Freeze Glove ResNet 44 Recall 0.7053 #13 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BiLSTM GMB Subgroup 0.8636 #14 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BiLSTM Micro F1 0.5115 #14 of 22 Archive leaderboard report
Toxic Comment Classification Civil Comments BiLSTM Precision 0.3572 #14 of 22 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AdamAttentionAttention DropoutBERTBPEBiLSTMDense ConnectionsDistilBERTDropoutFocal LossLSTMLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionRoBERTaSentencePieceSigmoid ActivationSoftmaxTanh ActivationWeight DecayWordPieceXLNet

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections