Re:Direct initialization of transformers using larger pretra...
by jacobsimon on Friday December 22, 2023 @03:28PM
(#38738279)
This might sound like nonsense to someone who actually understands neural networks, but I had a similar idea recently that perhaps we could use LLMs or diffusion models to generate the weights for a new network, e.g. if you think of a layer of a network as an image where each pixel represents the strength of a connection, then perhaps you could generate all the initial weights for a specialized network from a more general/powerful network. Curious if that’s been tried or if there are fundamental limitations that would prevent it.
Re:Direct initialization of transformers using larger pretra...
by gwern on Friday December 22, 2023 @05:59PM
(#38739605)
Amazingly enough, that pretty much works, but you'll never hear about it because the name of it is impossible to search for: https://www.wpeebles.com/Gpt
Re:Direct initialization of transformers using larger pretra...
by londons_explore on Friday December 22, 2023 @04:11PM
(#38738716)
I would like to know if this approach is actually transferring knowledge, or if random initialization is just not the optimal starting place - for example, maybe having a different distribution of weights is better.
A good test would be to apply this technique, but then train on a totally different kind of data - for example take a text LLM, apply this technique, but then train on audio/music data and see if this technique reduces training time over random initialization.
Re:Direct initialization of transformers using larger pretra...
by peterfirefly on Friday December 22, 2023 @06:48PM
(#38740100)
Not necessarily. It turns out to really matter how the weights are initialized (randomly, but from which distribution?) for ordinary feed-forward neural nets that only uses standard neurons -- different activation functions have different optimal initialization distributions.
Re:Direct initialization of transformers using larger pretra...
by DarmokJalad1701 on Friday December 22, 2023 @04:12PM
(#38738724)
From Page 7:
> In the case of GPT-2 training, random initialization requires 64×10^9 tokens to reach a perplexity of 12, while weight subcloning accomplishes this in just 64×10^9 tokens, again demonstrating a 4× training speedup
Re:Direct initialization of transformers using larger pretra...
by mirekrusin on Friday December 22, 2023 @05:09PM
(#38739242)
Instead of pruning least contributing neurons wouldn't it be better to ie. nominate next lowest contributing neuron or most similar one to merge them into one or redistribute its impact onto others?
Re:Direct initialization of transformers using larger pretra...
by fxtentacle on Friday December 22, 2023 @10:17PM
(#38741311)
This paper seems to me like it's trying to overstate its usefulness. I don't see the 4x reduction in training costs. And it also seems to require that the teacher and the student models have the same number of decoder layers, which for all common transformer models just isn't the case. It also doesn't work to train a transducer (a common real-time deployment architecture) based on a transformer teacher.
In short, I can't imagine ever having a training situation where this paper would be applicable.
https://arxiv.org/abs/1609.09106
A good test would be to apply this technique, but then train on a totally different kind of data - for example take a text LLM, apply this technique, but then train on audio/music data and see if this technique reduces training time over random initialization.
We need something like this for "non-neural" things like transformers and normalization layers:
https://proceedings.mlr.press/v157/skorski21a/skorski21a.pdf
also pretty sure this would work because I know some text-image generators has the image network priority trained then frozen during e2e training
https://machinelearningmastery.com/weight-initialization-for...
A big breakthrough was Kaiming He's work on initialization for ReLU:
https://arxiv.org/abs/1502.01852
(Kaiming is the personal name, He is the family name. He Kaiming is the native Chinese order. Lots of citations use "Kaiming" by mistake.)
> In the case of GPT-2 training, random initialization requires 64×10^9 tokens to reach a perplexity of 12, while weight subcloning accomplishes this in just 64×10^9 tokens, again demonstrating a 4× training speedup
... what?
You can init deeper layers by copying the weights from previous layers. Not a big improvement in training time, but it does reduce the initial loss!
In short, I can't imagine ever having a training situation where this paper would be applicable.