Tag Archives: ACME

Rationality of LLMs, affiliated operators and humans

[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 X=(X1,…,Xd) be a tuple of bounded normal operators generating a finite von Neumann algebra ℳ= vN ⁡ (X) with a faithful normal tracial state τ. Write L0(ℳ) for the algebra of closed, densely defined operators affiliated with ℳ. We start with the case where X admits a dual system D=(D1,…,Dd). Given u∈L0(ℳ), we would like to know whether u can be expressed as a rational function of X. In other words, can u be obtained from the generators X1,…,Xd and complex scalars by finitely many additions, multiplications, and inversions in L0(ℳ)? The idea is to characterize rationality in X by a finite-rank condition built from the commutators [Di,u]. 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 u under the following conditions on the dual system (see Theorem 1.9 in the preprint). Set H=L2(ℳ,τ) and Ω=1, and let PΩ be the orthogonal projection onto ℂΩ. Suppose that the linear operators D1,…,Dd on H satisfy

ℳΩ⊆ Dom ⁡ Di∩ Dom ⁡ Di∗,[Xj,Di]|ℳΩ=δ𝑖𝑗PΩ|ℳΩ(1≤i,j≤d).

Then an element u∈ℳ is rational in X if and only if

[Di,u]|ℳΩ  has finite rank(i=1,…,d).

What happens when u is unbounded? A trick is to write u as a left and a right fraction of bounded elements in ℳ, as in the work of Linnell and Miyagawa. We know that for any u∈L0(ℳ), there exist elements s,a,b,t∈ℳ such that

u=s−1a=bt−1,s,t  invertible in  L0(ℳ).

We call such a tuple Q=(s,a,b,t) a fraction pair. The identities 𝑠𝑢=a and 𝑢𝑡=b let us clear denominators on the two sides of a commutator. For a linear operator B on H, this gives the fraction commutator

Γ[Q,B]=𝑠𝐵𝑏−𝑎𝐵𝑡,

which is formally what we get from s[B,u]t. For bounded u, the choice Q=(1,u,u,1) gives back the ordinary commutator.

Now consider an unbounded u and suppose there is a fraction pair Q for which

Γ[Q,Di]  has finite rank(1≤i≤d).

We can use the dual system D=(D1,…,Dd) from above to construct a finite-rank solution of a single commutator equation. Write ρ(x) for right multiplication by x on H and put Ki=[ρ(Xi),Di] on ℳΩ. We calculate

[Xj,Ki]=Xj(ρ(Xi)Di−Diρ(Xi))−(ρ(Xi)Di−Diρ(Xi))Xj=ρ(Xi)XjDi−XjDiρ(Xi)−ρ(Xi)DiXj+DiXjρ(Xi)=ρ(Xi)(XjDi−DiXj)−(XjDi−DiXj)ρ(Xi)=[ρ(Xi),[Xj,Di]]=δ𝑖𝑗[ρ(Xi),PΩ]=δ𝑖𝑗[Xi,PΩ]

on ℳΩ. Summing the last identity over i shows that C:=∑ ⁡k=1dKk−PΩ commutes with every Xj on ℳΩ. We can therefore set

Li:=Ki−1dC.

The correction preserves the commutator relation, i.e.,

[Xj,Li]=δ𝑖𝑗[Xi,PΩ],

and makes ∑ ⁡iLi=PΩ 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 L=(L1,…,Ld) on H a liberation dual system if it satisfies

ℳΩ⊆ Dom ⁡ Li∩ Dom ⁡ Li∗,[Xj,Li]=δ𝑖𝑗[Xi,PΩ](1≤i,j≤d)

on ℳΩ. We say that a liberation dual system is normalized if ∑ ⁡iLi=PΩ on ℳΩ.

The commutation result [Xj,C]=0 for normal generators X1,…,Xd lets us move the correction term C past b and t, so Γ[Q,C]=(𝑠𝑏−𝑎𝑡)C=0. We get on ℳΩ

Γ[Q,Li]=Γ[Q,Ki]−1dΓ[Q,C]=Γ[Q,Ki]=sKib−aKit=s(ρ(Xi)Di−Diρ(Xi))b−a(ρ(Xi)Di−Diρ(Xi))t=ρ(Xi)(sDib−aDit)−(sDib−aDit)ρ(Xi)=[ρ(Xi),Γ[Q,Di]].

We can now take the finite-rank operators Ti=Γ[Q,Di]¯ and write

Γ[Q,Li]¯=[ρ(Xi),Ti].

Summing over i and using ∑ ⁡iLi=PΩ gives

∑i[ρ(Xi),Ti]=Γ[Q,PΩ].

It turns out that, under the hypotheses below, we can characterize rationality in X by asking for finite-rank solutions to the individual commutator equations or to the summed equation. Write ℱ(H) for the finite-rank operators on H. Take a normalized liberation dual system L for X and suppose Xi−λ is invertible in L0(ℳ) for every i and every λ∈ℂ. Then each of the following conditions characterizes rationality in X (see Theorem 1.7 in the preprint).

  1. For every fraction pair Q for u, there exist T1,…,Td∈ℱ(H) satisfying

    [ρ(Xi),Ti]=Γ[Q,Li]¯(1≤i≤d).
  2. For every fraction pair Q for u, there exist T1,…,Td∈ℱ(H) satisfying

    ∑i=1d[ρ(Xi),Ti]=Γ[Q,PΩ]. (1)

As in the work of Linnell and Miyagawa, u is rational in X as soon as (1) has a solution T1,…,Td∈ℱ(H) for a single fraction pair Q for u.

The left-hand side of (1) also appears in the definition of Δ(X), an invariant introduced in Connes and Shlyakhtenko’s work on L2-homology. Let 𝒞X be the space of tuples (T1,…,Td) of finite-rank operators for which the sum ∑ ⁡[ρ(Xi),Ti] is zero. Then

Δ(X)=d−dim⁡ℳ⊗¯ℳop𝒞X¯HS,

where the closure is in the Hilbert–Schmidt norm and the dimension is the von Neumann dimension. In particular, Δ(X)=d exactly when the equation ∑ ⁡[ρ(Xi),Ti]=0 has only the zero solution. Moreover, the existence of a liberation dual system forces Δ(X)=d if Xi−λ is invertible in L0(ℳ) for every i 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 Δ(X)=d, 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 u to be rational.

In order to see that, let us write U=L0(ℳ) and let F be the division closure of ℂ⟨X1,…,Xd⟩ in U. Since Δ(X)=d, the algebra F is a division ring, isomorphic to the free field on d generators, by Theorem 1.1 of Mai, Speicher and Yin. View H:=L2(ℳ,τ) as the subspace of square-integrable elements of U. We can identify the finite-rank operators on H with the algebraic tensor product H⊗ℂH via Θ:H⊗ℂH→ℱ(H),

Θ(v⊗w)ξ=v⟨w∗,ξ⟩,v,w,ξ∈H,

and in particular, for v,w∈ℳ,

Θ(v⊗w)=vPΩw.

Using this identification, define the linear map

π:ℱ(H)→U⊗FU,π(Θ(v⊗w))=v⊗Fw(v,w∈H).

In this tensor product, a factor from F can pass from the right of the first entry to the left of the second. Since Xi∈F, we have

π([ρ(Xi),Θ(v⊗w)])=(vXi)⊗Fw−v⊗F(Xiw)=0.

Each Ti is a finite sum of rank-one operators, so π sends the left-hand side of (1) to zero. On the right, π sends Γ[Q,PΩ]=sPΩb−aPΩt to s⊗Fb−a⊗Ft. Thus s⊗Fb=a⊗Ft. After multiplying the first factor on the left by s−1 and the second on the right by t−1, we use u=s−1a=bt−1 to get

1⊗Fu=u⊗F1.

If u were outside F, then 1 and u would be linearly independent over F on the right. Extending them to a right F-basis of the module U would give a right F-linear map ϕ:U→F with ϕ(1)=0 and ϕ(u)=1. The right F-linearity of ϕ makes v⊗Fw↦ϕ(v)w well defined on U⊗FU. Applying this map to 1⊗Fu=u⊗F1 would give 0=1. So u belongs to F and is a rational function of X.

The above argument gives one direction of the algebraic criterion for rationality. The full criterion assumes only that Δ(X)=d. For that purpose, write Uop for the opposite algebra of U. On U⊗ℂUop, let Ψi be right multiplication by Xi⊗1−1⊗Xiop, so that

Ψi(v⊗wop)=vXi⊗wop−v⊗(Xiw)op.

If Δ(X)=d, the following conditions on u∈U are equivalent (see Theorem 1.4 in the preprint).

  1. u is rational in X, that is, u∈F.
  2. There are k1,…,kd∈U⊗ℂUop such that

    ∑i=1dΨi(ki)=u⊗1−1⊗uop.
  3. For every fraction pair Q=(s,a,b,t) for u, there are ℓ1,…,ℓd∈U⊗ℂUop such that

    ∑i=1dΨi(ℓi)=a⊗top−s⊗bop.
  4. For some fraction pair Q for u, the same identity has a solution with ℓ1,…,ℓd∈ℳ⊗ℂℳop.
  5. For some fraction pair Q for u, there are T1,…,Td∈ℱ(H) satisfying

    ∑i=1d[ρ(Xi),Ti]=Γ[Q,PΩ].

We have already seen why (5)⇒(1). For a rational u∈F, the free difference quotients ki=∂iu give (2). Clearing the denominators of u 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 H⊗ℂH. 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.