VictorSanh
HF staff
commited on
Commit
2b5f963
1 Parent(s): 03b4d19

Include bias mention to model card.

Browse files

Co-authored-by Margaret Mitchell @meg

Co-authored-by Sasha Luccioni @sashavor

Files changed (2) hide show
  1. README.md +12 -0
  2. map.jpeg +0 -0
README.md CHANGED
@@ -10,6 +10,8 @@ datasets:
10
  This model is a fine-tune checkpoint of [DistilBERT-base-uncased](https://huggingface.co/distilbert-base-uncased), fine-tuned on SST-2.
11
  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).
12
 
 
 
13
  # Fine-tuning hyper-parameters
14
 
15
  - learning_rate = 1e-5
@@ -17,3 +19,13 @@ This model reaches an accuracy of 91.3 on the dev set (for comparison, Bert bert
17
  - warmup = 600
18
  - max_seq_length = 128
19
  - num_train_epochs = 3.0
 
 
 
 
 
 
 
 
 
 
10
  This model is a fine-tune checkpoint of [DistilBERT-base-uncased](https://huggingface.co/distilbert-base-uncased), fine-tuned on SST-2.
11
  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).
12
 
13
+ For more details about DistilBERT, we encourage users to check out [this model card](https://huggingface.co/distilbert-base-uncased).
14
+
15
  # Fine-tuning hyper-parameters
16
 
17
  - learning_rate = 1e-5
19
  - warmup = 600
20
  - max_seq_length = 128
21
  - num_train_epochs = 3.0
22
+
23
+ # Bias
24
+
25
+ Based on a few experimentations, we observed that this model could produce biased predictions that target underrepresented populations.
26
+
27
+ 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.
28
+
29
+ <img src="map.jpeg" alt="Map of positive probabilities per country." width="500"/>
30
+
31
+ 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).
map.jpeg ADDED
Binary file