困惑度与智能

对 AI 发展的一种简化但本质上颇具启发性的看法是:首先,人们建造一台大型计算机,然后用它在一个大规模非结构化数据集上预训练一个模型(压缩器),接着在不同场景中应用各种技术——比如提示、微调或强化学习——来激发该模型的潜在能力。算法进步可能会模糊训练各阶段之间的界限,但我们仍然可以把具有难以预测的涌现能力的 AI 的创造过程(我早前称之为“异星心智”)与随后有针对性的激发区分开来。
多年来,我们衡量这一关键“智能基底”进展的主要方式一直保持得相当恒定——我们一直在追踪模型在留出数据集上的困惑度。2, 3 困惑度衡量的是模型平均预测下一个 Token 的表现;困惑度越低意味着预测越好。这篇博文开头的图表展示了从 GPT‑3.5 开始,这一指标在我们的模型上是如何演变的。
仅凭这一个指标就大体描述的模型能力范围令人惊叹。GPT‑2 在较早的数据集4上刷新了困惑度的最优水平,可以说它是第一个能够持续写出连贯段落文本的模型。下一次重大跃升是 GPT‑3,只要给定任务的几个示例,它就能进行上下文学习。GPT‑3.5 在我们当前主要评估数据集上的对数困惑度约为 0.99,能够进行流畅对话,并构成了初代 ChatGPT 的基础。GPT‑4 约为 0.91,擅长有效地运用思维链推理,这促成了此后对这一能力的针对性激发以及现代推理模型的诞生。如今,随着损失降到 0.8 以下,我们已在网络安全和数学等领域看到变革性能力的出现。我想再次强调,先验地看,根本不清楚一旦达到那些确切的困惑度阈值,这些能力是否就会出现——从根本上说,它们可以被视为随着这一个指标的进步而涌现出的潜在能力。
随着 AI 飞速进步,我们衡量下游能力的范围与方式可能会迅速改变。用大多数现代基准测试来评估 GPT‑2 和 GPT‑3 几乎没有意义;而当时所用的基准测试也大多在 GPT‑4 前后就已饱和。相比之下,我认为关注预训练方面的进展很可能仍会提供有价值的信息。
进展速度上的一个特殊变化,来自 AI 对自身发展的贡献日益增加。最常被讨论的衡量指标,围绕的是 AI 在开发周期各个阶段增强并替代人类研究者;其终极拐点被视为“完全递归式自我改进”,届时整个过程将完全自动化,不再需要人类监督。除了认为出于维持人类控制的考虑、这种状态显然应当避免之外,我认为这一总体框架忽略了某些关键的东西。有一种潜在的阶跃式变化,可能来自 AI 参与开发流程中的一个关键环节:关于预训练的算法研究。
我们最近在另一个领域见证了前所未有的加速。一年多来,我们一直把数学领域的开放问题抛给我们的模型,作为评估它们的方式之一。当我们升级到 log-perplexity 约为 0.76 的模型后,它开始产出颠覆性的结果。对于我们中许多曾在数学及相邻领域工作过的人来说,看到模型在同一个 Slack 讨论串里接连给出我们长期思考的问题的解答,感觉极其超现实。有过这样的经历,让我们得以外推——这种突如其来的转变在深度学习研究中也是可能的。尽管这个领域更依赖实验,但长期以来一直有简单洞见被忽视多年的历史;因此最早在 2027 年,我们就有可能看到类似的基础性预训练进展5 的雪崩式涌现。虽然我预计 AI 也会对对齐与监控方面的进展做出重大贡献,但我认为这方面进展的速度不太可能快到足以让预训练实现其全部的潜在加速。
鉴于新的、出人意料的能力主要通过压缩方面的进展而涌现,一种植根于困惑度(perplexity)的度量指标或许能为我们提供衡量通用智能的共享基准,无论开发过程的自动化程度如何。从近期的进展外推,随着我们进入约 0.68–0.7 的对数困惑度区间,我们应当预期出现进一步的变革性能力。我不知道这些能力会是什么,而且我们当下可能并没有针对它们进行测试。与此同时,我们还应当预期,当前占主导地位的对齐审计形式会进一步退化,而评估意识和训练意识会进一步增强。我认为,前沿模型开发者应当共同努力,在这些模型首次投入使用之前,就如何评估此类模型、以及针对它们的安全案例开展红队测试建立共同规范,包括共同的透明度标准。我进一步提议,基于困惑度及其他度量指标设定共同的上限,开发者承诺在我们在理解与监测 AI 行为的能力达到某个具体里程碑(例如开发出 CoT 监控器的后继者)之前,不会越过这些上限。也就是说,我希望有一套行业标准,明确规定开发的第一道上限——由某个我们能在各实验室之间统一追踪的关键指标来衡量——以及在实际超越它之前,我们需要具体达成什么。我希望这能铺就一条道路,通向一个用于设定后续逐级上限、并为后续发展把握节奏的共同框架。
将困惑度作为共享指标存在一些挑战:
跨实验室比较的困难。不同的开发者使用不同的评估数据集,并在不同的数据混合上训练。在此,我们报告的是我们一直在追踪的主要数据集上的数字;我相信,如果我们以透明为目标,就能找到可迁移的方法来比较不同基础模型的质量。
与可操作评估的脱节。困惑度并不直接对应我们所关心的任务。我们之所以关心它,是因为可以预期它上面的进步会带来全新能力的涌现。
未考虑预训练之外的进展。最值得注意的是,思维链推理并不会降低模型所达到的困惑度,尽管它带来了能力的急剧提升。
未知的下限。我们不认为损失值可以降到 0,因为那将意味着能够完全确定性地预测数据集。但我们并不知道数据固有的熵是多少。随着我们逼近它,困惑度上的表面进展将会放缓,但困惑度上更小的增益将对应模型智能上更大的跃升。
与此同时,困惑度经受住了时间的考验,许多研究团队都投入了大量精力对其进行优化,并且它持续带来通用智能上的稳定提升。我相信它可以在标准化我们讨论 AI 进展的方式上发挥重要作用,并希望看到整个行业在这方面更加透明。
需要指出的是,这里的“压缩器”指的是能够通过预测未见数据来进行压缩的东西,而不是像 GZIP 文件那样的压缩产物——也就是说,在给定语料上训练出的最佳压缩器并不一定“记住”了该语料的内容。
在实践中,我们通常追踪困惑度的对数,也称为交叉熵损失。
自 GPT-3.5 以来,我们一直使用的主要留出数据集来自我们的内部代码库,而这里报告的就是这些数字(针对一个固定快照)。
考虑到 GPT-2 和 GPT-3 的训练数据,它们在代码预测上的表现并不能很好地代表其通用能力。这展示了将困惑度用作共享指标时,数据集选择所带来的潜在挑战;不过,在通用文本上将它们与现代模型一起评估仍然应当具有参考价值。我选择报告我们内部代码库上的困惑度,是因为我想分享我们如今在 OpenAI 衡量预训练进展时最依赖的数字。
在 OpenAI 模型的损失曲线图中,你可以看到 2026 年出现了急剧加速。我们主要将其归因于长期研究与算力投资的成果,只有较小部分归因于自动化。然而,对于最近的模型,我们已经看到 AI 带来了有意义的设计贡献。
MedChemBench:面向药物化学的 AI 基准测试
研究加速:锯齿状前沿
管理前沿 AI 风险:从训练到部署
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Perplexity and Intelligence)
A simplified, but fundamentally informative, view of AI development is that first, one builds a large computer, then uses it to pretrain a model (compressor) on a large unstructured dataset, then applies a variety of techniques—like prompting, finetuning or reinforcement learning—in different contexts to elicit the latent capabilities of that model. Algorithmic progress can blur the distinction between training phases, but we can still separate the creation of the AI with hard-to-predict emergent capabilities (which I earlier dubbed “an alien mind”) and the subsequent targeted elicitation.
The primary way we measure progress on this key “intelligence substrate” has remained remarkably constant over the years—we have been tracking the perplexity of the models on a held-out dataset.2, 3 Perplexity measures how well a model predicts the next token on average; lower perplexity means better predictions. The plot opening this blog post shows how this metric evolved for our models starting with GPT‑3.5.
The range of capabilities of models that are largely described by this one metric is stunning. Setting the new perplexity state-of-the-art on older datasets4, GPT‑2 was arguably the first model capable of consistently formulating coherent paragraphs of text. The next major leap, GPT‑3, was capable of learning in context, given a few examples of a task. GPT‑3.5, at a log-perplexity of ~0.99 on our current main evaluation dataset, was capable of fluent conversation and formed the basis for the original ChatGPT. GPT‑4, at ~0.91, was proficient at utilizing chain-of-thought reasoning productively, which motivated the subsequent targeted elicitation of this capability and the creation of modern reasoning models. Now, as we have reached losses below 0.8, we have seen the emergence of transformative capabilities in fields like cybersecurity and mathematics. I want to reemphasize that it was not at all clear a priori that these capabilities would appear once those precise perplexity thresholds are met—they can fundamentally be seen as emergent latent capabilities from progress on this one metric.
As AI advances very rapidly, the scope and way in which we measure downstream capabilities may change quickly. It would make little sense to evaluate GPT‑2 and GPT‑3 on most modern benchmarks; and the benchmarks used then were largely saturated around GPT‑4. In contrast, I believe looking at progress on pretraining is likely to stay informative.
A particular change in the pace of progress comes from the increasing contribution of AI to its own development. The most commonly discussed metrics revolve around AI augmenting and replacing human researchers in all stages of the development cycle; with an ultimate inflection point seen at “full recursive self-improvement”, where the process would be entirely automated with no human oversight. Apart from considering such a state as something we should obviously avoid for the sake of maintaining human control, I find this general framing misses something crucial. There is a potential step change that may come from AI participation in one key part of the development process: algorithmic research on pretraining.
We have recently witnessed unprecedented acceleration in another domain. For more than a year, we have been posing open problems in mathematics to our models as one of the ways of evaluating them. Once we upgraded to a model of log-perplexity ~0.76, it started producing groundbreaking results. For many of us that have previously worked in mathematics and adjacent fields, seeing the resolutions to questions we’ve long thought about coming out of the model one after another in a single Slack thread felt deeply surreal. Having experienced that allows us to extrapolate—such a sudden transformation is plausible in deep learning research too. While this field relies more on experimentation, there is a long history of simple insights being missed for years; and so as soon as 2027 we could conceivably see a similar avalanche of fundamental pretraining advancements5. While I expect AI will also significantly contribute to progress on alignment and monitoring, I think that progress is unlikely to be fast enough to allow the full potential acceleration in pretraining.
Given that the main way new surprising capabilities emerge is by progress on compression, a measure rooted in perplexity could give us a shared benchmark for general intelligence, regardless of the degree of automation of the development process. Extrapolating from recent progress, we should expect further transformative capabilities as we enter the ~0.68-0.7 log-perplexity window. I don’t know what those capabilities will be, and we may not be testing for them today. At the same time, we should also expect further degradation(opens in a new window) in currently dominant forms of alignment auditing and further increases in evaluation and training awareness. I believe frontier model developers should jointly endeavour to establish shared norms for how to evaluate such models and red-team safety cases for them by the time they are first used, including shared transparency standards. I further propose common limits, based on perplexity and other measurements, that developers are committed to not crossing until our ability to understand and monitor AI behavior achieves a certain concrete milestone (such as the development of a successor to CoT monitors). That is, I’d like an industry standard that specifies a first limit on development, measured by some key metric we can track across labs, and what concretely we’d need to achieve before going beyond it. I hope that this leads the way to a common framework for setting successive limits and pacing further development.
Perplexity as a shared metric has challenges:
Difficulty of comparison across labs. Different developers use different evaluation datasets and train on different data mixtures. Here, we report the numbers on the main dataset we have been tracking; I believe if we establish a goal of transparency we can find transferable ways to compare the quality of different base models.
Detachment from actionable evaluations. Perplexity does not directly correspond to a task we care about. The reason to care about it is that we can expect advances on it to lead to emergence of entirely new capabilities.
Not accounting for advances outside of pretraining. Most notably, chain-of-thought reasoning does not reduce perplexity achieved by the model, even though it leads to a drastic increase in capabilities.
Unknown floor. We do not expect it is possible to achieve a loss of 0, which would correspond to being able to predict the dataset entirely deterministically. But we do not know what the inherent entropy of the data is. As we approach it, the apparent progress on perplexity will slow, but smaller gains on perplexity will correspond to larger leaps in model intelligence.
At the same time, perplexity has stood the test of time as a metric many research teams have put a lot of effort into optimizing, and it continues to deliver consistent gains on general intelligence. I believe it can play an important role in standardizing how we talk about AI progress, and hope to see more transparency about it across the industry.
It’s important to note that “compressor” in this sense is something that is capable of performing compression by predicting unseen data, not a compressed artifact like a GZIP file - that is, the best compressor trained on a given corpus does not necessarily “remember” the contents of the corpus.
In practice, we generally track the log of perplexity, also called cross-entropy loss.
The primary held-out datasets we’ve been using since GPT-3.5 are sourced from our internal codebase, and those are the numbers reported here (for a fixed snapshot).
Given what GPT‑2 and GPT‑3 were trained on, how well they predict code is a poor proxy for their general capabilities. This showcases a potential challenge arising from dataset selection with using perplexity as a shared metric; however it should still be informative to evaluate them jointly with modern models on general text. I chose to report perplexity on our internal codebase because I wanted to share the numbers we rely on most today to gauge progress in pretraining at OpenAI.
On the plot of losses of OpenAI models, you can see a steep acceleration in 2026. We attribute it mostly to the outcomes of long term research and compute investments, and only in a smaller part to automation. However, for the most recent models, we have already seen meaningful design contributions coming from AI.

MedChemBench: Benchmarking AI for medicinal chemistry
Research acceleration: The jagged frontier
Managing frontier AI risk: From training to deployment
原文为英文,正文由自动抓取并保留原文。
原文发布于 OpenAI Blog(Perplexity and Intelligence),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。