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

drastic impact of Changing the vocabulary on perplexity #233

Open
Krishnkant-Swarnkar opened this issue Jun 13, 2020 · 1 comment
Open

Comments

@Krishnkant-Swarnkar
Copy link

I was trying to train the ELMo on an augmented version of the 1 Billion Benchmark corpus. The augmented sentences bring in some extra proper nouns to the corpus. So, I added these extra proper nouns (a few thousand) to the default vocab.
I noticed that the training perplexity went to near 4 (just in one epoch of training).
I noticed that the code uses a sampled softmax, so I increased the "n_negative_samples_batch" by 5x. Still the perplexity remains nearly the same (after 1 epoch).
Isn't that weird? Any explainations?

@matt-peters
Copy link
Contributor

Yes that is weird. Possible explanations are:

  • your augmented 1 Billion Benchmark is much easier for a language model to learn then the original 1 Billion Benchmark (and therefore perplexity really is much lower)
  • it's a bug

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