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

Different seeds lead to very different results in unsup BERT #63

Closed
kongds opened this issue Jul 26, 2021 · 4 comments
Closed

Different seeds lead to very different results in unsup BERT #63

kongds opened this issue Jul 26, 2021 · 4 comments

Comments

@kongds
Copy link

kongds commented Jul 26, 2021

Hello, thank you for sharing code.

I found the result of unsup BERT seems unstable to different seeds. I can reproduce the result of 76~ with the default seed, but when changing to different the seeds, the results seems worse than default seed. (I use '--seed' flag to set seed)
image

Have you encountered this problem?

@gaotianyu1350
Copy link
Member

Hi,

For the unsupervised model, the performance could be affected by different random seeds, hardwares, validation steps, etc. We have been using the default seed of Huggingface's transformers.

@kongds
Copy link
Author

kongds commented Jul 27, 2021

Thank you for your answer.
In this case, the performance is only affected by seeds. But I still have some concerns:

  1. Seeds may have a deviation of about 2% in spearsman, using a single seed as the final result seems inaccurate.
  2. When we use no default seeds, the performance seems to be worse. Does the searched hyperparameter only apply to the default seed?

@gaotianyu1350
Copy link
Member

Hi,

Thanks for the suggestion. We are also planning to add more trials and take the average for more accurate results. It's indeed probably the case that you need to re-tune the hyper-parameters when changing the seeds.

@kongds
Copy link
Author

kongds commented Jul 28, 2021

Thank you

@kongds kongds closed this as completed Jul 28, 2021
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