News for hackers. Stuff that matters.
Re:Transformers Can Do Arithmetic with the Right Embeddings by naasking on Tuesday May 28, 2024 @09:30AM (#40500569)
That's simply not possible. Human understanding is still unreliable, even for geniuses.
Re:Transformers Can Do Arithmetic with the Right Embeddings by lapitopi on Tuesday May 28, 2024 @09:43AM (#40500691)
That’s why I am asking a computer.
Re:Transformers Can Do Arithmetic with the Right Embeddings by catapart on Tuesday May 28, 2024 @10:09AM (#40500909)
I'm with you. I get that this is akin to asking a human, because we're trying to reason, so we will bring along (assumedly) unavoidable deficiencies of human reasoning. But if I were to ask a human genius this question, ne would grab a calculator and employ it as ne did the rest of ner reasoning.

So it seems like we should probably teach LLMs to "use a calculator", rather than try to get them to be more right when doing math 'in their head'.

Re:Transformers Can Do Arithmetic with the Right Embeddings by naasking on Tuesday May 28, 2024 @11:09AM (#40501447)
Indeed, "use a calculator" is "just a trick"!
Re:Transformers Can Do Arithmetic with the Right Embeddings by throwaway4aday on Tuesday May 28, 2024 @03:33PM (#40504654)
Solving that will be a much bigger deal but it's at odds with producing a highly accurate emulation of human thought and language. Language models can serve as tools to understand and experiment with logic formulated as natural language but it isn't their primary purpose. What you're asking is equivalent to creating an auditable trace of everything that goes into making a statement which is pretty much impossible even for the person making a statement. We can get close by limiting ourselves to narrow domains like mathematics but even then someone can come along and question the premises on which we construct such a system. I'm not saying it isn't worth pursuing, it just isn't the standard that we should hold a model to when we ourselves are incapable of it. The goal here is to create a system capable of doing the things that a human can do. If you prefer to have a system that behaves within the confines of a mathematical formalism with well defined rules then build that model instead.
Re:Transformers Can Do Arithmetic with the Right Embeddings by nprateem on Tuesday May 28, 2024 @12:06PM (#40502196)
My calculator manages
Re:Transformers Can Do Arithmetic with the Right Embeddings by shepherdjerred on Tuesday May 28, 2024 @12:18PM (#40502370)
Your calculator is deterministic. Humans and AI are not.
Re:Transformers Can Do Arithmetic with the Right Embeddings by jayd16 on Tuesday May 28, 2024 @03:43PM (#40504779)
LLMs are deterministic. We just sample the results, no? Also, no reason AI needs not be deterministic.
Re:Transformers Can Do Arithmetic with the Right Embeddings by TeMPOraL on Tuesday May 28, 2024 @05:32PM (#40505852)
> LLMs are deterministic.

In theory, yes. In practice, parallelism combined with floating point math make current implementations fundamentally non-deterministic.

Re:Transformers Can Do Arithmetic with the Right Embeddings by Tycho on Tuesday May 28, 2024 @06:48PM (#40506415)
Can you elaborate more on the parallelism aspect?
Re:Transformers Can Do Arithmetic with the Right Embeddings by mensetmanusman on Tuesday May 28, 2024 @09:44PM (#40507456)
Not fundamentally, but extremely costly to keep track of everything. Still deterministic though.
Re:Transformers Can Do Arithmetic with the Right Embeddings by joquarky on Wednesday May 29, 2024 @03:55PM (#40516240)
Temperature cannot ever reach 0 (this causes a division error), so they are not deterministic.
Re:Transformers Can Do Arithmetic with the Right Embeddings by nprateem on Tuesday May 28, 2024 @02:55PM (#40504170)
Exactly
Re:Transformers Can Do Arithmetic with the Right Embeddings by vidarh on Tuesday May 28, 2024 @03:24PM (#40504537)
The point is don't ask an LLM to do tasks that a calculator can do. Ask if to use the calculator, just like most humans would.
Re:Transformers Can Do Arithmetic with the Right Embeddings by chowells on Tuesday May 28, 2024 @04:23PM (#40505199)
The point is that you shouldn't need to ask. If it's actually a general-purpose system it will do it automatically.
Re:Transformers Can Do Arithmetic with the Right Embeddings by vidarh on Tuesday May 28, 2024 @08:12PM (#40506900)
An LLM in isolation is not a general purpose system, but with ChatGPT at least, most of the time you don't need to ask. In fact, it's increasingly difficult to force it to do "manual" maths, as it's strongly predisposed to do things like write and evaluate Python code instead of doing it "manually".

E.g. I verified just now and asked it to multiply two huge numbers, and it immediately spat out Python code, then evaluated it and gave me the result, rather than try to add the numbers itself.

Re:Transformers Can Do Arithmetic with the Right Embeddings by int_19h on Tuesday May 28, 2024 @09:27PM (#40507323)
It still needs to be trained on what calculators are, on how to use them, and on when it is appropriate to do so. Again, same as humans.
Re:Transformers Can Do Arithmetic with the Right Embeddings by nprateem on Tuesday May 28, 2024 @04:11PM (#40505041)
I know. That was my point.
Re:Transformers Can Do Arithmetic with the Right Embeddings by krapp on Tuesday May 28, 2024 @06:42PM (#40506380)
It's entirely possible. Don't use LLMs for math. Use the computers we already have that have been capable of doing math accurately for a century. Right tool, right job.
Re:Transformers Can Do Arithmetic with the Right Embeddings by naasking on Wednesday May 29, 2024 @09:03AM (#40511544)
OP said they didn't want tricks from their LLM. Using a calculator, like we do, is technically a trick.