Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for replicating MaxSkew results #1

Open
ryan-caesar-ramos opened this issue May 26, 2024 · 1 comment
Open

Code for replicating MaxSkew results #1

ryan-caesar-ramos opened this issue May 26, 2024 · 1 comment

Comments

@ryan-caesar-ramos
Copy link

Hi! First of all thanks for releasing code for your work

I'm very interested in replicating your experiments for FairFace/MaxSkew. Any chance you have code for it? Or if you could at least point me in the right direction regarding making a custom config yaml file for FairFace?

Thanks again!

@lan-lw
Copy link
Collaborator

lan-lw commented Jun 2, 2024

Thank you for your interests! For FairFace, we follow the setting of paper "Debiasing Vision-Language Models via Biased Prompts", adopting 10 training concepts to construct the prompts, including good, evil, smart, dumb, attractive, unattractive, lawful, criminal, friendly, unfriendly. We group the 10 training concepts into 5 opposite pairs, and conduct debiasing for each pair. For example, we use good and evil as a pair, assign y=0 to "A photo of a good celebrity." and y=1 to "A photo of a evil celebrity.", use gender or race as sensitive attribute, and then do debiasing as what we did for other dataset. After debiasing, we calculate the average MaxSkew@1000 for the 5 pairs. We will update the code for FairFace soon after cleaning up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants