[This is a guest post by Sheng Yin]
1. Rationality of LLMs
It is well known that if you give a monkey a typewriter and let it type at random indefinitely, it will almost surely produce the complete works of Shakespeare. Of course, a written answer to the Riemann hypothesis could turn up in the same way, though the waiting time would be astronomical. Now, what if you had a machine that could be guided to produce grammatically correct, logically coherent prose and even new, meaningful mathematical arguments by controlling the probability of each word it generates at each step? Chances are you’ve already seen or used such a machine, which is now known as a large language model (LLM). It is still of nature a probabilistic algorithm, but this time it asymptotically converges to meaningful mathematical arguments in languages with parameters growing large.
A year ago, I had little sense of how much large language models could help with complex mathematical reasoning, and I suspect much of the mathematical community felt the same way. At the time, most LLMs had yet to show they could produce mathematical work at the research frontier. When you asked an LLM a nontrivial mathematical question, it would often struggle to give a meaningful answer and would sometimes even make up something that sounded plausible, a kind of error known as hallucination.
But now, the situation has changed dramatically. As their training and architectures improve, LLMs are becoming more capable of rational reasoning about complex mathematical problems. With the advent of LLMs, we have inevitably entered an industrial era of mathematics, where these probabilistic yet rational machines will likely assist mathematical exploration and discovery on a large scale, changing what has traditionally been a hands-on, artisanal process. One recent example you may have heard about is Levent Alpöge‘s claim to have proved the generalized Riemann hypothesis with the help of an LLM.
This blog post is a record of my own recent experiment in using large language models for mathematical exploration. The test problem is an old question about the rationality of affiliated operators that has been on my mind for quite some time. It was during the COVID-19 quarantine that Roland shared this problem with Tobias and me.
2. Rationality of affiliated operators
Let be a tuple of bounded normal operators generating a finite von Neumann algebra with a faithful normal tracial state . Write for the algebra of closed, densely defined operators affiliated with . We start with the case where admits a dual system . Given , we would like to know whether can be expressed as a rational function of . In other words, can be obtained from the generators and complex scalars by finitely many additions, multiplications, and inversions in ? The idea is to characterize rationality in by a finite-rank condition built from the commutators . This criterion was motivated by a conjecture of Connes in Noncommutative Geometry (Section IV.5, Remark 3) and by Duchamp and Reutenauer’s proof.
Back then, Roland, Tobias, and I discussed the problem and made several attempts to tackle it, but with little headway. Later, Miyagawa proved a finite-rank criterion for rationality in the free semicircular case. This result suggested that a similar criterion might hold beyond the free semicircular case. When I returned to the problem, the case of a general tuple admitting a dual system was still open.
After seeing advances in LLMs on various fronts and having some success using them on another problem, I started to explore the rationality problem for affiliated operators. In parallel, I started turning what I had learned from using LLMs into a framework for organizing research strategies and claims as the exploration unfolded. The framework continues to evolve under the name ACME. Within this framework, I set the research objectives, contributed mathematical insights, and guided key decisions, while AI agents autonomously explored possible solutions and proof strategies. The research materials and exploration records associated with this project are publicly available under Task F0001 (versions 1–7) in my GitHub repository. If you are interested, you can ask an LLM to read the repository and summarize how my exploration of the rationality problem developed.
It turns out that the finite-rank criterion we were looking for does hold for bounded under the following conditions on the dual system (see Theorem 1.9 in the preprint). Set and , and let be the orthogonal projection onto . Suppose that the linear operators on satisfy
Then an element is rational in if and only if
What happens when is unbounded? A trick is to write as a left and a right fraction of bounded elements in , as in the work of Linnell and Miyagawa. We know that for any , there exist elements such that
We call such a tuple a fraction pair. The identities and let us clear denominators on the two sides of a commutator. For a linear operator on , this gives the fraction commutator
which is formally what we get from . For bounded , the choice gives back the ordinary commutator.
Now consider an unbounded and suppose there is a fraction pair for which
We can use the dual system from above to construct a finite-rank solution of a single commutator equation. Write for right multiplication by on and put on . We calculate
on . Summing the last identity over shows that commutes with every on . We can therefore set
The correction preserves the commutator relation, i.e.,
and makes on . This construction is not essentially new and already appears in Voiculescu’s Liberation and Mutual Free Information. Thus we call a tuple of linear operators on a liberation dual system if it satisfies
on . We say that a liberation dual system is normalized if on .
The commutation result for normal generators lets us move the correction term past and , so . We get on
We can now take the finite-rank operators and write
Summing over and using gives
It turns out that, under the hypotheses below, we can characterize rationality in by asking for finite-rank solutions to the individual commutator equations or to the summed equation. Write for the finite-rank operators on . Take a normalized liberation dual system for and suppose is invertible in for every and every . Then each of the following conditions characterizes rationality in (see Theorem 1.7 in the preprint).
-
For every fraction pair for , there exist satisfying
-
For every fraction pair for , there exist satisfying
(1)
As in the work of Linnell and Miyagawa, is rational in as soon as (1) has a solution for a single fraction pair for .
The left-hand side of (1) also appears in the definition of , an invariant introduced in Connes and Shlyakhtenko’s work on -homology. Let be the space of tuples of finite-rank operators for which the sum is zero. Then
where the closure is in the Hilbert–Schmidt norm and the dimension is the von Neumann dimension. In particular, exactly when the equation has only the zero solution. Moreover, the existence of a liberation dual system forces if is invertible in for every and every (see Proposition 4.7 in the preprint).
We have already presented two analytic criteria for rationality, one requiring the existence of a dual system and the other requiring the existence of a liberation dual system. For tuples with , equation (1) leads to a third criterion for rationality, this time an algebraic one. To arrive at this criterion, we start by asking how a finite-rank solution of the equation forces to be rational.
In order to see that, let us write and let be the division closure of in . Since , the algebra is a division ring, isomorphic to the free field on generators, by Theorem 1.1 of Mai, Speicher and Yin. View as the subspace of square-integrable elements of . We can identify the finite-rank operators on with the algebraic tensor product via ,
and in particular, for ,
Using this identification, define the linear map
In this tensor product, a factor from can pass from the right of the first entry to the left of the second. Since , we have
Each is a finite sum of rank-one operators, so sends the left-hand side of (1) to zero. On the right, sends to . Thus . After multiplying the first factor on the left by and the second on the right by , we use to get
If were outside , then and would be linearly independent over on the right. Extending them to a right -basis of the module would give a right -linear map with and . The right -linearity of makes well defined on . Applying this map to would give . So belongs to and is a rational function of .
The above argument gives one direction of the algebraic criterion for rationality. The full criterion assumes only that . For that purpose, write for the opposite algebra of . On , let be right multiplication by , so that
If , the following conditions on are equivalent (see Theorem 1.4 in the preprint).
- is rational in , that is, .
-
There are such that
-
For every fraction pair for , there are such that
- For some fraction pair for , the same identity has a solution with .
-
For some fraction pair for , there are satisfying
We have already seen why . For a rational , the free difference quotients give (2). Clearing the denominators of gives (3). Clearing the tensor denominators then gives a fraction pair for which we can find bounded solution tensors, as in (4). The correspondence between tensors and finite-rank operators then gives (5).
In the manuscript, we begin with the algebraic criterion for rationality and then turn to the analytic criteria, reversing the order we followed in the exploration above. To prove the liberation dual system criterion, we use the tensor solutions in (3). The liberation relations, together with the invertibility of the scalar shifts, force these tensors to lie in . They then give finite-rank solutions to equation (1) for every fraction pair. You can find the proofs of the remaining implications in the manuscript, as well as examples illustrating the boundaries of these three criteria.
3. Rationality of humans
Working with LLMs on this problem also made me think about my own role as a mathematician.
We humans seem not to be inherently probabilistic in our mathematical reasoning. Our thought processes are guided by logic, intuition, and experience, at least in our natural cognitive state. We are also probably prone to biases and errors, and there are limits to our memory and attention, to what we can learn, and to how persistently we can work on complex problems.
LLMs are good at using randomness to explore large combinatorial spaces of mathematical arguments efficiently, and I don’t plan to compete with these machines in that kind of search. I would like to focus on what humans are inherently good at but LLMs may struggle with, maybe intuition, creativity et cetera, though I am still trying to figure out where that boundary lies.
Still, I found a few places where I could contribute to this exploration of the rationality problem. One of them is especially interesting to me because it takes us from rationality in the strict mathematical sense to a matter of mathematical taste, my sense of what makes an argument beautiful or elegant.
Partway through the exploration, my agents reported that they had found rationality criteria based on dual systems and on conjugate variables, and I started working carefully through their proofs. With the proofs in hand, I still felt the arguments were more complicated than they needed to be. I suspected there was an underlying pattern that I hadn’t yet seen. After rounds and rounds of refining the arguments, the agents finally brought me the liberation dual system with its connection to Voiculescu’s work on liberation and mutual free information. It then became clear to me that the liberation perspective gave a more elegant and insightful view of the underlying structures, as well as a crystal-clear way to organize the arguments and proofs.
In The Library of Babel, Jorge Luis Borges imagined a library made up of hexagonal galleries. Taken together, its books contain every possible combination of letters, spaces, and punctuation marks. Therefore, as Borges wrote, “There was no personal problem, no world problem, whose eloquent solution did not exist–somewhere in some hexagon.” By the same reasoning, one can imagine that the solution to any mathematical problem is waiting somewhere in one of those hexagons as well. This story inspired the name of Hexagon, a website that appeared recently. It plays a role similar to that of Borges’s library, with LLMs helping to fill its shelves with mathematical arguments and solutions. Like arXiv, Hexagon is a repository for mathematical research. But it “was created in response to the staggering changes that artificial intelligence has induced in the mathematics research landscape”, and “specifically allows submissions entirely generated by LLMs”.
Borges’s story also resonates with my experience of working with LLMs. ACME, the system I used for my own exploration, also provides such a Hexagon-like repository for mathematical arguments and solutions. My agents were filling its shelves with the arguments and solutions they found along the way. I see my role as something like that of a librarian in Borges’s story, navigating that vast combinatorial space of arguments and solutions in search of elegant and insightful patterns that might be meaningful or interesting.
I went into this library looking for rationality criteria for affiliated operators, and I did find some. I came away wondering what a rationality criterion for LLMs or for humans might look like, if there is one at all, and how it might guide us as we venture into the uncharted and futuristic realms of mathematical exploration.
