困惑度与智能
原题Perplexity and Intelligence
读前速览
OpenAI 首席科学家认为,应采用困惑度作为共同指标来追踪 AI 进展并制定安全标准;这一观点揭示了基于压缩的训练如何推动 GPT-4 及后续模型涌现出新能力。
应采用困惑度作为共同指标,追踪 AI 进展并为安全标准提供依据
困惑度衡量模型预测下一个词元的能力;数值越低,表示压缩效果越好,并且与新兴能力相关,因此适合作为模型开发者之间通用的标准化基准。
困惑度的改善推动语言模型涌现出新能力
困惑度约为 1.0 的 GPT-2 能生成连贯段落,困惑度约为 0.9 的 GPT-3 学会了上下文学习,困惑度约为 0.99 的 GPT-3.5 能够进行对话,而困惑度约为 0.91 的 GPT-4 则解锁了思维链推理,展现出与压缩指标相关的明确能力进阶。
AI 正日益参与自身算法研究
对数困惑度约为 0.76 的模型开始解决尚未攻克的数学问题。这表明,随着压缩能力提升,AI 可能推动基础预训练取得进展,并有望在 2027 年前带来能力的快速跃升。
提议采用全行业通行的、基于困惑度的开发限制来调控 AI 发展节奏
Pachocki 建议设立共同规范,并依据困惑度阈值制定具体限制:开发者在跨越特定基准前,必须先达到监控方面的里程碑,以确保安全能力跟上模型能力的发展。
完整摘要
OpenAI 首席科学家 Jakub Pachocki 认为,困惑度(对数交叉熵损失)应作为共同指标,用于追踪 AI 进展并为行业安全标准提供依据。他梳理了困惑度改善与新兴能力之间的关联:GPT-2 能生成连贯文本,GPT-3 学会了上下文学习,GPT-3.5 能够进行对话,而 GPT-4 则解锁了思维链推理。当损失降至 0.8 以下时,网络安全和数学领域出现了变革性能力。Pachocki 强调 AI 在算法研究中发挥的作用日益增强,并指出,对数困惑度约为 0.76 的模型开始解决尚未攻克的数学问题。他提议制定全行业适用的、基于困惑度的限制,在监控能力成熟之前放缓开发进程,同时承认跨实验室可比性不足、指标与具体任务脱节等挑战。
目录 · 2 节
乍一看,现代 AI 似乎与过去几十年构建软件的方式相似:采用一系列各不相同的技术,针对特定能力进行开发。确实存在各种各样的方法,但它们大多并非从零开始设计某种东西,而是利用一个简单得多、也更难解释的过程所产生的智能:在一个非常庞大的数据语料库上训练一个压缩器(或者说,等价地(在新窗口中打开),预测器)。1From afar, it might seem like modern AI is built similarly to how software has been built in previous decades: with a diverse set of techniques targeting specific capabilities. There are indeed a variety of methods, but rather than designing something from scratch, they are mostly harnessing the intelligence coming from a much simpler and less interpretable process: training a compressor (or, equivalently(opens in a new window), predictor) on a very large corpus of data.1
我认为,追踪训练更优秀压缩器的进展速度,是理解 AI 发展脉络的关键。在这篇文章中,我主张将困惑度(或等价的交叉熵损失)确立为一项指标,用于比较不同模型开发者的进展,并为制定共同的安全标准提供依据。作为第一步,我会提高 OpenAI 预训练进展的透明度。发布我们的内部困惑度测量结果需要经过一番权衡:这会让竞争对手更清楚地了解我们的进展,但与整个行业亟需建立共同安全措施相比,这一顾虑显得次要。我们 OpenAI 希望,此举能成为建立共同科学基础、以推进未来进展评估工作的第一步。I believe tracking the pace of progress on training better compressors is key to understanding the arc of advances in AI. In this post, I argue for establishing perplexity (or, equivalently, cross-entropy loss) as a metric to compare between model developers and inform shared safety standards. As a first step, I provide more transparency into pretraining progress at OpenAI. Publishing our internal perplexity measurements took some consideration; it gives competitors a clearer picture of where we stand, but that concern is outweighed by the urgency of establishing shared(opens in a new window) safety measures across the industry. We at OpenAI hope for this to be a step towards building a shared scientific basis for future pacing efforts.
一种简化但从根本上仍有启发性的 AI 发展观是:首先,构建一台大型计算机;然后用它在大型非结构化数据集上预训练一个模型(压缩器);接着在不同情境中运用提示、微调或强化学习等各种技术,激发该模型潜藏的能力。算法进步可能会模糊不同训练阶段之间的界限,但我们仍然可以区分两件事:创造出具有难以预测的涌现能力的 AI(我之前称之为“一个外星心智”),以及随后有针对性地激发这些能力。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.
多年来,我们衡量这一关键“智能基底”进展的主要方式一直相当稳定——我们持续跟踪模型在留出数据集上的困惑度。2, 3 困惑度衡量模型平均而言预测下一个 token 的能力;困惑度越低,预测效果越好。这篇博客开篇的图表展示了从 GPT‑3.5 开始,我们的模型在这一指标上的变化。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.
主要由这一项指标描述的模型能力范围令人惊叹。GPT‑2 在旧数据集上创下了新的困惑度最佳纪录⁴,可以说是首个能够持续生成连贯文本段落的模型。下一个重大飞跃是 GPT‑3,它能够根据少量任务示例进行上下文学习。GPT‑3.5 在我们当前的主要评测数据集上的对数困惑度约为 0.99,已经能够进行流畅对话,并成为最初版 ChatGPT 的基础。GPT‑4 的对数困惑度约为 0.91,擅长有效运用思维链推理,这促使人们随后有针对性地激发这一能力,并推动了现代推理模型的诞生。如今,随着损失值降至 0.8 以下,我们已经看到网络安全和数学等领域出现了变革性能力。我想再次强调,事先完全无法确定这些能力会在达到那些精确的困惑度阈值后出现——从根本上说,它们可以被视为在这一指标上取得进展后涌现的潜在能力。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.
随着 AI 飞速发展,我们衡量下游能力的范围和方式可能会迅速变化。用大多数现代基准测试来评估 GPT‑2 和 GPT‑3 几乎毫无意义;而当时使用的基准测试在 GPT‑4 问世前后大多已接近饱和。相比之下,我认为关注预训练方面的进展很可能仍具有参考价值。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.
进步速度的一种显著变化,源于 AI 对其自身发展的贡献日益增加。人们最常讨论的指标,围绕着 AI 在开发周期的各个阶段增强人类研究人员的能力,以及取代他们展开;其终极转折点被视为“完全递归式自我改进”——届时整个过程将实现全自动化,不再需要人类监督。除了应当为了维持人类的控制权而显然避免这种状态之外,我认为这种总体框架忽略了一个关键之处。AI 参与开发过程中的一个关键环节——预训练算法研究——可能带来一次飞跃式变化。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.
我们最近在另一个领域见证了前所未有的加速。一年多来,我们一直把数学中的开放问题交给模型,作为评估模型的方式之一。当我们升级到对数困惑度约为 0.76 的模型后,它开始取得突破性成果。对于我们中许多曾在数学及相关领域工作过的人来说,看到模型在同一个 Slack 讨论串里接连解答那些我们长期思考的问题,感觉十分超现实。经历过这一切后,我们得以推断:深度学习研究中也可能出现这种突如其来的变革。尽管这个领域更依赖实验,但简单的见解被忽视数年也并非新鲜事;因此,早在 2027 年,我们就有可能看到一波类似的基础性预训练进展⁵。虽然我预计 AI 也会显著推动对齐与监控方面的进步,但我认为,这种进步不太可能快到足以释放预训练加速的全部潜力。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.
鉴于新颖且令人惊讶的能力主要是随着压缩技术的进步而涌现,以困惑度为基础的度量指标或许能为通用智能提供一个共同基准,而不受开发过程自动化程度的影响。根据近期进展外推,随着我们进入约 0.68–0.7 的对数困惑度区间,我们应当预期会出现更多变革性能力。我不知道这些能力会是什么,而且我们现在可能还没有针对它们进行测试。与此同时,我们也应当预期,目前占主导地位的对齐审计方式会进一步退化,并且模型对评估和训练的觉察能力会进一步增强。我认为,前沿模型开发者应共同努力,在首次使用这类模型之前,建立评估它们的共同规范、对其安全案例进行红队测试的共同规范,以及共同的透明度标准。我还提议设定共同的限制,这些限制以困惑度和其他测量指标为依据;在我们理解和监控 AI 行为的能力达到某个明确的里程碑(例如开发出思维链(CoT)监控器的后继方案)之前,开发者承诺不越过这些限制。也就是说,我希望制定一项行业标准,明确设定一道以某个可在各实验室间追踪的关键指标衡量的开发上限,并明确说明在越过上限之前我们需要具体实现什么。我希望这能为建立共同框架、以此设定后续限制并把握进一步开发的节奏开辟道路。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.
- 未知下限。我们不认为损失值有可能达到 0,因为这意味着模型能够完全确定性地预测整个数据集。但我们并不知道数据本身固有的熵是多少。随着我们逐渐接近这一极限,困惑度方面的表观进展会放缓,但困惑度上的小幅提升将对应模型智能水平的巨大跃升。
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.
与此同时,困惑度作为一项指标经受住了时间的考验,许多研究团队也投入了大量精力对其进行优化;它在通用智能方面持续带来稳定提升。我认为,它能在规范我们讨论 AI 进展的方式上发挥重要作用,也希望看到整个行业对此更加透明。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.
- 计算规模扩展
- 伦理与安全
- 2026
作者Author
脚注Footnotes
- 1 需要注意的是,这里所说的“压缩器”指的是能够通过预测未见数据来执行压缩的工具,而不是像 GZIP 文件那样的压缩产物。也就是说,在给定语料上训练出的最佳压缩器,不一定会“记住”语料的内容。
- 2 在实践中,我们通常跟踪困惑度的对数,也称为交叉熵损失。
- 3 自 GPT-3.5 以来,我们一直使用的主要留出数据集取自我们的内部代码库,本文报告的数字即基于这些数据集(针对固定快照)。
- 4 鉴于 GPT‑2 和 GPT‑3 的训练数据,它们预测代码的能力并不能很好地代表其整体能力。这表明,在使用困惑度作为通用指标时,数据集选择可能带来挑战;不过,与现代模型一同在通用文本上评估它们仍然有参考价值。我选择报告我们内部代码库上的困惑度,因为我想分享我们如今在 OpenAI 最常用来衡量预训练进展的数据。4
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.
- 5 在 OpenAI 模型的损失曲线图中,可以看到 2026 年出现了大幅加速。我们认为,这主要归功于长期研究和算力投入的成果,自动化只在较小程度上发挥了作用。不过,对于最新的模型,我们已经看到 AI 带来了实质性的设计贡献。5
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.