On Mathematical Slop
I am afraid I must now contribute to the hand-wringing about LLM-generated mathslop.
First they came for the artists, and we all said “ew, what gross ‘art’ that is.” Then they came for musicians, and that is a topic worthy of a more informed writer. Then they came for the programmers. Now they’re making an effort at mathematics. This is obviously because our economy is straining under the tremendous weight of expensive research in pure mathematics.
When I heard they spent something like $19 million on solving Navier-Stokes, my second thought was to wonder how many years of mathematical research they could have funded instead. My first thought was, of course, what amazing new mathematics have been generated by this finding? And then I heard that it is the discovery of a counterexample that appears to be impossible to realize physically.
These kinds of findings can, in some circumstances, lead to a radical reckoning in mathematics. After all, the way Newton and Leibniz did calculus required most of mathematics to be recreated from scratch based on set theory hundreds of years later, and huge amounts of learning came from that. But sometimes, this kind of finding just leads to a different definition of the problem that saves the intent, a kind of formal eyeroll. I don’t understand Navier-Stokes (or mathematics) well enough to judge but this feels more like the second to me, a kind of technicality.
The Millenium prize problem I understand best is the question of whether P = NP. Every computer science student has to understand this problem, although most of us don’t think about it much after school. I look forward to hearing how an AI has impressively cracked this impossible problem sometime later this week by proving P != NP. I will greet this news with a most unsubtle yawn, as it is more-or-less obvious that P is not equal to NP. Why would smart mathematical people put a large bounty on an obvious problem anyway, are you guys stupid?
This question goes to the heart of why people do mathematics at all. The fundamental loop of mathematics isn’t “make question, get answer.” It is “develop theory, answer previously unanswerable questions, pose new questions, find questions that are too big for the theory.” The reason P = NP is an interesting question despite having an obvious answer is that it shows us that the model of computation we use today is not powerful enough. The solution to P = NP is interesting pop-sci because if it were true, the proof would come with some fantastic algorithms that usher in a completely new era of computation. But it’s interesting to mathematics even though P is probably not equal to NP because to show the negative result seems to require a new theory of computation that will enable us to ask and answer better questions about what computation even is.
It may be the case that the AI finds some trick to proving this that tells us something interesting but I don’t think it’s likely. If it does crack it, it will be due to some technicality like Navier-Stokes. The creativity to generate a new theory not like anything else is not really something that LLMs do. They launder text from one scenario to another.
The irritant is that choosing to spend money chasing these problems did not come from the goodness of the AI company’s hearts, it came from a business decision that this would generate a return on investment. Nobody is interested in spending this kind of cash on mathematics, and nobody is about to claim that this will ultimately save more money than it cost. There are just two reasons to go after math: the perception that math is the hardest intellectual skill and therefore represents the ultimate achievement of AI, and the extremely convenient fact that theorem provers exist which enable the kind of scaffolding you would need for what is essentially a brute-force search conducted over syntactic structures.
Most people are not familiar with the idea of theorem provers or proof assistants, but this is a technology that has been in development since the 80s to assist mathematicians with a certain computer-science-y lilt create theorems that can be checked by a computer. The vast majority of mathematics is conducted in and discussed in a language that is semi-formal, in the sense that there is agreed-upon notation but also natural language argumentation interspersed and humans are needed to verify it. Theorem provers and proof assistants exist to formalize the notation completely into a syntax that can be understood by a computer and then verified. Most theorem provers are built around the idea that the mathematician already knows something is true and is just trying to get the machine to agree with it so they can use it in more complex proofs, much like a programmer writes functions to use from other functions to build up a complete system. (There is a formal relationship between these ideas.) Most of these systems have a brute-force step they can use that hides some of the logic, the thinking being that the mathematician doesn’t care about the algebraic manipulations or whatever that are needed to establish the relationship, it just wants the computer to check it.
Well, now we’re in territory not that far removed from having LLMs write code. You just set up a billion monkeys all pulling the levers on the slot machines and wait to see if any of them hit the jackpot. The output is a program that proves the theorem is true or else finds a counterexample. But the program is basically produced by brute force. It’s not that different from telling an LLM to mutate the code until the tests pass.
You can see now why this boils my blood. This is the same shit they’ve been doing with software, only now again for math, except it misses the point of the math by miles. And our credulous, comically math-illiterate news media, which is actually only interested in reporting sums of money, only sees $19 million in spend for a $1 million prize, and wonders about how long it will take for ChatGPT to come down in price enough to become profitable in this math contest winning marketplace. This is heavily leavened by the perception that what it is doing is the peak of intellectual rigor and complexity—and therefore this stochastic text generator is reasoning, probably conscious, going to lead to utopia and/or human extinction and therefore profit.
Every context-free language, which includes the input language of every theorem prover, is recursively enumerable. This means that every possible valid sentence in the language can be generated in turn by a computer. Reasoning is not required to find successful proofs. You can just make them all and check them. Maybe the LLM generated plausible sentences. Maybe it didn’t. All we know is that they spent a bucket of money they would never spend on actual mathematicians, generated a heinous amount of carbon dioxide and heat, and came up with a counter-example that maybe tells us something worth knowing about the problem or maybe doesn’t.
By the way, theorem provers also sometimes have bugs. It’s not likely but it isn’t impossible. But just as the astrophage in Project Hail Mary can learn to eat its container, an LLM-generated sentence that hits a bug in the theorem prover can be leveraged to prove anything. So as with all other LLM output, some poor schmuck is going to have to comb through the morass in this finding and see if it even makes sense and isn’t just a poorly-reduced bug report.
So when the same companies release 300 more mathematical findings of supposedly equal or lesser value, it is not out of the vastness of their benevolence, it is yet another transparent attempt to use money to flood the zone. The credulous media will be grateful to not have to ham-slap some bullshit about what the finding is, and can instead simply articulate “300 is substantially more than one,” which is a bit more in their wheelhouse.
The mathematicians and mathematics itself are just pawns here, being rather obviously tossed onto the pyre not because their work is harder or more expensive than other kinds of work, but simply because it is perceived as harder than programming and therefore a more genuine achievement of superhuman intelligence, while also happening to possess a programmable acceptance function. This is a misconception of what mathematics is about and for, and not much education is required to see that, or to see the obviousness of the strategy. It’s also a misconception about what human intelligence is, why we possess it, and what it is for.