by cauch · 2w ago · 0 comments
Just next to this word, there is "Lean verification", which is not about arithmetic but about the logic.
But the problem is not even there. LLM are not able to do math not because they fail to do 12,483,324,281/188,553.37463286 * (243+2-983), but they are not able to do math because they don't _understand_ 12,483,324,281/188,553.37463286 * (243+2-983).
I cannot do 12,483,324,281/188,553.37463286 * (243+2-983) myself just like that, yet I can do advanced math. Because I understand this expression. I know what it means. When the LLM was not able to produce the correct number, it was not because it knew what this expression meant and was "distracted" and forgot to report a 1 when doing the mental calculation. It was because the LLM was seeing the expression and was trying to guess the answer based on the answers of other texts that had similar expressions. It did not _understand_ the expression itself: it had no idea what it meant, it was just guessing the answer by copying the rough relationship it extracted from outputs it has seen in the wild.
And this is why it was a good element to demonstrate that LLM cannot do math: if they don't understand the expression 12,483,324,281/188,553.37463286 * (243+2-983), then they don't understand the expression f(t)=\sum_{k=-\infty}^{\infty} c_k e^{j k\omega_0 t}, \qquad \omega_0=\frac{2\pi}{T}.
And that is why the AI framework to do proper math and help mathematicians needs harness with tools like Lean. The LLM part does not understand what the expression means, it needs a tool to discard, internally, all the LLM outputs that are just non-sense.
So what is understanding then, so we can check this hypothesis?
"It's the thing that AI can't do!"
What's the thing?
"Understanding!"
And what is understanding?
"It's the thing that AI can't do! I just said that!"
FYI, this isn't a serious argument without a clear testable definition of "understand" or "know".
And if you think you're gonna trounce two millennia of philosophy right now in a reply to me, best of luck.
First, the claim has nothing to do with "understanding" itself. "understanding" here is just a short cut for "is doing the math", "is doing the computation", "knows what is correct and what is not correct". Replace it by that if you are confused by the word "understanding".
The claim is "LLM cannot do math". LLM. Not LLM + tools and harness. Not LLM but we get plenty of answers, run a program to remove the non-sense ones and pretend the LLM got only one answer.
And this is true: the LLM part cannot answer correctly these math questions. It answers with a first answer, check it, if not validated, came up with another answer, and so on. It has no idea which one is correct and which one is non-sense. It needs a specialised harness that will remove the non-sense ones.
But secondly, this incapacity to grasp something very simple is really annoying.
This is really not complicated. If you tell someone "what is 2+3" and that this person is going in the next room, write on their pocket calculator "2+3=1", click "ok", and the calculator says "Error", then "2+3=2", click "ok", and the calculator says "Error", then "2+3=3", click "ok", and the calculator says "Error", then "2+3=4", click "ok", and the calculator says "Error", then "2+3=5", click "ok", and the calculator says "Correct", and come back and say "2+3 is 5", it is clearly not the same as if you ask someone who understand math.
No need for "philosophical question" excuses. Call it "understanding math", or "able to do math", or "has learnt arithmetic", ... It does not matter. The reality is that this person, ON THEIR OWN, is unable to do math. They are not the one who know the math, the calculator who tells them if it works or not is the one knowing the math. (and again, if you are confused because this simplified example is using arithmetic, just replace "pocket calculator validating the sum" by "Lean software validating the mathematical proof")
Perhaps you picked up the belief that LLMs are just brute forcing these problems, but they aren't. They are creating hypotheses and checking them, which is the same thing humans do.
The solution spaces for problems is so massive that brute forcing it is beyond what even "every atom in the universe is a super computer running for 13B years could crack"
You need to understand the problem to know where to search for the solution.
If you ask "1224245 * 12345332", it will not try "tomato", it has observed other cases where such numbers are like that in such expression, and it will try answers that "looks like" those. Sometimes picking up on good relationship ("when the first number ends in 5 and the second number ends in 2, the solution ends in 0"), sometimes picking up bad relationship ("in my examples, I see that in the solutions, the fourth digit has 22% chance to be a 1").
But still, it does not really matter. A LLM, without harness or tool, cannot do math: it returns answers that are "reasonnable guesses based on historical data" without knowing which ones are non-sense or not, and it needs tools and harness that "do the math" to rejected the non-sense.
> You need to understand the problem to know where to search for the solution.
"What you mean by understanding"
you: "well, that thing that LLM does"
"what's the thing"
You: "Understanding!"
"And what is understanding?"
You: "It's the thing that AI do! I just said that!"
But, no, the "logic", the "structure", of math, is not inside the LLM. The LLM regularly returns outputs that are very good, because turns out that some relationships that the LLM extracted from historical data was also the relationships that happen to work here. And sometimes, the LLM returns outputs that are totally crazy, incompatible with "understanding the problem". Because the LLM is just doing "educated brute force" and applied a set of relationships that someone who is familiar with the problem would immediately consider inadequate, but the LLM still does it because it does not understand the problem, just tries to guess the direction of the answer based on historical direction of answers, without any idea if these directions are non-sense or not.