Earlier quoted context omitted.
I imagine getting things to be polysemantic in a way that does not interfere would lead to sublinear scaling. Also there are smaller ones that were trained so would still be more like 311/36 ~= 8.6.
>I imagine getting things to be polysemantic in a way that does not interfere would lead to sublinear scaling. True, but with even smarter humans, you could exploit the interactions for additional calculations. While it sounds a bit silly, it is one of the hypotheses behind a fast takeoff. An AI that is sufficiently smart could design a network better than a trained one and could make something much smarter than itse…
Smallest transformer that can add two 10-digit numbers
91–100 of 105 posts
Re: Smallest transformer that can add two 10-digit numbers
#92> Self-attention is required. The model must contain at least one self-attention layer. This is the defining feature of a transformer — without it, you have an MLP or RNN, not a transformer. I think it would be interesting to see challenges where two networks are trained and evaluated on the exact same datasets and the architecture is the same except for the presence of self-attention layers in one network. So far it…
> So far it seems to me that self-attention really brought new capabilities to a network Do we have a layman explanation for what makes self-attention so uniquely powerful? Something more than "it lets you do self-attention".
So (modulo a _lot_ of details) it increases the power from that of a "calculator" to that of a "computer".
Re: Smallest transformer that can add two 10-digit numbers
#93How is anyone predicting timelines for AGI when these systems can’t do basic addition of 2 arbitrary numbers with 100% accuracy?
Can you do basic addition of 2 arbitrary numbers with 100% accuracy (no tools) ? No you can't. You will make mistakes for a sufficiently large N even with pen and paper, and a very small N without. Are you no longer generally intelligent ?
Re: Smallest transformer that can add two 10-digit numbers
#94In the 90s, there were papers on emulating logical circuits with neurons. They would be bigger than this network, but at least always correct.
Re: Smallest transformer that can add two 10-digit numbers
#95Re: Smallest transformer that can add two 10-digit numbers
#96Very cool, but can I suggest the `add` CPU instruction instead? Supports 64-bit numbers, and it's encoded in hardware, and no need to cross a PCIe interface into a beefy, power-hungry GPU and back again. And chances are it's cross-platform, because basically every ISA since the very first has had `add`.
No. You cannot. It's the wrong tool for the problem. That little "add" of yours has the overhead of: having an LLM emit it as a tool call, having to pause the LLM inference while waiting for it to resolve, then having to encode the result as a token to feed it back. At the same time, a "transformer-native" addition circuit? Can be executed within a single forward pass at a trivial cost, generate transformer-native re…
Re: Smallest transformer that can add two 10-digit numbers
#97https://www.reidatcheson.com/transformer/llm/ml/cuda%20graph...
Re: Smallest transformer that can add two 10-digit numbers
#98Earlier quoted context omitted.
So the question is, why do we tokenise it in such a way that it makes everything harder?
There is no encoding that makes everything easier. You trade off maths for general intelligence. Now we are at a point where the LLM can just choose to use a normal calculator anyway!
Re: Smallest transformer that can add two 10-digit numbers
#99Earlier quoted context omitted.
One major limitation of the LLM architecture is that even the failure mode varies unpredictably between inputs. The set of 11-digit numbers with any given failure mode (or even successful output) has no discernable pattern, merely whatever randomness the training process baked into the model. You can't predict ahead of time when they will fail spectacularly, nor draw a clear boundary around the failure cases. And ear…
Most humans struggle to compute 10 digit stuff. They use tools instead. Can LLM learn to use calculator? Sorry if that is a stupid question. Maybe brains are not well suited for calculations natively.
Also, there exist autistic savants who prove that a human brain can be used to perform rote calculations on large numbers much faster than a human with a calculator can.
Re: Smallest transformer that can add two 10-digit numbers
#100So, what happens when you test it on 11 digit numbers? I don’t mean that as a gotcha or “LOL dumb transformer” snark. More like, does the accuracy start to drop as you add digits? Or instead, maybe it’s the transformer equivalent of a stack overflow and it outputs a picture of a burning spoon or something? And for that matter, what’s it do with 9 digit numbers? Like, is it more accurate with them, or are these little…
Depends on how the transformer has been trained. If it has seen 11 digit examples while training it might work, else the input will be out of distribution and it will respond with a nonsensical number. For instance the current high score model (311 params [0]), when given 12345678900 + 1, responds with 96913456789. An interesting experiment would be: what's the minimum number of parameters required to handle unbounde…