diff --git a/README.md b/README.md index d33b586..1c83e12 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ datasets: This model is a fine-tune checkpoint of [DistilBERT-base-uncased](https://huggingface.co/distilbert-base-uncased), fine-tuned on SST-2. This model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert-base-uncased version reaches an accuracy of 92.7). +For more details about DistilBERT, we encourage users to check out [this model card](https://huggingface.co/distilbert-base-uncased). + # Fine-tuning hyper-parameters - learning_rate = 1e-5 @@ -17,3 +19,13 @@ This model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert - warmup = 600 - max_seq_length = 128 - num_train_epochs = 3.0 + +# Bias + +Based on a few experimentations, we observed that this model could produce biased predictions that target underrepresented populations. + +For instance, for sentences like `This film was filmed in COUNTRY`, this binary classification model will give radically different probabilities for the positive label depending on the country (0.89 if the country is France, but 0.08 if the country is Afghanistan) when nothing in the input indicates such a strong semantic shift. In this [colab](https://colab.research.google.com/gist/ageron/fb2f64fb145b4bc7c49efc97e5f114d3/biasmap.ipynb), [Aurélien Géron](https://twitter.com/aureliengeron) made an interesting map plotting these probabilities for each country. + +Map of positive probabilities per country. + +We strongly advise users to thoroughly probe these aspects on their use-cases in order to evaluate the risks of this model. We recommend looking at the following bias evaluation datasets as a place to start: [WinoBias](https://huggingface.co/datasets/wino_bias), WinoGender, [Stereoset](https://huggingface.co/datasets/stereoset). diff --git a/map.jpeg b/map.jpeg new file mode 100644 index 0000000..248fa5a Binary files /dev/null and b/map.jpeg differ