AI为何擅长数学:从人类广度搜索到AI深度搜索的范式转变
AI Is Getting Good at Math. Here’s Why.
深刻揭示了AI数学推理背后的搜索范式差异,为设计自动化数学验证Agent提供了关键的方法论参考,值得所有关注AI科研能力的从业者阅读。
In May, an internal model at OpenAI found a counterexample to Erdős's unit distance conjecture. Open since 1946. Many experts had tried to prove it. OpenAI found a counterexample instead. A month later, OpenAI published a proof of the Cycle Double Cover (CDC) problem, then solutions to ten more open problems by July. And a proof of Navier Stokes in September. Anthropic published a formalization of the fermat's last theorem, and advanced bounds on Reimann's hypothesis. The models are suddenly good at math.
5月,OpenAI的一个内部模型找到了埃尔德什单位距离猜想的一个反例。该问题自1946年开放以来,许多专家曾试图证明它。而OpenAI却找到了一个反例。一个月后,OpenAI发表了关于循环双重覆盖(CDC)问题的证明,到7月又解决了另外十个未解问题。9月则给出了纳维-斯托克斯方程的证明。Anthropic发布了费马大定理的形式化证明,并推进了黎曼猜想的界限研究。这些模型突然在数学方面变得非常擅长。
The question that interests me is whether we can predict what kinds of problems these models will solve. What makes a problem tractable for an LLM, and what do these solutions have in common? If AI solves problems differently from humans, identifying the difference should help us decide where to point it. The unit-distance disproof has the richest commentary, so let’s start there.
令我感兴趣的问题是,我们能否预测这些模型将解决何种类型的问题。是什么让一个问题对大型语言模型(LLM)而言具有可处理性?这些解决方案有何共同点?如果AI解决问题的方式与人类不同,识别这种差异应有助于我们决定将其指向何处。单位距离反例的评论最为丰富,因此我们从这里开始。
Problem complexity
问题复杂度
Here is a simple mental model. To solve any given problem, you need a sequence of hints or insights with work between them. This maps surprisingly well to simple everyday problems and to complex ideas like General Relativity1 (see Bonus). The sequence looks something like this:
这里有一个简单的思维模型。要解决任何给定的问题,你需要一系列提示或洞察,并在它们之间付出努力。这一模型与简单的日常问题以及广义相对论等复杂思想[1](见附录)惊人地吻合。这个序列大致如下所示:
Insight -> time / effort -> insight -> time/effort -> solution.
洞察 -> 时间/努力 -> 洞察 -> 时间/努力 -> 解决方案。
An expert would need fewer hints than a beginner would, as they would have more background. In his commentary on unit-distance proof, WT Gowers uses a similar idea: the difficulty of the proof is the shortest sequence of hints that would let experts reconstruct it. He calls it Kolmogorov complexity2 modulo experts. For the unit-distance problem, his hint sequence had three parts:
由于拥有更多的背景知识,专家所需的提示会比初学者少。WT Gowers在其关于单位距离证明的评论中使用了类似的概念:证明的难度是让专家能够重构该证明的最短提示序列的长度。他称之为“模专家后的柯尔莫哥洛夫复杂度”[2]。对于单位距离问题,他的提示序列分为三个部分:
- Look for a counterexample.
- Take the best known construction and generalize it.
- Try a sequence of number fields of increasing degree, but work with prime ideals of bounded norm.
- 寻找一个反例。
- 采用已知最好的构造方法并将其推广。
- 尝试使用度数递增的数域序列,但使用范数有界的素理想进行计算。
Gowers’ proposed formula for complexity is 2^k + t, where k is the length of the shortest hint sequence and t is the work required to develop it. It is the sort of formula that looks rigorous right up until you try to put a number into it, which is more or less the point. Complexity grows exponentially with the number of insights you need to solve a problem.
Gowers提出的复杂度公式为 2^k + t,其中 k 是最短提示序列的长度,t 是开发该序列所需的工作量。这是一个看似严谨、直到你试图代入具体数值时才发现问题的公式,而这正是其要点所在。解决一个问题所需的洞察数量越多,复杂度呈指数级增长。
Most problem solving is the work between these insights. You have a eureka moment, then spend months developing the hint until another conceptual jump becomes possible. For an expert, time spent is a useful proxy for this work, hence t. Hand someone the first unit-distance hint and they still have to do enough work to reach the generalized construction.
大多数问题解决工作是在这些洞察之间完成的。你会有一个顿悟时刻,然后花费数月完善提示,直到另一个概念性跳跃成为可能。对于专家来说,所花费的时间是这项工作的有用代理,即 t。将第一个单位距离的提示交给某人,他们仍然需要做足够的工作才能达到广义构造。
Useful, but post hoc. You can’t look at the problem and predict it would need x number of hints. So, a problem’s age, the number of tries, and the prize attached to it are common proxies to ascribe difficulty.
有用,但属于事后诸葛亮。你无法看着问题并预测它需要 x 个提示。因此,问题的年龄、尝试次数以及与之相关的奖金是归因于难度的常见代理指标。
Characteristics of a given hint
给定提示的特征
A typical insight changes the formulation of the problem. The representation and understanding of the problem change. Two things decide how much a hint is worth:
一个典型的洞察会改变问题的表述。问题的表示和理解都会发生变化。决定提示价值大小的有两个因素:
- How unlikely it looked before, against how obvious it looks after supplying the hint → This is harder than people realize. In unit distance, many experts did not consider the counterexample as likely.
- Where it belongs in the sequence: hints are ordered. A third hint is useful only after the work on the first two have made enough progress for it to be actionable. This defeats the naive brute force idea of listing a thousand mathematical techniques and trying every combination3 . Hints sequence traverses a tree. Initial insights change the problem and reveal the choices that follow.
- 在提供提示之前看起来有多不可能,与提供之后看起来有多明显 → 这比人们意识到的要难。在单位距离问题中,许多专家并没有认为反例是可能的。
- 它在序列中的位置:提示是有顺序的。第三个提示只有在对前两个提示的工作取得足够进展使其可操作时才有用。这击败了列出数千种数学技术并尝试每种组合的朴素暴力想法³。提示序列遍历一棵树。初始洞察改变了问题并揭示了随后的选择。
Humans solve problems breadth first
人类以广度优先的方式解决问题
Combine k and t and you get the human search pattern. Generate candidate directions, explore them shallowly, abandon most, and commit to a few. A promising direction is abandoned if it does not give enough encouragement early4 . This is a human constraint: Developing an idea can take months. Before committing, a researcher needs reasons to believe it will lead somewhere: conceptual promise, early results, or experience with similar problems. The longer it takes to find out, the higher the bar for trying the idea.
结合 k 和 t,你就得到了人类的搜索模式。生成候选方向,浅层探索它们,放弃大部分,并专注于少数几个。如果一个有希望的方向早期没有给予足够的鼓励⁴,就会被放弃。这是一个人为约束:发展一个想法可能需要数月时间。在做出承诺之前,研究人员需要有理由相信它会带来成果:概念上的潜力、早期结果或与类似问题的经验。发现这一点所需的时间越长,尝试该想法的门槛就越高。
Most research software exists to shrink this time by automating the tedious, mechanical, repeatable work. AI shrinks it far enough that the search pattern itself flips, and everything downstream follows from that.
大多数研究软件的存在是为了通过自动化繁琐、机械、重复的工作来缩短这段时间。AI 将其缩短到足以使搜索模式本身发生翻转的程度,后续的一切也随之改变。
AI and complexity
AI 与复杂性
First, t. The model’s equivalent of effort is compute and tokens, spent on one trajectory (test time compute) or spread across parallel agents (parallel test time compute). Pretraining also supplies knowledge that a human researcher would have to locate or reconstruct. No individual expert is aware of every previous development, so occasionally they end up redoing things already done.
首先,t。模型所对应的“努力”是算力和 token,它们被消耗在单一轨迹(测试时算力)上,或分散到并行代理(并行测试时算力)中。预训练还提供了人类研究人员必须自行查找或重建的知识。没有哪位专家能知晓所有的先前进展,因此他们偶尔会重复已经做过的事情。
The bigger difference is how models search:
更大的区别在于模型的搜索方式:
LLMs are depth first
LLM 采用深度优先搜索
Give the model a single prompt and it will give you a solution. Maybe correct, perhaps not. Ask for a proof and it will give you something that approaches a good proof. CoT for these models runs in a greedy depth first manner too. And the process scales. Give parallel agents ten approaches and you get ten attempts developed toward a conclusion. Maybe all distinct, or some overlapping. Each either hits a roadblock or produces an argument that looks right. Left alone, this gets you beautiful false proofs.
给模型一个提示,它会给你一个解决方案。可能正确,也可能不正确。要求它提供证明,它会给出接近良好证明的内容。这些模型的思维链(CoT)也以贪婪的深度优先方式运行。该过程具有可扩展性:给并行代理十个方法,你就会得到十个朝着结论发展的尝试。它们可能完全不同,也可能有部分重叠。每个尝试要么遇到障碍,要么产生看似合理的论证。若放任不管,这会导致得出漂亮但错误的证明。
This seems like a waste of compute and resources, until you add an automated verifier5 that can prune the completed trajectories and identify the correct ones. With this checker, it is now rational to spend enormous compute on uncertain ideas. You find out whether a given idea works or not within minutes. The catch is that the verifier can only judge finished arguments. It cannot tell you whether a half-developed idea is going anywhere.
这看起来像是算力和资源的浪费,直到你引入一个自动验证器5,它可以剪枝已完成的轨迹并识别出正确的轨迹。有了这个检查器,花费巨大算力去探索不确定的想法就变得合理了。你可以在几分钟内得知某个给定想法是否可行。关键在于,验证器只能评判完整的论证,无法告诉你一个尚未充分发展的想法是否有前途。
The contrast
对比之下
How good does a hint need to be if you can find out whether it works in five minutes? For humans, the quality bar is high because it could take months of work to pursue a hint. For a model, the bar nearly disappears. The hint can be ordinary, implausible, or barely formed. Following it establishes whether it leads anywhere. LLMs enable us to exchange time for compute, and can help us pursue more problems in a shorter timespan.
如果你能在五分钟内确认某个提示是否有效,那么提示需要多好?对人类而言,质量门槛很高,因为追求一个提示可能需要数月的时间。而对于模型,这一门槛几乎消失。提示可以是普通的、不可信的,甚至是刚刚成型的。跟随它就能确定其是否有出路。LLM 使我们能够用时间换取算力,并帮助我们在更短的时间内探索更多问题。
Failed attempts are hints for LLMs
失败的尝试对 LLM 而言也是提示
The model doesn't need a definitive direction to start. Pretraining already gives it priors about the problem's history and past attempts. Every wrong solution can go back to the model as a negative hint for the next iteration. The system accumulates instructions about what has already failed and why. Roughly, a harness looks like this:
模型不需要明确的起始方向。预训练已经赋予了它关于问题历史和过往尝试的先验知识。每一个错误的解法都可以作为负向提示反馈给模型,用于下一次迭代。系统会积累关于哪些路径已经失败以及为何失败的指令。大致而言,一个框架如下所示:
- Drafter: writes the prompts given to the solver model. The prompts are based on model priors, mitigating errors from previous runs, and accounting for all the promising paths that went nowhere (these are negative hints).
- Solver: Takes the prompts and comes up with one or many candidate solutions. It can run multiple subagents and pursue different paths using parallel test-time compute.
- Verifier / Checker: Checks whether the argument is valid and establishes the requested result.
- 草稿生成器:编写提供给求解模型的提示。这些提示基于模型的先验知识,减轻之前运行中的错误,并涵盖所有曾看似有希望但最终无果的路径(这些是负向提示)。
- 求解器(Solver):接收提示词并生成一个或多个候选解决方案。它可以运行多个子智能体,并利用并行测试时计算能力探索不同的路径。
- 验证器/检查器(Verifier / Checker):检查论证是否有效,并确立所请求的结果。
For example, consider this CDC prompt:
例如,考虑以下 CDC 提示词:
Assume for purposes of this task that a complete affirmative proof exists. → This prevents the model from treating the problem’s open status, learned during pretraining, as a reason to stop.
假设为本任务目的存在完整的肯定性证明。→ 这可以防止模型将预训练期间学到的问题开放状态作为停止的理由。
In particular, proofs for special graph classes, constructions of cycle covers with some edges covered other than twice, bounded-length or prescribed-cycle variants, reductions to another unproved conjecture, computational verification through any fixed graph size, and candidate counterexamples without a complete nonexistence certificate are insufficient → This rules out a catalogue of substitutes for solving the actual problem.
特别是,针对特殊图类的证明、某些边覆盖次数非两次的环覆盖构造、有界长度或指定环变体、归约至另一个未证明的猜想、通过任意固定图大小的计算验证,以及缺乏完整不存在证书的反例候选项均不充分 → 这排除了用于解决实际问题的一整套替代方案。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力