Lurker News
I have zero AI/ML knowledge but Steve Yegge on Medium thinks that the team behind Transformers deserves a Nobel.

Makes me want to better understand this tech.
Edit: thank you for some amazing top level responses and links to valuable content on this subject.

Comments (228) 76 threads

Earlier comments
nil-sec2 replies#
Feedforward: y=Wx

Attention: y=W(x)x
W is Matrix, x & y Are vectors. In the second case, W is a function of the input.

Sai_1 reply#
You must be from a planet with very long years!

There is no way I can even begin to digest what you have said in your comment.

nil-sec#
Sorry maybe I should have added more explanation. One way to think about attention, which is the main distinguishing element in a transformer, is as an adaptable matrix. A feedforward layer is a matrix with static entries that do not change at inference time (only during training). The attention mechanism offers a way to have adaptable weight matrices at inference time (this is implemented by using three different matrices, K,Q & V called keys query and value in case you want to dig deeper).
oneearedrabbit1 reply#
I think in your notation it should have been:

y=Wx_0
y=W(x)x_0

nil-sec#
I guess I was more thinking about self attention, so yes. The more general case is covered by your notation!
whiplash4511 reply#
The best way to understand transformers is to take Andrej’s Karpathy course on youtube. With a keyboard and a lot of focus time.
quickthrower2#
It is hard but so worth it. It is hard to overstate how good it is. The pedagogy, the charisma/style, the fact he cofounded openai and worked for Elon but is a modest as say a math tutor popping into your house to teach you some math!

There is a great discord community attached too which makes a big difference.
What is missing from this and another course I did and is very hard to find is multivariate calculus on linear algebra. I feel motivated to create a resource on it because its pretty hard. For example how to differentiate matrix operations where broadcasting has been involved. Not just the how but really grokking it into working memory.

Buttons8401 reply#
I've been working through [0]. Like a lot of math, the notation is daunting, but once you become familiar with it, it really is a nice tool for thought.

[0]: https://arxiv.org/abs/2207.09238

elexhobby#
This! The best resource I've found to explain transformers, that made them clear to me. I wish all deep learning papers were written like this, using pseudocode.

Load more comments