3 ms·
Direct initialization of transformers using larger pretrained ones
- londons_explore 3y agoI 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.
- peterfirefly 3y agoSounds like a good test. We need something like this for "non-neural" things like transformers and normalization layers: https://proceedings.mlr.press/v157/skorski21a/skorski21a.pdf https://proceedings.mlr.press/v157/skorski21a/skorski21a.pdf
- ausbah 3y agoa better distribution of weights would be knowledge transfer right? by having something like a stronger prior distribution? also pretty sure this would work because I know some text-image generators has the image network priority trained then frozen during e2e training
- peterfirefly 3y agoNot 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. https://machinelearningmastery.com/weight-initialization-for-deep-learning-neural-networks/ https://machinelearningmastery.com/weight-initialization-for... A big breakthrough was Kaiming He's work on initialization for ReLU: https://arxiv.org/abs/1502.01852 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.)
- DarmokJalad1701 3y agoFrom 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 ... what?
- mirekrusin 3y agoLooks like typo, from chart it seems to be around 20x10^9 for weight subcloning (doesn't look like 16x10^9 <<which would be 4x>> either).
- mirekrusin 3y agoInstead 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?
- leeeeeepw 3y agoPretty nice to get downscaled mobile models with will be huge in 2024 when the compilation platforms like onnx coreml webgpu get smooth enough
- buildbot 3y agoFun tiny fact I found a while ago - The reverse of this also works! 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!
- fxtentacle 3y agoThis 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.
- jacobsimon 3y agoThis 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.
- gwern 3y agoAmazingly 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 https://www.wpeebles.com/Gpt
- turtles3 3y agoI believe what you're looking for is Hypernetworks https://arxiv.org/abs/1609.09106 https://arxiv.org/abs/1609.09106
- jacobsimon 3y agoVery relevant thanks!