I went through the paper and thought immediately about how did they implement it; I missed they published their code as well. Here is the link for everyone who skimmed past it: https://github.com/mcleish7/arithmetic/tree/main
Transformers Can Do Arithmetic with the Right Embeddings
141–150 of 215 posts
Re: Transformers Can Do Arithmetic with the Right Embeddings
#142I went through the paper and thought immediately about how did they implement it; I missed they published their code as well. Here is the link for everyone who skimmed past it: https://github.com/mcleish7/arithmetic/tree/main
my bad, should have posted it with the link itself
Re: Transformers Can Do Arithmetic with the Right Embeddings
#143Re: Transformers Can Do Arithmetic with the Right Embeddings
#144Earlier quoted context omitted.
This is cool, but special casing digits is unsatisfying. It makes me think that the authors have correctly identified an issue (positional embeddings) but don't propose a general solution. I'm not sure if such a thing is possible, but if it is, it would feel more complete. (Fwiw, positional embeddings have had issues for a long time! So a general solution to this would benefit more than just arithmetic. Helpfully, we…
but it makes sense to have a different encoding. Mathematics is a completely different language. Maybe we should have more than one class of encodings.
Re: Transformers Can Do Arithmetic with the Right Embeddings
#145That's great, 99% math is absolutely good enough for real world problems /s
It's probably on-par or better than humans get unaided. Hell, I'd bet due to transcription errors it's better than what humans get in a lot of settings, even when aided by a calculator.
Math inference is a palor trick as is the whole “world model” bullshit - physics doesn’t work with 99% accuracy.
It’s the same reason agents are bullshit right now - error compounding at 95% reliability per step murders them and currently there is no path to triple 9
Re: Transformers Can Do Arithmetic with the Right Embeddings
#146Re: Transformers Can Do Arithmetic with the Right Embeddings
#147Re: Transformers Can Do Arithmetic with the Right Embeddings
#148What is the point of this work? 99% on 100-digit arithmetic means there's a 0% chance anyone will ever use a Transformer as an ALU or anything of the kind. We already know how to hard-code a (literally) infinitely more accurate addition machine. And not only addition: all four arithmetic operations. The technique proposed in the article -imposing a strong inductive bias for addition- kiind of works for multiplication…
Minor point, but Blaise Pascal was centuries earlier than the 1850s.
Re: Transformers Can Do Arithmetic with the Right Embeddings
#149Earlier quoted context omitted.
That's simply not possible. Human understanding is still unreliable, even for geniuses.
That’s why I am asking a computer.
Re: Transformers Can Do Arithmetic with the Right Embeddings
#150What is the point of this work? 99% on 100-digit arithmetic means there's a 0% chance anyone will ever use a Transformer as an ALU or anything of the kind. We already know how to hard-code a (literally) infinitely more accurate addition machine. And not only addition: all four arithmetic operations. The technique proposed in the article -imposing a strong inductive bias for addition- kiind of works for multiplication…
>What is the point of this work? 99% on 100-digit arithmetic means there's a 0% chance anyone will ever use a Transformer as an ALU or anything of the kind. We already know how to hard-code a (literally) infinitely more accurate addition machine. Nobody's going to be replacing calculators with transformers sure but many are and will be using transformers to solve problems arithmetic is a necessary component of. >So w…
E.g., take chess. Modelling a game of chess as a game tree and searching the game tree by adversarial search is a human invention. Humans are pretty crap at searching a game tree beyond a handful of ply, but we can program a computer to go dozens of ply deep across thousands of branches, and beat any human.
So the challenge for AI is not to get computers to calculate when we know how the calculation is to be performed. The challenge is to get computers to create their own models. And that's a grand, open challenge that is not even close to be solved, certainly not by LLMs. Yann LeCun and Yoshua Bengio have said similar things.
The linked work doesn't move the needle any closer to that and it just shows progress in calculating arithmetic using a transformer, which we already know how to do in a myriad different ways and much more accurately. Hence my criticism for it.