News for hackers. Stuff that matters.
Re:What Are Transformer Models and How Do They Work? by sillysaurusx on Saturday April 15, 2023 @12:29AM (#35577606)
The positional embedding can be thought of: in the same way you can hear two pieces of music overlaid on each other, you can add both the vocab and pos embedding and it’s able to pick them apart.

If you asked yourself to identify when someone’s playing a high note or low note (pos embedding) and whether they’re playing Beethoven or Lady Gaga (vocab embedding) you could do it.

That’s why it’s additive and why it wouldn’t make much sense for it to be multiplicative.

Re:What Are Transformer Models and How Do They Work? by isaacfung on Saturday April 15, 2023 @06:45AM (#35579380)
The visualisation here may be helpful.

https://github.com/tensorflow/tensor2tensor/issues/1591

Re:What Are Transformer Models and How Do They Work? by jaidhyani on Sunday April 16, 2023 @12:34PM (#35591536)
Thanks, that's a really useful intuition!