self-debiasing icon indicating copy to clipboard operation
self-debiasing copied to clipboard

`generate_self_debiasing` not implemented for `T5`

Open pullelys opened this issue 3 years ago • 0 comments

Hi, I noticed that the generate_self_debiasing function is not implemented for the T5 model:

https://github.com/timoschick/self-debiasing/blob/c9764e545a631b0eb9cbbb9068074d84a1718706/modeling.py#L131-L133

However, in Figure 1 of your paper you give examples of using T5 with self-debiasing.

Screenshot 2022-02-16 at 11 33 53

Would you mind publishing the code for self-debiasing with T5?

Given that T5 is an encoder-decoder model, I assume that self-debiasing has to be performed differently to GPT2, i.e. instead of debiasing the continuation of a prompt, T5 debiases the input sentence itself, or more precisely, the text that is generated for the span in the input sentence that is replaced by a sentinel token. Is it also possible to use self-debiasing with T5 if there are more than one sentinel tokens in the input sentence? Moreover, I'm wondering if it is possible to debias an input sentence with T5 without having to first replace the biased words by sentinel tokens.

pullelys avatar Feb 16 '22 10:02 pullelys