Because they produce output probabilistically, when multiplication is deterministic. Why is this so hard for everyone?
Not true though. Internally they can “shell out” to sub-tasks that know how to do specific things. The specific things don’t have to be models. (I’m specifically talking about commercial hosted ones that have the capability i describe - obviously your run of the mill one downloaded off of the internet cannot do this).
Why can't transformers learn multiplication?
21–30 of 111 posts
Re: Why can't transformers learn multiplication?
#22Re: Why can't transformers learn multiplication?
#23This is a gut impression and I don't deny it, but LLMs are Large Language Models, and in my own brain, my Language Model isn't doing large-scale multiplication. I have a language-based intuition for the sigle-digit multiplication table and a touch beyond (and based on my observations that's already above average for a human Language Model, at least in my age peer group), but it's not my Language Model doing 283 times…
Re: Why can't transformers learn multiplication?
#24This is a gut impression and I don't deny it, but LLMs are Large Language Models, and in my own brain, my Language Model isn't doing large-scale multiplication. I have a language-based intuition for the sigle-digit multiplication table and a touch beyond (and based on my observations that's already above average for a human Language Model, at least in my age peer group), but it's not my Language Model doing 283 times…
A lot of savants that are able to do really cool calculations, or even people that have synesthesia seeing numbers as colors, don't actually do "real" calculations. I think most humans that do math aren't actually literally computing things as some kind of logic machine. We can produce logic, and follow the steps of using that logic, but it doesn't seem to me that our cognition is some kind of logic machine itself.
Re: Why can't transformers learn multiplication?
#25They're not any better at addition, are they? If they are, I wonder how good they are at adding numbers in log space.
The paper uses a number representation that is designed to make attention easy to learn: each digit is a separate token and the least significant digit is put first, so that the first digit of the output is simply the sum of the first digits of the inputs and the second digit is the sum of the second digits plus an optional carry from the first digits and so on. If the numbers are represented with the most significan…
I suppose you're probably right, but LLMs probably have a lot of log tables in their training data so I'm not so sure.
Re: Why can't transformers learn multiplication?
#26What probably works: Ask it to write a python program, but tell it to not use any built-in multiplication functions.
Re: Why can't transformers learn multiplication?
#27Because they produce output probabilistically, when multiplication is deterministic. Why is this so hard for everyone?
Re: Why can't transformers learn multiplication?
#28Because they produce output probabilistically, when multiplication is deterministic. Why is this so hard for everyone?
If being probabilistic prevented learning deterministic functions, transformers couldn’t learn addition either. But they can, so that can't be the reason.
Re: Why can't transformers learn multiplication?
#29Earlier quoted context omitted.
The paper uses a number representation that is designed to make attention easy to learn: each digit is a separate token and the least significant digit is put first, so that the first digit of the output is simply the sum of the first digits of the inputs and the second digit is the sum of the second digits plus an optional carry from the first digits and so on. If the numbers are represented with the most significan…
> but I think logarithms are probably another computation that's too difficult to learn without additional hints for intermediate steps. I suppose you're probably right, but LLMs probably have a lot of log tables in their training data so I'm not so sure.
Re: Why can't transformers learn multiplication?
#30Because they produce output probabilistically, when multiplication is deterministic. Why is this so hard for everyone?
Not true though. Internally they can “shell out” to sub-tasks that know how to do specific things. The specific things don’t have to be models. (I’m specifically talking about commercial hosted ones that have the capability i describe - obviously your run of the mill one downloaded off of the internet cannot do this).