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

Why are we enforcing fairness over the training data? #17

Open
Tracked by #21
Innixma opened this issue Feb 27, 2023 · 4 comments
Open
Tracked by #21

Why are we enforcing fairness over the training data? #17

Innixma opened this issue Feb 27, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Innixma
Copy link
Collaborator

Innixma commented Feb 27, 2023

For example in https://colab.research.google.com/drive/1GKzlciJ-Yy3Cej7dJmzK9YS6k12p8fox?usp=sharing

# Modify predictor to enforce fairness over the train_data with respect to groups given by the column 'sex'
fpredictor = FairPredictor(predictor,train_data,'sex')

Train data accuracy is irrelevant for how fair the model is on test-time data.

You should either pass the validation data or holdout data at this point.

@Innixma Innixma added the bug Something isn't working label Feb 27, 2023
@ChrisMRuss
Copy link
Contributor

There's a discussion of the issue in best practices.
https://github.com/autogluon/autogluon-fair#best-practices

Essentially it's a trade-off. For rare groups we would need a large validation set to reliably compute error rates -- hold-out is generally too small. For small tabular data, autogluon is robust enough against overfitting that, at least on adult, using train also works.

Either approach is viable for gender, but for ethnicity there's not enough data and you benefit from using the entirety of train.

@Innixma Innixma self-assigned this Feb 28, 2023
@Innixma
Copy link
Collaborator Author

Innixma commented Feb 28, 2023

I'd push back here: Random Forest literally memorizes the training data. Similar with KNN. This is so severe that any insights you get on training data performance will be largely useless.

We can do much better using the validation data, but an ever better idea is to use the out-of-fold prediction probabilities when bagging. This is akin to using the training data, but without the overfitting problem. This would work very well, I am quite certain.

I am pretty sure I can add this in a few lines of code, and it will make a big difference. I can try to allocate bandwidth, although can't promise I will find time.

@ChrisMRuss
Copy link
Contributor

That sounds awesome.

@Innixma
Copy link
Collaborator Author

Innixma commented Mar 1, 2023

#18 implements this

@Innixma Innixma mentioned this issue Mar 1, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants