r/learnmachinelearning • u/ChawGaurabGogoi • 2d ago
TIL DistilBERT is actually MORE gender-biased than BERT. Here’s why Knowledge Distillation causes it (and the simple fix).
Knowledge Distillation is often seen as an effortless way to compress a large model such as BERT to form a smaller DistilBERT, yet maintaining 97% of its performance.
Nevertheless, a paper by Ahn et al. (GeBNLP) found that smaller distilled models end up noticeably more gender-biased than the original teacher models they learned from.
Why does this happen?
During distillation, the student model learns to closely replicate their teacher’s most assured predictions. Since the student model is less powerful than the large teacher, it must take ‘shortcuts’, which unintentionally reinforce gender biases already present in the training data.
The fix:
The authors introduced a modified version of a technique known as ‘Mixup’, which involves mixing two training samples into the distillation process. This causes the student to reduce over-assertiveness and successfully limits the magnification of gender bias, with no negative effect upon GLUE performance.
If you would like to see my (brief and easily understandable) paper summary, then please see below:
