-
Notifications
You must be signed in to change notification settings - Fork 304
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
Use Rotary Embeddings in SRU++ #182
Comments
Thank you @bratao. Let me take a look and get back to you. |
Thank you @taoleicn . I did a very possibly wrong implementation here |
Thanks for sharing @bratao. I read the paper and it is indeed very interesting. |
@taoleicn I only tested on toy examples and them converged faster. Unfortunately, I'm too overwhelmed with work to test on something like enwik8 Did you had the opportunity to check if I placed on the right place on my implementation? I have a big impression that I placed on the wrong place. |
@taolei87 I'm way too excited with SRUpp. I already adopted in all my projects with impressive results.
Recently the great people at Eleuther.ai found a silver-bullet in transformers. The Rotary Embeddings.
The RoPE is a relative position encoding method with promise theoretical properties. The main idea is to multiply the context embeddings (q,k in the Transformer) by rotation matrices depending on the absolute position. One can prove that the inner product of the context embeddings will become only depending on the relative position.
It gave a performance increase in virtually all tasks tested.
There is more information here:
https://blog.eleuther.ai/rotary-embeddings/
From the little of I understood of SRU++ builds in self-attention, it would be possible to use in SRUppAttention to q, k. Do you think that worth the test?
The text was updated successfully, but these errors were encountered: