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

Bug in loss? #1

Open
rachtibat opened this issue Jan 10, 2024 · 0 comments
Open

Bug in loss? #1

rachtibat opened this issue Jan 10, 2024 · 0 comments

Comments

@rachtibat
Copy link

Hey,

thanks for the nice work!
I've noticed that you subtract in

delta_cross_entropies_matrix[i] = (default_loss - loss)

the ground truth loss from the suppressed loss.

However, in your paper you do it the other way around as far as I understand: subtracting the suppressed loss from the ground truth. In my experiments, the latter also makes more sense because the suppressed loss should be bigger than the ground truth loss if you flip the correct token and if you want to assign a positive importance value to it.

Is this a bug?

Thanks!

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

1 participant