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

Clarification : Fixed feature vectors #26

Closed
astariul opened this issue Nov 2, 2018 · 1 comment
Closed

Clarification : Fixed feature vectors #26

astariul opened this issue Nov 2, 2018 · 1 comment

Comments

@astariul
Copy link

astariul commented Nov 2, 2018

Please correct me if I'm wrong :

  • Feature vectors are word embeddings, for each token of the input file.
  • These vectors can be used as ELMo / GloVe : as a base for a bigger neural network.

If these assumptions are right, here is my question :

From the use example :

python extract_features.py
...
--layers=-1,-2,-3,-4
...

Why would anyone be interested in features vectors from others layers than the last one ?

From my understanding, feature vectors from the last layer are complete. Feature vectors from other layers are not complete.

'Complete' is obviously the wrong word here, due to my lack of vocabulary / knowledge.

By the way, BERT is really amazing, congratulations and thank you for sharing it.

@cbockman
Copy link
Contributor

cbockman commented Nov 2, 2018

See section 5.4 in the paper: https://arxiv.org/pdf/1810.04805.pdf

tldr; better results from grabbing last 4 than just last 1.

@astariul astariul closed this as completed Nov 2, 2018
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