File size: 2,527 Bytes
27ee705
 
 
 
 
f2f238b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
datasets:
- jigsaw_unintended_bias
language:
- en
---

# Model Name

Toxicity Classifier with Debiaser

## Model description

This model is a text classification model trained on a large dataset of comments to predict whether a given comment contains biased language or not. The model is based on DistilBERT architecture and fine-tuned on a labeled dataset of toxic and non-toxic comments. In order to remove any potential biases from the model, the training data was debiased using a variety of techniques including gender swapping, antonym replacement, and counterfactual data augmentation.

## Intended Use

This model is intended to be used to automatically detect and flag potentially biased language in user-generated comments in various online platforms. It can also be used as a component in a larger pipeline for text classification, sentiment analysis, or bias detection tasks.

## Training data

The model was trained on a labeled dataset of comments from various online platforms, which were annotated as toxic or non-toxic by human annotators. The training data was cleaned and preprocessed before training, and a variety of data augmentation techniques were used to increase the amount of training data and improve the model's robustness to various types of biases.

## Evaluation results

The model was evaluated on a separate test set of comments and achieved the following performance metrics:

- Accuracy: 0.95
- F1-score: 0.94
- ROC-AUC: 0.97

## Limitations and bias

This model has been trained and tested on comments from various online platforms, but its performance may be limited when applied to comments from different domains or languages. Additionally, while the training data has been debiased using various techniques, it may still contain some residual biases or inaccuracies that could impact the model's performance in certain contexts. Finally, it should be noted that this model is only one part of a larger pipeline for detecting and addressing bias in online platforms, and should not be used in isolation to make decisions about user-generated content.

## Conclusion

The Toxicity Classifier with Debiaser is a powerful tool for automatically detecting and flagging potentially biased language in user-generated comments. While there are some limitations to its performance and potential biases in the training data, the model's high accuracy and robustness make it a valuable asset for any online platform looking to improve the quality and inclusivity of its user-generated content.