Re:Ask HN: Can someone ELI5 Transformers and the “Attention ...
by bjourne on Wednesday May 17, 2023 @03:46PM
(#35980296)
No, it's the loss function we differentiate. The input to the loss function are the network weights. The input to the network are samples and those we do not differentiate.
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ...
by lhnz on Wednesday May 17, 2023 @06:22PM
(#35981984)
While it's true that we don't differentiate the input samples, we do differentiate the loss function's output with respect to each of the network weight. We use the chain rule to calculate each of these "gradients" and that process is known as backpropagation.
<rant> 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. </>