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

Contradiction between public results and bert_example.ipynb #10

Open
Bachstelze opened this issue May 4, 2024 · 5 comments
Open

Contradiction between public results and bert_example.ipynb #10

Bachstelze opened this issue May 4, 2024 · 5 comments

Comments

@Bachstelze
Copy link

The left bar in figure 4 a) in the paper shows the relative predicted probability for the two possible pronouns, “his” and “her” with a correct prediction to "his" for the input "the author talked to sara about [MASK] book". bert_example.ipynb is giving the opposite result for that sentence:
grafik

@Bachstelze
Copy link
Author

This false result is also produced by the pipelined huggingface inference API:
grafik

@Bachstelze
Copy link
Author

With bert-base-case the results are also wrong:
grafik
Also without punctuation:
grafik

@HelloWorldLTY
Copy link

I think it make senes because during the plot the authors only keep his and her to display. In the plot you showed, the probability of her is always higher than his.

@Bachstelze
Copy link
Author

@HelloWorldLTY What do you mean by "during the plot the authors only keep his and her to display"?
The contradicting result is only about this input sentence "the author talked to sara about [MASK] book".

@Bachstelze
Copy link
Author

The reason for the different results is probably different model sizes. BERT-large gives the same result as in the paper:
grafik

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