Earlier quoted context omitted.
What does it mean for a lookup/hash table to be differentiable?
Going to go out on a limb and say they are probably referring to the gradient calculus required for updating the model. https://en.wikipedia.org/wiki/Differentiable_programming See automatic differentiation.
Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
71–80 of 240 posts
Re: Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
#72The Yannic kilcher review is quite good. https://youtu.be/iDulhoQ2pro I can't ELI5 but I can ELI-junior-dev. Tl;dw: Transformers work by basically being a differentiable lookup/hash table. First your input is tokenized and (N) tokens (this constitutes the attention frame) are encoded both based on token identity and position in the attention frame. Then there is an NxN matrix that is applied to your attention frame "…
What does it mean for a lookup/hash table to be differentiable?
Re: Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
#73Earlier quoted context omitted.
What does it mean for a lookup/hash table to be differentiable?
Differentiable in this context, means that it can be learned by gradient descent, which uses derivatives to adjust a neural network model's parameters to minimise some error measure. As for how that applies to a hash function, I think the lookup gives some sort of weighting for each possible output, for each input, with the largest weightings corresponding to a "match". But tbh I'm not certain on that last part...
Note that in general one "matches" more than one thing in which case (IIRC) the result will be a weighted linear combination of the query results.
I do think that this collapses to a datastructure equivalent in function to the "normal hash table" (but not in performance, lol) in the degenerate case where every input yields strictly a single result with zero activation in all other results, so it's not invalid to call it a differentiable lookup table.
Re: Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
#74"Transformers" and "Attention is All You Need" refer to an important development in machine learning and artificial intelligence, particularly in the field of natural language processing (NLP). I'll try to explain them in a simple way. Think of a conversation you had with a friend. While they were talking, you were probably not just listening to the words they were saying right now, but also remembering what they sai…
Did you use GPT to write this? (Not a bad thing! It's a decent answer)
Assuming prompt was "Explain Transformers and 'Attention is all you need' in a simple way"
Re: Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
#75The Yannic kilcher review is quite good. https://youtu.be/iDulhoQ2pro I can't ELI5 but I can ELI-junior-dev. Tl;dw: Transformers work by basically being a differentiable lookup/hash table. First your input is tokenized and (N) tokens (this constitutes the attention frame) are encoded both based on token identity and position in the attention frame. Then there is an NxN matrix that is applied to your attention frame "…
What does it mean for a lookup/hash table to be differentiable?
Re: Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
#76The Yannic kilcher review is quite good. https://youtu.be/iDulhoQ2pro I can't ELI5 but I can ELI-junior-dev. Tl;dw: Transformers work by basically being a differentiable lookup/hash table. First your input is tokenized and (N) tokens (this constitutes the attention frame) are encoded both based on token identity and position in the attention frame. Then there is an NxN matrix that is applied to your attention frame "…
What does it mean for a lookup/hash table to be differentiable?
Re: Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
#77Re: Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
#78Earlier quoted context omitted.
What does it mean for a lookup/hash table to be differentiable?
I wanted to ask the same and especially I've always been wondering: How is the meaning of aforementioned 'differentiable' related to the same term in math?
This explains a bit how neural nets work but from this to chatGPT is another whole leap. You'd have to assign some of the merits of the AI to the training data itself, it's not just the algorithm for learning, but what is being learned that matters. The neural net is the same, but using 1T tokens of text is making it smart. What's so magic about this data that it can turn a random init into a language programmable system? And the same language information make a baby into a modern human, instead of just another animal.
Re: Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper?
#79It’s not really something you need to understand unless you’re an ML researcher. I guess the ELI5 (with a BUNCH of details left out) is “Transformers: what if you didn’t have to process sentences as a sequence of words, but rather as a picture of words.”
>t’s not really something you need to understand unless you’re an ML researcher What kind of an answer is this? No it’s something you should understand if you are at all interested.
Like, there’s a reason we don’t explain things to five year olds.
Also I have a good ELI5 answer, so I don’t know what else you want dude lol so petty