Lurker News
Back to discussion

Comment by Salgat

Salgat2 replies#
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.
saynay1 reply#
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.
throwawaymaths1 reply#
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.
golly_ned1 reply#
What’s a neural interface?

Continue this thread — 1 reply

rocho2 replies#
If you train in parallel, how do you combine the weights generated from different trainings in parallel?
throwawaymaths#
You take a huge hit.
Salgat1 reply#
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.
throwawaymaths1 reply#
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.

Continue this thread — 1 reply