News for hackers. Stuff that matters.
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by throwawaymaths on Wednesday May 17, 2023 @02:11PM (#35979120)
Compared to rnns... maybe? The big nxn is really a killer.

I don't know how to judge parallelizability of different DNN models, you're comparing apples to oranges

Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by Salgat on Wednesday May 17, 2023 @02:27PM (#35979322)
When you train a transformer, you're training what the next expected token is. You can train all positions of the sequence each in parallel rather than having to sequentially build up the memory state as you generate the sequence with an LSTM. Mind you the inference portion of a transformer is still sequentially bottlenecked since you don't know what the output sequence is supposed to be.
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by saynay on Wednesday May 17, 2023 @02:41PM (#35979472)
I believe the other big thing is it allowed you to parallelize the training as well, so you could split those colossal training sets across many machines in a way you could not do with LSTMs.
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by throwawaymaths on Wednesday May 17, 2023 @02:50PM (#35979564)
I don't really believe this because in theory it's possible to split up training of arbitrary neural nets using decoupled neural interfaces (not that it's easy mind you) but at the point where you have openAI scale resources the bottleneck to achieving that is the difficulty of Python.
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by golly_ned on Thursday May 18, 2023 @01:17AM (#35984357)
What’s a neural interface?
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by throwawaymaths on Thursday May 18, 2023 @07:42AM (#35986605)
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by rocho on Thursday May 18, 2023 @03:47AM (#35985108)
If you train in parallel, how do you combine the weights generated from different trainings in parallel?
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by throwawaymaths on Thursday May 18, 2023 @08:06AM (#35986778)
You take a huge hit.
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by Salgat on Thursday May 18, 2023 @11:19AM (#35989214)
Believe it or not, it's a simple as averaging or adding the gradients of each training result before adding it to the model weights. The same thing happens when you train a model using batches of inputs.
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by throwawaymaths on Friday May 19, 2023 @09:17AM (#36001575)
It actually isn't. You have to have a synchronizer, batchsize one or else "strange things" can happen and you waste a lot of cycles. Alternatively you can do non-simple changes to your network structure to enable distributed training.
Re:Ask HN: Can someone ELI5 Transformers and the “Attention ... by Salgat on Friday May 19, 2023 @11:18AM (#36002984)
It really is that simple. Yes, there's many different approaches to this (which can become quite clever and complex, which is true of training in general), but it all really boils down to adding or averaging the gradients in most cases.