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

About the prediction probability #23

Open
beotborry opened this issue Mar 12, 2024 · 1 comment
Open

About the prediction probability #23

beotborry opened this issue Mar 12, 2024 · 1 comment

Comments

@beotborry
Copy link

beotborry commented Mar 12, 2024

Thank you for your interesting work, and replying for my previous question.

I have an another question regarding computing prediction probability distribution of a given data x.

When I run the eval_prob_adaptive.py and get a array of losses with respect to each class prompt, I found that the losses are very close to each other.
That is, when I softmax the array, the probability for each class is close to 1/N which may not be desired.

I found that similar issue had been raised before. (#11 (comment))

Could you check about this issue?
Thank you in advance.

@alexlioralexli
Copy link
Collaborator

To get calibrated probabilities, you need to find the correct temperature scaling. If you have a small amount of training data, you can check out the approach in this paper to find the right scaling of the losses.

Note that eval_prob_adaptive only cares about finding the most likely class, not calibrated probabilities for each class. The adaptive approach may not be very calibrated for classes that are pruned early.

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