Re:Transformers struggle with generalizing tasks beyond pre-...
by GaggiX on Tuesday November 07, 2023 @12:10PM
(#38179552)
No they don't.
[ Parent
| on HN ]
Re:Transformers struggle with generalizing tasks beyond pre-...
by ctoth on Tuesday November 07, 2023 @12:13PM
(#38179608)
Yes, actually, they do. See the heading Blessings of scale in [0]
Re:Transformers struggle with generalizing tasks beyond pre-...
by GaggiX on Tuesday November 07, 2023 @12:23PM
(#38179761)
I have trained models on performing additions on numbers with fixed number of digits, just to prove to a friend that a neural network can learn to do addition, I hide in the dataset many combinations of numbers but the model was still able to sum them correctly, therefore it learned to perform addition on numbers with fixed number of digits. So no it's not memorizing, it's something that I have tested myself.
Re:Transformers struggle with generalizing tasks beyond pre-...
by jjtheblunt on Tuesday November 07, 2023 @12:27PM
(#38179824)
Interesting. Thanks for the comment. What if you ask it to add numbers with more digits?
Re:Transformers struggle with generalizing tasks beyond pre-...
by GaggiX on Tuesday November 07, 2023 @12:38PM
(#38180005)
The model is trained with a fixed number of tokens, I think it would cause problems with the sinusoidal embeddings layer.
Re:Transformers struggle with generalizing tasks beyond pre-...
by Der_Einzige on Tuesday November 07, 2023 @12:46PM
(#38180132)
Fine-tuning the model to force it to understand the insane tokenization its forced to use for its vocabulary and perform accurate addition sounds great until you start trying very large numbers or messing with whatever decoding settings you're using (and let me guess, it was beam search).
Or, you can simply ask it to use a tool, like a calculator for you. This is more reliable than fine-tuning a current technique BPE tokenized model ever will be.
Re:Transformers struggle with generalizing tasks beyond pre-...
by GaggiX on Tuesday November 07, 2023 @05:56PM
(#38184242)
I trained my models from scratch, the tokenization is extremely simple and designed just for this task, decoder-only models can learn to do sums of arbitrarily large numbers if the model is large enough (they are computationally bounded). The decoding method used was greedy or simple sampling.
Re:Transformers struggle with generalizing tasks beyond pre-...
by jjtheblunt on Wednesday November 08, 2023 @01:27PM
(#38194692)
super cool and interesting link. thanks.